Documentation ¶
Index ¶
- Variables
- func AbortMultiPartUpload(svc *s3.S3, bucket string, key string, uploadid string) (*s3.AbortMultipartUploadOutput, error)
- func AbortMultiPartUploadInvalid(svc *s3.S3, bucket string, key string, uploadid string) (*s3.AbortMultipartUploadOutput, error)
- func AddHeaders(conditions map[string]string) request.Option
- func CompleteMultiUpload(svc *s3.S3, bucket string, key string, partNum int64, uploadid string, ...) (*s3.CompleteMultipartUploadOutput, error)
- func Contains(slice []string, item string) bool
- func CopyObject(svc *s3.S3, other string, source string, item string) error
- func CreateBucket(svc *s3.S3, bucket string) error
- func CreateBucketWithHeader(svc *s3.S3, bucket string, headers map[string]string) error
- func CreateObjects(svc *s3.S3, bucket string, objects map[string]string) error
- func DeleteBucket(svc *s3.S3, bucket string) error
- func DeleteObject(svc *s3.S3, bucket string, key string) error
- func DeleteObjects(svc *s3.S3, bucket string) error
- func DeletePrefixedBuckets(svc *s3.S3)
- func EncryptionSSECustomerWrite(svc *s3.S3, filesize int) (string, string, error)
- func GeneratePresignedUrlGetObject(svc *s3.S3, bucket string, key string) (string, error)
- func GetBucketName() string
- func GetConn() *s3.S3
- func GetKeys(svc *s3.S3, bucket string) (*s3.ListObjectsOutput, []string, error)
- func GetKeysWithMarker(svc *s3.S3, bucket string, marker string) (*s3.ListObjectsOutput, []string, error)
- func GetKeysWithMaxKeys(svc *s3.S3, bucket string, maxkeys int64) (*s3.ListObjectsOutput, []string, error)
- func GetKeysWithMaxKeysAndMarker(svc *s3.S3, bucket string, maxkeys int64, marker string) ([]string, error)
- func GetLifecycle(svc *s3.S3, bucket string) (*s3.GetBucketLifecycleConfigurationOutput, error)
- func GetObj(svc *s3.S3, bucket string, key string) (*s3.GetObjectOutput, error)
- func GetObject(svc *s3.S3, bucket string, key string) (string, error)
- func GetObjectWithIfMatch(svc *s3.S3, bucket string, key string, condition string) (string, error)
- func GetObjectWithIfModifiedSince(svc *s3.S3, bucket string, key string, time time.Time) (string, error)
- func GetObjectWithIfNoneMatch(svc *s3.S3, bucket string, key string, condition string) (string, error)
- func GetObjectWithIfUnModifiedSince(svc *s3.S3, bucket string, key string, time time.Time) (string, error)
- func GetObjectWithRange(svc *s3.S3, bucket string, key string, range_value string) (*s3.GetObjectOutput, string, error)
- func GetObjects(svc *s3.S3, bucket string) (*s3.ListObjectsOutput, error)
- func GetPrefix() string
- func GetSetMetadata(metadata map[string]*string) map[string]*string
- func InitiateMultipartUpload(svc *s3.S3, bucket string, key string) (*s3.CreateMultipartUploadOutput, error)
- func ListBuckets(svc *s3.S3) ([]string, error)
- func ListObjects(svc *s3.S3, bucket string) ([]*s3.Object, error)
- func ListObjectsWithDelimeterAndPrefix(svc *s3.S3, bucket string, prefix string, delimiter string) (*s3.ListObjectsOutput, []string, []string, error)
- func ListObjectsWithDelimiter(svc *s3.S3, bucket string, delimiter string) (*s3.ListObjectsOutput, []string, []string, error)
- func ListObjectsWithPrefix(svc *s3.S3, bucket string, prefix string) (*s3.ListObjectsOutput, []string, []string, error)
- func Listparts(svc *s3.S3, bucket string, key string, uploadid string) (*s3.ListPartsOutput, error)
- func LoadConfig() error
- func PutObjectToBucket(svc *s3.S3, bucket string, key string, content string) error
- func PutObjectWithIfMatch(svc *s3.S3, bucket string, key string, content string, tag string) error
- func PutObjectWithIfNoneMatch(svc *s3.S3, bucket string, key string, content string, tag string) error
- func ReadSSECEcrypted(svc *s3.S3, bucket string, key string, sse []string) (string, error)
- func SSEKMSCustomerWrite(svc *s3.S3, filesize int) (string, string, error)
- func SSEKMSkeyIdCustomerWrite(svc *s3.S3, filesize int) (string, string, error)
- func SetACL(svc *s3.S3, bucket string, acl string) (*s3.PutBucketAclOutput, error)
- func SetLifecycle(svc *s3.S3, bucket, id, status, md5 string) (*s3.PutBucketLifecycleConfigurationOutput, error)
- func SetupBucketWithHeader(svc *s3.S3, bucket string, headers map[string]string) error
- func SetupObjectWithHeader(svc *s3.S3, bucket string, key string, content string, ...) error
- func SetupRawRequest(proto, method, url, body string) (*http.Request, io.ReadSeeker)
- func SetupRequest(serviceName, region, body string) (*http.Request, io.ReadSeeker)
- func SetupSigner(creds *credentials.Credentials) v4.Signer
- func String(length int) string
- func StringWithCharset(length int, charset string) string
- func UploadCopyPart(svc *s3.S3, bucket string, key string, source string, uploadid string, ...) (*s3.UploadPartCopyOutput, error)
- func Uploadpart(svc *s3.S3, bucket string, key string, uploadid string, content string, ...) (*s3.UploadPartOutput, error)
- func WithIfMatch(conditions ...string) request.Option
- func WithIfNoneMatch(conditions ...string) request.Option
- func WriteSSECEcrypted(svc *s3.S3, bucket string, key string, content string, sse []string) error
- func WriteSSEKMS(svc *s3.S3, bucket string, key string, content string, sse string) error
- func WriteSSEKMSkeyId(svc *s3.S3, bucket string, key string, content string, sse string, ...) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Creds = credentials.NewStaticCredentials(viper.GetString("s3main.access_key"), viper.GetString("s3main.access_secret"), "")
Functions ¶
func AbortMultiPartUpload ¶
func CompleteMultiUpload ¶
func CreateBucketWithHeader ¶
func DeletePrefixedBuckets ¶
func GetBucketName ¶
func GetBucketName() string
func GetKeysWithMarker ¶
func GetKeysWithMaxKeys ¶
func GetLifecycle ¶
func GetObjectWithIfMatch ¶
func GetObjectWithRange ¶
func GetObjects ¶
func InitiateMultipartUpload ¶
func ListObjectsWithPrefix ¶
func LoadConfig ¶
func LoadConfig() error
func PutObjectToBucket ¶
func PutObjectWithIfMatch ¶
func ReadSSECEcrypted ¶
func SSEKMSCustomerWrite ¶
func SetLifecycle ¶
func SetupBucketWithHeader ¶
func SetupObjectWithHeader ¶
func SetupRawRequest ¶
func SetupRawRequest(proto, method, url, body string) (*http.Request, io.ReadSeeker)
func SetupRequest ¶
func SetupRequest(serviceName, region, body string) (*http.Request, io.ReadSeeker)
func SetupSigner ¶
func SetupSigner(creds *credentials.Credentials) v4.Signer
func StringWithCharset ¶
func UploadCopyPart ¶
func Uploadpart ¶
func WithIfMatch ¶
func WithIfNoneMatch ¶
func WriteSSECEcrypted ¶
func WriteSSEKMS ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.