secret_agent

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2025 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// ConnectionTypeTCP connection type for TCP.
	ConnectionTypeTCP = "tcp"
	// ConnectionTypeUDS connection type for unix socket.
	ConnectionTypeUDS = "unix"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client represents the client to communicate with Aerospike Secret Agent.

func NewClient

func NewClient(connectionType, address string, timeout time.Duration, isBase64 bool,
	tlsConfig *tls.Config,
) (*Client, error)

NewClient returns a new Aerospike Secret Agent client.

func (*Client) GetSecret

func (c *Client) GetSecret(resource, secretKey string) (string, error)

GetSecret performs a request to the Aerospike Secret Agent. If the key is found in the external service, the corresponding value will be returned. Otherwise, an empty value and an error will be returned.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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