package s3
import "github.com/docker/distribution/registry/storage/driver/s3-aws"
Package s3 provides a storagedriver.StorageDriver implementation to store blobs in Amazon S3 cloud storage.
This package leverages the official aws client library for interfacing with S3.
Because S3 is a key, value store the Stat call does not support last modification time for directories (directories are an abstraction for key, value stores)
Keep in mind that S3 guarantees only read-after-write consistency for new objects, but no read-after-update or list-after-write consistency.
Index ¶
- type Driver
- func FromParameters(parameters map[string]interface{}) (*Driver, error)
- func New(params DriverParameters) (*Driver, error)
- func (d *Driver) S3BucketKey(path string) string
- type DriverParameters
Types ¶
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
Driver is a storagedriver.StorageDriver implementation backed by Amazon S3 Objects are stored at absolute keys in the provided bucket.
func FromParameters ¶
FromParameters constructs a new Driver with a given parameters map Required parameters: - accesskey - secretkey - region - bucket - encrypt
func New ¶
func New(params DriverParameters) (*Driver, error)
New constructs a new Driver with the given AWS credentials, region, encryption flag, and bucketName
func (*Driver) S3BucketKey ¶
S3BucketKey returns the s3 bucket key for the given storage driver path.
type DriverParameters ¶
type DriverParameters struct { AccessKey string SecretKey string Bucket string Region string RegionEndpoint string Encrypt bool KeyID string Secure bool ChunkSize int64 RootDirectory string StorageClass string UserAgent string }
DriverParameters A struct that encapsulates all of the driver parameters after all values have been set
Source Files ¶
- Version
- v2.5.2+incompatible
- Published
- Jul 20, 2017
- Platform
- js/wasm
- Imports
- 23 packages
- Last checked
- 8 hours ago –
Tools for package owners.