engine

package
v0.6.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DryRunDiffs

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

func NewDryRunDiffs

func NewDryRunDiffs() *DryRunDiffs

func (*DryRunDiffs) Add

func (d *DryRunDiffs) Add(path, diff string)

func (*DryRunDiffs) CombineOutput

func (d *DryRunDiffs) CombineOutput() string

type Engine

type Engine struct {
	Include          []string
	Exclude          []string
	LineSepCharacter string
	Formatter        yamlfmt.Formatter
}

func (*Engine) DryRunAllFiles

func (e *Engine) DryRunAllFiles() (string, error)

func (*Engine) DryRunFile

func (e *Engine) DryRunFile(path string) (string, int, error)

func (*Engine) FormatAllFiles

func (e *Engine) FormatAllFiles() error

func (*Engine) FormatFile

func (e *Engine) FormatFile(path string) error

func (*Engine) LintAllFiles

func (e *Engine) LintAllFiles() error

func (*Engine) LintFile

func (e *Engine) LintFile(path string) error

type FormatFileErrors

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

func NewFormatFileErrors

func NewFormatFileErrors() *FormatFileErrors

func (*FormatFileErrors) Add

func (e *FormatFileErrors) Add(file string, err error)

func (*FormatFileErrors) Count

func (e *FormatFileErrors) Count() int

func (*FormatFileErrors) Error

func (e *FormatFileErrors) Error() string

type LintFileErrors

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

func NewLintFileErrors

func NewLintFileErrors() *LintFileErrors

func (*LintFileErrors) Add

func (e *LintFileErrors) Add(file string, err error)

func (*LintFileErrors) Count

func (e *LintFileErrors) Count() int

func (*LintFileErrors) Error

func (e *LintFileErrors) Error() string

Jump to

Keyboard shortcuts

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