conjur

package
v1.4.6 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConjurClient

type ConjurClient interface {
	RetrieveBatchSecrets([]string) (map[string][]byte, error)
}
	Client for communication with Conjur. In this project it is used only for
    batch secrets retrieval so we expose only this method of the client.

	The name ConjurClient also improves readability as Client can be ambiguous.

func NewConjurClient

func NewConjurClient(tokenData []byte) (ConjurClient, error)

type RetrieveSecretsFunc

type RetrieveSecretsFunc func(variableIDs []string, traceContext context.Context) (map[string][]byte, error)

RetrieveSecretsFunc defines a function type for retrieving secrets.

type SecretRetriever

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

SecretRetriever implements a Retrieve function that is capable of authenticating with Conjur and retrieving multiple Conjur variables in bulk.

func NewSecretRetriever

func NewSecretRetriever(authnConfig config.Configuration) (*SecretRetriever, error)

NewSecretRetriever creates a new SecretRetriever and Authenticator given an authenticator config.

func (SecretRetriever) Retrieve

func (retriever SecretRetriever) Retrieve(variableIDs []string, traceContext context.Context) (map[string][]byte, error)

Retrieve implements a RetrieveSecretsFunc for a given SecretRetriever. Authenticates the client, and retrieves a given batch of variables from Conjur.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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