Versions in this module Expand all Collapse all v0 v0.2.1 Sep 17, 2021 Changes in this version + const LIIDLEN + const META + func CompressEncrypt(in *[]byte, out *[]byte, key *[32]byte) error + func DecryptDecomp(in *[]byte, out *[]byte, key *[32]byte) error + func DecryptDecompFile(in, out string, key *[32]byte) error + func TrimSuffix(s, suffix string) (string, error) + type Capture struct + Compressed int64 + Hash string + Size int64 + func NewCapture(path string, file os.FileInfo) (*Capture, error) + type Meta struct + Compressed int64 + Count int + Date string + Files map[string]Capture + Key string + LIID string + Size int64 + func NewMeta() *Meta + func (m *Meta) Append(c *Capture) + func (m *Meta) Close() error + func (m *Meta) Load() ([]byte, error) + func (m *Meta) Open(path string) error + func (m *Meta) Write() error + type Node struct + Endpoint [32]byte + KeyPair crypt.KeyPair + Shared [32]byte + func NewNode(priv, endpoint []byte) *Node + func (n Node) Pack(in string, out string, move bool) error + func (n Node) Pull(in string, out string, client *SSHClient) error + func (n Node) Push(in string, out string, client *SSHClient) error + func (n Node) Unpack(in string, out string, move bool) error + type SSHClient struct + func NewSSHClient(ip string, port int, user string) *SSHClient + func (c *SSHClient) Close() + func (c *SSHClient) Connect() error + func (c *SSHClient) RunCmd(cmd string) ([]byte, error) + func (c *SSHClient) SetKeyAuth(file string) error + func (c *SSHClient) SetPassAuth(pass string)