mutual

package module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2019 License: MIT Imports: 7 Imported by: 0

README

Golang Mutual CloudFoundry

This library provides a http-Client, which uses the Cloudfoundry Instance Identity Credentials for mutual TLS.

Usage

Like every other http.Client

client, err := mutual.GetClient()
if err != nil {
	t.Error(err)
}

res, err := client.Get(ts.URL)

Documentation

Index

Constants

View Source
const (
	CertLocation = "CF_INSTANCE_CERT"
	KeyLocation  = "CF_INSTANCE_KEY"
	CaLocation   = "CF_SYSTEM_CERT_PATH"
)

Variables

This section is empty.

Functions

func GetClient

func GetClient() (client *http.Client, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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