linter

package
v1.62.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Variations add ability to create variants for tests matrix
	ConstantVariation string = "__ConstantChoices__"
	RangeVariation    string = "__RangeChoices__"

	// Item works like variation arguments to include special variants of values
	EmptyItem string = "__EmptyItem__"
)
View Source
const (
	ExamplesKey = "x-examples"
	ArrayObject = "array"
	ObjectKey   = "object"
)

Variables

This section is empty.

Functions

func ApplyLintRules

func ApplyLintRules(module utils.Module, values chartutil.Values, objectStore *storage.UnstructuredObjectStore) error

func ComposeValuesFromSchemas

func ComposeValuesFromSchemas(m utils.Module) ([]chartutil.Values, error)

func Run

func Run(tmpDir string, m utils.Module) (err error)

func SplitAt added in v1.39.0

func SplitAt(substring string) func(data []byte, atEOF bool) (advance int, token []byte, err error)

Types

type FileController

type FileController struct {
	Module utils.Module
	Prefix string
	TmpDir string
	Queue  *deque.Deque
}

func LoadConfiguration

func LoadConfiguration(m utils.Module, path, prefix, dir string) (FileController, error)

func (*FileController) Close

func (f *FileController) Close()

func (*FileController) FindAll

func (f *FileController) FindAll()

func (*FileController) ReturnValues

func (f *FileController) ReturnValues() ([]chartutil.Values, error)

type InteractionsCounter

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

func (*InteractionsCounter) Inc

func (c *InteractionsCounter) Inc()

func (*InteractionsCounter) Zero

func (c *InteractionsCounter) Zero() bool

type ModuleController

type ModuleController struct {
	Module utils.Module
	Values []chartutil.Values
	// contains filtered or unexported fields
}

func NewModuleController

func NewModuleController(m utils.Module, values []chartutil.Values) *ModuleController

func (*ModuleController) Run

func (c *ModuleController) Run() error

func (*ModuleController) RunRender

func (c *ModuleController) RunRender(values chartutil.Values, objectStore *storage.UnstructuredObjectStore) (lintError error)

type Node

type Node struct {
	Keys []interface{}
	Item interface{}
}

func NewNode

func NewNode(item interface{}) Node

type OpenAPIValuesGenerator

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

func NewOpenAPIValuesGenerator

func NewOpenAPIValuesGenerator(schema *spec.Schema) *OpenAPIValuesGenerator

func (*OpenAPIValuesGenerator) Do

func (g *OpenAPIValuesGenerator) Do() ([]interface{}, error)

type SchemaNode

type SchemaNode struct {
	Schema *spec.Schema

	Leaf *map[string]interface{}
}

type Task

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

func NewTask

func NewTask(index int, values chartutil.Values) *Task

type Worker

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

func NewWorker

func NewWorker(id int, tasksCh <-chan *Task, errorsCh chan<- error) *Worker

func (*Worker) Start

func (w *Worker) Start(wg *sync.WaitGroup, c *ModuleController)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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