Documentation ¶
Index ¶
- func Bundle(ctx context.Context, params BundleParams) (*policyv1.TestResults, error)
- func Files(ctx context.Context, fsys fs.FS, idx compile.Index) (*policyv1.TestResults, error)
- func WithCustomChecker(ctx context.Context, fsys fs.FS, eng Checker, opts ...Opt) (*policyv1.TestResults, error)
- type BundleParams
- type CheckOptions
- type Checker
- type Opt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bundle ¶ added in v0.26.0
func Bundle(ctx context.Context, params BundleParams) (*policyv1.TestResults, error)
Bundle runs tests using the given policy bundle.
Types ¶
type BundleParams ¶ added in v0.26.0
type CheckOptions ¶ added in v0.32.0
type Checker ¶ added in v0.32.0
type Checker interface {
Check(ctx context.Context, inputs []*enginev1.CheckInput, opts CheckOptions) ([]*enginev1.CheckOutput, error)
}
Click to show internal directories.
Click to hide internal directories.