Documentation ¶
Overview ¶
Package bundle implements bundle loading.
Index ¶
Constants ¶
View Source
const (
RegoExt = ".rego"
)
Common file extensions and file names.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Bundle ¶
type Bundle struct { Manifest Manifest Data map[string]interface{} Modules []ModuleFile }
Bundle represents a loaded bundle. The bundle can contain data and policies.
type Manifest ¶
Manifest represents the manifest from a bundle. The manifest may contain metadata such as the bundle revision.
type ModuleFile ¶
ModuleFile represents a single module contained a bundle.
type Reader ¶ added in v0.10.2
type Reader struct {
// contains filtered or unexported fields
}
Reader contains the reader to load the bundle from.
func (*Reader) IncludeManifestInData ¶ added in v0.10.2
IncludeManifestInData sets whether the manifest metadata should be included in the bundle's data.
Click to show internal directories.
Click to hide internal directories.