kubeinterfaces

package
v1.14.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetterLister

type GetterLister[T any] interface {
	Get(namespace, name string) (T, error)
	List(namespace string, selector labels.Selector) ([]T, error)
}

type GlobalGetList

type GlobalGetList[T any] struct {
	GetFunc  func(name string) (T, error)
	ListFunc func(selector labels.Selector) ([]T, error)
}

func (GlobalGetList[T]) Get

func (gl GlobalGetList[T]) Get(defaultNamespace, name string) (T, error)

func (GlobalGetList[T]) List

func (gl GlobalGetList[T]) List(defaultNamespace string, selector labels.Selector) ([]T, error)

type NamespacedGetList

type NamespacedGetList[T any] struct {
	GetFunc  func(namespace, name string) (T, error)
	ListFunc func(namespace string, selector labels.Selector) ([]T, error)
}

func (NamespacedGetList[T]) Get

func (gl NamespacedGetList[T]) Get(defaultNamespace, name string) (T, error)

func (NamespacedGetList[T]) List

func (gl NamespacedGetList[T]) List(defaultNamespace string, selector labels.Selector) ([]T, error)

type ObjectInterface

type ObjectInterface interface {
	runtime.Object
	metav1.Object
}

Jump to

Keyboard shortcuts

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