Documentation
¶
Index ¶
- func AddHeadersMiddleware(next http.Handler) http.Handler
- func BasicAuthMiddleware(next http.Handler) http.Handler
- func Catalog(w http.ResponseWriter, r *http.Request)
- func CheckJWTMiddleware(next http.Handler) http.Handler
- func CreateOrUpdateServiceInstance(w http.ResponseWriter, r *http.Request)
- func CreateServiceBinding(w http.ResponseWriter, r *http.Request)
- func DebugMiddleware(next http.Handler) http.Handler
- func DeleteServiceBinding(w http.ResponseWriter, r *http.Request)
- func DeleteServiceInstance(w http.ResponseWriter, r *http.Request)
- func GetSources(w http.ResponseWriter, r *http.Request)
- func ValidateRequest(w http.ResponseWriter, r *http.Request) (bool, string, model.GenericRequest)
- type OrigIdentity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOrUpdateServiceInstance ¶
func CreateOrUpdateServiceInstance(w http.ResponseWriter, r *http.Request)
func CreateServiceBinding ¶
func CreateServiceBinding(w http.ResponseWriter, r *http.Request)
func DeleteServiceBinding ¶
func DeleteServiceBinding(w http.ResponseWriter, r *http.Request)
DeleteServiceBinding - Deletes the service binding and the associated network policies
func DeleteServiceInstance ¶
func DeleteServiceInstance(w http.ResponseWriter, r *http.Request)
func GetSources ¶
func GetSources(w http.ResponseWriter, r *http.Request)
func ValidateRequest ¶
func ValidateRequest(w http.ResponseWriter, r *http.Request) (bool, string, model.GenericRequest)
ValidateRequest - We validate the incoming http request, it should have a valid JWT, there should be a user_id claim in the JWT, the request body should be json-parse-able and the user should be authorized for the requested space.
Types ¶
type OrigIdentity ¶
type OrigIdentity struct {
UserID string `json:"user_id"`
}
Click to show internal directories.
Click to hide internal directories.