package node

import "k8s.io/kubernetes/pkg/registry/core/node"

Package node provides Registry interface and implementation for storing Nodes.

Index

Variables

var StatusStrategy = nodeStatusStrategy{Strategy}
var Strategy = nodeStrategy{legacyscheme.Scheme, names.SimpleNameGenerator}

Nodes is the default logic that applies when creating and updating Node objects.

Functions

func GetAttrs

func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, error)

GetAttrs returns labels and fields of a given object for filtering purposes.

func MatchNode

MatchNode returns a generic matcher for a given label and field selector.

func NameTriggerFunc

func NameTriggerFunc(obj runtime.Object) string

NameTriggerFunc returns value metadata.namespace of given object.

func NodeToSelectableFields

func NodeToSelectableFields(node *api.Node) fields.Set

NodeToSelectableFields returns a field set that represents the object.

func ResourceLocation

func ResourceLocation(getter ResourceGetter, connection client.ConnectionInfoGetter, proxyTransport http.RoundTripper, ctx context.Context, id string) (*url.URL, http.RoundTripper, error)

ResourceLocation returns a URL and transport which one can use to send traffic for the specified node.

Types

type ResourceGetter

type ResourceGetter interface {
	Get(context.Context, string, *metav1.GetOptions) (runtime.Object, error)
}

ResourceGetter is an interface for retrieving resources by ResourceLocation.

Source Files

doc.go strategy.go

Directories

PathSynopsis
pkg/registry/core/node/rest
pkg/registry/core/node/storage
Version
v1.25.10
Published
May 17, 2023
Platform
js/wasm
Imports
24 packages
Last checked
12 seconds ago

Tools for package owners.