secretpath

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package secretpath matches configured workspace secret paths.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Policy

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

Policy is an immutable secret-path policy.

func New

func New(patterns, exceptions []string) (Policy, error)

New makes a policy from configured substring patterns and exact exceptions.

func (Policy) Match

func (p Policy) Match(rel string) bool

Match reports whether rel matches a configured secret pattern.

Jump to

Keyboard shortcuts

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