Documentation ¶
Overview ¶
Package refactor implements different refactoring operations over Rego modules.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct { Message string `json:"message"` Location *ast.Location `json:"location,omitempty"` }
Error defines the structure of errors returned by refactor.
type MoveQuery ¶
type MoveQuery struct { Modules map[string]*ast.Module SrcDstMapping map[string]string // contains filtered or unexported fields }
MoveQuery holds the set of Rego modules whose package paths and other references are to be rewritten as per the mapping defined in SrcDstMapping. If validate is true, the moved modules will be compiled to ensure they are valid.
func (MoveQuery) WithValidation ¶
WithValidation controls whether to compile moved modules to ensure they are valid.
type MoveQueryResult ¶
MoveQueryResult defines the output of a move query and holds the rewritten modules with updated packages paths and references.
Click to show internal directories.
Click to hide internal directories.