k8spool

package
v0.0.0-...-f5907fc Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Logger     Logger
	Mechanism  WatchMechanism
	OnUpdate   UpdateFunc
	Namespace  string
	Selector   string
	PeerScheme string
	PeerPort   int
}

type K8sPool

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

func New

func New(conf Config) (*K8sPool, error)

func (*K8sPool) Close

func (e *K8sPool) Close()

type Logger

type Logger interface {
	Debugf(format string, v ...any)
	Errorf(format string, v ...any)
}

type StdLogger

type StdLogger struct {
	Debug bool
	Error bool
}

func (StdLogger) Debugf

func (c StdLogger) Debugf(format string, v ...any)

func (StdLogger) Errorf

func (c StdLogger) Errorf(format string, v ...any)

type UpdateFunc

type UpdateFunc func(peers []string)

type WatchMechanism

type WatchMechanism string
const (
	WatchEndpoints WatchMechanism = "endpoints"
	WatchPods      WatchMechanism = "pods"
)

Jump to

Keyboard shortcuts

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