Versions in this module Expand all Collapse all v1 v1.0.0 Apr 27, 2016 Changes in this version + const TDirectory + const TFile + const TMetadata + const TRaw + const TSymlink + type Error struct + Code int + Command string + Message string + func (e *Error) Error() string + type IdOutput struct + Addresses []string + AgentVersion string + ID string + ProtocolVersion string + PublicKey string + type IpfsObject struct + Data string + Links []ObjectLink + type LsLink struct + Hash string + Name string + Size uint64 + Type int + type LsObject struct + Links []*LsLink + type ObjectLink struct + Hash string + Name string + Size uint64 + type PeerInfo struct + Addrs []string + ID string + type Request struct + ApiBase string + Args []string + Body io.Reader + Command string + Headers map[string]string + Opts map[string]string + func NewRequest(url, command string, args ...string) *Request + func (r *Request) Send(c *http.Client) (*Response, error) + type Response struct + Error *Error + Output io.ReadCloser + func (r *Response) Close() error + type Shell struct + func NewShell(url string) *Shell + func (s *Shell) Add(r io.Reader) (string, error) + func (s *Shell) AddDir(dir string) (string, error) + func (s *Shell) AddLink(target string) (string, error) + func (s *Shell) BlockGet(path string) ([]byte, error) + func (s *Shell) BlockPut(block []byte) (string, error) + func (s *Shell) BlockStat(path string) (string, int, error) + func (s *Shell) Cat(path string) (io.ReadCloser, error) + func (s *Shell) FileList(path string) (*UnixLsObject, error) + func (s *Shell) FindPeer(peer string) (*PeerInfo, error) + func (s *Shell) Get(hash, outdir string) error + func (s *Shell) ID(peer ...string) (*IdOutput, error) + func (s *Shell) IsUp() bool + func (s *Shell) List(path string) ([]*LsLink, error) + func (s *Shell) NewObject(template string) (string, error) + func (s *Shell) ObjectGet(path string) (*IpfsObject, error) + func (s *Shell) ObjectPut(obj *IpfsObject) (string, error) + func (s *Shell) Patch(root, action string, args ...string) (string, error) + func (s *Shell) PatchData(root string, set bool, data interface{}) (string, error) + func (s *Shell) PatchLink(root, path, childhash string, create bool) (string, error) + func (s *Shell) Pin(path string) error + func (s *Shell) Publish(node string, value string) error + func (s *Shell) Refs(hash string, recursive bool) (<-chan string, error) + func (s *Shell) Resolve(id string) (string, error) + func (s *Shell) ResolvePath(path string) (string, error) + func (s *Shell) SetTimeout(d time.Duration) + func (s *Shell) Unpin(path string) error + func (s *Shell) Version() (string, string, error) + type UnixLsLink struct + Hash string + Name string + Size uint64 + Type string + type UnixLsObject struct + Hash string + Links []*UnixLsLink + Size uint64 + Type string