Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var StatusStrategy = quotaStatusStrategy{Strategy}
StatusStrategy defines the storage strategy for the status subresource of Quotas.
View Source
var Strategy = quotaStrategy{api.Scheme, names.SimpleNameGenerator}
Strategy defines the storage strategy for Quotas.
Functions ¶
This section is empty.
Types ¶
type Registry ¶
type Registry interface { ListQuotas(ctx genericapirequest.Context, options *metainternalversion.ListOptions) (*garden.QuotaList, error) WatchQuotas(ctx genericapirequest.Context, options *metainternalversion.ListOptions) (watch.Interface, error) GetQuota(ctx genericapirequest.Context, name string, options *metav1.GetOptions) (*garden.Quota, error) CreateQuota(ctx genericapirequest.Context, quota *garden.Quota, createValidation rest.ValidateObjectFunc) (*garden.Quota, error) UpdateQuota(ctx genericapirequest.Context, quota *garden.Quota, createValidation rest.ValidateObjectFunc, updateValidation rest.ValidateObjectUpdateFunc) (*garden.Quota, error) DeleteQuota(ctx genericapirequest.Context, name string) error }
Registry is an interface for things that know how to store Quotas.
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.