Documentation
¶
Index ¶
- Variables
- type Connector
- func (ipfs *Connector) FileAdd(fname string, reader io.Reader) (ObjectEntry, error)
- func (ipfs *Connector) FileGet(path string) ([]byte, error)
- func (ipfs *Connector) FileLs(path string) (respFilesLs, error)
- func (ipfs *Connector) FilesCp(l []string) error
- func (ipfs *Connector) FilesFlush(uid string, path string) error
- func (ipfs *Connector) FilesLs(uid string, path string) (respFilesLs, error)
- func (ipfs *Connector) FilesMkdir(uid string, path string, parents bool) error
- func (ipfs *Connector) FilesMv(uid string, path string, dest string) error
- func (ipfs *Connector) FilesRead(uid, path string) ([]byte, error)
- func (ipfs *Connector) FilesRm(uid string, path string, recursive bool) error
- func (ipfs *Connector) FilesStat(uid string, path string) (respFilesStat, error)
- func (ipfs *Connector) FilesWrite(uid string, path string, offset int64, create bool, truncate bool, count int, ...) error
- func (ipfs *Connector) Mkdir() (respObjectLink, error)
- func (ipfs *Connector) NamePublish(uid string, id string) (respNamePublish, error)
- func (ipfs *Connector) ObjPatchAddlink(rootHash string, fname string, object string) (respObjectLink, error)
- func (ipfs *Connector) UidInfo(uid string) (respUIDSecret, error)
- func (ipfs *Connector) UidNew(name string) (respUIDSecret, error)
- func (ipfs *Connector) UidRenew(l []string) (respUIDRenew, error)
- type FileLsEntry
- type ObjectEntry
Constants ¶
This section is empty.
Variables ¶
View Source
var DNSTimeout = 5 * time.Second
DNSTimeout is used when resolving DNS multiaddresses in this module
View Source
var HiveRequestTimeout = 60 * 5 * time.Second
Functions ¶
This section is empty.
Types ¶
type Connector ¶
type Connector struct {
// contains filtered or unexported fields
}
Connector implements the IPFSConnector interface and provides a component which is used to perform on-demand requests against the configured IPFS daemom (such as a pin request).
func NewConnector ¶
NewConnector creates the component and leaves it ready to be started
func (*Connector) FilesFlush ¶
file flushs
func (*Connector) FilesMkdir ¶
create a directotry
func (*Connector) FilesWrite ¶
func (ipfs *Connector) FilesWrite(uid string, path string, offset int64, create bool, truncate bool, count int, byteBuf *bytes.Buffer) error
write file
func (*Connector) NamePublish ¶
NamePublish publish ipfs path with uid
func (*Connector) ObjPatchAddlink ¶
func (ipfs *Connector) ObjPatchAddlink(rootHash string, fname string, object string) (respObjectLink, error)
ObjPatchAddlink
type FileLsEntry ¶
map to ipld.Link
type ObjectEntry ¶
Click to show internal directories.
Click to hide internal directories.