clusternetwork

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: May 28, 2015 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Strategy = sdnStrategy{kapi.Scheme}

Strategy is the default logic that applies when creating and updating ClusterNetwork objects via the REST API.

Functions

func MatchClusterNetwork

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

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

Types

type Registry

type Registry interface {
	// GetClusterNetwork returns a specific network
	GetClusterNetwork(ctx kapi.Context, name string) (*api.ClusterNetwork, error)
	// CreateClusterNetwork creates a cluster network
	CreateClusterNetwork(ctx kapi.Context, hs *api.ClusterNetwork) (*api.ClusterNetwork, error)
}

Registry is an interface implemented by things that know how to store sdn's ClusterNetwork objects.

func NewRegistry

func NewRegistry(s Storage) Registry

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

type Storage

type Storage interface {
	rest.Getter

	Create(ctx kapi.Context, obj runtime.Object) (runtime.Object, error)
}

Storage is an interface for a standard REST Storage backend TODO: move me somewhere common

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL