hamaster

package
v3.14.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsNotFound

func IsNotFound(err error) bool

IsNotFound asserts notFoundError.

Types

type Config

type Config struct {
	K8sClient k8sclient.Interface

	Provider string
}

type HAMaster

type HAMaster struct {
	// contains filtered or unexported fields
}

func New

func New(config Config) (*HAMaster, error)

func (*HAMaster) Enabled

func (h *HAMaster) Enabled(ctx context.Context, cluster string) (bool, error)

type Interface

type Interface interface {
	Enabled(ctx context.Context, cluster string) (bool, error)
}

Jump to

Keyboard shortcuts

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