highavailability

package
v0.0.0-...-1592773 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: AGPL-3.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WithTracer = base.WithTracer

WithTracer returns an Option that configures the Client to use the supplied tracer.

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, options ...Option) *Client

NewClient returns a new HighAvailability client.

func (*Client) ControllerDetails

func (c *Client) ControllerDetails(ctx context.Context) (map[string]ControllerDetails, error)

func (*Client) EnableHA

func (c *Client) EnableHA(
	ctx context.Context,
	numControllers int, cons constraints.Value, placement []string,
) (params.ControllersChanges, error)

EnableHA ensures the availability of Juju controllers.

type ControllerDetails

type ControllerDetails struct {
	ControllerID string
	APIEndpoints []string
}

ControllerDetails holds details of a controller.

type Option

type Option = base.Option

Option is a function that can be used to configure a Client.

Jump to

Keyboard shortcuts

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