ruleset

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Checksum added in v0.2.9

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

Checksum calculates the specification checksum.

func Evaluate added in v0.2.9

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 added in v0.2.9

func JSONSchema() []byte

JSONSchema returns the used json schema for validation.

func Lint added in v0.2.9

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

Lint to input reader content with Bundle jsonschema.

func Validate added in v0.2.9

func Validate(spec *bundlev1.RuleSet) error

Validate bundle patch.

func YAML added in v0.2.9

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