Documentation ¶
Overview ¶
#### References: - https://docs.aws.amazon.com/code-samples/latest/catalog/go-s3-s3_copy_object.go.html
Index ¶
- Constants
- func ConfigDemo() string
- type S3Client
- func (client *S3Client) Copy(ctx context.Context, source, target string, opts ...request.Option) (err error)
- func (client *S3Client) Delete(ctx context.Context, source string, opts ...request.Option) (err error)
- func (client *S3Client) GetSts(ctx context.Context, sessionName string) (result *StsResult, err error)
- func (client *S3Client) StsUploadLocal(ctx context.Context, sessionName, source, target string) (link string, err error)
- func (client *S3Client) Upload(ctx context.Context, source, target string) (link string, err error)
- func (client *S3Client) UploadDir(ctx context.Context, source, target string, conc uint) (link string, err error)
- func (client *S3Client) UploadLocal(ctx context.Context, source, target string) (link string, err error)
- type S3Config
- type StsResult
Constants ¶
View Source
const (
AWS_Domain = "amazonaws.com"
)
Variables ¶
This section is empty.
Functions ¶
func ConfigDemo ¶
func ConfigDemo() string
Types ¶
type S3Client ¶
func NewS3Client ¶
func (*S3Client) StsUploadLocal ¶
type S3Config ¶
type S3Config struct { AccessKeyId string `mapstructure:"access_key_id"` SecretAccessKey string `mapstructure:"access_secrete_key"` Region string `mapstructure:"region"` Bucket string `mapstructure:"bucket"` AssumeArn string `mapstructure:"assume_arn"` // contains filtered or unexported fields }
func NewS3Config ¶
Click to show internal directories.
Click to hide internal directories.