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 credential.go eks.go gke.go remove.go update.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.

func NewUpdateCAASCommand Uses

func NewUpdateCAASCommand(cloudMetadataStore CloudMetadataStore) cmd.Command

NewUpdateCAASCommand returns a command to update 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 {
    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 Uses

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

type CredentialStoreAPI Uses

type CredentialStoreAPI interface {
    UpdateCredential(cloudName string, details jujucloud.CloudCredential) error
}

go:generate go run github.com/golang/mock/mockgen -package mocks -destination mocks/storeapi_mock.go github.com/juju/juju/cmd/juju/caas CredentialStoreAPI

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.

type UpdateCAASCommand Uses

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 Uses

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

Info returns help information about the command.

func (*UpdateCAASCommand) Init Uses

func (c *UpdateCAASCommand) Init(args []string) error

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

func (*UpdateCAASCommand) Run Uses

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

Run is defined on the Command interface.

func (*UpdateCAASCommand) SetFlags Uses

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

SetFlags initializes the flags supported by the command.

type UpdateCloudAPI Uses

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.

Directories

PathSynopsis
mocksPackage mocks is a generated GoMock package.

Package caas imports 34 packages (graph) and is imported by 4 packages. Updated 2020-09-02. Refresh now. Tools for package owners.