proxy

package
v2.0.0-...-76fd7a6 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2020 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProxyStore

func NewProxyStore(clientGetter ClientGetter) types.Store

Types

type AddAPIVersionKind

type AddAPIVersionKind struct {
	APIVersion string
	Kind       string
	Next       types.Mapper
}

func (AddAPIVersionKind) FromInternal

func (d AddAPIVersionKind) FromInternal(data data.Object)

func (AddAPIVersionKind) ModifySchema

func (d AddAPIVersionKind) ModifySchema(schema *types.Schema, schemas *types.Schemas) error

func (AddAPIVersionKind) ToInternal

func (d AddAPIVersionKind) ToInternal(data data.Object) error

type ClientFactory

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

func NewClientFactory

func NewClientFactory(cfg *rest.Config) *ClientFactory

func (*ClientFactory) Client

func (*ClientFactory) Register

func (p *ClientFactory) Register(schema *types.Schema, gvr schema.GroupVersionResource)

type ClientGetter

type ClientGetter interface {
	Client(ctx *types.APIRequest, schema *types.Schema) (dynamic.ResourceInterface, error)
}

type Store

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

func (*Store) ByID

func (s *Store) ByID(apiOp *types.APIRequest, schema *types.Schema, id string) (types.APIObject, error)

func (*Store) Create

func (s *Store) Create(apiOp *types.APIRequest, schema *types.Schema, params types.APIObject) (types.APIObject, error)

func (*Store) Delete

func (s *Store) Delete(apiOp *types.APIRequest, schema *types.Schema, id string) (types.APIObject, error)

func (*Store) List

func (s *Store) List(apiOp *types.APIRequest, schema *types.Schema, opt *types.QueryOptions) (types.APIObject, error)

func (*Store) Update

func (s *Store) Update(apiOp *types.APIRequest, schema *types.Schema, params types.APIObject, id string) (types.APIObject, error)

func (*Store) Watch

func (s *Store) Watch(apiOp *types.APIRequest, schema *types.Schema, w types.WatchRequest) (chan types.APIEvent, error)

Jump to

Keyboard shortcuts

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