aws

package
v0.0.0-...-cad48ee Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ACLPrivate           = acl("private")
	ACLPublicRead        = acl("public-read")
	ACLPublicReadWrite   = acl("public-read-write")
	ACLExecRead          = acl("aws-exec-read")
	ACLAuthenticatedRead = acl("authenticated-read")
)
View Source
const (
	ErrorCodeFileError    = ErrorCode("file error")
	ErrorCodeNetworkError = ErrorCode("network error")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AWS

type AWS interface {
	S3Upload(ipt S3UploadInput) (url string, err Error)
}

func NewAWS

func NewAWS(accessKey, secretKey string) AWS

type Error

type Error interface {
	Code() ErrorCode
	Error() string
	OrgErr() error
}

type ErrorCode

type ErrorCode string

func (ErrorCode) String

func (c ErrorCode) String() string

type S3UploadInput

type S3UploadInput struct {
	Bucket string
	Region string
	Path   string
	File   string
	ACL    acl
}

Jump to

Keyboard shortcuts

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