Versions in this module Expand all Collapse all v0 v0.0.11 Aug 15, 2022 v0.0.10 Jul 7, 2022 Changes in this version + const DefaultEndpoint + type Client struct + func New(opts ...NewOpt) (*Client, error) + func (cl *Client) Equal(other *Client) bool + func (cl *Client) IsPresent(ctx context.Context, c cid.Cid) (bool, error) + func (cl *Client) Pin(ctx context.Context, c cid.Cid, key string) error + func (cl *Client) PutCar(ctx context.Context, car *os.File, pro *ai.Progress) (cid.Cid, error) + func (cl *Client) Unpin(ctx context.Context, c cid.Cid) error + func (cl *Client) Upload(ctx context.Context, rdr fs.File, pro *ai.Progress) (cid.Cid, error) + type NewOpt func(options *config) error + func WithCanPin(can bool) NewOpt + func WithEndpoint(e string) NewOpt + func WithHTTPClient(c *http.Client) NewOpt + func WithTempDir(dir string) NewOpt + func WithToken(tok string) NewOpt