example

package
v0.0.0-...-843aa42 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAttrs

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

GetAttrs returns labels.Set, fields.Set, and error in case the given runtime.Object is not a Example

func MatchExample

func MatchExample(label labels.Selector, field fields.Selector) storage.SelectionPredicate

MatchExample is the filter used by the generic etcd backend to watch events from etcd to clients of the apiserver only interested in specific labels/fields.

func NewStrategy

func NewStrategy(typer runtime.ObjectTyper) exampleStrategy

NewStrategy creates and returns a exampleStrategy instance

func SelectableFields

func SelectableFields(obj *example.Example) fields.Set

SelectableFields returns a field set that represents the object.

Types

type QueryREST

type QueryREST struct {
	Store *genericregistry.Store
}

func (*QueryREST) Create

func (*QueryREST) Destroy

func (r *QueryREST) Destroy()

func (*QueryREST) New

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

func (*QueryREST) ProducesMIMETypes

func (r *QueryREST) ProducesMIMETypes(verb string) []string

func (*QueryREST) ProducesObject

func (r *QueryREST) ProducesObject(verb string) interface{}

type REST

type REST struct {
	*Wrapper
}

type ResourceCallREST

type ResourceCallREST struct {
	Store *genericregistry.Store
}

func (*ResourceCallREST) Connect

func (r *ResourceCallREST) Connect(ctx context.Context, id string, opts runtime.Object, responder rest.Responder) (http.Handler, error)

func (*ResourceCallREST) ConnectMethods

func (r *ResourceCallREST) ConnectMethods() []string

func (*ResourceCallREST) Destroy

func (r *ResourceCallREST) Destroy()

func (*ResourceCallREST) New

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

func (*ResourceCallREST) NewConnectOptions

func (r *ResourceCallREST) NewConnectOptions() (runtime.Object, bool, string)

type Storage

type Storage struct {
	Example      *REST
	ResourceCall *ResourceCallREST
	Query        *QueryREST
}

func NewREST

func NewREST(scheme *runtime.Scheme, optsGetter generic.RESTOptionsGetter) (*Storage, error)

NewREST returns a RESTStorage object that will work against API services.

type Wrapper

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

func (*Wrapper) ConvertToTable

func (w *Wrapper) ConvertToTable(ctx context.Context, object runtime.Object, tableOptions runtime.Object) (*metav1.Table, error)

func (*Wrapper) Create

func (w *Wrapper) Create(ctx context.Context, obj runtime.Object, validate rest.ValidateObjectFunc, options *metav1.CreateOptions) (runtime.Object, error)

func (*Wrapper) Destroy

func (w *Wrapper) Destroy()

func (*Wrapper) Get

func (w *Wrapper) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)

func (*Wrapper) GetSingularName

func (w *Wrapper) GetSingularName() string

func (*Wrapper) List

func (*Wrapper) NamespaceScoped

func (w *Wrapper) NamespaceScoped() bool

func (*Wrapper) New

func (w *Wrapper) New() runtime.Object

func (*Wrapper) NewList

func (w *Wrapper) NewList() runtime.Object

Jump to

Keyboard shortcuts

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