Documentation ¶
Index ¶
- Variables
- func Bundle(localPath string, wrapDir bool) (bundle io.Reader, err error)
- func Decrypt(ct io.Reader, secret Key) (pt io.Reader, err error)
- func Encrypt(pt io.Reader, secret Key) (ct io.Reader, err error)
- func Get(n *ipfs.Shell, link IPFSLink) (io.ReadCloser, error)
- func GetDecryptAndUnbundle(n *ipfs.Shell, link IPFSLink, localPath string, secret Key) error
- func GetROIPFSNode(url string) *ipfs.Shell
- func GetRWIPFSNode(url string) (*ipfs.Shell, error)
- func TarAndZip(src string, wrapDir bool, writers ...io.Writer) error
- func Unbundle(bundle io.Reader, localPath string) error
- func UnzipAndUntar(dst string, r io.Reader) error
- type IPFSLink
- type Key
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotImplemented = errors.New("ErrNotImplemented") ErrFailedToUseLocalNode = errors.New("Failed to use local node") )
View Source
var ( GlobalNodeURL = "https://gateway.ipfs.io:4001" GlobalGatewayURL = "https://gateway.ipfs.io" LocalNodeURL = "http://localhost:4001" LocalGatewayURL = "http://localhost:8080" )
Functions ¶
func GetDecryptAndUnbundle ¶
func GetROIPFSNode ¶
func TarAndZip ¶
from: https://medium.com/@skdomino/taring-untaring-files-in-go-6b07cf56bc07
TarAndZip takes a source and variable writers and walks 'source' writing each file found to the tar writer; the purpose for accepting multiple writers is to allow for multiple outputs (for example a file, or md5 hash)
Types ¶
Click to show internal directories.
Click to hide internal directories.