thingkube

package
v1.13.4 Latest Latest
Warning

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

Go to latest
Published: May 11, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type K8sEvent

type K8sEvent struct {
	WatchID   string
	Kind      string
	Resources []k8s.Resource
	Errors    []watt.Error
}

type KubeBootstrap

type KubeBootstrap interface {
	SaveError(message string)
	Work(*supervisor.Process) error
}

func NewKubeBootstrap

func NewKubeBootstrap(
	namespace string,
	kinds []string,
	fieldSelector string,
	labelSelector string,
	notify []chan<- K8sEvent,
	kubeAPIWatcher *k8s.Watcher,
) KubeBootstrap

type KubeWatchMan

type KubeWatchMan interface {
	Work(*supervisor.Process) error
	NumWatched() int
	WithWatched(func(map[string]*supervisor.Worker))
}

func NewKubeWatchMan

func NewKubeWatchMan(
	client *k8s.Client,
	eventsCh chan<- K8sEvent,
	watchesCh <-chan []watchapi.KubernetesWatchSpec,
) KubeWatchMan

type KubernetesWatchMaker

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

func (*KubernetesWatchMaker) MakeKubernetesWatch

func (m *KubernetesWatchMaker) MakeKubernetesWatch(spec watchapi.KubernetesWatchSpec) (*supervisor.Worker, error)

Jump to

Keyboard shortcuts

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