model

package
v0.0.0-...-6cf1bc9 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2016 License: AGPL-3.0 Imports: 28 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfigCommand

func NewConfigCommand() cmd.Command

NewConfigCommand wraps configCommand with sane model settings.

func NewDefaultsCommand

func NewDefaultsCommand() cmd.Command

NewDefaultsCommand wraps defaultsCommand with sane model settings.

func NewDestroyCommand

func NewDestroyCommand() cmd.Command

NewDestroyCommand returns a command used to destroy a model.

func NewDumpCommand

func NewDumpCommand() cmd.Command

NewDumpCommand returns a fully constructed dump-model command.

func NewDumpDBCommand

func NewDumpDBCommand() cmd.Command

NewDumpDBCommand returns a fully constructed dump-db 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 NewShowCommand

func NewShowCommand() 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 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

type GrantControllerAPI interface {
	Close() error
	GrantController(user, access string) error
}

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

type RevokeControllerAPI interface {
	Close() error
	RevokeController(user, access string) error
}

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.

Jump to

Keyboard shortcuts

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