package
7.0.0+incompatible
Repository: https://github.com/projectcontour/integration-tester.git
Documentation: pkg.go.dev

# Functions

NewRegoFragment decodes the given data and returns a new Fragment of type FragmentTypeModule.
ReadDocument reads a stream of Fragments that are separated by a YAML document separator (see https://yaml.org/spec/1.0/#id2561718).
ReadFile reads a Document from the given file path.

# Constants

FragmentTypeEmpty indicates this is an empty fragment.
FragmentTypeInvalid indicates that this Fragment could not be parsed or contains syntax errors.
FragmentTypeModule indicates this Fragment contains a Rego module.
FragmentTypeObject indicates this Fragment contains a Kubernetes Object.
FragmentTypeUnknown indicates this Fragment is unknown and needs to be decoded.

# Structs

Document is a collection of related Fragments.
Fragment is a parseable portion of a Document.
InvalidFragmentErr is an error value returned to indicate to the caller what type of fragment was found to be invalid.
Location tracks the lines that bound a Fragment within some larger Document.

# Type aliases

FragmentType is the parsed content type for the Fragment.