pool

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UserAgentName = "cluster-pool"
)

Variables

View Source
var Scheme = runtime.NewScheme()

Functions

This section is empty.

Types

type Interface

type Interface interface {
	cluster.Runnable
	Add(clu cluster.Interface) error
	Remove(name string)
	Cluster(name string) cluster.Interface
	Clusters() map[string]cluster.Interface
}

func New

func New(config *rest.Config) (Interface, error)

type Pool

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

func (*Pool) Add

func (p *Pool) Add(clu cluster.Interface) error

func (*Pool) Cluster

func (p *Pool) Cluster(name string) cluster.Interface

func (*Pool) Clusters

func (p *Pool) Clusters() map[string]cluster.Interface

func (*Pool) Remove

func (p *Pool) Remove(name string)

func (*Pool) Start

func (p *Pool) Start(ctx context.Context) error

func (*Pool) Stop

func (p *Pool) Stop()

Jump to

Keyboard shortcuts

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