credhub

package
v0.0.15 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHTTPClient

func NewHTTPClient(
	dialer DialContextFunc,
	tlsConfig *tls.Config,
) *http.Client

func Run

func Run(e exec.Executor, ctx context.Context, data interface{}, args ...string) (exec.Result, error)

Types

type Client

type Client interface {
	GetCreds(ref string) (map[string][]map[string]interface{}, error)
}

type ClientFactory

type ClientFactory interface {
	New(url string, credhubPort string, uaaPort string, allProxy string, caCert []byte, clientID string, clientSecret string) Client
}

type ClientFactoryFunc

type ClientFactoryFunc func(url string, credhubPort string, uaaPort string, allProxy string, caCert []byte, clientID string, clientSecret string) Client

func NewClientFactory

func NewClientFactory() ClientFactoryFunc

func (ClientFactoryFunc) New

func (f ClientFactoryFunc) New(url string, credhubPort string, uaaPort string, allProxy string, caCert []byte, clientID string, clientSecret string) Client

type ClientImpl

type ClientImpl struct {
	// contains filtered or unexported fields
}

func (ClientImpl) GetCreds

func (c ClientImpl) GetCreds(ref string) (map[string][]map[string]interface{}, error)

type Credential

type Credential struct {
}

type DialContextFunc

type DialContextFunc func(ctx context.Context, network, address string) (net.Conn, error)

func (DialContextFunc) DialContext

func (f DialContextFunc) DialContext(ctx context.Context, network, address string) (net.Conn, error)

type HTTPClient

type HTTPClient interface {
	Do(req *http.Request) (*http.Response, error)
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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