juju: github.com/juju/juju/cmd/juju/caas Index | Files | Directories

package caas

import "github.com/juju/juju/cmd/juju/caas"

Index

Package Files

add.go aks.go cluster.go gke.go remove.go

func NewAddCAASCommand Uses

func NewAddCAASCommand(cloudMetadataStore CloudMetadataStore) cmd.Command

NewAddCAASCommand returns a command to add caas information.

func NewRemoveCAASCommand Uses

func NewRemoveCAASCommand(cloudMetadataStore CloudMetadataStore) cmd.Command

NewRemoveCAASCommand returns a command to add caas information.

type AddCAASCommand Uses

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 Uses

func (c *AddCAASCommand) Info() *cmd.Info

Info returns help information about the command.

func (*AddCAASCommand) Init Uses

func (c *AddCAASCommand) Init(args []string) (err error)

Init populates the command with the args from the command line.

func (*AddCAASCommand) Run Uses

func (c *AddCAASCommand) Run(ctx *cmd.Context) (err error)

Run is defined on the Command interface.

func (*AddCAASCommand) SetFlags Uses

func (c *AddCAASCommand) SetFlags(f *gnuflag.FlagSet)

SetFlags initializes the flags supported by the command.

type AddCloudAPI Uses

type AddCloudAPI interface {
    AddCloud(jujucloud.Cloud, bool) error
    AddCredential(tag string, credential jujucloud.Credential) error
    Close() error
}

AddCloudAPI - Implemented by cloudapi.Client.

type BrokerGetter Uses

type BrokerGetter func(cloud jujucloud.Cloud, credential jujucloud.Credential) (caas.ClusterMetadataChecker, error)

BrokerGetter returns caas broker instance.

type CloudMetadataStore Uses

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 Uses

type CommandRunner interface {
    RunCommands(run exec.RunParams) (*exec.ExecResponse, error)
}

type RemoveCAASCommand Uses

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 Uses

func (c *RemoveCAASCommand) Info() *cmd.Info

Info returns help information about the command.

func (*RemoveCAASCommand) Init Uses

func (c *RemoveCAASCommand) Init(args []string) (err error)

Init populates the command with the args from the command line.

func (*RemoveCAASCommand) Run Uses

func (c *RemoveCAASCommand) Run(ctxt *cmd.Context) error

Run is defined on the Command interface.

type RemoveCloudAPI Uses

type RemoveCloudAPI interface {
    RemoveCloud(string) error
    Close() error
}

RemoveCloudAPI is implemented by cloudapi.Client.

Directories

PathSynopsis
mocksPackage mocks is a generated GoMock package.

Package caas imports 29 packages (graph) and is imported by 3 packages. Updated 2019-10-18. Refresh now. Tools for package owners.