ruleset

package
v2.2.0 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: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Checksum

func Checksum(spec *bundlev1.RuleSet) (string, error)

Checksum calculates the specification checksum.

func Evaluate

func Evaluate(ctx context.Context, b *bundlev1.Bundle, spec *bundlev1.RuleSet) error

Evaluate given bundl using the loaded ruleset.

func FromBundle

func FromBundle(b *bundlev1.Bundle) (*bundlev1.RuleSet, error)

FromBundle crawls secret structure to generate a linter ruleset.

func JSONSchema

func JSONSchema() []byte

JSONSchema returns the used json schema for validation.

func Lint

func Lint(r io.Reader) ([]gojsonschema.ResultError, error)

Lint to input reader content with Bundle jsonschema.

func Validate

func Validate(spec *bundlev1.RuleSet) error

Validate bundle patch.

func YAML

func YAML(r io.Reader) (*bundlev1.RuleSet, error)

YAML a given reader in order to extract a BundlePatch sepcification.

Types

This section is empty.

Directories

Path Synopsis
cel

Jump to

Keyboard shortcuts

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