Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Archiver ¶
func NewArchiver ¶
func NewArchiver() Archiver
type Client ¶
type Client struct { LocalStorage LocalStorage Repository Repository Archiver Archiver Dryrun bool Concurrency int }
type ClientRunInput ¶
type LocalObject ¶
type LocalStorage ¶
type LocalStorage interface {
List(ctx context.Context, path string, depth int) ([]LocalObject, error)
}
func NewLocalStorage ¶
func NewLocalStorage() LocalStorage
type NewRepositoryS3Input ¶
type NewRepositoryS3Input struct { Bucket string Prefix string API s3iface.S3API Uploader s3manageriface.UploaderAPI }
type Repository ¶
type Repository interface { List(ctx context.Context) ([]RepositoryObject, error) Upload(ctx context.Context, key string, r io.Reader) error Delete(ctx context.Context, keys []string) error }
func NewRepositoryS3 ¶
func NewRepositoryS3(in *NewRepositoryS3Input) Repository
type RepositoryObject ¶
type RepositoryS3 ¶
type RepositoryS3 struct {
// contains filtered or unexported fields
}
func (*RepositoryS3) Delete ¶
func (s *RepositoryS3) Delete(ctx context.Context, keys []string) error
func (*RepositoryS3) List ¶
func (s *RepositoryS3) List(ctx context.Context) ([]RepositoryObject, error)
Directories ¶
Path | Synopsis |
---|---|
Package syncermock is a generated GoMock package.
|
Package syncermock is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.