api

package
v0.0.0-...-09c5177 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminAPI

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

func NewAdminAPI

func NewAdminAPI(adminUser string, adminPass string, store db.KVStore, logger *log.Logger) *AdminAPI

func (*AdminAPI) AdminAuthFilter

func (admin *AdminAPI) AdminAuthFilter(handle httprouter.Handle) httprouter.Handle

func (*AdminAPI) CreateBucketCredsHandler

func (admin *AdminAPI) CreateBucketCredsHandler(response http.ResponseWriter, request *http.Request, params httprouter.Params)

func (*AdminAPI) CreateBucketHandler

func (admin *AdminAPI) CreateBucketHandler(response http.ResponseWriter, request *http.Request, params httprouter.Params)

func (*AdminAPI) DeleteBucketCredsHandler

func (admin *AdminAPI) DeleteBucketCredsHandler(response http.ResponseWriter, request *http.Request, params httprouter.Params)

func (*AdminAPI) DeleteBucketHandler

func (admin *AdminAPI) DeleteBucketHandler(response http.ResponseWriter, request *http.Request, params httprouter.Params)

type ClientAPI

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

func NewClientAPI

func NewClientAPI(store db.KVStore, logger *log.Logger) *ClientAPI

func (*ClientAPI) DeleteKeyHandler

func (client *ClientAPI) DeleteKeyHandler(response http.ResponseWriter, request *http.Request, params httprouter.Params)

func (*ClientAPI) GetKeyHandler

func (client *ClientAPI) GetKeyHandler(response http.ResponseWriter, request *http.Request, params httprouter.Params)

func (*ClientAPI) ListBucketHandler

func (client *ClientAPI) ListBucketHandler(response http.ResponseWriter, request *http.Request, params httprouter.Params)

func (*ClientAPI) PutKeyHandler

func (client *ClientAPI) PutKeyHandler(response http.ResponseWriter, request *http.Request, params httprouter.Params)

Jump to

Keyboard shortcuts

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