client

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNotFound

func IsNotFound(err error) bool

Types

type Bootstrap

type Bootstrap struct {
	*Client
}

func (*Bootstrap) Disable

func (b *Bootstrap) Disable(ctx context.Context) error

func (*Bootstrap) Enable

func (b *Bootstrap) Enable(ctx context.Context, bootstrap *galera.Bootstrap) error

type Client

type Client struct {
	Bootstrap   *Bootstrap
	GaleraState *GaleraState
	Recovery    *Recovery
	// contains filtered or unexported fields
}

func NewClient

func NewClient(baseUrl string, opts ...Option) (*Client, error)

type GaleraState

type GaleraState struct {
	*Client
}

func (*GaleraState) Get

type Option

type Option func(*Client)

func WithHTTPClient

func WithHTTPClient(httpClient *http.Client) Option

func WithKubernetesAuth added in v0.0.2

func WithKubernetesAuth(auth bool, serviceAccountPath string) Option

func WithTimeout

func WithTimeout(timeout time.Duration) Option

type Recovery

type Recovery struct {
	*Client
}

func (*Recovery) Disable

func (r *Recovery) Disable(ctx context.Context) error

func (*Recovery) Enable

func (r *Recovery) Enable(ctx context.Context) error

func (*Recovery) Start

func (r *Recovery) Start(ctx context.Context) (*galera.Bootstrap, error)

Jump to

Keyboard shortcuts

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