secret

package
Version: v0.0.0-...-aa97daa Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: Apache-2.0 Imports: 10 Imported by: 37

Documentation

Overview

Package secret implements an agent to read and reload the secrets.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(paths ...string) error

Add registers a new path to the agent.

func Censor

func Censor(content []byte) []byte

func GetSecret

func GetSecret(secretPath string) []byte

GetSecret returns the value of a secret stored in a map.

func GetTokenGenerator

func GetTokenGenerator(secretPath string) func() []byte

GetTokenGenerator returns a function that gets the value of a given secret.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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