file

package
v2.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

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

func (*ReadTransferSession) Read

func (rts *ReadTransferSession) Read(p []byte) (int, 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

func (*WriteTransferSession) Write

func (ts *WriteTransferSession) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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