handlers

package
v0.3.11-8 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: Apache-2.0 Imports: 25 Imported by: 1

Documentation

Index

Constants

View Source
const (
	MIN_PART_BYTES = 1000 * 1000 * 10 // 100 MB
	MAX_PART_COUNT = 10000
)
View Source
const (
	S3_OBJECT_REQUEST = appctx.AppContextKey("S3_OBJECT_REQUEST")
)

Variables

This section is empty.

Functions

func BadRequest

func BadRequest(ctx context.Context, msg string) s3cli.ErrorResponse

func Conflict

func Conflict(ctx context.Context, msg string) s3cli.ErrorResponse

func Forbidden

func Forbidden(ctx context.Context, msg string) s3cli.ErrorResponse

func InitHandlers

func InitHandlers(app *appsrv.Application)

func InvalidStatus

func InvalidStatus(ctx context.Context, msg string) s3cli.ErrorResponse

func NotFound

func NotFound(ctx context.Context, msg string) s3cli.ErrorResponse

func NotImplemented

func NotImplemented(ctx context.Context, msg string) s3cli.ErrorResponse

func NotSupported

func NotSupported(ctx context.Context, msg string) s3cli.ErrorResponse

func OutOfRangeError

func OutOfRangeError(ctx context.Context, msg string) s3cli.ErrorResponse

func SendError

func SendError(ctx context.Context, w http.ResponseWriter, resp s3cli.ErrorResponse)

func SendGeneralError

func SendGeneralError(ctx context.Context, w http.ResponseWriter, err error)

func ServerError

func ServerError(ctx context.Context, msg string) s3cli.ErrorResponse

func ServerTimeout

func ServerTimeout(ctx context.Context, msg string) s3cli.ErrorResponse

func Unauthenticated

func Unauthenticated(ctx context.Context, msg string) s3cli.ErrorResponse

func Unauthorized

func Unauthorized(ctx context.Context, msg string) s3cli.ErrorResponse

Types

type SMultiparts

type SMultiparts []s3cli.CompletePart

func (SMultiparts) Len

func (a SMultiparts) Len() int

func (SMultiparts) Less

func (a SMultiparts) Less(i, j int) bool

func (SMultiparts) Swap

func (a SMultiparts) Swap(i, j int)

type SObjectRequest

type SObjectRequest struct {
	VirtualHost bool
	Bucket      string
	Key         string
}

func (SObjectRequest) Validate

func (o SObjectRequest) Validate() error

Jump to

Keyboard shortcuts

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