Documentation
¶
Index ¶
- type Client
- func (c *Client) AddRoots(ctx context.Context, proofSetID uint64, roots []types.RootAdd) (common.Hash, error)
- func (c *Client) AllocatePiece(ctx context.Context, allocation types.PieceAllocation) (*types.AllocatedPiece, error)
- func (c *Client) CreateProofSet(ctx context.Context, recordKeeper common.Address) (common.Hash, error)
- func (c *Client) FindPiece(ctx context.Context, piece types.Piece) (cid.Cid, bool, error)
- func (c *Client) GetProofSet(ctx context.Context, proofSetID uint64) (*types.ProofSet, error)
- func (c *Client) GetProofSetStatus(ctx context.Context, txHash common.Hash) (*types.ProofSetStatus, error)
- func (c *Client) ListProofSet(ctx context.Context) ([]types.ProofSet, error)
- func (c *Client) ReadPiece(ctx context.Context, piece cid.Cid) (*types.PieceReader, error)
- func (c *Client) RemoveRoot(ctx context.Context, proofSetID uint64, rootID uint64) (common.Hash, error)
- func (c *Client) UploadPiece(ctx context.Context, upload types.PieceUpload) error
- type EndpointType
- type ErrFailedResponse
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AllocatePiece ¶
func (c *Client) AllocatePiece(ctx context.Context, allocation types.PieceAllocation) (*types.AllocatedPiece, error)
func (*Client) CreateProofSet ¶
func (*Client) GetProofSet ¶
func (*Client) GetProofSetStatus ¶
func (*Client) ListProofSet ¶
func (*Client) RemoveRoot ¶
func (*Client) UploadPiece ¶
type EndpointType ¶
type EndpointType string
const ( GenericEndpoint EndpointType = "generic" PiriEndpoint EndpointType = "piri" )
type ErrFailedResponse ¶
func (ErrFailedResponse) Error ¶
func (e ErrFailedResponse) Error() string
type Option ¶
func WithBearerFromSigner ¶
func WithEndpointType ¶
func WithEndpointType(t EndpointType) Option
func WithHTTPClient ¶
Click to show internal directories.
Click to hide internal directories.