Documentation
¶
Index ¶
- Constants
- func RegisterRoutes(router *web.Router, context ApiContext)
- type ApiContext
- func (c *ApiContext) BasicAuthorizeMiddleware(rw web.ResponseWriter, req *web.Request, next web.NextMiddlewareFunc)
- func (c *ApiContext) RemoveBlob(rw web.ResponseWriter, req *web.Request)
- func (c *ApiContext) RetrieveBlob(rw web.ResponseWriter, req *web.Request)
- func (c *ApiContext) StoreBlob(rw web.ResponseWriter, req *web.Request)
Constants ¶
View Source
const ( ErrMsgKeyNotExist = "The specified key does not exist." ErrMsgBlobNotSpecified = "http: no such file" URLblobs = "/blobs/" )
Variables ¶
This section is empty.
Functions ¶
func RegisterRoutes ¶
func RegisterRoutes(router *web.Router, context ApiContext)
Types ¶
type ApiContext ¶
type ApiContext struct {
WrappedMinio *miniowrapper.Wrapper
}
func NewApiContext ¶
func NewApiContext(wrapper *miniowrapper.Wrapper) *ApiContext
func (*ApiContext) BasicAuthorizeMiddleware ¶
func (c *ApiContext) BasicAuthorizeMiddleware(rw web.ResponseWriter, req *web.Request, next web.NextMiddlewareFunc)
func (*ApiContext) RemoveBlob ¶
func (c *ApiContext) RemoveBlob(rw web.ResponseWriter, req *web.Request)
func (*ApiContext) RetrieveBlob ¶
func (c *ApiContext) RetrieveBlob(rw web.ResponseWriter, req *web.Request)
func (*ApiContext) StoreBlob ¶
func (c *ApiContext) StoreBlob(rw web.ResponseWriter, req *web.Request)
Click to show internal directories.
Click to hide internal directories.