Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Copier ¶
type Copier struct { Options CopierOptions Client *s3.Client Downloader *manager.Downloader Uploader *manager.Uploader }
Copier holds state for copying
type CopierOptions ¶
type CopierOptions struct { BufferSize int Checksum bool Concurrency int DisableSSL bool MaxRetries int PartSize int64 Verbose bool }
CopierOptions are options for a copier object
type CopyJob ¶
type CopyJob struct {
// contains filtered or unexported fields
}
CopyJob defines a file/object copy
func GetCopyJobs ¶
GetCopyJobs gets the jobs required to copy between two paths
func NewCopyJob ¶
NewCopyJob creates a new CopyJob
type Path ¶
type Path interface { IsDir() (bool, error) Exists() (bool, error) IsS3() bool IsLocal() bool DirOrFolder() string FileOrObject() string ListPathsWithPrefix() ([]Path, error) Join(...string) Path Base() string WithoutBucket() string Bucket() (string, error) String() string }
Path is an interface of functions to apply transparently to s3 or local paths
Click to show internal directories.
Click to hide internal directories.