Documentation ¶
Index ¶
- Constants
- func BadRequest(ctx context.Context, msg string) s3cli.ErrorResponse
- func Conflict(ctx context.Context, msg string) s3cli.ErrorResponse
- func Forbidden(ctx context.Context, msg string) s3cli.ErrorResponse
- func InitHandlers(app *appsrv.Application)
- func InvalidStatus(ctx context.Context, msg string) s3cli.ErrorResponse
- func NotFound(ctx context.Context, msg string) s3cli.ErrorResponse
- func NotImplemented(ctx context.Context, msg string) s3cli.ErrorResponse
- func NotSupported(ctx context.Context, msg string) s3cli.ErrorResponse
- func OutOfRangeError(ctx context.Context, msg string) s3cli.ErrorResponse
- func SendError(ctx context.Context, w http.ResponseWriter, resp s3cli.ErrorResponse)
- func SendGeneralError(ctx context.Context, w http.ResponseWriter, err error)
- func ServerError(ctx context.Context, msg string) s3cli.ErrorResponse
- func ServerTimeout(ctx context.Context, msg string) s3cli.ErrorResponse
- func Unauthenticated(ctx context.Context, msg string) s3cli.ErrorResponse
- func Unauthorized(ctx context.Context, msg string) s3cli.ErrorResponse
- type SMultiparts
- type SObjectRequest
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 InitHandlers ¶
func InitHandlers(app *appsrv.Application)
func InvalidStatus ¶
func InvalidStatus(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 ¶
func (SObjectRequest) Validate ¶
func (o SObjectRequest) Validate() error
Click to show internal directories.
Click to hide internal directories.