Documentation ¶
Index ¶
- func NewProxyStore(ctx context.Context, clientGetter ClientGetter, ...) types.Store
- type ClientGetter
- type Store
- func (s *Store) ByID(apiContext *types.APIContext, schema *types.Schema, id string) (map[string]interface{}, error)
- func (s *Store) Context() types.StorageContext
- func (s *Store) Create(apiContext *types.APIContext, schema *types.Schema, ...) (map[string]interface{}, error)
- func (s *Store) Delete(apiContext *types.APIContext, schema *types.Schema, id string) (map[string]interface{}, error)
- func (s *Store) List(apiContext *types.APIContext, schema *types.Schema, opt *types.QueryOptions) ([]map[string]interface{}, error)
- func (s *Store) Update(apiContext *types.APIContext, schema *types.Schema, ...) (map[string]interface{}, error)
- func (s *Store) Watch(apiContext *types.APIContext, schema *types.Schema, opt *types.QueryOptions) (chan map[string]interface{}, error)
- type StoreTyper
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 ¶
func (*Store) Context ¶
func (s *Store) Context() types.StorageContext
func (*Store) List ¶
func (s *Store) List(apiContext *types.APIContext, schema *types.Schema, opt *types.QueryOptions) ([]map[string]interface{}, error)
type StoreTyper ¶
type StoreTyper interface { runtime.ObjectConvertor runtime.ObjectCreater }
Click to show internal directories.
Click to hide internal directories.