Documentation
¶
Overview ¶
Package basicns provides a simple namespace implementation. All entries are stored in the root of the volume.
Index ¶
- type Client
- func (c *Client) CreateAt(ctx context.Context, nsh blobcache.Handle, name string, ...) (*blobcache.Handle, error)
- func (c *Client) DeleteEntry(ctx context.Context, volh blobcache.Handle, name string) error
- func (c *Client) GetEntry(ctx context.Context, volh blobcache.Handle, name string) (*Entry, error)
- func (c *Client) ListEntries(ctx context.Context, volh blobcache.Handle) ([]Entry, error)
- func (c *Client) ListNames(ctx context.Context, volh blobcache.Handle) ([]string, error)
- func (c *Client) OpenAt(ctx context.Context, nsh blobcache.Handle, name string, ...) (*blobcache.Handle, error)
- func (c *Client) PutEntry(ctx context.Context, volh blobcache.Handle, name string, ...) error
- type Entry
- type Schema
- type Tx
- func (ns Tx) Commit(ctx context.Context) error
- func (ns *Tx) DeleteEntry(ctx context.Context, name string) error
- func (ns *Tx) GetEntry(ctx context.Context, name string) (*Entry, error)
- func (ns Tx) ListEntries(ctx context.Context) ([]Entry, error)
- func (ns Tx) ListNames(ctx context.Context) ([]string, error)
- func (ns *Tx) PutEntry(ctx context.Context, name string, target blobcache.OID, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client provides methods for interacting with a Namespace using a Service.
func (*Client) CreateAt ¶
func (c *Client) CreateAt(ctx context.Context, nsh blobcache.Handle, name string, spec blobcache.VolumeSpec) (*blobcache.Handle, error)
CreateAt creates a new Volume using spec, and links it to volh.
func (*Client) DeleteEntry ¶
func (*Client) ListEntries ¶
Click to show internal directories.
Click to hide internal directories.