Documentation ¶
Index ¶
- type REST
- func (s *REST) Create(ctx context.Context, obj runtime.Object, ...) (runtime.Object, error)
- func (s *REST) Delete(ctx context.Context, name string, options *metav1.DeleteOptions) (runtime.Object, bool, error)
- func (s *REST) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
- func (s *REST) List(ctx context.Context, options *metainternal.ListOptions) (runtime.Object, error)
- func (s *REST) NamespaceScoped() bool
- func (s *REST) New() runtime.Object
- func (*REST) NewList() runtime.Object
- func (s *REST) Update(ctx context.Context, name string, objInfo rest.UpdatedObjectInfo, ...) (runtime.Object, bool, error)
- func (s *REST) Watch(ctx context.Context, options *metainternal.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type REST ¶
type REST struct { rest.TableConvertor // contains filtered or unexported fields }
func NewREST ¶
func NewREST(client corev1client.NamespaceInterface, lister projectauth.Lister, authCache *projectauth.AuthorizationCache, projectCache *projectcache.ProjectCache) *REST
NewREST returns a RESTStorage object that will work against Project resources
func (*REST) Create ¶
func (s *REST) Create(ctx context.Context, obj runtime.Object, creationValidation rest.ValidateObjectFunc, options *metav1.CreateOptions) (runtime.Object, error)
Create registers the given Project.
func (*REST) Delete ¶
func (s *REST) Delete(ctx context.Context, name string, options *metav1.DeleteOptions) (runtime.Object, bool, error)
Delete deletes a Project specified by its name
func (*REST) Get ¶
func (s *REST) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
Get retrieves a Project by name
func (*REST) List ¶
func (s *REST) List(ctx context.Context, options *metainternal.ListOptions) (runtime.Object, error)
func (*REST) NamespaceScoped ¶
func (*REST) Update ¶
func (s *REST) Update(ctx context.Context, name string, objInfo rest.UpdatedObjectInfo, creationValidation rest.ValidateObjectFunc, updateValidation rest.ValidateObjectUpdateFunc, forceAllowCreate bool, options *metav1.UpdateOptions) (runtime.Object, bool, error)
func (*REST) Watch ¶
func (s *REST) Watch(ctx context.Context, options *metainternal.ListOptions) (watch.Interface, error)
Click to show internal directories.
Click to hide internal directories.