Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRouter ¶
NewRouter returns a router which dispatches all incoming http Request to a matched handler.
func SetGlusterBlockCLI ¶
func SetGlusterBlockCLI(cli string)
SetGlusterBlockCLI sets the gluster-block CLI path
Types ¶
type GlusterBlockHandler ¶
type GlusterBlockHandler struct {
// contains filtered or unexported fields
}
GlusterBlockHandler defines http Handlers for all gluster-block rest api.
func NewGlusterBlockHandler ¶
func NewGlusterBlockHandler(manager blockvolmanager.BlockVolumeManager) *GlusterBlockHandler
NewGlusterBlockHandler returns a GlusterBlockHandler
func (*GlusterBlockHandler) RegisterRoutes ¶
func (gb *GlusterBlockHandler) RegisterRoutes(mux *mux.Router)
RegisterRoutes will register all gluster-block http route with provided Router.
Click to show internal directories.
Click to hide internal directories.