Documentation ¶
Index ¶
- type Options
- 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, opts *store.WatchOptions) (chan *store.Event, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { BasePath string Addrs []string ConnectTimeoutSeconds int Database string Username string Password string }
Options options for zookeeper store
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store client for zookeeper
func (*Store) Get ¶
func (s *Store) Get(ctx context.Context, resourceType types.ObjectType, key types.ObjectKey, opt *store.GetOptions) ( *types.RawObject, error)
Get implement Store
func (*Store) List ¶
func (s *Store) List(ctx context.Context, objectType types.ObjectType, opts *store.ListOptions) ( []*types.RawObject, error)
List implement Store
Click to show internal directories.
Click to hide internal directories.