watcher

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WatchClusters

func WatchClusters(ctx context.Context, log logrus.FieldLogger, configs []KubernetesConfig, bgp BGPServer)

Types

type BGPServer

type BGPServer interface {
	EnsurePeer(addr *bnet.IP, name string) error
	RemovePeer(addr *bnet.IP) error
}

type KubernetesConfig

type KubernetesConfig struct {
	Name      string `yaml:"name"`
	Host      string `yaml:"host"`
	Token     string `yaml:"token"`
	TokenFile string `yaml:"token_file"`

	InsecureDisableCertificateVerify bool `yaml:"insecure_disable_certificate_verify"`
}

func (*KubernetesConfig) ForClientSet

func (k *KubernetesConfig) ForClientSet() *rest.Config

Jump to

Keyboard shortcuts

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