allowlist

package
v0.0.0-...-bbc9ce3 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Allowlist

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

Allowlist is a generic allowlist for strings. Currently used to allow/disallow non-static packages from the /packages subdir

func LoadFrom

func LoadFrom(f io.Reader) (*Allowlist, error)

LoadFrom takes a file in the form of an io.Reader and returns a built AllowList

func (*Allowlist) Contains

func (a *Allowlist) Contains(entry string) bool

Contains returns whether an Allowlist contains a given string

Jump to

Keyboard shortcuts

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