resource

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPodSpec added in v0.8.0

func GetPodSpec(ctx context.Context, kube client.Kube, resourceType, resourceName string) (v1.PodSpec, error)

func IsContainedSelected added in v0.8.0

func IsContainedSelected(container v1.Container, filter *regexp.Regexp) bool

func IsService added in v0.0.10

func IsService(name string) bool

func ListPods added in v0.0.7

func ListPods(ctx context.Context, kube client.Kube, resourceType, resourceName string) ([]v1.Pod, error)

func WatchPods added in v0.0.7

func WatchPods(ctx context.Context, kube client.Kube, resourceType, resourceName string, labelSelector map[string]string, dryRun bool) (watch.Interface, error)

Types

type Lister

func ListerFor

func ListerFor(resourceType string) (Lister, error)

type PodFilter added in v0.0.16

type PodFilter func(context.Context, client.Kube, v1.Pod) bool

func GetPodsSelector added in v0.8.0

func GetPodsSelector(ctx context.Context, kube client.Kube, resourceType, resourceName string) (namespace string, options metav1.ListOptions, postListFilter PodFilter, err error)

type WrappedWatcher added in v0.0.16

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

func (WrappedWatcher) ResultChan added in v0.0.16

func (dw WrappedWatcher) ResultChan() <-chan watch.Event

func (WrappedWatcher) Stop added in v0.0.16

func (dw WrappedWatcher) Stop()

Jump to

Keyboard shortcuts

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