package storage

import "k8s.io/kubernetes/pkg/registry/certificates/certificates/storage"

Index

Functions

func NewREST

func NewREST(optsGetter generic.RESTOptionsGetter) (*REST, *StatusREST, *ApprovalREST)

NewREST returns a registry which will store CertificateSigningRequest in the given helper

Types

type ApprovalREST

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

ApprovalREST implements the REST endpoint for changing the approval state of a CSR.

func (*ApprovalREST) New

func (r *ApprovalREST) New() runtime.Object

func (*ApprovalREST) Update

func (r *ApprovalREST) Update(ctx genericapirequest.Context, name string, objInfo rest.UpdatedObjectInfo, createValidation rest.ValidateObjectFunc, updateValidation rest.ValidateObjectUpdateFunc) (runtime.Object, bool, error)

Update alters the approval subset of an object.

type REST

type REST struct {
	*genericregistry.Store
}

REST implements a RESTStorage for CertificateSigningRequest

func (*REST) ShortNames

func (r *REST) ShortNames() []string

ShortNames implements the ShortNamesProvider interface. Returns a list of short names for a resource.

type StatusREST

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

StatusREST implements the REST endpoint for changing the status of a CSR.

func (*StatusREST) New

func (r *StatusREST) New() runtime.Object

func (*StatusREST) Update

func (r *StatusREST) Update(ctx genericapirequest.Context, name string, objInfo rest.UpdatedObjectInfo, createValidation rest.ValidateObjectFunc, updateValidation rest.ValidateObjectUpdateFunc) (runtime.Object, bool, error)

Update alters the status subset of an object.

Source Files

storage.go

Version
v1.10.2-beta.0
Published
Apr 12, 2018
Platform
js/wasm
Imports
10 packages
Last checked
3 minutes ago

Tools for package owners.