caasmodeloperator

package
v0.0.0-...-9ec3720 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2021 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	*common.APIAddresser
	*common.PasswordChanger
	// contains filtered or unexported fields
}

API represents the controller model operator facade.

func NewAPI

func NewAPI(
	authorizer facade.Authorizer,
	resources facade.Resources,
	ctrlSt CAASControllerState,
	st CAASModelOperatorState) (*API, error)

NewAPI is alternative means of constructing a controller model facade.

func NewAPIFromContext

func NewAPIFromContext(ctx facade.Context) (*API, error)

NewAPIFromContent creates a new controller model facade from the supplied context.

func (*API) ModelOperatorProvisioningInfo

func (a *API) ModelOperatorProvisioningInfo() (params.ModelOperatorInfo, error)

ModelOperatorProvisioningInfo returns the information needed for provisioning a new model operator into a caas cluster.

func (*API) ModelUUID

func (a *API) ModelUUID() params.StringResult

ModelUUID returns the model UUID that this facade is used to operate. It is implemented here directly as a result of removing it from embedded APIAddresser *without* bumping the facade version. It should be blanked when this facade version is next incremented.

type CAASControllerState

type CAASControllerState interface {
	common.APIAddressAccessor
	ControllerConfig() (controller.Config, error)
}

CAASModelOperatorState provides the subset of controller state required by the model operator provisioner.

type CAASModelOperatorState

type CAASModelOperatorState interface {
	FindEntity(tag names.Tag) (state.Entity, error)
	Model() (Model, error)
	ModelUUID() string
}

CAASModelOperatorState provides the subset of model state required by the model operator provisioner.

type Model

type Model interface {
	ModelConfig() (*config.Config, error)
}

Jump to

Keyboard shortcuts

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