model

package
v0.0.0-...-0000000 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2016 License: AGPL-3.0 Imports: 17 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 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 NewSetCommand

func NewSetCommand() cmd.Command

func NewShareCommand

func NewShareCommand() cmd.Command

func NewUnsetCommand

func NewUnsetCommand() cmd.Command

func NewUnshareCommand

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

type ShareEnvironmentAPI

type ShareEnvironmentAPI interface {
	Close() error
	ShareModel(...names.UserTag) error
}

ShareEnvironmentAPI defines the API functions used by the environment share command.

type UnsetEnvironmentAPI

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

type UnshareEnvironmentAPI

type UnshareEnvironmentAPI interface {
	Close() error
	UnshareModel(...names.UserTag) error
}

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

Jump to

Keyboard shortcuts

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