model

package
v0.0.0-...-8ff1004 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2019 License: AGPL-3.0 Imports: 40 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.

Copyright 2018 Canonical Ltd. Licensed under the AGPLv3, see LICENCE file for details.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractCert

func ExtractCert() []byte

func NewAddGenerationCommand

func NewAddGenerationCommand() cmd.Command

NewAddGenerationCommand wraps addGenerationCommand with sane model settings.

func NewAdvanceGenerationCommand

func NewAdvanceGenerationCommand() cmd.Command

NewAdvanceGenerationCommand wraps advanceGenerationCommand with sane model settings.

func NewCancelGenerationCommand

func NewCancelGenerationCommand() cmd.Command

NewCancelGenerationCommand wraps cancelGenerationCommand with sane model settings.

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 NewExportBundleCommand

func NewExportBundleCommand() cmd.Command

NewExportBundleCommand returns a fully constructed export bundle command.

func NewGrantCloudCommand

func NewGrantCloudCommand() cmd.Command

NewGrantCloudCommand returns a new grant command.

func NewGrantCommand

func NewGrantCommand() cmd.Command

NewGrantCommand returns a new grant command.

func NewModelCredentialCommand

func NewModelCredentialCommand() 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 NewRevokeCloudCommand

func NewRevokeCloudCommand() cmd.Command

NewRevokeCloudCommand returns a new revoke command.

func NewRevokeCommand

func NewRevokeCommand() cmd.Command

NewRevokeCommand returns a new revoke command.

func NewShowCommand

func NewShowCommand() cmd.Command

func NewSwitchGenerationCommand

func NewSwitchGenerationCommand() cmd.Command

NewSwitchGenerationCommand wraps switchGenerationCommand with sane model settings.

func ParseCert

func ParseCert(arg string) error

Types

type AddGenerationCommandAPI

type AddGenerationCommandAPI interface {
	Close() error
	AddGeneration(string) error
}

AddGenerationCommandAPI defines an API interface to be used during testing.

type AdvanceGenerationCommandAPI

type AdvanceGenerationCommandAPI interface {
	Close() error
	AdvanceGeneration(string, []string) (bool, error)
}

AdvanceGenerationCommandAPI defines an API interface to be used during testing.

type BudgetAPIClient

type BudgetAPIClient interface {
	DeleteBudget(string) (string, error)
}

BudgetAPIClient defines the budget API client interface.

type CancelGenerationCommandAPI

type CancelGenerationCommandAPI interface {
	Close() error
	CancelGeneration(string) error
}

CancelGenerationCommandAPI defines an API interface to be used during testing.

type CloudAPI

type CloudAPI interface {
	Close() error
	UserCredentials(names.UserTag, names.CloudTag) ([]names.CloudCredentialTag, error)
	AddCredential(tag string, credential cloud.Credential) error
}

CloudAPI defines methods used to detemine if cloud credential exists on the controller.

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
	BestAPIVersion() int
	DestroyModel(tag names.ModelTag, destroyStorage *bool) 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, bool) (map[string]interface{}, error)
}

DumpModelAPI specifies the used function calls of the ModelManager.

type ExportBundleAPI

type ExportBundleAPI interface {
	Close() error
	ExportBundle() (string, error)
}

ExportBundleAPI specifies the used function calls of the BundleFacade.

type GrantCloudAPI

type GrantCloudAPI interface {
	Close() error
	GrantCloud(user, access string, clouds ...string) error
}

GrantCloudAPI defines the API functions used by the grant command.

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 GrantOfferAPI

type GrantOfferAPI interface {
	Close() error
	GrantOffer(user, access string, offerURLs ...string) error
}

GrantOfferAPI defines the API functions used by the grant command.

type ModelConfigAPI

type ModelConfigAPI interface {
	Close() error
	SLALevel() (string, error)
}

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

type ModelCredentialAPI

type ModelCredentialAPI interface {
	Close() error
	ChangeModelCredential(model names.ModelTag, credential names.CloudCredentialTag) error
}

ModelCredentialAPI defines methods used to replace model credential.

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 RevokeCloudAPI

type RevokeCloudAPI interface {
	Close() error
	RevokeCloud(user, access string, clouds ...string) error
}

RevokeCloudAPI defines the API functions used by the revoke cloud command.

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 RevokeOfferAPI

type RevokeOfferAPI interface {
	Close() error
	RevokeOffer(user, access string, offerURLs ...string) error
}

RevokeOfferAPI 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.

type StorageAPI

type StorageAPI interface {
	Close() error
	ListStorageDetails() ([]params.StorageDetails, error)
}

StorageAPI defines the storage client API interface.

type SwitchGenerationCommandAPI

type SwitchGenerationCommandAPI interface {
	Close() error
	HasNextGeneration(string) (bool, error)
}

SwitchGenerationCommandAPI defines an API interface to be used during testing.

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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