Documentation ¶
Index ¶
- func NewDestroyCommand() cmd.Command
- func NewGetCommand() cmd.Command
- func NewGrantCommand() cmd.Command
- func NewModelGetConstraintsCommand() cmd.Command
- func NewModelSetConstraintsCommand() cmd.Command
- func NewRetryProvisioningCommand() cmd.Command
- func NewRevokeCommand() cmd.Command
- func NewSetCommand() cmd.Command
- func NewShowCommand() cmd.Command
- func NewUnsetCommand() cmd.Command
- func NewUsersCommand() cmd.Command
- type ConstraintsAPI
- type DestroyEnvironmentAPI
- type GetEnvironmentAPI
- type GrantModelAPI
- type RetryProvisioningAPI
- type RevokeModelAPI
- type SetModelAPI
- type ShowModelAPI
- type UnsetEnvironmentAPI
- type UsersAPI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDestroyCommand ¶
NewDestroyCommand returns a command used to destroy a model.
func NewGetCommand ¶
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 NewSetCommand ¶
func NewShowCommand ¶
func NewUnsetCommand ¶
func NewUsersCommand ¶
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 DestroyEnvironmentAPI ¶
DestroyEnvironmentAPI defines the methods on the modelmanager API that the destroy command calls. It is exported for mocking in tests.
type GetEnvironmentAPI ¶
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 RevokeModelAPI ¶
type RevokeModelAPI interface { Close() error RevokeModel(user, access string, modelUUIDs ...string) error }
RevokeModelAPI defines the API functions used by the revoke command.
type SetModelAPI ¶
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.