{"modulePath":"github.com/dockerstack/kubernetes","version":"v0.20.1-0.20150627061651-1c0b765df6da","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package controller\n\nPackage controller provides Registry interface and it's RESTStorage implementation for storing ReplicationController api objects.\n\n## Variables\n\n```go\nvar Strategy = rcStrategy{api.Scheme, api.SimpleNameGenerator}\n```\nStrategy is the default logic that applies when creating and updating Replication Controller objects.\n\n## Functions\n\n```go\nfunc ControllerToSelectableFields(controller *api.ReplicationController) fields.Set\n```\nControllerToSelectableFields returns a label set that represents the object.\n\n```go\nfunc MatchController(label labels.Selector, field fields.Selector) generic.Matcher\n```\nMatchController is the filter used by the generic etcd backend to route watch events from etcd to clients of the apiserver only interested in specific labels/fields.\n\n## Types\n\n```go\ntype Registry interface {\n\tListControllers(ctx api.Context, label labels.Selector, field fields.Selector) (*api.ReplicationControllerList, error)\n\tWatchControllers(ctx api.Context, label labels.Selector, field fields.Selector, resourceVersion string) (watch.Interface, error)\n\tGetController(ctx api.Context, controllerID string) (*api.ReplicationController, error)\n\tCreateController(ctx api.Context, controller *api.ReplicationController) (*api.ReplicationController, error)\n\tUpdateController(ctx api.Context, controller *api.ReplicationController) (*api.ReplicationController, error)\n\tDeleteController(ctx api.Context, controllerID string) error\n}\n```\nRegistry is an interface for things that know how to store ReplicationControllers.\n\n```go\nfunc NewRegistry(s rest.StandardStorage) Registry\n```\nNewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic.\n\n","path":"github.com/dockerstack/kubernetes/pkg/registry/controller","name":"controller","synopsis":"Package controller provides Registry interface and it's RESTStorage implementation for storing ReplicationController api objects.","isRedistributable":true}
