package
1.2.0
Repository: https://github.com/open-policy-agent/opa.git
Documentation: pkg.go.dev

# Packages

# Functions

All returns a Result object loaded (recursively) from the specified paths.
AllRegos returns a Result object loaded (recursively) with all Rego source files from the specified paths.
AsBundle loads a path as a bundle.
CleanPath returns the normalized version of a path that can be used as an identifier.
Dirs resolves filepaths to directories.
Filtered returns a Result object loaded (recursively) from the specified paths while applying the given filters.
FilteredPaths is the same as FilterPathsFS using the current diretory file system.
FilteredPathsFS return a list of files from the specified paths while applying the given filters.
GetBundleDirectoryLoader returns a bundle directory loader which can be used to load files in the directory.
GetBundleDirectoryLoaderFS returns a bundle directory loader which can be used to load files in the directory.
GetBundleDirectoryLoaderWithFilter returns a bundle directory loader which can be used to load files in the directory after applying the given filter.
GlobExcludeName excludes files and directories whose names do not match the shell style pattern at minDepth or greater.
NewFileLoader returns a new FileLoader instance.
Paths returns a sorted list of files contained at path.
Rego is deprecated.
RegoWithOpts returns a RegoFile object loaded from the given path.
Schemas loads a schema set from the specified file path.
SplitPrefix returns a tuple specifying the document prefix and the file path.

# Structs

RegoFile represents the result of loading a single Rego source file.
Result represents the result of successfully loading zero or more files.

# Interfaces

FileLoader defines an interface for loading OPA data files and Rego policies.

# Type aliases

Errors is a wrapper for multiple loader errors.
Filter defines the interface for filtering files during loading.