handlers

package
v0.0.0-...-c0cc0bc Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0, MIT Imports: 16 Imported by: 0

Documentation

Overview

Package handlers is an implementation of Handlerser

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handlers

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

func NewHandlers

func NewHandlers(
	acksvc accesskey.Service, sigsvc sign.Service, objsvc object.Service,
	options ...Option) (handlers *Handlers)

func (*Handlers) AbortMultipartUploadHandler

func (h *Handlers) AbortMultipartUploadHandler(w http.ResponseWriter, r *http.Request)

func (*Handlers) CompleteMultipartUploadHandler

func (h *Handlers) CompleteMultipartUploadHandler(w http.ResponseWriter, r *http.Request)

func (*Handlers) CopyObjectHandler

func (h *Handlers) CopyObjectHandler(w http.ResponseWriter, r *http.Request)

CopyObjectHandler .

func (*Handlers) Cors

func (h *Handlers) Cors(handler http.Handler) http.Handler

func (*Handlers) CreateBucketHandler

func (h *Handlers) CreateBucketHandler(w http.ResponseWriter, r *http.Request)

func (*Handlers) CreateMultipartUploadHandler

func (h *Handlers) CreateMultipartUploadHandler(w http.ResponseWriter, r *http.Request)

func (*Handlers) DeleteBucketHandler

func (h *Handlers) DeleteBucketHandler(w http.ResponseWriter, r *http.Request)

func (*Handlers) DeleteObjectHandler

func (h *Handlers) DeleteObjectHandler(w http.ResponseWriter, r *http.Request)

DeleteObjectHandler .

func (*Handlers) DeleteObjectsHandler

func (h *Handlers) DeleteObjectsHandler(w http.ResponseWriter, r *http.Request)

DeleteObjectsHandler .

func (*Handlers) GetBucketACLHandler

func (h *Handlers) GetBucketACLHandler(w http.ResponseWriter, r *http.Request)

func (*Handlers) GetObjectACLHandler

func (h *Handlers) GetObjectACLHandler(w http.ResponseWriter, r *http.Request)

GetObjectACLHandler - GET Object ACL

func (*Handlers) GetObjectHandler

func (h *Handlers) GetObjectHandler(w http.ResponseWriter, r *http.Request)

GetObjectHandler .

func (*Handlers) HeadBucketHandler

func (h *Handlers) HeadBucketHandler(w http.ResponseWriter, r *http.Request)

func (*Handlers) HeadObjectHandler

func (h *Handlers) HeadObjectHandler(w http.ResponseWriter, r *http.Request)

HeadObjectHandler .

func (*Handlers) ListBucketsHandler

func (h *Handlers) ListBucketsHandler(w http.ResponseWriter, r *http.Request)

func (*Handlers) ListObjectsHandler

func (h *Handlers) ListObjectsHandler(w http.ResponseWriter, r *http.Request)

ListObjectsHandler .

func (*Handlers) ListObjectsV2Handler

func (h *Handlers) ListObjectsV2Handler(w http.ResponseWriter, r *http.Request)

ListObjectsV2Handler .

func (*Handlers) Log

func (h *Handlers) Log(handler http.Handler) http.Handler

func (*Handlers) PutBucketACLHandler

func (h *Handlers) PutBucketACLHandler(w http.ResponseWriter, r *http.Request)

func (*Handlers) PutObjectHandler

func (h *Handlers) PutObjectHandler(w http.ResponseWriter, r *http.Request)

PutObjectHandler .

func (*Handlers) Sign

func (h *Handlers) Sign(handler http.Handler) http.Handler

func (*Handlers) UploadPartHandler

func (h *Handlers) UploadPartHandler(w http.ResponseWriter, r *http.Request)

type Handlerser

type Handlerser interface {
	Cors(handler http.Handler) http.Handler
	Sign(handler http.Handler) http.Handler
	Log(handler http.Handler) http.Handler

	CreateBucketHandler(w http.ResponseWriter, r *http.Request)
	HeadBucketHandler(w http.ResponseWriter, r *http.Request)
	DeleteBucketHandler(w http.ResponseWriter, r *http.Request)
	ListBucketsHandler(w http.ResponseWriter, r *http.Request)
	PutBucketACLHandler(w http.ResponseWriter, r *http.Request)
	GetBucketACLHandler(w http.ResponseWriter, r *http.Request)

	PutObjectHandler(w http.ResponseWriter, r *http.Request)
	CopyObjectHandler(w http.ResponseWriter, r *http.Request)
	HeadObjectHandler(w http.ResponseWriter, r *http.Request)
	GetObjectHandler(w http.ResponseWriter, r *http.Request)
	DeleteObjectHandler(w http.ResponseWriter, r *http.Request)
	DeleteObjectsHandler(w http.ResponseWriter, r *http.Request)
	ListObjectsHandler(w http.ResponseWriter, r *http.Request)
	ListObjectsV2Handler(w http.ResponseWriter, r *http.Request)
	GetObjectACLHandler(w http.ResponseWriter, r *http.Request)

	CreateMultipartUploadHandler(w http.ResponseWriter, r *http.Request)
	UploadPartHandler(w http.ResponseWriter, r *http.Request)
	AbortMultipartUploadHandler(w http.ResponseWriter, r *http.Request)
	CompleteMultipartUploadHandler(w http.ResponseWriter, r *http.Request)
}

type Option

type Option func(handlers *Handlers)

func WithHeaders

func WithHeaders(headers map[string][]string) Option

Jump to

Keyboard shortcuts

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