test

package
v0.0.0-...-6c02b17 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NoErrors

func NoErrors(t *testing.T, r *Result)

func NoWarnings

func NoWarnings(t *testing.T, r *Result)

Types

type Check

type Check func(t *testing.T, r *Result)

func All

func All(checks ...Check) Check

func CheckError

func CheckError(msg string) Check

func CheckWarning

func CheckWarning(msg string) Check

type Result

type Result struct {
	Errors   []string              `json:"errors,omitempty"`
	Warnings []string              `json:"warnings,omitempty"`
	Result   *webhook.PolicyResult `json:"result"`
}

func Run

func Run(policy, image string, opts ...RunOption) (*Result, error)

type RunOption

type RunOption func(*test)

func WithResource

func WithResource(resource string) RunOption

Jump to

Keyboard shortcuts

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