Documentation
¶
Index ¶
- func NewDestroyCommand() cmd.Command
- func NewGetCommand() cmd.Command
- func NewModelGetConstraintsCommand() cmd.Command
- func NewModelSetConstraintsCommand() cmd.Command
- func NewRetryProvisioningCommand() cmd.Command
- func NewSetCommand() cmd.Command
- func NewShareCommand() cmd.Command
- func NewUnsetCommand() cmd.Command
- func NewUnshareCommand() cmd.Command
- func NewUsersCommand() cmd.Command
- type ConstraintsAPI
- type DestroyEnvironmentAPI
- type GetEnvironmentAPI
- type RetryProvisioningAPI
- type SetModelAPI
- type ShareEnvironmentAPI
- type UnsetEnvironmentAPI
- type UnshareEnvironmentAPI
- type UserInfo
- 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 NewModelGetConstraintsCommand ¶
NewModelGetConstraintsCommand returns a command to get model constraints.
func NewModelSetConstraintsCommand ¶
NewModelSetConstraintsCommand returns a command to set model constraints.
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 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 SetModelAPI ¶
type ShareEnvironmentAPI ¶
type ShareEnvironmentAPI interface {
}
ShareEnvironmentAPI defines the API functions used by the environment share command.
type UnsetEnvironmentAPI ¶
type UnshareEnvironmentAPI ¶
type UnshareEnvironmentAPI interface {
}
UnshareEnvironmentAPI defines the API functions used by the environment unshare command.
type UserInfo ¶
type UserInfo struct {
Username string `yaml:"user-name" json:"user-name"`
DateCreated string `yaml:"date-created" json:"date-created"`
LastConnection string `yaml:"last-connection" json:"last-connection"`
}
UserInfo defines the serialization behaviour of the user information.
type UsersAPI ¶
type UsersAPI interface {
Close() error
ModelUserInfo() ([]params.ModelUserInfo, error)
}
UsersAPI defines the methods on the client API that the users command calls.
Source Files
¶
- constraints.go
- destroy.go
- get.go
- retryprovisioning.go
- set.go
- share.go
- unset.go
- unshare.go
- users.go