Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoResult error = errors.New("the query did not return a result")
Functions ¶
Types ¶
type Policy ¶
type Policy struct {
// contains filtered or unexported fields
}
Policy is an executable bundle of Rego policy documents.
func FromFS ¶
Load a policy from the passed filesystem and path. Path can either be a single file, or a directory. In the latter case, all of the files in the directory will be loaded as policy documents and will be in scope for prepared queries.
Click to show internal directories.
Click to hide internal directories.