Documentation
¶
Overview ¶
Package bchttp implements a Blobcache service over HTTP.
Index ¶
- type AbortReq
- type AbortResp
- type AwaitReq
- type AwaitResp
- type BeginTxReq
- type BeginTxResp
- type Client
- func (c *Client) Abort(ctx context.Context, tx blobcache.Handle) error
- func (c *Client) Await(ctx context.Context, cond blobcache.Conditions) error
- func (c *Client) BeginTx(ctx context.Context, vol blobcache.Handle, txp blobcache.TxParams) (*blobcache.Handle, error)
- func (c *Client) Commit(ctx context.Context, tx blobcache.Handle, root []byte) error
- func (c *Client) CreateVolume(ctx context.Context, vspec blobcache.VolumeSpec) (*blobcache.Handle, error)
- func (c *Client) Delete(ctx context.Context, tx blobcache.Handle, cid blobcache.CID) error
- func (c *Client) DeleteEntry(ctx context.Context, ns blobcache.Handle, name string) error
- func (c *Client) Drop(ctx context.Context, h blobcache.Handle) error
- func (c *Client) Endpoint(ctx context.Context) (blobcache.Endpoint, error)
- func (c *Client) Exists(ctx context.Context, tx blobcache.Handle, cid blobcache.CID) (bool, error)
- func (c *Client) Get(ctx context.Context, tx blobcache.Handle, cid blobcache.CID, ...) (int, error)
- func (c *Client) GetEntry(ctx context.Context, ns blobcache.Handle, name string) (*blobcache.Entry, error)
- func (c *Client) InspectHandle(ctx context.Context, h blobcache.Handle) (*blobcache.HandleInfo, error)
- func (c *Client) InspectVolume(ctx context.Context, h blobcache.Handle) (*blobcache.VolumeInfo, error)
- func (c *Client) KeepAlive(ctx context.Context, hs []blobcache.Handle) error
- func (c *Client) ListNames(ctx context.Context, ns blobcache.Handle) ([]string, error)
- func (c *Client) Load(ctx context.Context, tx blobcache.Handle, dst *[]byte) error
- func (c *Client) Open(ctx context.Context, x blobcache.OID) (*blobcache.Handle, error)
- func (c *Client) OpenAt(ctx context.Context, ns blobcache.Handle, name string) (*blobcache.Handle, error)
- func (c *Client) Post(ctx context.Context, tx blobcache.Handle, salt *blobcache.CID, data []byte) (blobcache.CID, error)
- func (c *Client) PutEntry(ctx context.Context, ns blobcache.Handle, name string, target blobcache.Handle) error
- type CommitReq
- type CommitResp
- type CreateVolumeReq
- type CreateVolumeResp
- type DeleteEntryReq
- type DeleteEntryResp
- type DeleteReq
- type DeleteResp
- type DropReq
- type DropResp
- type EndpointReq
- type EndpointResp
- type ExistsReq
- type ExistsResp
- type GetEntryReq
- type GetEntryResp
- type GetReq
- type InspectHandleReq
- type InspectHandleResp
- type KeepAliveReq
- type KeepAliveResp
- type ListNamesReq
- type ListNamesResp
- type LoadReq
- type LoadResp
- type OpenAtReq
- type OpenAtResp
- type OpenReq
- type OpenResp
- type PutEntryReq
- type PutEntryResp
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BeginTxReq ¶
type BeginTxResp ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreateVolume ¶
func (*Client) DeleteEntry ¶
func (*Client) InspectHandle ¶
func (*Client) InspectVolume ¶
type CommitResp ¶
type CommitResp struct{}
type CreateVolumeReq ¶
type CreateVolumeReq struct {
Spec blobcache.VolumeSpec `json:"spec"`
}
type CreateVolumeResp ¶
type DeleteResp ¶
type DeleteResp struct{}
type EndpointReq ¶
type EndpointReq struct{}
type EndpointResp ¶
type ExistsResp ¶
type ExistsResp struct {
Exists bool `json:"exists"`
}
Click to show internal directories.
Click to hide internal directories.