credhub_shims

package
v0.83.0 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: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Credhub

type Credhub interface {
	SetJSON(name string, value values.JSON) (credentials.JSON, error)
	GetLatestJSON(name string) (credentials.JSON, error)
	SetValue(name string, value values.Value) (credentials.Value, error)
	GetLatestValue(name string) (credentials.Value, error)
	FindByPath(path string) (credentials.FindResults, error)
	Delete(name string) error
}

func NewCredhubShim

func NewCredhubShim(
	url string,
	caCert string,
	clientID string,
	clientSecret string,
	uaaCACert string,
	authShim CredhubAuth,
) (Credhub, error)

type CredhubAuth

type CredhubAuth interface {
	UaaClientCredentials(clientId, clientSecret string) auth.Builder
}

type CredhubAuthShim

type CredhubAuthShim struct {
}

func (*CredhubAuthShim) UaaClientCredentials

func (c *CredhubAuthShim) UaaClientCredentials(clientId, clientSecret string) auth.Builder

type CredhubShim

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

func (*CredhubShim) Delete

func (ch *CredhubShim) Delete(name string) error

func (*CredhubShim) FindByPath

func (ch *CredhubShim) FindByPath(path string) (credentials.FindResults, error)

func (*CredhubShim) GetLatestJSON

func (ch *CredhubShim) GetLatestJSON(name string) (credentials.JSON, error)

func (*CredhubShim) GetLatestValue

func (ch *CredhubShim) GetLatestValue(name string) (credentials.Value, error)

func (*CredhubShim) SetJSON

func (ch *CredhubShim) SetJSON(name string, value values.JSON) (credentials.JSON, error)

func (*CredhubShim) SetValue

func (ch *CredhubShim) SetValue(name string, value values.Value) (credentials.Value, 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