caasoperatorprovisioner

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: 19 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.PasswordChanger
	*common.LifeGetter
	*common.APIAddresser
	// contains filtered or unexported fields
}

func NewCAASOperatorProvisionerAPI

func NewCAASOperatorProvisionerAPI(
	resources facade.Resources,
	authorizer facade.Authorizer,
	st CAASOperatorProvisionerState,
	storageProviderRegistry storage.ProviderRegistry,
	storagePoolManager poolmanager.PoolManager,
) (*API, error)

NewCAASOperatorProvisionerAPI returns a new CAAS operator provisioner API facade.

func NewStateCAASOperatorProvisionerAPI

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

NewStateCAASOperatorProvisionerAPI provides the signature required for facade registration.

func (*API) OperatorProvisioningInfo

func (a *API) OperatorProvisioningInfo() (params.OperatorProvisioningInfo, error)

OperatorProvisioningInfo returns the info needed to provision an operator.

func (*API) WatchApplications

func (a *API) WatchApplications() (params.StringsWatchResult, error)

WatchApplications starts a StringsWatcher to watch CAAS applications deployed to this model.

type CAASOperatorProvisionerState

type CAASOperatorProvisionerState interface {
	ControllerConfig() (controller.Config, error)
	WatchApplications() state.StringsWatcher
	FindEntity(tag names.Tag) (state.Entity, error)
	Addresses() ([]string, error)
	ModelUUID() string
	Model() (Model, error)
	APIHostPortsForAgents() ([][]network.HostPort, error)
	WatchAPIHostPortsForAgents() state.NotifyWatcher
}

CAASOperatorProvisionerState provides the subset of global state required by the CAAS operator provisioner facade.

type Model

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

Jump to

Keyboard shortcuts

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