Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cobra.Command{
Use: "sync",
Short: "Manage identities with grant access to control plane resources",
Long: "Manage identities with grant access to control plane resources",
}
Cmd to manage identities
View Source
var GetCmd = &cobra.Command{ Use: "get", Short: "Show the list of identities with access to control plane resources", Long: "Show the list of identities with access to control plane resources", Args: func(cmd *cobra.Command, args []string) (err error) { apiclient.SetApigeeOrg(org) return nil }, RunE: func(cmd *cobra.Command, args []string) (err error) { _, err = sync.Get() return }, }
Cmd to get list of identities
View Source
var ResetCmd = &cobra.Command{ Use: "reset", Short: "Reset identities with access to control plane resources", Long: "Reset identities with access to control plane resources", Args: func(cmd *cobra.Command, args []string) (err error) { apiclient.SetApigeeOrg(org) return nil }, RunE: func(cmd *cobra.Command, args []string) (err error) { _, err = sync.Reset() return }, }
Cmd to set identities
View Source
var SetCmd = &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 { apiclient.SetApigeeOrg(org) 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) { _, err = sync.Set(identity) 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.