Documentation ¶
Index ¶
- type Store
- func (s *Store) Create(ctx context.Context, obj *types.RawObject, opt *store.CreateOptions) error
- func (s *Store) Delete(ctx context.Context, obj *types.RawObject, opt *store.DeleteOptions) error
- func (s *Store) Get(ctx context.Context, resourceType types.ObjectType, key types.ObjectKey, ...) (*types.RawObject, error)
- func (s *Store) List(ctx context.Context, objectType types.ObjectType, opts *store.ListOptions) ([]*types.RawObject, error)
- func (s *Store) Update(ctx context.Context, obj *types.RawObject, opt *store.UpdateOptions) error
- func (s *Store) Watch(ctx context.Context, resourceType types.ObjectType, opt *store.WatchOptions) (chan *store.Event, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store client for mongo
func (*Store) Get ¶
func (s *Store) Get(ctx context.Context, resourceType types.ObjectType, key types.ObjectKey, opt *store.GetOptions) ( *types.RawObject, error)
Get get object
func (*Store) List ¶
func (s *Store) List(ctx context.Context, objectType types.ObjectType, opts *store.ListOptions) ( []*types.RawObject, error)
List list objects
Click to show internal directories.
Click to hide internal directories.