s3api

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

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 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 WithDebug

func WithDebug() Option

WithDebug sets debug output

func WithHealth

func WithHealth(health string) Option

WithHealth sets up a GET health endpoint

func WithQuiet

func WithQuiet() Option

WithQuiet silences default logging output

func WithReadOnly

func WithReadOnly() Option

func WithTLS

func WithTLS(cert tls.Certificate) Option

WithTLS sets TLS Credentials

type S3AdminRouter

type S3AdminRouter struct{}

func (*S3AdminRouter) Init

func (ar *S3AdminRouter) Init(app *fiber.App, be backend.Backend, iam auth.IAMService, logger s3log.AuditLogger)

type S3AdminServer

type S3AdminServer struct {
	// contains filtered or unexported fields
}

func NewAdminServer

func NewAdminServer(app *fiber.App, 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)

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, debug bool, readonly bool)

type S3ApiServer

type S3ApiServer struct {
	// contains filtered or unexported fields
}

func New

func New(
	app *fiber.App,
	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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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