admit

package
v0.14.4 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnySliceToString

func AnySliceToString(values []any) []string

func Bool

func Bool(raw any, context string) (bool, error)

func CanonicalInteger added in v0.4.0

func CanonicalInteger(raw any, context string) (int64, error)

func ContainsReportVisibleUnsafeValue added in v0.5.0

func ContainsReportVisibleUnsafeValue(value string) bool

func ContainsSecretLikePathValue added in v0.1.153

func ContainsSecretLikePathValue(value string) bool

func ContainsSecretLikeValue

func ContainsSecretLikeValue(value string) bool

func ContainsSecretTokenLikeValue

func ContainsSecretTokenLikeValue(value string) bool

func ContainsURLCredentialValue

func ContainsURLCredentialValue(value string) bool

func DisplayOnlyCommandText

func DisplayOnlyCommandText(raw any, context string) (string, error)

func Enum

func Enum(raw any, values map[string]struct{}, context string) (string, error)

func JSONNumberEquals

func JSONNumberEquals(raw any, expected int64) bool

func KnownKeys

func KnownKeys(record map[string]any, admitted []string, context string) error

func LowercaseSHA256 added in v0.1.147

func LowercaseSHA256(raw any, context string) (string, error)

func MergeNonClaims added in v0.1.151

func MergeNonClaims(required []string, caller []string, context string) ([]string, error)

func NonEmptyText

func NonEmptyText(raw any, context string) (string, error)

func NormalizeSortedPathArray added in v0.2.1

func NormalizeSortedPathArray(raw any, context string, allowEmpty bool) ([]string, error)

func NormalizeSortedPaths added in v0.2.1

func NormalizeSortedPaths(values []string, context string, allowEmpty bool) ([]string, error)

func NormalizeSortedText added in v0.2.0

func NormalizeSortedText(values []string, context string, allowEmpty bool) ([]string, error)

func NormalizeSortedTextArray added in v0.2.0

func NormalizeSortedTextArray(raw any, context string, allowEmpty bool) ([]string, error)

func NullableText

func NullableText(raw any, context string) (*string, error)

func PositiveInteger

func PositiveInteger(raw any, context string) (int, error)

func PreserveSortedPathArray

func PreserveSortedPathArray(raw any, context string, allowEmpty bool) ([]string, error)

func PreserveSortedPaths added in v0.2.1

func PreserveSortedPaths(values []string, context string, allowEmpty bool) ([]string, error)

func PreserveSortedText

func PreserveSortedText(values []string, context string, allowEmpty bool) ([]string, error)

func PreserveSortedTextArray

func PreserveSortedTextArray(raw any, context string, allowEmpty bool) ([]string, error)

func RedactDiagnosticValue

func RedactDiagnosticValue(value string) string

func RedactSecretLikeValue

func RedactSecretLikeValue(value string) string

func RedactStructuralText added in v0.1.151

func RedactStructuralText(value string) string

func RuleID

func RuleID(raw any, context string) (string, error)

func SHA256HexRef added in v0.2.1

func SHA256HexRef(raw any, context string) (string, error)

func SHA256Ref added in v0.2.1

func SHA256Ref(raw any, context string) (string, error)

func SafeRepoRelativePath

func SafeRepoRelativePath(value string, context string) (string, error)

func SortedEnum

func SortedEnum(values map[string]struct{}) string

func SortedText

func SortedText(values []string, context string, allowEmpty bool) ([]string, error)

func SortedTextArray

func SortedTextArray(raw any, context string, allowEmpty bool) ([]string, error)

func StringSliceToAny

func StringSliceToAny(values []string) []any

func StructuredSelectorSourcePath added in v0.1.147

func StructuredSelectorSourcePath(selector string, sourcePath string, context string) error

func TextArray

func TextArray(raw any, context string, allowEmpty bool) ([]string, error)

Types

type RedactionFixture added in v0.1.151

type RedactionFixture struct {
	Input            string
	Name             string
	SensitiveNeedles []string
}

func ReportVisibleRedactionFixtures added in v0.1.151

func ReportVisibleRedactionFixtures() []RedactionFixture

Jump to

Keyboard shortcuts

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