storage

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 13 Imported by: 1

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 a RESTStorage for user setting.

func (*REST) ConvertToTable added in v1.3.1

func (r *REST) ConvertToTable(ctx context.Context, object runtime.Object, tableOptions runtime.Object) (*v1.Table, error)

ConvertToTable converts objects to metav1.Table objects using default table convertor.

func (*REST) List

List selects resources in the storage which match to the selector. 'options' can be nil.

func (*REST) NamespaceScoped

func (r *REST) NamespaceScoped() bool

NamespaceScoped returns true if the storage is namespaced.

func (*REST) New

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

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

func (*REST) NewList

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

NewList returns an empty object that can be used with the List call.

func (*REST) ShortNames

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

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

type Storage

type Storage struct {
	Portal *REST
}

Storage includes storage for portal information and all sub resources.

func NewStorage

NewStorage returns a Storage object that will work against projects.

Jump to

Keyboard shortcuts

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