highavailability

package
v0.0.0-...-2608902 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2016 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnableHASingle

func EnableHASingle(st *state.State, spec params.ControllersSpec) (params.ControllersChanges, error)

EnableHASingle applies a single ControllersServersSpec 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 {
	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 *common.Resources, authorizer common.Authorizer) (*HighAvailabilityAPI, error)

NewHighAvailabilityAPI creates a new server-side highavailability API end point.

func (*HighAvailabilityAPI) EnableHA

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.

Jump to

Keyboard shortcuts

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