Documentation ¶
Index ¶
- func Apply(ctx context.Context, spec *bundlev1.Patch, b *bundlev1.Bundle, ...) (*bundlev1.Bundle, error)
- func Checksum(spec *bundlev1.Patch) (string, error)
- func JSONSchema() []byte
- func Lint(r io.Reader) ([]gojsonschema.ResultError, error)
- func Validate(spec *bundlev1.Patch) error
- func WithAnnotations(p *bundlev1.Patch) bool
- func YAML(r io.Reader) (*bundlev1.Patch, error)
- type OptionFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Apply ¶
func Apply(ctx context.Context, spec *bundlev1.Patch, b *bundlev1.Bundle, values map[string]interface{}, o ...OptionFunc) (*bundlev1.Bundle, error)
Apply given patch to the given bundle.
func Lint ¶
func Lint(r io.Reader) ([]gojsonschema.ResultError, error)
Lint to input reader content with Bundle jsonschema.
func WithAnnotations ¶
WithAnnotations returns the given patch spec patch annotations state.
Types ¶
type OptionFunc ¶
type OptionFunc func(o *options)
func WithIgnoreRuleIDs ¶
func WithIgnoreRuleIDs(values ...string) OptionFunc
WithIgnoreRuleIDs sets the rule identifiers to ignore.
func WithIgnoreRuleIndexes ¶
func WithIgnoreRuleIndexes(values ...int) OptionFunc
WithIgnoreRuleIndexes sets the rule indexes to ignore.
func WithStopAtRuleID ¶
func WithStopAtRuleID(value string) OptionFunc
WithStopAtRuleID sets the id of the rule to stop evaluation at.
func WithStopAtRuleIndex ¶
func WithStopAtRuleIndex(value int) OptionFunc
WithStopAtRuleIndex sets the index of the rule to stop evaluation at.
Click to show internal directories.
Click to hide internal directories.