Documentation ¶
Index ¶
- func CheckFile(bucket, key string) (map[string]string, error)
- func CopyBatch(bucket, inputPrefix, outputPrefix string) error
- func CreateBucket(name string) error
- func CreateDefaultBucket() error
- func DeleteWithBucket(bucket string, s3Keys []string) error
- func DeleteWithBucketPrefix(bucket string, prefix string) error
- func Download(key string) (string, error)
- func Exist(bucket, key string) bool
- func GetFileSize(svc *s3.S3, bucket string, prefix string) (filesize int64, error error)
- func ListDirectories(bucket, prefix string) map[string]string
- func ListKeys(bucket, prefix string) (map[string]string, error)
- func ListKeysWithCred(bucket, prefix string) map[string]string
- func UploadBytesWithBucket(s3Key string, data []byte) (*s3manager.UploadOutput, error)
- func UploadFileWithBucket(filePathInput, s3Key string) (*s3manager.UploadOutput, error)
- type Config
- type ProgressWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateBucket ¶
func CreateDefaultBucket ¶
func CreateDefaultBucket() error
func DeleteWithBucket ¶
func DeleteWithBucketPrefix ¶
func GetFileSize ¶
func ListDirectories ¶
func ListKeysWithCred ¶
func UploadBytesWithBucket ¶
func UploadBytesWithBucket(s3Key string, data []byte) (*s3manager.UploadOutput, error)
func UploadFileWithBucket ¶
func UploadFileWithBucket(filePathInput, s3Key string) (*s3manager.UploadOutput, error)
Types ¶
type Config ¶
type Config struct { S3AccessKeyId string `json:"s3AccessKeyId"` S3SecretAccessKey string `json:"s3SecretAccessKey"` S3Region string `json:"s3Region"` S3Endpoint string `json:"s3Endpoint"` S3Debug string `json:"s3Debug"` S3Bucket string `json:"s3Bucket"` S3LocalDir string `json:"s3LocalDir"` S3Session *session.Session `json:"-"` }
func InitConfig ¶
func InitConfig() *Config
func (*Config) ServerStart ¶
Click to show internal directories.
Click to hide internal directories.