juju: github.com/juju/juju/apiserver/facades/controller/caasmodeloperator Index | Files

package caasmodeloperator

import "github.com/juju/juju/apiserver/facades/controller/caasmodeloperator"


Package Files

operator.go state.go

type API Uses

type API struct {
    // contains filtered or unexported fields

API represents the controller model operator facade

func NewAPI Uses

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

NewAPI is alternative means of constructing a controller model facade

func NewAPIFromContext Uses

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

NewAPIFromContent creates a new controller model facade from the supplied context

func (*API) ModelOperatorProvisioningInfo Uses

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

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

type CAASModelOperatorState Uses

type CAASModelOperatorState interface {
    Addresses() ([]string, error)
    APIHostPortsForAgents() ([]network.SpaceHostPorts, error)
    ControllerConfig() (controller.Config, error)
    FindEntity(tag names.Tag) (state.Entity, error)
    Model() (Model, error)
    ModelUUID() string
    WatchAPIHostPortsForAgents() state.NotifyWatcher

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

type Model Uses

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

Package caasmodeloperator imports 13 packages (graph) and is imported by 2 packages. Updated 2020-09-27. Refresh now. Tools for package owners.