Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage implements (github.com/gomods/athens/pkg/storage).Saver and also provides a function to fetch the location of a module Storage uses amazon aws go SDK which expects these env variables - AWS_REGION - region for this storage, e.g 'us-west-2' - AWS_ACCESS_KEY_ID - - AWS_SECRET_ACCESS_KEY - - AWS_SESSION_TOKEN - [optional] For information how to get your keyId and access key turn to official aws docs: https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/setting-up.html
func NewWithUploader ¶
func NewWithUploader(bucketName string, uploader s3manageriface.UploaderAPI) (*Storage, error)
NewWithUploader creates a new AWS S3 CDN saver with provided uploader
Click to show internal directories.
Click to hide internal directories.