Documentation ¶
Index ¶
- func AddServiceBinding(db *sql.DB, serviceBinding sharedModel.ServiceBinding) error
- func AddServiceInstance(db *sql.DB, serviceInstance sharedModel.ServiceInstance) error
- func DeleteServiceBinding(db *sql.DB, serviceBindingID string) error
- func DeleteServiceInstance(db *sql.DB, serviceInstance sharedModel.ServiceInstance) error
- func DeleteServiceInstanceBindings(db *sql.DB, serviceInstanceID string) error
- func ExtractVarsFromRequest(r *http.Request, varName string) string
- func GetPath(paths []string) string
- func GetServiceInstance(db *sql.DB, serviceInstanceID string) (sharedModel.ServiceInstance, error)
- func GetVCAPApplicationVars(object interface{}) error
- func ProvisionDataFromRequest(r io.Reader, object interface{}) error
- func ReadAndUnmarshal(object interface{}, dir string, fileName string) error
- func ReadFile(path string, ioRead ioRead) (content []byte, err error)
- func RemoveGreenFromURI(URI string) string
- func SetupBindingDB(db *sql.DB) error
- func SetupInstanceDB(db *sql.DB) error
- func UpdateServiceInstance(db *sql.DB, serviceInstanceID string, probability float64, frequency int) error
- func WriteResponse(w http.ResponseWriter, code int, object interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddServiceBinding ¶
AddServiceBinding - adds a row to service_bindings database
func AddServiceInstance ¶
AddServiceInstance - adds a row to service_isntances database
func DeleteServiceBinding ¶
DeleteServiceBinding - deletes from service_bindings based on service binding ID
func DeleteServiceInstance ¶
DeleteServiceInstance - deletes from service_instances based on service instance ID
func DeleteServiceInstanceBindings ¶
DeleteServiceInstanceBindings - deletes from service_bindings based on service instance ID
func ExtractVarsFromRequest ¶
ExtractVarsFromRequest - extracts variables from http request
func GetServiceInstance ¶
GetServiceInstance - loads a service instance to memory from database
func GetVCAPApplicationVars ¶
func GetVCAPApplicationVars(object interface{}) error
GetVCAPApplicationVars - populates an object based on the "VCAP_APPLICATION" environment variables
func ProvisionDataFromRequest ¶
ProvisionDataFromRequest - Unmarhsals json to object
func ReadAndUnmarshal ¶
ReadAndUnmarshal - loads file into object
func RemoveGreenFromURI ¶
RemoveGreenFromURI - removes "-green" from provided URI for zero downtime deployments
func SetupBindingDB ¶
SetupBindingDB - creates the service_bindings DB if it does not exist
func SetupInstanceDB ¶
SetupInstanceDB - creates the service_instances DB if it does not exist
func UpdateServiceInstance ¶
func UpdateServiceInstance(db *sql.DB, serviceInstanceID string, probability float64, frequency int) error
UpdateServiceInstance - update service_instances database
func WriteResponse ¶
func WriteResponse(w http.ResponseWriter, code int, object interface{})
WriteResponse - creates an http response
Types ¶
This section is empty.