receive

package
v0.1.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReceiveSession

type ReceiveSession struct {
	// contains filtered or unexported fields
}

func NewSession

func NewSession(baseUrl string, password string) (*ReceiveSession, error)

func (*ReceiveSession) DumpAndDecryptFileWithProgressBar

func (rs *ReceiveSession) DumpAndDecryptFileWithProgressBar(remoteFileName string, localFileName string) error

func (*ReceiveSession) DumpFileWithProgressBar

func (rs *ReceiveSession) DumpFileWithProgressBar(remoteFileName string, localFileName string, progress *pterm.ProgressbarPrinter) error

func (*ReceiveSession) FetchAndDecryptFileWithProgressBar

func (rs *ReceiveSession) FetchAndDecryptFileWithProgressBar(fileName string) ([]byte, error)

func (*ReceiveSession) FetchFileWithProgressBar

func (rs *ReceiveSession) FetchFileWithProgressBar(fileName string, progress *pterm.ProgressbarPrinter) ([]byte, error)

func (*ReceiveSession) FetchMeta

func (rs *ReceiveSession) FetchMeta() (*dto.Meta, error)

func (*ReceiveSession) FileContentsInWorkDir

func (rs *ReceiveSession) FileContentsInWorkDir(fileName string) ([]byte, error)

func (*ReceiveSession) SetMTimeInWorkDir

func (rs *ReceiveSession) SetMTimeInWorkDir(fileName string, mtime time.Time) error

func (*ReceiveSession) StatInWorkDir

func (rs *ReceiveSession) StatInWorkDir(fileName string) (os.FileInfo, error)

type State

type State string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL