minion

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2015 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package minion provides Registry interface and implementation for storing Minions.

Index

Constants

This section is empty.

Variables

View Source
var StatusStrategy = nodeStatusStrategy{Strategy}
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.0

func MatchNode(label labels.Selector, field fields.Selector) generic.Matcher

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

func NodeToSelectableFields added in v0.15.0

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

NodeToSelectableFields returns a label set that represents the object.

func ResourceLocation added in v0.14.0

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 added in v0.14.0

func NewRegistry(s rest.StandardStorage) Registry

NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic.

type ResourceGetter added in v0.14.0

type ResourceGetter interface {
	Get(api.Context, string) (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