policy

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterByAnnotation

func FilterByAnnotation[T KubernetesObject](list []T, annotationName string, annotationValue string) []T

func FindByNamespaceAnnotation

func FindByNamespaceAnnotation[T KubernetesObject](list []T, namespace string, annotationName string, annotationValue string) T

func FindByNamespaceLabel

func FindByNamespaceLabel[T KubernetesObject](list []T, namespace string, labelName string, labelValue string) T

func FindByNamespaceName

func FindByNamespaceName[T KubernetesObject](list []T, namespace string, name string) T

Types

type KubernetesObject

type KubernetesObject interface {
	GetNamespace() string
	GetName() string
	GetAnnotation() map[string]string
	GetLabel() map[string]string
}

Jump to

Keyboard shortcuts

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