controllers

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddHeadersMiddleware

func AddHeadersMiddleware(next http.Handler) http.Handler

func BasicAuthMiddleware

func BasicAuthMiddleware(next http.Handler) http.Handler

func Catalog

func Catalog(w http.ResponseWriter, r *http.Request)

func CheckJWTMiddleware

func CheckJWTMiddleware(next http.Handler) http.Handler

func CreateOrUpdateServiceInstance

func CreateOrUpdateServiceInstance(w http.ResponseWriter, r *http.Request)

func CreateServiceBinding

func CreateServiceBinding(w http.ResponseWriter, r *http.Request)

func DebugMiddleware

func DebugMiddleware(next http.Handler) http.Handler

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"`
}

Jump to

Keyboard shortcuts

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