validate

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run added in v0.5.0

func Run(paths p.Paths, configYaml ConfigurationYaml) []error

Types

type ConfigurationYaml

type ConfigurationYaml struct {
	ValidateUpstreams []validateUpstream `json:"validate"`
}

func ReadConfig

func ReadConfig(configYamlPath string) (ConfigurationYaml, error)

func (ConfigurationYaml) Validate

func (configYaml ConfigurationYaml) Validate() error

type DirectoryComparison

type DirectoryComparison struct {
	Unchanged []string
	Modified  []string
	Added     []string
	Removed   []string
}

func (*DirectoryComparison) Match

func (directoryComparison *DirectoryComparison) Match() bool

func (*DirectoryComparison) Merge

func (directoryComparison *DirectoryComparison) Merge(newComparison DirectoryComparison)

type ValidationFunc added in v0.5.0

type ValidationFunc func(paths p.Paths, configYaml ConfigurationYaml) []error

A ValidationFunc is a function that checks one specific thing about the partner charts repository. If anything is wrong, it may return one or more errors explaining what is wrong.

Jump to

Keyboard shortcuts

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