highavailability

package
v0.0.0-...-8ff1004 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2019 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

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

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.

Jump to

Keyboard shortcuts

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