Documentation ¶
Index ¶
- type HighAvailability
- type HighAvailabilityAPI
- func (api *HighAvailabilityAPI) EnableHA(args params.ControllersSpecs) (params.ControllersChangeResults, error)
- func (api *HighAvailabilityAPI) ResumeHAReplicationAfterUpgrade(args params.ResumeReplicationParams) error
- func (api *HighAvailabilityAPI) StopHAReplicationForUpgrade(args params.UpgradeMongoParams) (params.MongoUpgradeResults, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HighAvailability ¶
type HighAvailability interface {
EnableHA(args params.ControllersSpecs) (params.ControllersChangeResults, 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 facade.Resources, authorizer facade.Authorizer) (*HighAvailabilityAPI, error)
NewHighAvailabilityAPI creates a new server-side highavailability API end point.
func (*HighAvailabilityAPI) EnableHA ¶
func (api *HighAvailabilityAPI) EnableHA(args params.ControllersSpecs) (params.ControllersChangeResults, error)
EnableHA adds controller machines as necessary to ensure the controller has the number of machines specified.
func (*HighAvailabilityAPI) ResumeHAReplicationAfterUpgrade ¶
func (api *HighAvailabilityAPI) ResumeHAReplicationAfterUpgrade(args params.ResumeReplicationParams) error
ResumeHAReplicationAfterUpgrade will add the upgraded members of HA cluster to the upgraded master.
func (*HighAvailabilityAPI) StopHAReplicationForUpgrade ¶
func (api *HighAvailabilityAPI) StopHAReplicationForUpgrade(args params.UpgradeMongoParams) ( params.MongoUpgradeResults, error, )
StopHAReplicationForUpgrade will prompt the HA cluster to enter upgrade mongo mode.
Click to show internal directories.
Click to hide internal directories.