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) CalculateCommP(ctx context.Context, blob multihash.Multihash) (types.CalculateCommPResponse, error)
- func (c *Client) CreateProofSet(ctx context.Context) (common.Hash, error)
- func (c *Client) GetProofSet(ctx context.Context, proofSetID uint64) (*types.ProofSet, error)
- func (c *Client) GetProofSetState(ctx context.Context, proofSetID uint64) (*types.ProofSetState, error)
- func (c *Client) GetProofSetStatus(ctx context.Context, txHash common.Hash) (*types.ProofSetStatus, error)
- func (c *Client) GetProviderStatus(ctx context.Context) (types.GetProviderStatusResults, error)
- func (c *Client) Has(ctx context.Context, blob multihash.Multihash) (bool, error)
- func (c *Client) ListProofSet(ctx context.Context) ([]types.ProofSet, error)
- func (c *Client) ParkPiece(ctx context.Context, params types.ParkPieceRequest) error
- func (c *Client) Read(ctx context.Context, piece multihash.Multihash, ...) (*types.PieceReader, error)
- func (c *Client) ReadPieceURL(piece cid.Cid) (url.URL, error)
- func (c *Client) RegisterProvider(ctx context.Context, params types.RegisterProviderParams) (types.RegisterProviderResults, error)
- func (c *Client) RemoveRoot(ctx context.Context, proofSetID uint64, rootID uint64) (common.Hash, error)
- func (c *Client) Resolve(ctx context.Context, blob multihash.Multihash) (multihash.Multihash, bool, error)
- func (c *Client) ResolveToBlob(ctx context.Context, piece multihash.Multihash) (multihash.Multihash, bool, error)
- func (c *Client) ResolveToPiece(ctx context.Context, blob multihash.Multihash) (multihash.Multihash, bool, error)
- func (c *Client) UploadPiece(ctx context.Context, upload types.PieceUpload) error
- func (c *Client) WritePieceURL(piece uuid.UUID) (url.URL, 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) CalculateCommP ¶ added in v0.0.18
func (*Client) CreateProofSet ¶
func (*Client) GetProofSet ¶
func (*Client) GetProofSetState ¶ added in v0.0.15
func (*Client) GetProofSetStatus ¶
func (*Client) GetProviderStatus ¶ added in v0.0.17
func (*Client) ListProofSet ¶
func (*Client) Read ¶ added in v0.0.18
func (c *Client) Read(ctx context.Context, piece multihash.Multihash, options ...types.ReadPieceOption) (*types.PieceReader, error)
func (*Client) ReadPieceURL ¶ added in v0.0.18
func (*Client) RegisterProvider ¶ added in v0.0.17
func (c *Client) RegisterProvider(ctx context.Context, params types.RegisterProviderParams) (types.RegisterProviderResults, error)
func (*Client) RemoveRoot ¶
func (*Client) ResolveToBlob ¶ added in v0.0.18
func (*Client) ResolveToPiece ¶ added in v0.0.18
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.