Documentation ¶
Index ¶
- Constants
- func CheckContainerPut(req *http.Request, containerName string) (int, string)
- func CheckMetadata(req *http.Request, targetType string) (int, string)
- func CheckObjPut(req *http.Request, objectName string) (int, string)
- func GetServer(serverconf conf.Config, flags *flag.FlagSet) (string, int, srv.Server, srv.LowLevelLogger, error)
- type ProxyServer
- func (server *ProxyServer) AccountDeleteHandler(writer http.ResponseWriter, request *http.Request)
- func (server *ProxyServer) AccountGetHandler(writer http.ResponseWriter, request *http.Request)
- func (server *ProxyServer) AccountHeadHandler(writer http.ResponseWriter, request *http.Request)
- func (server *ProxyServer) AccountPostHandler(writer http.ResponseWriter, request *http.Request)
- func (server *ProxyServer) AccountPutHandler(writer http.ResponseWriter, request *http.Request)
- func (server *ProxyServer) ContainerDeleteHandler(writer http.ResponseWriter, request *http.Request)
- func (server *ProxyServer) ContainerGetHandler(writer http.ResponseWriter, request *http.Request)
- func (server *ProxyServer) ContainerHeadHandler(writer http.ResponseWriter, request *http.Request)
- func (server *ProxyServer) ContainerPostHandler(writer http.ResponseWriter, request *http.Request)
- func (server *ProxyServer) ContainerPutHandler(writer http.ResponseWriter, request *http.Request)
- func (server *ProxyServer) Finalize()
- func (server *ProxyServer) GetHandler(config conf.Config) http.Handler
- func (server *ProxyServer) ObjectDeleteHandler(writer http.ResponseWriter, request *http.Request)
- func (server *ProxyServer) ObjectGetHandler(writer http.ResponseWriter, request *http.Request)
- func (server *ProxyServer) ObjectHeadHandler(writer http.ResponseWriter, request *http.Request)
- func (server *ProxyServer) ObjectPutHandler(writer http.ResponseWriter, request *http.Request)
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 ¶
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) AccountPostHandler ¶
func (server *ProxyServer) AccountPostHandler(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) ContainerPostHandler ¶
func (server *ProxyServer) ContainerPostHandler(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)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.