package
0.13.1-beta1
Repository: https://github.com/donewscode/core.git
Documentation: pkg.go.dev

# Functions

NewManager creates a new S3 manager.
Providers returns a set of dependencies providers related to S3.
WithAutoExtension is an option that auto splice extension, default is true.
WithHTTPClient is an option that replaces the default http client.
WithKeyer is an option that changes the path of the uploaded file.
WithLocationFunc is an option that decides how url is mapped to S3 bucket and path.
WithManagerConstructor is a provider option to override how s3 manager are constructed.
WithPathPrefix is an option that changes the path prefix of uploaded file.
WithReload toggles whether the factory should reload cached instances upon OnReload event.
WithTracer is an option that add opentracing.Tracer via the hook of S3 client.

# Structs

Manager manages S3 uploads.
ManagerArgs are arguments for constructing the s3 manager.
ManagerConfig contains a various configurations for Manager.
S3Config contains credentials of S3 server.

# Interfaces

Maker is an interface for *Factory.
Uploader models UploadService.

# Type aliases

ManagerConstructor constructs a manager.
ManagerOptionFunc is the type of functional options to alter ManagerConfig.
ProvidersOptionFunc is the type of functional providersOption for Providers.