Documentation ¶
Overview ¶
Copyright 2016 Canonical Ltd. Licensed under the AGPLv3, see LICENCE file for details.
Copyright 2016 Canonical Ltd. Licensed under the AGPLv3, see LICENCE file for details.
Copyright 2018 Canonical Ltd. Licensed under the AGPLv3, see LICENCE file for details.
Index ¶
- func ExtractCert() []byte
- func NewAddGenerationCommand() cmd.Command
- func NewAdvanceGenerationCommand() cmd.Command
- func NewCancelGenerationCommand() cmd.Command
- func NewConfigCommand() cmd.Command
- func NewDefaultsCommand() cmd.Command
- func NewDestroyCommand() cmd.Command
- func NewDumpCommand() cmd.Command
- func NewDumpDBCommand() cmd.Command
- func NewExportBundleCommand() cmd.Command
- func NewGrantCloudCommand() cmd.Command
- func NewGrantCommand() cmd.Command
- func NewModelCredentialCommand() cmd.Command
- func NewModelGetConstraintsCommand() cmd.Command
- func NewModelSetConstraintsCommand() cmd.Command
- func NewRetryProvisioningCommand() cmd.Command
- func NewRevokeCloudCommand() cmd.Command
- func NewRevokeCommand() cmd.Command
- func NewShowCommand() cmd.Command
- func NewSwitchGenerationCommand() cmd.Command
- func ParseCert(arg string) error
- type AddGenerationCommandAPI
- type AdvanceGenerationCommandAPI
- type BudgetAPIClient
- type CancelGenerationCommandAPI
- type CloudAPI
- type ConstraintsAPI
- type DestroyModelAPI
- type DumpDBAPI
- type DumpModelAPI
- type ExportBundleAPI
- type GrantCloudAPI
- type GrantControllerAPI
- type GrantModelAPI
- type GrantOfferAPI
- type ModelConfigAPI
- type ModelCredentialAPI
- type RetryProvisioningAPI
- type RevokeCloudAPI
- type RevokeControllerAPI
- type RevokeModelAPI
- type RevokeOfferAPI
- type ShowModelAPI
- type StorageAPI
- type SwitchGenerationCommandAPI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractCert ¶
func ExtractCert() []byte
func NewAddGenerationCommand ¶
NewAddGenerationCommand wraps addGenerationCommand with sane model settings.
func NewAdvanceGenerationCommand ¶
NewAdvanceGenerationCommand wraps advanceGenerationCommand with sane model settings.
func NewCancelGenerationCommand ¶
NewCancelGenerationCommand wraps cancelGenerationCommand with sane model settings.
func NewConfigCommand ¶
NewConfigCommand wraps configCommand with sane model settings.
func NewDefaultsCommand ¶
NewDefaultsCommand wraps defaultsCommand with sane model settings.
func NewDestroyCommand ¶
NewDestroyCommand returns a command used to destroy a model.
func NewDumpCommand ¶
NewDumpCommand returns a fully constructed dump-model command.
func NewDumpDBCommand ¶
NewDumpDBCommand returns a fully constructed dump-db command.
func NewExportBundleCommand ¶
NewExportBundleCommand returns a fully constructed export bundle command.
func NewGrantCloudCommand ¶
NewGrantCloudCommand returns a new grant command.
func NewGrantCommand ¶
NewGrantCommand returns a new grant command.
func NewModelGetConstraintsCommand ¶
NewModelGetConstraintsCommand returns a command to get model constraints.
func NewModelSetConstraintsCommand ¶
NewModelSetConstraintsCommand returns a command to set model constraints.
func NewRevokeCloudCommand ¶
NewRevokeCloudCommand returns a new revoke command.
func NewRevokeCommand ¶
NewRevokeCommand returns a new revoke command.
func NewShowCommand ¶
func NewSwitchGenerationCommand ¶
NewSwitchGenerationCommand wraps switchGenerationCommand with sane model settings.
Types ¶
type AddGenerationCommandAPI ¶
AddGenerationCommandAPI defines an API interface to be used during testing.
type AdvanceGenerationCommandAPI ¶
type AdvanceGenerationCommandAPI interface { Close() error AdvanceGeneration(string, []string) (bool, error) }
AdvanceGenerationCommandAPI defines an API interface to be used during testing.
type BudgetAPIClient ¶
BudgetAPIClient defines the budget API client interface.
type CancelGenerationCommandAPI ¶
CancelGenerationCommandAPI defines an API interface to be used during testing.
type CloudAPI ¶
type CloudAPI interface { Close() error UserCredentials(names.UserTag, names.CloudTag) ([]names.CloudCredentialTag, error) AddCredential(tag string, credential cloud.Credential) error }
CloudAPI defines methods used to detemine if cloud credential exists on the controller.
type ConstraintsAPI ¶
type ConstraintsAPI interface { Close() error GetModelConstraints() (constraints.Value, error) SetModelConstraints(constraints.Value) error }
ConstraintsAPI defines methods on the client API that the get-constraints and set-constraints commands call
type DestroyModelAPI ¶
type DestroyModelAPI interface { Close() error BestAPIVersion() int DestroyModel(tag names.ModelTag, destroyStorage *bool) error ModelStatus(models ...names.ModelTag) ([]base.ModelStatus, error) }
DestroyModelAPI defines the methods on the modelmanager API that the destroy command calls. It is exported for mocking in tests.
type DumpDBAPI ¶
type DumpDBAPI interface { Close() error DumpModelDB(names.ModelTag) (map[string]interface{}, error) }
DumpDBAPI specifies the used function calls of the ModelManager.
type DumpModelAPI ¶
type DumpModelAPI interface { Close() error DumpModel(names.ModelTag, bool) (map[string]interface{}, error) }
DumpModelAPI specifies the used function calls of the ModelManager.
type ExportBundleAPI ¶
ExportBundleAPI specifies the used function calls of the BundleFacade.
type GrantCloudAPI ¶
type GrantCloudAPI interface { Close() error GrantCloud(user, access string, clouds ...string) error }
GrantCloudAPI defines the API functions used by the grant command.
type GrantControllerAPI ¶
GrantControllerAPI defines the API functions used by the grant command.
type GrantModelAPI ¶
type GrantModelAPI interface { Close() error GrantModel(user, access string, modelUUIDs ...string) error }
GrantModelAPI defines the API functions used by the grant command.
type GrantOfferAPI ¶
type GrantOfferAPI interface { Close() error GrantOffer(user, access string, offerURLs ...string) error }
GrantOfferAPI defines the API functions used by the grant command.
type ModelConfigAPI ¶
ModelConfigAPI defines the methods on the modelconfig API that the destroy command calls. It is exported for mocking in tests.
type ModelCredentialAPI ¶
type ModelCredentialAPI interface { Close() error ChangeModelCredential(model names.ModelTag, credential names.CloudCredentialTag) error }
ModelCredentialAPI defines methods used to replace model credential.
type RetryProvisioningAPI ¶
type RetryProvisioningAPI interface { Close() error RetryProvisioning(machines ...names.MachineTag) ([]params.ErrorResult, error) }
RetryProvisioningAPI defines methods on the client API that the retry-provisioning command calls.
type RevokeCloudAPI ¶
type RevokeCloudAPI interface { Close() error RevokeCloud(user, access string, clouds ...string) error }
RevokeCloudAPI defines the API functions used by the revoke cloud command.
type RevokeControllerAPI ¶
RevokeControllerAPI defines the API functions used by the revoke command.
type RevokeModelAPI ¶
type RevokeModelAPI interface { Close() error RevokeModel(user, access string, modelUUIDs ...string) error }
RevokeModelAPI defines the API functions used by the revoke command.
type RevokeOfferAPI ¶
type RevokeOfferAPI interface { Close() error RevokeOffer(user, access string, offerURLs ...string) error }
RevokeOfferAPI defines the API functions used by the revoke command.
type ShowModelAPI ¶
type ShowModelAPI interface { Close() error ModelInfo([]names.ModelTag) ([]params.ModelInfoResult, error) }
ShowModelAPI defines the methods on the client API that the users command calls.
type StorageAPI ¶
type StorageAPI interface { Close() error ListStorageDetails() ([]params.StorageDetails, error) }
StorageAPI defines the storage client API interface.