model

package
v0.0.0-...-2608902 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2016 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDestroyCommand

func NewDestroyCommand() cmd.Command

NewDestroyCommand returns a command used to destroy a model.

func NewGetCommand

func NewGetCommand() cmd.Command

func NewGrantCommand

func NewGrantCommand() cmd.Command

NewGrantCommand returns a new grant command.

func NewModelGetConstraintsCommand

func NewModelGetConstraintsCommand() cmd.Command

NewModelGetConstraintsCommand returns a command to get model constraints.

func NewModelSetConstraintsCommand

func NewModelSetConstraintsCommand() cmd.Command

NewModelSetConstraintsCommand returns a command to set model constraints.

func NewRetryProvisioningCommand

func NewRetryProvisioningCommand() cmd.Command

func NewRevokeCommand

func NewRevokeCommand() cmd.Command

NewRevokeCommand returns a new revoke command.

func NewSetCommand

func NewSetCommand() cmd.Command

func NewShowCommand

func NewShowCommand() cmd.Command

func NewUnsetCommand

func NewUnsetCommand() cmd.Command

func NewUsersCommand

func NewUsersCommand() cmd.Command

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

type DestroyEnvironmentAPI interface {
	Close() error
	DestroyModel() error
}

DestroyEnvironmentAPI defines the methods on the modelmanager API that the destroy command calls. It is exported for mocking in tests.

type GetEnvironmentAPI

type GetEnvironmentAPI interface {
	Close() error
	ModelGet() (map[string]interface{}, error)
}

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 SetModelAPI interface {
	Close() error
	ModelGet() (map[string]interface{}, error)
	ModelSet(config map[string]interface{}) error
}

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 UnsetEnvironmentAPI

type UnsetEnvironmentAPI interface {
	Close() error
	ModelGet() (map[string]interface{}, error)
	ModelUnset(keys ...string) error
}

type UsersAPI

type UsersAPI interface {
	Close() error
	ModelUserInfo() ([]params.ModelUserInfo, error)
}

UsersAPI defines the methods on the client API that the users command calls.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL