Documentation ¶
Index ¶
- Variables
- func NewCreateServiceIDCmd() *cobra.Command
- func NewDeleteServiceIDCmd() *cobra.Command
- func NewIBMCloudCmd() *cobra.Command
- func NewRefreshKeysCmd() *cobra.Command
- type Provision
- type ServiceID
- func (s *ServiceID) BuildSecret() (*corev1.Secret, error)
- func (s *ServiceID) Delete(force bool) error
- func (s *ServiceID) Do() error
- func (s *ServiceID) Dump(targetDir string) error
- func (s *ServiceID) List() ([]iamidentityv1.ServiceID, error)
- func (s *ServiceID) Refresh() error
- func (s *ServiceID) RemoveStaleKeys() error
- func (s *ServiceID) UnDo(targetDir string) error
- func (s *ServiceID) Validate() error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Options captures the options that affect creation/deletion of the generated // objects. Options = options{ TargetDir: "", } // APIKeyName is the name for the autogenerated API Key for the Service ID APIKeyName = "ccoctl-generated-key" )
View Source
var APIKeyEnvVars = []string{"IC_API_KEY", "IBMCLOUD_API_KEY", "BM_API_KEY", "BLUEMIX_API_KEY"}
APIKeyEnvVars is a list of environment variable names containing an IBM Cloud API key
Functions ¶
func NewCreateServiceIDCmd ¶
NewCreateServiceIDCmd provides the "create-service-id" subcommand
func NewDeleteServiceIDCmd ¶
NewDeleteServiceIDCmd provides the "delete-service-id" subcommand
func NewIBMCloudCmd ¶
NewIBMCloudCmd implements the "ibmcloud" subcommand for the credentials provisioning
func NewRefreshKeysCmd ¶
NewRefreshKeysCmd provides the "refresh-keys" subcommand
Types ¶
type ServiceID ¶
type ServiceID struct { ibmcloud.Client *iamidentityv1.ServiceID // contains filtered or unexported fields }
func NewServiceID ¶
func (*ServiceID) RemoveStaleKeys ¶
Click to show internal directories.
Click to hide internal directories.