Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
// Endpoint of the s3 blobstore
S3Endpoint string `mapstructure:"s3.endpoint"`
// Region of the s3 blobstore
S3Region string `mapstructure:"s3.region"`
// Bucket of the s3 blobstore
S3Bucket string `mapstructure:"s3.bucket"`
// Access key for the s3 blobstore
S3AccessKey string `mapstructure:"s3.access_key"`
// Secret key for the s3 blobstore
S3SecretKey string `mapstructure:"s3.secret_key"`
// disable sending content sha256
DisableContentSha256 bool `mapstructure:"s3.disable_content_sha254"`
// disable multipart uploads
DisableMultipart bool `mapstructure:"s3.disable_multipart"`
// enable sending content md5, defaults to true if unset
SendContentMd5 bool `mapstructure:"s3.send_content_md5"`
// use concurrent stream parts
ConcurrentStreamParts bool `mapstructure:"s3.concurrent_stream_parts"`
// number of concurrent uploads
NumThreads uint `mapstructure:"s3.num_threads"`
// part size for concurrent uploads
PartSize uint64 `mapstructure:"s3.part_size"`
}
Options defines the available options for this package.
func (*Options) S3ConfigComplete ¶
S3ConfigComplete return true if all required s3 fields are set
Click to show internal directories.
Click to hide internal directories.