Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsArchive ¶
func IsArchive(rtc ReadTransferConfig) bool
func IsTTY ¶
func IsTTY(rtc ReadTransferConfig) bool
Types ¶
type ReadTransferConfig ¶
type ReadTransferConfig interface {
NewReaderTransferSession(context.Context) (*ReadTransferSession, error)
}
func NewReadTransferConfig ¶
func NewReadTransferConfig(archiveFormat string, locations ...string) (ReadTransferConfig, error)
type ReadTransferSession ¶
type ReadTransferSession struct { Progress atomic.Int64 Size func() (int64, error) // contains filtered or unexported fields }
func (*ReadTransferSession) Close ¶
func (rts *ReadTransferSession) Close() error
type WriteTransferConfig ¶
type WriteTransferConfig struct {
// contains filtered or unexported fields
}
func NewWriteTransferConfig ¶
func NewWriteTransferConfig(ctx context.Context, location string) (*WriteTransferConfig, error)
func (*WriteTransferConfig) NewWriteTransferSession ¶
func (w *WriteTransferConfig) NewWriteTransferSession(ctx context.Context, name, mime string) (*WriteTransferSession, error)
type WriteTransferSession ¶
type WriteTransferSession struct { Progress atomic.Int64 // contains filtered or unexported fields }
func (*WriteTransferSession) Close ¶
func (ts *WriteTransferSession) Close() error
func (*WriteTransferSession) Path ¶
func (ts *WriteTransferSession) Path() string
Click to show internal directories.
Click to hide internal directories.