Documentation ¶
Index ¶
- Variables
- func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, bool, error)
- func ListOptionsToSelectors(options *metainternalversion.ListOptions) (labels.Selector, fields.Selector)
- func MatchNamespace(label labels.Selector, field fields.Selector) apistorage.SelectionPredicate
- func NamespaceToSelectableFields(namespace *v1.Namespace) fields.Set
- type REST
- func (s *REST) Create(ctx request.Context, obj runtime.Object, ...) (runtime.Object, error)
- func (s *REST) Delete(ctx request.Context, name string) (runtime.Object, error)
- func (s *REST) Get(ctx request.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
- func (s *REST) List(ctx request.Context, options *metainternalversion.ListOptions) (runtime.Object, error)
- func (s *REST) New() runtime.Object
- func (*REST) NewList() runtime.Object
- func (s *REST) Update(ctx request.Context, name string, objInfo rest.UpdatedObjectInfo, ...) (runtime.Object, bool, error)
- func (s *REST) Watch(ctx request.Context, options *metav1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Strategy = projectStrategy{projectapi.Scheme, names.SimpleNameGenerator}
Strategy is the default logic that applies when creating and updating Project objects via the REST API.
Functions ¶
func ListOptionsToSelectors ¶
func ListOptionsToSelectors(options *metainternalversion.ListOptions) (labels.Selector, fields.Selector)
func MatchNamespace ¶
func MatchNamespace(label labels.Selector, field fields.Selector) apistorage.SelectionPredicate
MatchNamespace returns a generic matcher for a given label and field selector.
Types ¶
type REST ¶
type REST struct {
// contains filtered or unexported fields
}
func NewREST ¶
func NewREST(client corev1client.NamespaceInterface, lister projectauth.Lister, authCache *projectauth.AuthorizationCache, nsLister corev1listers.NamespaceLister) *REST
NewREST returns a RESTStorage object that will work against Project resources
func (*REST) Create ¶
func (s *REST) Create(ctx request.Context, obj runtime.Object, createValidation rest.ValidateObjectFunc, _ bool) (runtime.Object, error)
Create registers the given Project.
func (*REST) Get ¶
func (s *REST) Get(ctx request.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
Get retrieves a Project by name
func (*REST) List ¶
func (s *REST) List(ctx request.Context, options *metainternalversion.ListOptions) (runtime.Object, error)
List retrieves a list of Projects that match label.
Click to show internal directories.
Click to hide internal directories.