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 ¶
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 ¶
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
Click to show internal directories.
Click to hide internal directories.