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 HostSubnet objects via the REST API.
Functions ¶
Types ¶
type Registry ¶
type Registry interface { // ListSubnets obtains a list of subnets ListSubnets(ctx kapi.Context) (*api.HostSubnetList, error) // GetSubnet returns a specific subnet GetSubnet(ctx kapi.Context, name string) (*api.HostSubnet, error) // CreateSubnet creates a HostSubnet CreateSubnet(ctx kapi.Context, hs *api.HostSubnet) (*api.HostSubnet, error) // DeleteSubnet deletes a hostsubnet DeleteSubnet(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.