Documentation ¶
Index ¶
- func MustNew(bucketName string, objectKeyPrefix string, optFns ...func(*Options)) http.Handler
- func New(bucketName string, objectKeyPrefix string, optFns ...func(*Options)) (http.Handler, error)
- func WithAccessLogger() func(*Options)
- func WithBaseURL(baseURL string) func(*Options)
- func WithBasicAuth(user, pass string) func(*Options)
- func WithGoogleOIDC(clientID string, clientSecret string, sessionEncryptKey []byte, ...) func(*Options)
- func WithListObjectsParPage(l int32) func(*Options)
- func WithLogger(l LoggerFunc) func(*Options)
- func WithRecover() func(*Options)
- type LoggerFunc
- type Options
- type S3Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithAccessLogger ¶
func WithAccessLogger() func(*Options)
func WithBaseURL ¶
func WithBasicAuth ¶
func WithGoogleOIDC ¶
func WithListObjectsParPage ¶ added in v0.2.0
func WithLogger ¶
func WithLogger(l LoggerFunc) func(*Options)
func WithRecover ¶
func WithRecover() func(*Options)
Types ¶
type LoggerFunc ¶
type LoggerFunc func(level string, v ...interface{})
type S3Client ¶
type S3Client interface { manager.DownloadAPIClient ListObjectsV2(ctx context.Context, params *s3.ListObjectsV2Input, optFns ...func(*s3.Options)) (*s3.ListObjectsV2Output, error) HeadObject(ctx context.Context, params *s3.HeadObjectInput, optFns ...func(*s3.Options)) (*s3.HeadObjectOutput, error) }
Click to show internal directories.
Click to hide internal directories.