Documentation
¶
Index ¶
- Variables
- func NewAddCloudCommand() cmd.Command
- func NewAddCredentialCommand() cmd.Command
- func NewDetectCredentialsCommand() cmd.Command
- func NewListCloudsCommand() cmd.Command
- func NewListCredentialsCommand() cmd.Command
- func NewRemoveCloudCommand() cmd.Command
- func NewRemoveCredentialCommand() cmd.Command
- func NewSetDefaultCredentialCommand() cmd.Command
- func NewSetDefaultRegionCommand() cmd.Command
- func NewShowCloudCommand() cmd.Command
- type CloudCredential
- type Credential
Constants ¶
This section is empty.
Variables ¶
var NewUpdateCloudsCommand = func() cmd.Command {
return newUpdateCloudsCommand()
}
NewUpdateCloudsCommand returns a command to update cloud information.
Functions ¶
func NewAddCloudCommand ¶
NewAddCloudCommand returns a command to add cloud information.
func NewAddCredentialCommand ¶
NewAddCredentialCommand returns a command to add credential information.
func NewDetectCredentialsCommand ¶
NewDetectCredentialsCommand returns a command to add credential information to credentials.yaml.
func NewListCloudsCommand ¶
NewListCloudsCommand returns a command to list cloud information.
func NewListCredentialsCommand ¶
NewListCredentialsCommand returns a command to list cloud credentials.
func NewRemoveCloudCommand ¶
NewRemoveCloudCommand returns a command to remove cloud information.
func NewRemoveCredentialCommand ¶
NewremoveCredentialCommand returns a command to remove a named credential for a cloud.
func NewSetDefaultCredentialCommand ¶
NewSetDefaultCredentialCommand returns a command to set the default credential for a cloud.
func NewSetDefaultRegionCommand ¶
NewSetDefaultRegionCommand returns a command to set the default region for a cloud.
func NewShowCloudCommand ¶
NewShowCloudCommand returns a command to list cloud information.
Types ¶
type CloudCredential ¶
type CloudCredential struct { // DefaultCredential is the named credential to use by default. DefaultCredential string `json:"default-credential,omitempty" yaml:"default-credential,omitempty"` // DefaultRegion is the cloud region to use by default. DefaultRegion string `json:"default-region,omitempty" yaml:"default-region,omitempty"` // Credentials is the collection of all credentials registered by the user for a cloud, keyed on a cloud name. Credentials map[string]Credential `json:"cloud-credentials,omitempty" yaml:",omitempty,inline"` }
CloudCredential contains attributes used to define credentials for a cloud.
type Credential ¶
type Credential struct { // AuthType determines authentication type for the credential. AuthType string `json:"auth-type" yaml:"auth-type"` // Attributes define details for individual credential. // This collection is provider-specific: each provider is interested in different credential details. Attributes map[string]string `json:"details,omitempty" yaml:",omitempty,inline"` // Revoked is true if the credential has been revoked. Revoked bool `json:"revoked,omitempty" yaml:"revoked,omitempty"` // Label is optionally set to describe the credentials to a user. Label string `json:"label,omitempty" yaml:"label,omitempty"` }
Credential instances represent cloud credentials.