Documentation ¶
Overview ¶
Package minion provides Registry interface and implementation for storing Minions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Strategy = nodeStrategy{api.Scheme, api.SimpleNameGenerator}
Nodes is the default logic that applies when creating and updating Node objects.
Functions ¶
func MatchNode ¶ added in v0.14.2
MatchNode returns a generic matcher for a given label and field selector.
func ResourceLocation ¶ added in v0.14.2
func ResourceLocation(getter ResourceGetter, connection client.ConnectionInfoGetter, ctx api.Context, id string) (*url.URL, http.RoundTripper, error)
ResourceLocation returns a URL to which one can send traffic for the specified node.
Types ¶
type Registry ¶
type Registry interface { ListMinions(ctx api.Context) (*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 ¶ added in v0.14.2
func NewRegistry(s rest.StandardStorage) Registry
NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic.
Click to show internal directories.
Click to hide internal directories.