Documentation ¶
Index ¶
- Constants
- Variables
- func BasicAuth(w http.ResponseWriter, r *http.Request, username, password string) bool
- func DumpRequest(r *http.Request)
- func Initialize()
- func LinesFromReader(r io.Reader) (*[]string, error)
- func ProvisionObjectFromRequest(r *http.Request, object interface{}) error
- func ResolveCredhubCredentials()
- func WriteHttpResponse(w http.ResponseWriter, code int, object interface{})
Constants ¶
View Source
const (
TokenRefreshInterval = 90
)
Variables ¶
View Source
var CfClient cfclient.Client
Functions ¶
func BasicAuth ¶
BasicAuth validate if user/pass in the http request match the configured service broker user/pass
func DumpRequest ¶
func Initialize ¶
func Initialize()
func ResolveCredhubCredentials ¶
func ResolveCredhubCredentials()
ResolveCredhubCredentials - Resolve the credentials by querying credhub for the given paths.
We implicitly use the app-containers key/cert and use mTLS to get access to the credhub path.
func WriteHttpResponse ¶
func WriteHttpResponse(w http.ResponseWriter, code int, object interface{})
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.