ibmcloud

package
v0.0.0-...-6fe4910 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 25 Imported by: 2

Documentation

Index

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

func NewCreateServiceIDCmd() *cobra.Command

NewCreateServiceIDCmd provides the "create-service-id" subcommand

func NewDeleteServiceIDCmd

func NewDeleteServiceIDCmd() *cobra.Command

NewDeleteServiceIDCmd provides the "delete-service-id" subcommand

func NewIBMCloudCmd

func NewIBMCloudCmd() *cobra.Command

NewIBMCloudCmd implements the "ibmcloud" subcommand for the credentials provisioning

func NewRefreshKeysCmd

func NewRefreshKeysCmd() *cobra.Command

NewRefreshKeysCmd provides the "refresh-keys" subcommand

Types

type Provision

type Provision interface {
	Validate() error

	Do() error
	UnDo(string) error

	List() ([]iamidentityv1.ServiceID, error)

	Refresh() error
	RemoveStaleKeys() error

	Dump(string) error

	Delete(bool) error
}

type ServiceID

type ServiceID struct {
	ibmcloud.Client
	*iamidentityv1.ServiceID
	// contains filtered or unexported fields
}

func NewServiceID

func NewServiceID(client ibmcloud.Client, prefix, accountID, resourceGroupID string, cr *credreqv1.CredentialsRequest) *ServiceID

func (*ServiceID) BuildSecret

func (s *ServiceID) BuildSecret() (*corev1.Secret, error)

func (*ServiceID) Delete

func (s *ServiceID) Delete(force bool) error

func (*ServiceID) Do

func (s *ServiceID) Do() error

func (*ServiceID) Dump

func (s *ServiceID) Dump(targetDir string) error

func (*ServiceID) List

func (s *ServiceID) List() ([]iamidentityv1.ServiceID, error)

func (*ServiceID) Refresh

func (s *ServiceID) Refresh() error

func (*ServiceID) RemoveStaleKeys

func (s *ServiceID) RemoveStaleKeys() error

func (*ServiceID) UnDo

func (s *ServiceID) UnDo(targetDir string) error

func (*ServiceID) Validate

func (s *ServiceID) Validate() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL