proxyserver

package
v0.0.0-...-1ca2a29 Latest Latest
Warning

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

Go to latest
Published: May 23, 2017 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MAX_FILE_SIZE             = int64(5368709122)
	MAX_META_NAME_LENGTH      = 128
	MAX_META_VALUE_LENGTH     = 256
	MAX_META_COUNT            = 90
	MAX_META_OVERALL_SIZE     = 4096
	MAX_HEADER_SIZE           = 8192
	MAX_OBJECT_NAME_LENGTH    = 1024
	CONTAINER_LISTING_LIMIT   = 10000
	ACCOUNT_LISTING_LIMIT     = 10000
	MAX_ACCOUNT_NAME_LENGTH   = 256
	MAX_CONTAINER_NAME_LENGTH = 256
	EXTRA_HEADER_COUNT        = 0
)

Variables

This section is empty.

Functions

func CheckContainerPut

func CheckContainerPut(req *http.Request, containerName string) (int, string)

func CheckMetadata

func CheckMetadata(req *http.Request, targetType string) (int, string)

func CheckObjPut

func CheckObjPut(req *http.Request, objectName string) (int, string)

func GetServer

func GetServer(serverconf conf.Config, flags *flag.FlagSet) (string, int, srv.Server, srv.LowLevelLogger, error)

Types

type ProxyServer

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

func (*ProxyServer) AccountDeleteHandler

func (server *ProxyServer) AccountDeleteHandler(writer http.ResponseWriter, request *http.Request)

func (*ProxyServer) AccountGetHandler

func (server *ProxyServer) AccountGetHandler(writer http.ResponseWriter, request *http.Request)

func (*ProxyServer) AccountHeadHandler

func (server *ProxyServer) AccountHeadHandler(writer http.ResponseWriter, request *http.Request)

func (*ProxyServer) AccountPutHandler

func (server *ProxyServer) AccountPutHandler(writer http.ResponseWriter, request *http.Request)

func (*ProxyServer) ContainerDeleteHandler

func (server *ProxyServer) ContainerDeleteHandler(writer http.ResponseWriter, request *http.Request)

func (*ProxyServer) ContainerGetHandler

func (server *ProxyServer) ContainerGetHandler(writer http.ResponseWriter, request *http.Request)

func (*ProxyServer) ContainerHeadHandler

func (server *ProxyServer) ContainerHeadHandler(writer http.ResponseWriter, request *http.Request)

func (*ProxyServer) ContainerPutHandler

func (server *ProxyServer) ContainerPutHandler(writer http.ResponseWriter, request *http.Request)

func (*ProxyServer) Finalize

func (server *ProxyServer) Finalize()

func (*ProxyServer) GetHandler

func (server *ProxyServer) GetHandler(config conf.Config) http.Handler

func (*ProxyServer) ObjectDeleteHandler

func (server *ProxyServer) ObjectDeleteHandler(writer http.ResponseWriter, request *http.Request)

func (*ProxyServer) ObjectGetHandler

func (server *ProxyServer) ObjectGetHandler(writer http.ResponseWriter, request *http.Request)

func (*ProxyServer) ObjectHeadHandler

func (server *ProxyServer) ObjectHeadHandler(writer http.ResponseWriter, request *http.Request)

func (*ProxyServer) ObjectPutHandler

func (server *ProxyServer) ObjectPutHandler(writer http.ResponseWriter, request *http.Request)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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