Versions in this module Expand all Collapse all v1 v1.0.0 Apr 28, 2020 Changes in this version + const FragmentTypeInvalid + const FragmentTypeModule + const FragmentTypeObject + const FragmentTypeUnknown + type Document struct + Name string + Parts []Fragment + func ReadDocument(in io.Reader) (*Document, error) + func ReadFile(filePath string) (*Document, error) + type Fragment struct + Bytes []byte + Location Location + Type FragmentType + func NewRegoFragment(data []byte) (*Fragment, error) + func (f *Fragment) Decode() (FragmentType, error) + func (f *Fragment) IsDecoded() bool + func (f *Fragment) Object() *unstructured.Unstructured + func (f *Fragment) Rego() *ast.Module + type FragmentType int + func (t FragmentType) String() string + type InvalidFragmentErr struct + Type FragmentType + func (e *InvalidFragmentErr) Error() string + type Location struct + End int + Start int + func (l Location) String() string