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.
Index ¶
- func NewConfigCommand() cmd.Command
- func NewDefaultsCommand() cmd.Command
- func NewDestroyCommand() cmd.Command
- func NewDumpCommand() cmd.Command
- func NewDumpDBCommand() cmd.Command
- func NewGrantCommand() cmd.Command
- func NewModelGetConstraintsCommand() cmd.Command
- func NewModelSetConstraintsCommand() cmd.Command
- func NewRetryProvisioningCommand() cmd.Command
- func NewRevokeCommand() cmd.Command
- func NewShowCommand() cmd.Command
- type ConstraintsAPI
- type DestroyModelAPI
- type DumpDBAPI
- type DumpModelAPI
- type GrantControllerAPI
- type GrantModelAPI
- type RetryProvisioningAPI
- type RevokeControllerAPI
- type RevokeModelAPI
- type ShowModelAPI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 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 NewRevokeCommand ¶
NewRevokeCommand returns a new revoke command.
func NewShowCommand ¶
Types ¶
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 DestroyModel(names.ModelTag) 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) (map[string]interface{}, error) }
DumpModelAPI specifies the used function calls of the ModelManager.
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 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 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 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.