Documentation ¶
Index ¶
- func GetConfigVariable(c *Controller, varName string, confName string) (string, error)
- type Controller
- func (c *Controller) Bind(w http.ResponseWriter, r *http.Request)
- func (c *Controller) Catalog(w http.ResponseWriter, r *http.Request)
- func (c *Controller) CreateServiceInstance(w http.ResponseWriter, r *http.Request)
- func (c *Controller) DeleteAssociatedBindings(instanceID string) error
- func (c *Controller) GetDashboard(w http.ResponseWriter, r *http.Request)
- func (c *Controller) GetServiceInstance(w http.ResponseWriter, r *http.Request)
- func (c *Controller) RemoveServiceInstance(w http.ResponseWriter, r *http.Request)
- func (c *Controller) UnBind(w http.ResponseWriter, r *http.Request)
- func (c *Controller) UpdateServiceInstance(w http.ResponseWriter, r *http.Request)
- type ControllerCreator
- type DBConn
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfigVariable ¶
func GetConfigVariable(c *Controller, varName string, confName string) (string, error)
GetConfigVariable - returns the a string value from variable or conf, returns an error if none set
Types ¶
type Controller ¶
Controller struct
func CreateController ¶
func CreateController(db *sql.DB, conf *config.Config) *Controller
CreateController - returns a populated controller object
func (*Controller) Bind ¶
func (c *Controller) Bind(w http.ResponseWriter, r *http.Request)
Bind - bins a service instance
func (*Controller) Catalog ¶
func (c *Controller) Catalog(w http.ResponseWriter, r *http.Request)
Catalog - returns the service catalog
func (*Controller) CreateServiceInstance ¶
func (c *Controller) CreateServiceInstance(w http.ResponseWriter, r *http.Request)
CreateServiceInstance - creates a service instance
func (*Controller) DeleteAssociatedBindings ¶
func (c *Controller) DeleteAssociatedBindings(instanceID string) error
DeleteAssociatedBindings - deletes all binding associated with a service instance
func (*Controller) GetDashboard ¶
func (c *Controller) GetDashboard(w http.ResponseWriter, r *http.Request)
GetDashboard - returns the dashboard
func (*Controller) GetServiceInstance ¶
func (c *Controller) GetServiceInstance(w http.ResponseWriter, r *http.Request)
GetServiceInstance - Returns a service instance
func (*Controller) RemoveServiceInstance ¶
func (c *Controller) RemoveServiceInstance(w http.ResponseWriter, r *http.Request)
RemoveServiceInstance - deletes a service instance
func (*Controller) UnBind ¶
func (c *Controller) UnBind(w http.ResponseWriter, r *http.Request)
UnBind - unbinds a service instance
func (*Controller) UpdateServiceInstance ¶
func (c *Controller) UpdateServiceInstance(w http.ResponseWriter, r *http.Request)
UpdateServiceInstance - updates a service instance
type ControllerCreator ¶
type ControllerCreator func(db *sql.DB, conf *config.Config) *Controller
ControllerCreator - controller creation function
type Server ¶
type Server struct {
Controller *Controller
}
Server struct
func CreateServer ¶
func CreateServer(dbConnFunc DBConn, controllerCreator ControllerCreator) (*Server, error)
CreateServer - creates a server