Documentation ¶
Index ¶
- func NewAddCAASCommand(cloudMetadataStore CloudMetadataStore) cmd.Command
- func NewRemoveCAASCommand(cloudMetadataStore CloudMetadataStore) cmd.Command
- func NewUpdateCAASCommand(cloudMetadataStore CloudMetadataStore) cmd.Command
- type AddCAASCommand
- type AddCloudAPI
- type BrokerGetter
- type CloudMetadataStore
- type CommandRunner
- type CredentialStoreAPI
- type RemoveCAASCommand
- type RemoveCloudAPI
- type UpdateCAASCommand
- type UpdateCloudAPI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAddCAASCommand ¶
func NewAddCAASCommand(cloudMetadataStore CloudMetadataStore) cmd.Command
NewAddCAASCommand returns a command to add CAAS information.
func NewRemoveCAASCommand ¶
func NewRemoveCAASCommand(cloudMetadataStore CloudMetadataStore) cmd.Command
NewRemoveCAASCommand returns a command to add caas information.
func NewUpdateCAASCommand ¶
func NewUpdateCAASCommand(cloudMetadataStore CloudMetadataStore) cmd.Command
NewUpdateCAASCommand returns a command to update CAAS information.
Types ¶
type AddCAASCommand ¶
type AddCAASCommand struct { modelcmd.OptionalControllerCommand // contains filtered or unexported fields }
AddCAASCommand is the command that allows you to add a caas and credential
func (*AddCAASCommand) Info ¶
func (c *AddCAASCommand) Info() *cmd.Info
Info returns help information about the command.
func (*AddCAASCommand) Init ¶
func (c *AddCAASCommand) Init(args []string) (err error)
Init populates the command with the args from the command line.
func (*AddCAASCommand) Run ¶
func (c *AddCAASCommand) Run(ctx *cmd.Context) (err error)
Run is defined on the Command interface.
func (*AddCAASCommand) SetFlags ¶
func (c *AddCAASCommand) SetFlags(f *gnuflag.FlagSet)
SetFlags initializes the flags supported by the command.
type AddCloudAPI ¶
type AddCloudAPI interface { AddCloud(jujucloud.Cloud, bool) error AddCredential(tag string, credential jujucloud.Credential) error Close() error }
AddCloudAPI - Implemented by cloudapi.Client.
type BrokerGetter ¶
type BrokerGetter func(cloud jujucloud.Cloud, credential jujucloud.Credential) (k8s.ClusterMetadataChecker, error)
BrokerGetter returns caas broker instance.
type CloudMetadataStore ¶
type CloudMetadataStore interface { ReadCloudData(path string) ([]byte, error) ParseOneCloud(data []byte) (jujucloud.Cloud, error) PublicCloudMetadata(searchPaths ...string) (result map[string]jujucloud.Cloud, fallbackUsed bool, _ error) PersonalCloudMetadata() (map[string]jujucloud.Cloud, error) WritePersonalCloudMetadata(cloudsMap map[string]jujucloud.Cloud) error }
type CommandRunner ¶
type CommandRunner interface {
RunCommands(run exec.RunParams) (*exec.ExecResponse, error)
}
type CredentialStoreAPI ¶
type CredentialStoreAPI interface {
UpdateCredential(cloudName string, details jujucloud.CloudCredential) error
}
type RemoveCAASCommand ¶
type RemoveCAASCommand struct { modelcmd.OptionalControllerCommand // contains filtered or unexported fields }
RemoveCAASCommand is the command that allows you to remove a k8s cloud.
func (*RemoveCAASCommand) Info ¶
func (c *RemoveCAASCommand) Info() *cmd.Info
Info returns help information about the command.
func (*RemoveCAASCommand) Init ¶
func (c *RemoveCAASCommand) Init(args []string) (err error)
Init populates the command with the args from the command line.
type RemoveCloudAPI ¶
RemoveCloudAPI is implemented by cloudapi.Client.
type UpdateCAASCommand ¶
type UpdateCAASCommand struct { modelcmd.OptionalControllerCommand // CloudFile is the name of the cloud YAML file CloudFile string // contains filtered or unexported fields }
UpdateCAASCommand is the command that allows you to update a caas cloud.
func (*UpdateCAASCommand) Info ¶
func (c *UpdateCAASCommand) Info() *cmd.Info
Info returns help information about the command.
func (*UpdateCAASCommand) Init ¶
func (c *UpdateCAASCommand) Init(args []string) error
Init populates the command with the args from the command line.
func (*UpdateCAASCommand) Run ¶
func (c *UpdateCAASCommand) Run(ctx *cmd.Context) (err error)
Run is defined on the Command interface.
func (*UpdateCAASCommand) SetFlags ¶
func (c *UpdateCAASCommand) SetFlags(f *gnuflag.FlagSet)
SetFlags initializes the flags supported by the command.
type UpdateCloudAPI ¶
type UpdateCloudAPI interface { Cloud(tag names.CloudTag) (jujucloud.Cloud, error) UpdateCloud(jujucloud.Cloud) error UpdateCloudsCredentials(cloudCredentials map[string]jujucloud.Credential, force bool) ([]params.UpdateCredentialResult, error) Close() error }
UpdateCloudAPI - Implemented by cloudapi.Client.