verify

package
v0.35.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

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.

func Files

func Files(ctx context.Context, fsys fs.FS, idx compile.Index) (*policyv1.TestResults, error)

Files runs tests using the policy files in the given file system.

func WithCustomChecker added in v0.21.0

func WithCustomChecker(ctx context.Context, fsys fs.FS, eng Checker, opts ...Opt) (*policyv1.TestResults, error)

Types

type BundleParams added in v0.26.0

type BundleParams struct {
	BundlePath string
	TestsDir   string
	WorkDir    string
}

type CheckOptions added in v0.32.0

type CheckOptions interface {
	Globals() map[string]any
	NowFunc() func() time.Time
	LenientScopeSearch() bool
}

type Checker added in v0.32.0

type Checker interface {
	Check(ctx context.Context, inputs []*enginev1.CheckInput, opts CheckOptions) ([]*enginev1.CheckOutput, error)
}

type Opt added in v0.34.0

type Opt func(config *verify.Config)

func WithPrincipalTestFilter added in v0.34.0

func WithPrincipalTestFilter(names ...string) Opt

func WithResourceTestFilter added in v0.34.0

func WithResourceTestFilter(names ...string) Opt

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL