Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureAvailabilitySingle ¶
func EnsureAvailabilitySingle(st *state.State, spec params.StateServersSpec) (params.StateServersChanges, error)
EnsureAvailabilitySingle applies a single StateServersSpec specification to the current environment. Exported so it can be called by the legacy client API in the client package.
Types ¶
type HighAvailability ¶
type HighAvailability interface {
EnsureAvailability(args params.StateServersSpecs) (params.StateServersChangeResults, error)
}
HighAvailability defines the methods on the highavailability API end point.
type HighAvailabilityAPI ¶
type HighAvailabilityAPI struct {
// contains filtered or unexported fields
}
HighAvailabilityAPI implements the HighAvailability interface and is the concrete implementation of the api end point.
func NewHighAvailabilityAPI ¶
func NewHighAvailabilityAPI(st *state.State, resources *common.Resources, authorizer common.Authorizer) (*HighAvailabilityAPI, error)
NewHighAvailabilityAPI creates a new server-side highavailability API end point.
func (*HighAvailabilityAPI) EnsureAvailability ¶
func (api *HighAvailabilityAPI) EnsureAvailability(args params.StateServersSpecs) (params.StateServersChangeResults, error)
Click to show internal directories.
Click to hide internal directories.