Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend interface { // ControllerTag tells the Facade which controller it should consider // requests for. ControllerTag() names.ControllerTag // ModelTag tells the Facade what models it should consider requests for. ModelTag() names.ModelTag }
Backend supplies capabilities required by a Facade.
type Facade ¶
type Facade struct {
// contains filtered or unexported fields
}
Facade allows controller machines to request exclusive rights to administer some specific model or controller for a limited time.
func NewExternalFacade ¶
NewExternalFacade is for API registration.
func NewFacade ¶
NewFacade returns a singular-controller API facade, backed by the supplied state, so long as the authorizer represents a controller machine.
func (*Facade) Claim ¶
func (facade *Facade) Claim(args params.SingularClaims) (result params.ErrorResults)
Claim makes the supplied singular-controller lease requests. (In practice, any requests not for the connection's model or controller, or not on behalf of the connected ModelManager machine, will be rejected.)
Click to show internal directories.
Click to hide internal directories.