model

package
v0.0.0-...-0a82276 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: AGPL-3.0 Imports: 41 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigDetails

func ConfigDetails() (map[string]common.PrintConfigSchema, error)

ConfigDetails returns the set of available configuration keys that can be set for a model along with printing information for the key containing a user readable description and the expected type for the key.

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

Types

type CloudAPI

type CloudAPI interface {
	Close() error
	UserCredentials(context.Context, names.UserTag, names.CloudTag) ([]names.CloudCredentialTag, error)
	AddCredential(ctx context.Context, 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(context.Context) (constraints.Value, error)
	SetModelConstraints(context.Context, constraints.Value) error
}

ConstraintsAPI defines methods on the client API that the constraints and set-constraints commands call

type DestroyModelAPI

type DestroyModelAPI interface {
	Close() error
	DestroyModel(ctx context.Context, tag names.ModelTag, destroyStorage, force *bool, maxWait *time.Duration, timeout *time.Duration) error
	ModelStatus(ctx context.Context, 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(context.Context, names.ModelTag) (map[string]interface{}, error)
}

DumpDBAPI specifies the used function calls of the ModelManager.

type DumpModelAPI

type DumpModelAPI interface {
	Close() error
	DumpModel(context.Context, names.ModelTag, bool) (map[string]interface{}, error)
}

DumpModelAPI specifies the used function calls of the ModelManager.

type ExportBundleAPI

type ExportBundleAPI interface {
	Close() error
	ExportBundle(ctx context.Context, includeCharmDefaults bool) (string, error)
}

ExportBundleAPI specifies the used function calls of the BundleFacade.

type GrantCloudAPI

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

GrantCloudAPI defines the API functions used by the grant command.

type GrantControllerAPI

type GrantControllerAPI interface {
	Close() error
	GrantController(ctx context.Context, user, access string) error
}

GrantControllerAPI defines the API functions used by the grant command.

type GrantModelAPI

type GrantModelAPI interface {
	Close() error
	GrantModel(ctx context.Context, user, access string, modelUUIDs ...string) error
}

GrantModelAPI defines the API functions used by the grant command.

type GrantOfferAPI

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

GrantOfferAPI defines the API functions used by the grant command.

type ModelCredentialAPI

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

ModelCredentialAPI defines methods used to replace model credential.

type RetryProvisioningAPI

type RetryProvisioningAPI interface {
	Close() error
	RetryProvisioning(ctx context.Context, all bool, 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(ctx context.Context, 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(ctx context.Context, user, access string) error
}

RevokeControllerAPI defines the API functions used by the revoke command.

type RevokeModelAPI

type RevokeModelAPI interface {
	Close() error
	RevokeModel(ctx context.Context, user, access string, modelUUIDs ...string) error
}

RevokeModelAPI defines the API functions used by the revoke command.

type RevokeOfferAPI

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

RevokeOfferAPI defines the API functions used by the revoke command.

type ShowModelAPI

type ShowModelAPI interface {
	Close() error
	ModelInfo(context.Context, []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