Documentation ¶
Index ¶
- func NewStorage(c kclient.WithWatch) rest.Storage
- type Strategy
- func (s *Strategy) Create(ctx context.Context, object types.Object) (types.Object, error)
- func (s *Strategy) Delete(ctx context.Context, obj types.Object) (types.Object, error)
- func (s *Strategy) Get(ctx context.Context, namespace, name string) (types.Object, error)
- func (s *Strategy) List(ctx context.Context, namespace string, opts storage.ListOptions) (types.ObjectList, error)
- func (s *Strategy) New() types.Object
- func (s *Strategy) NewList() types.ObjectList
- func (s *Strategy) Update(ctx context.Context, object types.Object) (types.Object, error)
- type Translator
- func (t *Translator) FromPublic(_ context.Context, obj runtime.Object) (types.Object, error)
- func (t *Translator) FromPublicName(ctx context.Context, namespace, name string) (string, string, error)
- func (t *Translator) ListOpts(ctx context.Context, namespace string, opts storage.ListOptions) (string, storage.ListOptions, error)
- func (t *Translator) NewPublic() types.Object
- func (t *Translator) NewPublicList() types.ObjectList
- func (t *Translator) ToPublic(_ context.Context, obj ...runtime.Object) (result []types.Object, _ error)
- type Validator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Strategy ¶
type Strategy struct {
// contains filtered or unexported fields
}
func (*Strategy) Get ¶
Get is based on list because list will do the RBAC checks to ensure the user can access that project. This also ensure that you can only delete a project that you have namespace access to
func (*Strategy) List ¶
func (s *Strategy) List(ctx context.Context, namespace string, opts storage.ListOptions) (types.ObjectList, error)
func (*Strategy) NewList ¶
func (s *Strategy) NewList() types.ObjectList
type Translator ¶
type Translator struct {
// contains filtered or unexported fields
}
func (*Translator) FromPublic ¶
func (*Translator) FromPublicName ¶
func (*Translator) ListOpts ¶
func (t *Translator) ListOpts(ctx context.Context, namespace string, opts storage.ListOptions) (string, storage.ListOptions, error)
func (*Translator) NewPublic ¶
func (t *Translator) NewPublic() types.Object
func (*Translator) NewPublicList ¶
func (t *Translator) NewPublicList() types.ObjectList
Click to show internal directories.
Click to hide internal directories.