kubernetes: github.com/erimatnor/kubernetes/pkg/registry/minion Index | Files | Directories

package minion

import "github.com/erimatnor/kubernetes/pkg/registry/minion"

Package minion provides Registry interface and implementation for storing Minions.


Package Files

doc.go registry.go rest.go


var StatusStrategy = nodeStatusStrategy{Strategy}
var Strategy = nodeStrategy{api.Scheme, api.SimpleNameGenerator}

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

func MatchNode Uses

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

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

func NodeToSelectableFields Uses

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

NodeToSelectableFields returns a label set that represents the object.

func ResourceLocation Uses

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.

type Registry Uses

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 Uses

func NewRegistry(s rest.StandardStorage) Registry

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

type ResourceGetter Uses

type ResourceGetter interface {
    Get(api.Context, string) (runtime.Object, error)

ResourceGetter is an interface for retrieving resources by ResourceLocation.



Package minion imports 17 packages (graph). Updated 2017-05-11. Refresh now. Tools for package owners.