node

package
v1.14.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2018 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

Package node provides Registry interface and implementation for storing Nodes.

Index

Constants

This section is empty.

Variables

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

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

Functions

func GetAttrs added in v1.6.0

func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, bool, 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 NodeNameTriggerFunc

func NodeNameTriggerFunc(obj runtime.Object) []pkgstorage.MatchValue

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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