Documentation ¶
Index ¶
- type S3
- func (s *S3) CleanupOld(bucket, path string, beforeDays int) (int, error)
- func (s *S3) CreateBucket(bucket string) error
- func (s *S3) DeleteFile(bucket, file string) error
- func (s *S3) ListFiles(bucket, prefix string) ([]string, error)
- func (s *S3) UploadFile(bucket, localPath, remotePath string, includeChecksum bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type S3 ¶
type S3 struct {
// contains filtered or unexported fields
}
S3 type
func NewS3Client ¶
NewS3Client creates a new s3 instance
func (*S3) CleanupOld ¶ added in v0.1.1
CleanupOld apply a retention policy over a certain path
func (*S3) CreateBucket ¶
CreateBucket creates a bucket
func (*S3) DeleteFile ¶ added in v0.1.1
DeleteFile delete a file
Click to show internal directories.
Click to hide internal directories.