# Packages
Deprecated: This package is intended for older projects transitioning from OPA v0.x and will remain for the lifetime of OPA v1.x, but its use is not recommended.
Deprecated: This package is intended for older projects transitioning from OPA v0.x and will remain for the lifetime of OPA v1.x, but its use is not recommended.
# 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.
# Type aliases
Errors is a wrapper for multiple loader errors.
FileLoader defines an interface for loading OPA data files and Rego policies.
Filter defines the interface for filtering files during loading.
RegoFile represents the result of loading a single Rego source file.
Result represents the result of successfully loading zero or more files.