Documentation ¶
Index ¶
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.
Types ¶
type AddCAASCommand ¶
type AddCAASCommand struct { modelcmd.ControllerCommandBase // 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) 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) 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) (k8sBrokerRegionLister, error)
BrokerGetter returns caas broker instance.
type CloudMetadataStore ¶
type CloudMetadataStore interface { ParseCloudMetadataFile(path string) (map[string]jujucloud.Cloud, 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 RemoveCAASCommand ¶
type RemoveCAASCommand struct { modelcmd.ControllerCommandBase // 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.
func (*RemoveCAASCommand) Run ¶
func (c *RemoveCAASCommand) Run(ctxt *cmd.Context) error
Run is defined on the Command interface.
func (*RemoveCAASCommand) SetFlags ¶
func (c *RemoveCAASCommand) SetFlags(f *gnuflag.FlagSet)
SetFlags initializes the flags supported by the command.
type RemoveCloudAPI ¶
RemoveCloudAPI is implemented by cloudapi.Client.