client

package
v0.0.0-...-d869f00 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2021 License: Apache-2.0, MIT Imports: 13 Imported by: 0

Documentation

Index

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 New

func New(c *cli.Context) *Client

func NewFromEndpoint

func NewFromEndpoint(endpoint string) *Client

NewFromEndpoint returns an API client at the given endpoint

func (*Client) Get

func (c *Client) Get(ctx context.Context, x cid.Cid) error

TODO: Use a common function to create requests.

func (*Client) GetBatch

func (c *Client) GetBatch(ctx context.Context, cids []cid.Cid)

func (*Client) ImportFromCidList

func (c *Client) ImportFromCidList(ctx context.Context, dir string, provID peer.ID) error

func (*Client) ImportFromManifest

func (c *Client) ImportFromManifest(ctx context.Context, dir string, provID peer.ID) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL