rego

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: MPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoLocationsConfigured = errors.New("no policy locations configured")
View Source
var ErrResourceMustHaveKind = errors.New("resource does not have kind")
View Source
var ErrResourceMustHaveMetadata = errors.New("resource does not have metadata")
View Source
var ErrResourceMustHaveName = errors.New("resource does not have name")

Functions

This section is empty.

Types

type Checker

type Checker struct {
	// contains filtered or unexported fields
}

func NewChecker

func NewChecker(cfg config.ServerConfig) (*Checker, error)

func (*Checker) Check

func (c *Checker) Check(ctx context.Context, request checks.Request) (msg.Result, error)

Check runs the conftest validation against an application in a given repository path. It generates a summary string with the results, which can later be posted as a GitLab comment. The validation checks resources against Zapier policies and provides feedback for warnings or errors as informational messages. Failure to pass a policy check currently does not block deploy.

Jump to

Keyboard shortcuts

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