Documentation
¶
Index ¶
- Constants
- type Cell
- type ErrNotAllowed
- type PeerID
- type Policy
- type Rule
- type Space
- func (s *Space) Create(ctx context.Context, k string, md branches.Metadata) (*branches.Branch, error)
- func (s *Space) Delete(ctx context.Context, k string) error
- func (s *Space) Get(ctx context.Context, k string) (*branches.Branch, error)
- func (s *Space) List(ctx context.Context, span branches.Span, limit int) ([]string, error)
- func (s *Space) Set(ctx context.Context, k string, md branches.Metadata) error
- type Store
- func (s *Store) Delete(ctx context.Context, id cadata.ID) error
- func (s *Store) Exists(ctx context.Context, id cadata.ID) (bool, error)
- func (s *Store) Get(ctx context.Context, id cadata.ID, buf []byte) (int, error)
- func (s *Store) Hash(x []byte) cadata.ID
- func (s *Store) List(ctx context.Context, span cadata.Span, ids []cadata.ID) (int, error)
- func (s *Store) MaxSize() int
- func (s *Store) Post(ctx context.Context, data []byte) (cadata.ID, error)
Constants ¶
View Source
const ( OpLook = "LOOK" OpTouch = "TOUCH" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrNotAllowed ¶
func (ErrNotAllowed) Error ¶
func (e ErrNotAllowed) Error() string
type Policy ¶
type Policy struct {
Rules []Rule
}
func (Policy) CanLookAny ¶
func (Policy) CanTouchAny ¶
type Space ¶
type Space struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.