Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConjurClient ¶
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.
Click to show internal directories.
Click to hide internal directories.