Documentation ¶
Index ¶
- func HostGatewayURL() (string, error)
- func NormalizeGatewayURL(urlstr string) string
- func RunDaemon() error
- type Client
- func (client *Client) AddDir(dir string) (string, error)
- func (client *Client) AddImage(manifest map[string][]byte, layers map[string][]byte) (string, error)
- func (client *Client) Cat(path string) (io.ReadCloser, error)
- func (client *Client) GatewayURL() string
- func (client *Client) Get(hash, outdir string) error
- func (client *Client) List(path string) ([]*api.LsLink, error)
- func (client *Client) Refs(hash string, recursive bool) (<-chan string, error)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HostGatewayURL ¶
HostGatewayURL returns IPFS gateway URL that host is configured to use
func NormalizeGatewayURL ¶
NormalizeGatewayURL normalizes IPFS gateway URL
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the client structure
func NewRemoteClient ¶
NewRemoteClient returns a new IPFS shell client
func (*Client) AddDir ¶
AddDir adds a directory to IPFS https://github.com/ipfs/go-ipfs-api/blob/master/add.go#L99-L145
func (*Client) AddImage ¶
func (client *Client) AddImage(manifest map[string][]byte, layers map[string][]byte) (string, error)
AddImage adds components of an image recursively
func (*Client) Cat ¶
func (client *Client) Cat(path string) (io.ReadCloser, error)
Cat the content at the given path. Callers need to drain and close the returned reader after usage.
func (*Client) GatewayURL ¶
GatewayURL returns the gateway URL
Click to show internal directories.
Click to hide internal directories.