Documentation ¶
Index ¶
- type ReceiveSession
- 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) SetMTimeInWorkDir(fileName string, mtime time.Time) error
- func (rs *ReceiveSession) StatInWorkDir(fileName string) (os.FileInfo, error)
- type State
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) 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)
Click to show internal directories.
Click to hide internal directories.