etcd

package
v3.10.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewREST

func NewREST(optsGetter restoptions.Getter) (*REST, *DetailsREST, error)

NewREST returns a RESTStorage object that will work against Build objects.

Types

type DetailsREST

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

func (*DetailsREST) New

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

New returns an empty object that can be used with Update after request data has been put into it.

func (*DetailsREST) Update

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

Update finds a resource in the storage and updates it.

type LegacyREST added in v3.7.2

type LegacyREST struct {
	*REST
}

LegacyREST allows us to wrap and alter some behavior

func (*LegacyREST) Categories added in v3.7.2

func (r *LegacyREST) Categories() []string

type REST

type REST struct {
	*registry.Store
}

func (*REST) Categories added in v3.7.0

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

Categories implements the CategoriesProvider interface. Returns a list of categories a resource is part of.

Jump to

Keyboard shortcuts

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