Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { base.ClientFacade // contains filtered or unexported fields }
Client provides access to the high availability service, used to manage controllers.
func NewClient ¶
func NewClient(caller base.APICallCloser) *Client
NewClient returns a new HighAvailability client.
func (*Client) EnableHA ¶
func (c *Client) EnableHA( numControllers int, cons constraints.Value, placement []string, ) (params.ControllersChanges, error)
EnableHA ensures the availability of Juju controllers.
func (*Client) MongoUpgradeMode ¶
MongoUpgradeMode will make all Slave members of the HA to shut down their mongo server.
func (*Client) ResumeHAReplicationAfterUpgrade ¶
func (c *Client) ResumeHAReplicationAfterUpgrade(members []replicaset.Member) error
ResumeHAReplicationAfterUpgrade makes all members part of HA again.
Click to show internal directories.
Click to hide internal directories.