Documentation
¶
Index ¶
- Constants
- func GetFileAttributes(ctx context.Context, params *DownloadParams, region string, slice string, ...) (*blob.Attributes, error)
- func NewDownloadReader(ctx context.Context, params *DownloadParams, region string, slice string, ...) (*blob.Reader, error)
- func NewSliceURL(params *UploadParams, slice string) string
- func NewUploadWriter(ctx context.Context, params *UploadParams, region string, slice string, ...) (*blob.Writer, error)
- type Credentials
- type DownloadParams
- type Path
- type UploadParams
Constants ¶
View Source
const Provider = "aws"
Variables ¶
This section is empty.
Functions ¶
func GetFileAttributes ¶ added in v1.8.0
func GetFileAttributes(ctx context.Context, params *DownloadParams, region string, slice string, transport http.RoundTripper) (*blob.Attributes, error)
func NewDownloadReader ¶ added in v1.4.0
func NewDownloadReader(ctx context.Context, params *DownloadParams, region string, slice string, transport http.RoundTripper) (*blob.Reader, error)
func NewSliceURL ¶
func NewSliceURL(params *UploadParams, slice string) string
func NewUploadWriter ¶
func NewUploadWriter(ctx context.Context, params *UploadParams, region string, slice string, transport http.RoundTripper) (*blob.Writer, error)
Types ¶
type Credentials ¶
type DownloadParams ¶ added in v1.4.0
type DownloadParams struct { Credentials Credentials `json:"credentials"` Path Path `json:"s3Path"` }
func (*DownloadParams) DestinationURL ¶ added in v1.6.0
func (p *DownloadParams) DestinationURL() (string, error)
type UploadParams ¶
type UploadParams struct { Path Credentials Credentials `json:"credentials"` ACL s3types.ObjectCannedACL `json:"acl"` Encryption s3types.ServerSideEncryption `json:"x-amz-server-side-encryption"` }
Click to show internal directories.
Click to hide internal directories.