denylist

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package denylist implements an immutable, exact-version package policy.

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 safe for concurrent reads. A nil policy allows every version.

func New

func New(packages []string) (*Policy, error)

New validates and canonicalizes versioned PURLs. Qualifiers and subpaths are rejected because the proxy cannot reliably distinguish them at every endpoint.

func (*Policy) Denied

func (p *Policy) Denied(value string) bool

Denied reports whether a versioned PURL is denied.

func (*Policy) Versions

func (p *Policy) Versions(packagePURL string) map[string]bool

Versions returns a caller-owned set of denied versions for a package PURL.

Jump to

Keyboard shortcuts

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