secrets

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Mask

func Mask(value string) string

Mask masks a secret value, showing only first and last characters

func Redact

func Redact(text string, secrets map[string]string) string

Redact redacts secrets from text

Types

type Collector

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

Collector collects secrets from all configured providers

func NewCollector

func NewCollector(cfg *config.Config) *Collector

NewCollector creates a new secrets collector

func (*Collector) Collect

func (c *Collector) Collect(ctx context.Context, providerIDs []string) (map[string]string, error)

Collect fetches secrets from all providers and combines them

Jump to

Keyboard shortcuts

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