internal

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsFormatJSON

func IsFormatJSON(flagName string, format string) (bool, error)

IsFormatJSON returns true if the format is JSON.

This will probably eventually need to be split between the image/check flags and the ls flags as we may have different formats for each.

func IsLintFormatConfigIgnoreYAML added in v0.3.0

func IsLintFormatConfigIgnoreYAML(flagName string, format string) (bool, error)

IsLintFormatConfigIgnoreYAML returns true if the format is config-ignore-yaml.

func IsLintFormatJSON added in v0.3.0

func IsLintFormatJSON(flagName string, format string) (bool, error)

IsLintFormatJSON returns true if the format is JSON for lint.

Also allows config-ignore-yaml.

func NewBufbreakingHandler

func NewBufbreakingHandler(
	logger *zap.Logger,
) bufbreaking.Handler

NewBufbreakingHandler returns a new bufbreaking.Handler.

func NewBuflintHandler

func NewBuflintHandler(
	logger *zap.Logger,
) buflint.Handler

NewBuflintHandler returns a new buflint.Handler.

func NewBufosEnvReader

func NewBufosEnvReader(
	logger *zap.Logger,
	inputFlagName string,
	configOverrideFlagName string,
) bufos.EnvReader

NewBufosEnvReader returns a new bufos.EnvReader.

func NewBufosImageWriter

func NewBufosImageWriter(
	logger *zap.Logger,
	outputFlagName string,
) bufos.ImageWriter

NewBufosImageWriter returns a new bufos.ImageWriter.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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