utils

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FieldName      = "name"
	FieldNamespace = "namespace"
)

Variables

This section is empty.

Functions

func GetGroupVersionResource

func GetGroupVersionResource(discoveryClient discovery.DiscoveryInterface, apiVersion string, kind string) (*schema.GroupVersionResource, error)

func ObjectMetaFilter

func ObjectMetaFilter(item metav1.ObjectMeta, filter Filter) bool

Types

type Field

type Field string

type Filter

type Filter struct {
	Field Field
	Value Value
}

type Query

type Query struct {
	Filters map[Field]Value

	LabelSelector map[string]string
}

Query represents api search terms

func NewQuery

func NewQuery() *Query

type Value

type Value string

Jump to

Keyboard shortcuts

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