Documentation
¶
Index ¶
- Constants
- Variables
- 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) ObjectPostHandler(writer http.ResponseWriter, request *http.Request)
- func (server *ProxyServer) ObjectPutHandler(writer http.ResponseWriter, request *http.Request)
- func (server *ProxyServer) OptionsHandler(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 ¶
View Source
var DEFAULT_CONSTRAINTS = map[string]interface{}{ "max_file_size": MAX_FILE_SIZE, "max_meta_name_length": MAX_META_NAME_LENGTH, "max_meta_value_length": MAX_META_VALUE_LENGTH, "max_meta_count": MAX_META_COUNT, "max_meta_overall_size": MAX_META_OVERALL_SIZE, "max_header_size": MAX_HEADER_SIZE, "max_object_name_length": MAX_OBJECT_NAME_LENGTH, "container_listing_limit": CONTAINER_LISTING_LIMIT, "account_listing_limit": ACCOUNT_LISTING_LIMIT, "max_account_name_length": MAX_ACCOUNT_NAME_LENGTH, "max_container_name_length": MAX_CONTAINER_NAME_LENGTH, "extra_header_count": EXTRA_HEADER_COUNT, }
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) ObjectPostHandler ¶
func (server *ProxyServer) ObjectPostHandler(writer http.ResponseWriter, request *http.Request)
func (*ProxyServer) ObjectPutHandler ¶
func (server *ProxyServer) ObjectPutHandler(writer http.ResponseWriter, request *http.Request)
func (*ProxyServer) OptionsHandler ¶
func (server *ProxyServer) OptionsHandler(writer http.ResponseWriter, request *http.Request)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.