Documentation ¶
Index ¶
- Variables
- type ReceiveSession
- func (rs *ReceiveSession) BaseUrl(baseUrl string)
- func (rs *ReceiveSession) DoesMetaFileExistOnServer() error
- func (rs *ReceiveSession) DumpAndDecryptFileWithProgressBar(remoteFileName string, localFileName string) error
- func (rs *ReceiveSession) DumpFileWithProgressBar(remoteFileName string, localFileName string, ...) error
- func (rs *ReceiveSession) FetchAndDecryptFileWithProgressBar(fileName string) ([]byte, error)
- func (rs *ReceiveSession) FetchFileWithProgressBar(fileName string, progress *pterm.ProgressbarPrinter) ([]byte, error)
- func (rs *ReceiveSession) FetchMeta() (*dto.Meta, error)
- func (rs *ReceiveSession) FileContentsInWorkDir(fileName string) ([]byte, error)
- func (rs *ReceiveSession) MetaUrlRelativeToBaseUrl() string
- func (rs *ReceiveSession) SetMTimeInWorkDir(fileName string, mtime time.Time) error
- func (rs *ReceiveSession) StatInWorkDir(fileName string) (os.FileInfo, error)
- type State
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) 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)
Click to show internal directories.
Click to hide internal directories.