Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminOpt ¶
type AdminOpt func(s *S3AdminServer)
func WithAdminDebug ¶ added in v1.0.17
func WithAdminDebug() AdminOpt
WithAdminDebug enables the debug logging
func WithAdminQuiet ¶ added in v1.0.17
func WithAdminQuiet() AdminOpt
WithQuiet silences default logging output
func WithAdminSrvTLS ¶
func WithAdminSrvTLS(cert tls.Certificate) AdminOpt
type Option ¶
type Option func(*S3ApiServer)
Option sets various options for New()
func WithAdminServer ¶
func WithAdminServer() Option
WithAdminServer runs admin endpoints with the gateway in the same network
func WithHostStyle ¶ added in v1.0.14
WithHostStyle enabled host-style bucket addressing on the server
func WithKeepAlive ¶ added in v1.0.19
func WithKeepAlive() Option
WithKeepAlive enables the server keep alive
func WithReadOnly ¶
func WithReadOnly() Option
type S3AdminRouter ¶
type S3AdminRouter struct{}
func (*S3AdminRouter) Init ¶
func (ar *S3AdminRouter) Init(app *fiber.App, be backend.Backend, iam auth.IAMService, logger s3log.AuditLogger, root middlewares.RootUserConfig, region string, debug bool)
type S3AdminServer ¶
type S3AdminServer struct {
// contains filtered or unexported fields
}
func NewAdminServer ¶
func NewAdminServer(be backend.Backend, root middlewares.RootUserConfig, port, region string, iam auth.IAMService, l s3log.AuditLogger, opts ...AdminOpt) *S3AdminServer
func (*S3AdminServer) Serve ¶
func (sa *S3AdminServer) Serve() (err error)
func (S3AdminServer) Shutdown ¶ added in v1.0.19
func (sa S3AdminServer) Shutdown() error
ShutDown gracefully shuts down the server with a context timeout
type S3ApiRouter ¶
type S3ApiRouter struct {
WithAdmSrv bool
}
func (*S3ApiRouter) Init ¶
func (sa *S3ApiRouter) Init(app *fiber.App, be backend.Backend, iam auth.IAMService, logger s3log.AuditLogger, aLogger s3log.AuditLogger, evs s3event.S3EventSender, mm metrics.Manager, readonly bool, region string, root middlewares.RootUserConfig)
type S3ApiServer ¶
type S3ApiServer struct {
// contains filtered or unexported fields
}
func New ¶
func New( be backend.Backend, root middlewares.RootUserConfig, port, region string, iam auth.IAMService, l s3log.AuditLogger, adminLogger s3log.AuditLogger, evs s3event.S3EventSender, mm metrics.Manager, opts ...Option, ) (*S3ApiServer, error)
func (*S3ApiServer) Serve ¶
func (sa *S3ApiServer) Serve() (err error)
func (*S3ApiServer) ShutDown ¶ added in v1.0.19
func (sa *S3ApiServer) ShutDown() error
ShutDown gracefully shuts down the server with a context timeout
Directories
¶
| Path | Synopsis |
|---|---|
|
code modified from golang std library src/internal/filepathlite/path.go to support path separator '/' for all platforms.
|
code modified from golang std library src/internal/filepathlite/path.go to support path separator '/' for all platforms. |
Click to show internal directories.
Click to hide internal directories.