Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var StatusStrategy = projectStatusStrategy{Strategy}
StatusStrategy defines the storage strategy for the status subresource of Projects.
View Source
var Strategy = projectStrategy{api.Scheme, names.SimpleNameGenerator}
Strategy defines the storage strategy for Projects.
Functions ¶
This section is empty.
Types ¶
type Registry ¶
type Registry interface { ListProjects(ctx context.Context, options *metainternalversion.ListOptions) (*garden.ProjectList, error) WatchProjects(ctx context.Context, options *metainternalversion.ListOptions) (watch.Interface, error) GetProject(ctx context.Context, name string, options *metav1.GetOptions) (*garden.Project, error) CreateProject(ctx context.Context, project *garden.Project, createValidation rest.ValidateObjectFunc) (*garden.Project, error) UpdateProject(ctx context.Context, project *garden.Project, createValidation rest.ValidateObjectFunc, updateValidation rest.ValidateObjectUpdateFunc) (*garden.Project, error) DeleteProject(ctx context.Context, name string) error }
Registry is an interface for things that know how to store Projects.
func NewRegistry ¶
func NewRegistry(s rest.StandardStorage) Registry
NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic.
Click to show internal directories.
Click to hide internal directories.