s3ng

package
v2.19.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(m map[string]interface{}, stream events.Stream) (storage.FS, error)

New returns an implementation to of the storage.FS interface that talk to a local filesystem.

Types

type Option

type Option func(o *Options)

Option defines a single option function.

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

func (o *Options) S3ConfigComplete() bool

S3ConfigComplete return true if all required s3 fields are set

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL