File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import (
13
13
"github.com/mitchellh/mapstructure"
14
14
)
15
15
16
- type AuthenticateWorkspaceAgentUsingGoogleInstanceIdentity struct {
16
+ type GoogleInstanceIdentityToken struct {
17
17
JSONWebToken string `json:"json_web_token" validate:"required"`
18
18
}
19
19
@@ -27,7 +27,7 @@ type WorkspaceAgentAuthenticateResponse struct {
27
27
// https://cloud.google.com/compute/docs/instances/verifying-instance-identity
28
28
// Using this, we can exchange a signed instance payload for an agent token.
29
29
func (api * api ) postAuthenticateWorkspaceAgentUsingGoogleInstanceIdentity (rw http.ResponseWriter , r * http.Request ) {
30
- var req AuthenticateWorkspaceAgentUsingGoogleInstanceIdentity
30
+ var req GoogleInstanceIdentityToken
31
31
if ! httpapi .Read (rw , r , & req ) {
32
32
return
33
33
}
You can’t perform that action at this time.
0 commit comments