s3

package
v0.18.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const Provider = "aws"

Variables

This section is empty.

Functions

func NewSliceUrl added in v0.14.0

func NewSliceUrl(params *UploadParams, slice string) string

func NewUploadWriter added in v0.14.0

func NewUploadWriter(ctx context.Context, params *UploadParams, region string, slice string, transport http.RoundTripper) (*blob.Writer, error)

Types

type Credentials added in v0.14.0

type Credentials struct {
	AccessKeyId     string       `json:"AccessKeyId"`
	SecretAccessKey string       `json:"SecretAccessKey"`
	SessionToken    string       `json:"SessionToken"`
	Expiration      iso8601.Time `json:"Expiration"`
}

type UploadParams

type UploadParams struct {
	Key         string                       `json:"key"`
	Bucket      string                       `json:"bucket"`
	Credentials Credentials                  `json:"credentials"`
	Acl         s3types.ObjectCannedACL      `json:"acl"`
	Encryption  s3types.ServerSideEncryption `json:"x-amz-server-side-encryption"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL