package minion
import "k8s.io/kubernetes/pkg/registry/minion"
Package minion provides Registry interface and implementation for storing Minions.
Index ¶
- Variables
- func MatchNode(label labels.Selector, field fields.Selector) generic.Matcher
- func NodeToSelectableFields(node *api.Node) fields.Set
- func ResourceLocation(getter ResourceGetter, connection client.ConnectionInfoGetter, ctx api.Context, id string) (*url.URL, http.RoundTripper, error)
- type Registry
- type ResourceGetter
Variables ¶
var StatusStrategy = nodeStatusStrategy{Strategy}
var Strategy = nodeStrategy{api.Scheme, api.SimpleNameGenerator}
Nodes is the default logic that applies when creating and updating Node objects.
Functions ¶
func MatchNode ¶
MatchNode returns a generic matcher for a given label and field selector.
func NodeToSelectableFields ¶
NodeToSelectableFields returns a label set that represents the object.
func ResourceLocation ¶
func ResourceLocation(getter ResourceGetter, connection client.ConnectionInfoGetter, ctx api.Context, id string) (*url.URL, http.RoundTripper, error)
ResourceLocation returns an URL and transport which one can use to send traffic for the specified node.
Types ¶
type Registry ¶
type Registry interface { ListMinions(ctx api.Context, label labels.Selector, field fields.Selector) (*api.NodeList, error) CreateMinion(ctx api.Context, minion *api.Node) error UpdateMinion(ctx api.Context, minion *api.Node) error GetMinion(ctx api.Context, minionID string) (*api.Node, error) DeleteMinion(ctx api.Context, minionID string) error WatchMinions(ctx api.Context, label labels.Selector, field fields.Selector, resourceVersion string) (watch.Interface, error) }
Registry is an interface for things that know how to store node.
func NewRegistry ¶
func NewRegistry(s rest.StandardStorage) Registry
NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic.
type ResourceGetter ¶
ResourceGetter is an interface for retrieving resources by ResourceLocation.
Source Files ¶
doc.go registry.go rest.go
Directories ¶
Path | Synopsis |
---|---|
pkg/registry/minion/etcd |
- Version
- v0.19.3
- Published
- Jun 22, 2015
- Platform
- js/wasm
- Imports
- 19 packages
- Last checked
- 37 seconds ago –
Tools for package owners.