receive

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMetaFileNotFound = errors.New("file " + dto.FILENAME_META + " not found")

Functions

This section is empty.

Types

type ReceiveSession

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

func NewSession

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

func (*ReceiveSession) BaseUrl added in v0.4.0

func (rs *ReceiveSession) BaseUrl(baseUrl string)

func (*ReceiveSession) DoesMetaFileExistOnServer added in v0.4.1

func (rs *ReceiveSession) DoesMetaFileExistOnServer() 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) MetaUrlRelativeToBaseUrl added in v0.4.0

func (rs *ReceiveSession) MetaUrlRelativeToBaseUrl() string

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