proxy

package
Version: v0.0.0-...-abe1797 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: Apache-2.0 Imports: 27 Imported by: 65

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProxyStore

func NewProxyStore(ctx context.Context, clientGetter ClientGetter, storageContext types.StorageContext, typer StoreTyper,
	prefix []string, group, version, kind, resourcePlural string) types.Store

Types

type ClientGetter

type ClientGetter interface {
	UnversionedClient(apiContext *types.APIContext, context types.StorageContext) (rest.Interface, error)
	APIExtClient(apiContext *types.APIContext, context types.StorageContext) (clientset.Interface, error)
}

func NewClientGetterFromConfig

func NewClientGetterFromConfig(config rest.Config) (ClientGetter, error)

type Store

type Store struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*Store) ByID

func (s *Store) ByID(apiContext *types.APIContext, schema *types.Schema, id string) (map[string]interface{}, error)

func (*Store) Context

func (s *Store) Context() types.StorageContext

func (*Store) Create

func (s *Store) Create(apiContext *types.APIContext, schema *types.Schema, data map[string]interface{}) (map[string]interface{}, error)

func (*Store) Delete

func (s *Store) Delete(apiContext *types.APIContext, schema *types.Schema, id string) (map[string]interface{}, error)

func (*Store) List

func (s *Store) List(apiContext *types.APIContext, schema *types.Schema, opt *types.QueryOptions) ([]map[string]interface{}, error)

func (*Store) Update

func (s *Store) Update(apiContext *types.APIContext, schema *types.Schema, data map[string]interface{}, id string) (map[string]interface{}, error)

func (*Store) Watch

func (s *Store) Watch(apiContext *types.APIContext, schema *types.Schema, opt *types.QueryOptions) (chan map[string]interface{}, error)

type StoreTyper

type StoreTyper interface {
	runtime.ObjectConvertor
	runtime.ObjectCreater
}

Jump to

Keyboard shortcuts

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