resources

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type REST

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

REST implements RESTStorage for Resources API

func NewREST

func NewREST(resourceHandler http.Handler) *REST

NewREST returns a RESTStorage object that will work against API services

func (*REST) Connect

func (r *REST) Connect(ctx context.Context, prefixPath string, _ runtime.Object, responder genericrest.Responder) (http.Handler, error)

Connect returns an http.Handler that will handle the request/response for a given API invocation.

func (*REST) ConnectMethods

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

ConnectMethods returns the list of HTTP methods handled by Connect

func (*REST) Destroy added in v0.6.0

func (r *REST) Destroy()

Destroy implements rest.Storage

func (*REST) GetSingularName added in v0.8.0

func (s *REST) GetSingularName() string

GetSingularName implements rest.SingularNameProvider interface

func (*REST) NamespaceScoped

func (r *REST) NamespaceScoped() bool

NamespaceScoped returns false because Resources is not namespaced

func (*REST) New

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

New implements rest.Storage

func (*REST) NewConnectOptions

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

NewConnectOptions returns an empty options object that will be used to pass options to the Connect method.

Jump to

Keyboard shortcuts

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