engine

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsecutiveEngine added in v0.8.0

type ConsecutiveEngine struct {
	LineSepCharacter string
	Formatter        yamlfmt.Formatter
	Quiet            bool
	ContinueOnError  bool
	OutputFormat     EngineOutputFormat
}

Engine that will process each file one by one consecutively.

func (*ConsecutiveEngine) DryRun added in v0.8.0

func (e *ConsecutiveEngine) DryRun(paths []string) (fmt.Stringer, error)

func (*ConsecutiveEngine) Format added in v0.8.0

func (e *ConsecutiveEngine) Format(paths []string) (fmt.Stringer, error)

func (*ConsecutiveEngine) FormatContent added in v0.8.0

func (e *ConsecutiveEngine) FormatContent(content []byte) ([]byte, error)

func (*ConsecutiveEngine) Lint added in v0.8.0

func (e *ConsecutiveEngine) Lint(paths []string) (fmt.Stringer, error)

type EngineOutputFormat added in v0.12.0

type EngineOutputFormat string
const (
	EngineOutputDefault   EngineOutputFormat = "default"
	EngineOutputSingeLine EngineOutputFormat = "line"
)

type FormatError added in v0.8.0

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

func (*FormatError) Error added in v0.8.0

func (e *FormatError) Error() string

type FormatErrors added in v0.8.0

type FormatErrors []*FormatError

func (FormatErrors) Error added in v0.8.0

func (e FormatErrors) Error() string

Jump to

Keyboard shortcuts

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