project

package
v0.0.0-...-4d89874 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2022 License: Apache-2.0 Imports: 24 Imported by: 1

Documentation

Index

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 GetAttrs

func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, bool, error)

GetAttrs returns labels and fields of a given object for filtering purposes.

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.

func NamespaceToSelectableFields

func NamespaceToSelectableFields(namespace *v1.Namespace) fields.Set

NamespaceToSelectableFields returns a field set that represents the object

Types

type REST

type REST struct {
	// contains filtered or unexported fields
}

func NewREST

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) Delete

func (s *REST) Delete(ctx request.Context, name string) (runtime.Object, error)

Delete deletes a Project specified by its name

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

List retrieves a list of Projects that match label.

func (*REST) New

func (s *REST) New() runtime.Object

New returns a new Project

func (*REST) NewList

func (*REST) NewList() runtime.Object

NewList returns a new ProjectList

func (*REST) Update

func (s *REST) Update(ctx request.Context, name string, objInfo rest.UpdatedObjectInfo, createValidation rest.ValidateObjectFunc, updateValidation rest.ValidateObjectUpdateFunc) (runtime.Object, bool, error)

func (*REST) Watch

func (s *REST) Watch(ctx request.Context, options *metav1.ListOptions) (watch.Interface, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL