contentsafety

package
v1.0.18 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureDefaultConfig

func EnsureDefaultConfig(configDir string, errOut io.Writer) error

func IsAllowlisted

func IsAllowlisted(cmdPath string, allowlist []string) bool

Types

type Config

type Config struct {
	Allowlist []string
	Rules     []rule
}

func LoadConfig

func LoadConfig(configDir string) (*Config, error)

Jump to

Keyboard shortcuts

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