Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateBucket ¶
func NewS3Client ¶
NewS3Client creates new s3 client using default config along with defined env variables
Types ¶
type Config ¶
type Config struct { S3EndpointURL string `envconfig:"S3_ENDPOINT_URL" default:"http://cloudserver-front:8000"` Region string `envconfig:"S3_REGION" default:"us-east-1"` S3Bucket string `envconfig:"S3_BUCKET" default:"test"` AwsAccessKeyID string `envconfig:"AWS_ACCESS_KEY_ID" default:"accessKey1"` AwsSecretAccessKey string `envconfig:"AWS_SECRET_ACCESS_KEY" default:"verySecretKey1"` }
Click to show internal directories.
Click to hide internal directories.