Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddProvider ¶
func AddProvider(provider credentials.Provider) buildFunc
AddProvider adds a credential provider to the s3 client
func NewDefault ¶
func NewDefault(bucket string, modifiers ...buildFunc) gin.HandlerFunc
NewDefault instanciates a new S3 handler with the default S3 client
func WithLogger ¶
func WithLogger(logger Logger) buildFunc
WithLogger sets the logger for the handler
Types ¶
type Client ¶
type Client interface {
GetObject(*s3.GetObjectInput) (*s3.GetObjectOutput, error)
}
Client defines the methods of s3.S3 used by the middleware. It is provided as an interface to allow mocking for testing purposes
Click to show internal directories.
Click to hide internal directories.