netnamespace

package
v1.2.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2016 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 NetNamespace objects via the REST API.

Functions

func Matcher added in v1.0.8

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

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

Types

type Registry

type Registry interface {
	// ListNetNamespaces obtains a list of NetNamespaces
	ListNetNamespaces(ctx kapi.Context) (*api.NetNamespaceList, error)
	// GetNetNamespace returns a specific NetNamespace
	GetNetNamespace(ctx kapi.Context, name string) (*api.NetNamespace, error)
	// CreateNetNamespace creates a NetNamespace
	CreateNetNamespace(ctx kapi.Context, nn *api.NetNamespace) (*api.NetNamespace, error)
	// DeleteNetNamespace deletes a netnamespace
	DeleteNetNamespace(ctx kapi.Context, name string) error
}

Registry is an interface implemented by things that know how to store sdn 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.Lister
	rest.Getter

	Create(ctx kapi.Context, obj runtime.Object) (runtime.Object, error)
	Update(ctx kapi.Context, obj runtime.Object) (runtime.Object, bool, error)
	Delete(ctx kapi.Context, name string, opts *kapi.DeleteOptions) (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