Documentation ¶
Overview ¶
Package node provides Registry interface and implementation for storing Nodes.
Index ¶
- Variables
- func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, error)
- func MatchNode(label labels.Selector, field fields.Selector) pkgstorage.SelectionPredicate
- func NameTriggerFunc(obj runtime.Object) string
- func NodeToSelectableFields(node *api.Node) fields.Set
- func ResourceLocation(getter ResourceGetter, connection client.ConnectionInfoGetter, ...) (*url.URL, http.RoundTripper, error)
- type ResourceGetter
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 ¶
GetAttrs returns labels and fields of a given object for filtering purposes.
func MatchNode ¶
func MatchNode(label labels.Selector, field fields.Selector) pkgstorage.SelectionPredicate
MatchNode returns a generic matcher for a given label and field selector.
func NameTriggerFunc ¶
NameTriggerFunc returns value metadata.namespace of given object.
func NodeToSelectableFields ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.