api

package
v0.0.0-...-976cb69 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

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