storage

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventREST

type EventREST struct {
	rest.Storage
	// contains filtered or unexported fields
}

EventREST implements the REST endpoint for find events by a storageclass.

func (*EventREST) Get

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

Get retrieves the object from the storage. It is required to support Patch.

func (*EventREST) GroupVersionKind

func (r *EventREST) GroupVersionKind(containingGV schema.GroupVersion) schema.GroupVersionKind

GroupVersionKind is used to specify a particular GroupVersionKind to discovery.

func (*EventREST) New

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

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

type REST

type REST struct {
	*util.Store
}

REST implements pkg/api/rest.StandardStorage.

func (*REST) ShortNames

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

ShortNames is used by cli to have short names representation of resources.

type Storage

type Storage struct {
	StorageClass *REST
	Events       *EventREST
}

Storage includes storage for resources.

func NewStorageV1

NewStorageV1 returns a Storage object that will work against resources.

func NewStorageV1Beta1

NewStorageV1Beta1 returns a Storage object that will work against resources.

Jump to

Keyboard shortcuts

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