util

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TokenRefreshInterval = 90
)

Variables

View Source
var CfClient cfclient.Client

Functions

func BasicAuth

func BasicAuth(w http.ResponseWriter, r *http.Request, username, password string) bool

BasicAuth validate if user/pass in the http request match the configured service broker user/pass

func DumpRequest

func DumpRequest(r *http.Request)

func Initialize

func Initialize()

func LinesFromReader

func LinesFromReader(r io.Reader) (*[]string, error)

func ProvisionObjectFromRequest

func ProvisionObjectFromRequest(r *http.Request, object interface{}) error

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.

Jump to

Keyboard shortcuts

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