Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type S3Uploader ¶
type S3Uploader struct {
// contains filtered or unexported fields
}
func NewS3Uploader ¶
func NewS3Uploader(opts Options) (*S3Uploader, error)
func (*S3Uploader) Upload ¶
func (u *S3Uploader) Upload(ctx context.Context, cfg config.Config, asset model.MediaAsset, opts Options) (model.MediaArchiveResult, bool, error)
type Stats ¶
type Stats struct {
Candidates int `json:"candidates"`
Uploaded int `json:"uploaded"`
Archived int `json:"archived"`
Unchanged int `json:"unchanged"`
PruneSkipped int `json:"prune_skipped"`
LocalFilesPruned int `json:"local_files_pruned"`
LocalRowsPruned int64 `json:"local_rows_pruned"`
Errors int `json:"errors"`
}
Click to show internal directories.
Click to hide internal directories.