secrets

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterMatcher

func RegisterMatcher(sm SecretMatcher)

Types

type AuthenticatedResult

type AuthenticatedResult *string
var (
	// Tested and creds are working
	AUTHENTICATED AuthenticatedResult = types.String("authenticated")
	// Tested and creds are not working
	UNAUTHENTICATED AuthenticatedResult = types.String("unauthenticated")
	// Not tested
	NOT_IMPLEMENTED AuthenticatedResult = types.String("not_implemented")
	// Tested but inconclusive
	UNKNOWN AuthenticatedResult = types.String("unknown")
)

type SecretMatcher

type SecretMatcher interface {
	Type() string
	DenyList() []*regexp.Regexp
	Authenticate(secret string, src string) (AuthenticatedResult, error)
}

func Matchers

func Matchers() []SecretMatcher

Jump to

Keyboard shortcuts

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