MCPcopy Create free account
hub / github.com/cloudfoundry/credhub-cli / ExampleNew

Function ExampleNew

credhub/example_test.go:59–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57}
58
59func ExampleNew() {
60 _ = func() {
61 ch, _ := credhub.New(
62 "https://example.com",
63 credhub.SkipTLSValidation(true),
64 credhub.Auth(auth.UaaClientCredentials("client-id", "client-secret")),
65 )
66
67 fmt.Println("Connected to ", ch.ApiURL)
68 }
69}
70
71func ExampleCredHub_Request() {
72 _ = func() {

Callers

nothing calls this directly

Calls 4

NewFunction · 0.92
SkipTLSValidationFunction · 0.92
AuthFunction · 0.92
UaaClientCredentialsFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…