support

package
v2.0.0-alpha.2+incompa... Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2016 License: Apache-2.0 Imports: 1 Imported by: 627

Documentation

Overview

Package lint contains tools for linting charts.

Linting is the process of testing charts for errors or warnings regarding formatting, compilation, or standards compliance.

Index

Constants

View Source
const (
	// UnknownSev indicates that the severity of the error is unknown, and should not stop processing.
	UnknownSev = iota
	// InfoSev indicates information, for example missing values.yaml file
	InfoSev
	// WarningSev indicates that something does not meet code standards, but will likely function.
	WarningSev
	// ErrorSev indicates that something will not likely function.
	ErrorSev
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LintError

type LintError interface {
	error
}

type Linter

type Linter struct {
	Messages []Message
	ChartDir string
}

func (*Linter) RunLinterRule

func (l *Linter) RunLinterRule(severity Severity, lintError LintError) bool

Returns true if the validation passed

type Message

type Message struct {
	// Severity is one of the *Sev constants
	Severity Severity
	// Text contains the message text
	Text string
}

Message is a linting output message

func (Message) String

func (m Message) String() string

String prints a string representation of this Message.

Implements fmt.Stringer.

type Severity

type Severity int

Severity indicatest the severity of a Message.

type ValidationFunc

type ValidationFunc func(*Linter) LintError

Jump to

Keyboard shortcuts

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