Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cobra.Command{ Use: "set", Short: "Set identity with access to control plane resources", Long: "Set identity with access to control plane resources", Args: func(cmd *cobra.Command, args []string) error { if !strings.Contains(identity, ".iam.gserviceaccount.com") { return fmt.Errorf("identity[0] must have .iam.gserviceaccount.com suffix"+ " and should not be a Google managed service account: %s", identity) } return nil }, RunE: func(cmd *cobra.Command, args []string) (err error) { u, _ := url.Parse(shared.BaseURL) u.Path = path.Join(u.Path, shared.RootArgs.Org+":setSyncAuthorization") identity = validate(identity) identities := iAMIdentities{} identities.Identities = append(identities.Identities, identity) payload, _ := json.Marshal(&identities) _, err = shared.HttpClient(true, u.String(), string(payload)) return }, }
Cmd to set identities
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.