Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertS3Error ¶
ConvertS3Error wraps S3 error and returns trace equivalent
Types ¶
type Config ¶
type Config struct { // Bucket is S3 bucket name Bucket string // Region is S3 bucket region Region string // Path is an optional bucket path Path string // Host is an optional third party S3 compatible endpoint Endpoint string // Insecure is an optional switch to opt out of https connections Insecure bool //DisableServerSideEncryption is an optional switch to opt out of SSE in case the provider does not support it DisableServerSideEncryption bool // Session is an optional existing AWS client session Session *awssession.Session // Credentials if supplied are used in tests Credentials *credentials.Credentials }
Config is handler configuration
func (*Config) CheckAndSetDefaults ¶
CheckAndSetDefaults checks and sets defaults
type Handler ¶
type Handler struct { // Config is handler configuration Config // Entry is a logging entry *log.Entry // contains filtered or unexported fields }
Handler handles upload and downloads to S3 object storage
Click to show internal directories.
Click to hide internal directories.