k8s

package
v0.0.0-...-9ad39c4 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Registry = &registry{}

Functions

func GetClient

func GetClient() (*kubernetes.Clientset, error)

func GetConfig

func GetConfig() (*rest.Config, error)

GetConfig returns the configuration to connect to the Kubernetes API server.

Types

type EventWatcher

type EventWatcher struct {
	Events chan *v1.Event
	// contains filtered or unexported fields
}

func WatchEvents

func WatchEvents(_ context.Context, ns string) (*EventWatcher, error)

func (EventWatcher) OnAdd

func (w EventWatcher) OnAdd(obj interface{})

func (EventWatcher) OnDelete

func (w EventWatcher) OnDelete(_ interface{})

func (EventWatcher) OnUpdate

func (w EventWatcher) OnUpdate(_, newObj interface{})

func (EventWatcher) Start

func (w EventWatcher) Start(ctx context.Context)

type TemplateContext

type TemplateContext struct {
	Service *corev1.Service
	Pod     *corev1.Pod
	Event   *corev1.Event
}

Jump to

Keyboard shortcuts

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