bucket

package
v0.0.0-...-8018a7e Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bucket

type Bucket interface {
	Register(mux *mux.Router)
	New(s3Handler *gcs_handler.Handler) *Handler
	ListHandle(writer http.ResponseWriter, request *http.Request)
	ListParseInput(request *http.Request) (*s3.ListObjectsV2Input, error)
	ACLHandle(writer http.ResponseWriter, request *http.Request)
	ACLParseInput(r *http.Request) (*s3.GetBucketAclInput, error)
}

Interface for bucket functions

type Handler

type Handler struct {
	*gcs_handler.Handler
}

func New

func New(gcsHandler *gcs_handler.Handler) *Handler

func (*Handler) ACLHandle

func (wrapper *Handler) ACLHandle(writer http.ResponseWriter, request *http.Request)

func (*Handler) ACLParseInput

func (wrapper *Handler) ACLParseInput(r *http.Request) (*s3.GetBucketAclInput, error)

func (*Handler) ListHandle

func (wrapper *Handler) ListHandle(writer http.ResponseWriter, request *http.Request)

func (*Handler) ListParseInput

func (wrapper *Handler) ListParseInput(request *http.Request) (*s3.ListObjectsV2Input, error)

func (*Handler) Register

func (wrapper *Handler) Register(mux *mux.Router)

Register HTTP patterns to functions

Jump to

Keyboard shortcuts

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