Documentation
¶
Index ¶
- Constants
- func CreateBundle(manifestPath string, srcDir string) (string, error)
- func EstimateWorkers() uint
- func GetResult(r io.Reader) (bool, error)
- func RunTests(tests []TestUnit, workers uint, addr string) *TestReport
- func SendData(serverURL string, dataChan <-chan TestUnit, report *TestReport) error
- type OpaServer
Constants ¶
View Source
const ( // OpaImage is the Docker image to be used for tests. // TODO: make the OPA version a configuration value OpaImage = "openpolicyagent/opa:0.47.4" OpaPort = "8181" OpaBundleDir = "/etc/opa/bundles" )
View Source
const (
UrlSep = "/"
)
Variables ¶
This section is empty.
Functions ¶
func CreateBundle ¶
CreateBundle takes a JSON Manifest and the path to a directory containing OPA Policies ( Rego files) and then generates an archive (`.tar.gz`) file according to OPA Bundle rules. It returns the full path to the temporary file.
func EstimateWorkers ¶
func EstimateWorkers() uint
Types ¶
Click to show internal directories.
Click to hide internal directories.