pkg

package
v0.21.3 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// LogFile the path to our logs.
	LogFile = filepath.Join(os.TempDir(), "popeye.log")

	// DumpDir track scan report directory location.
	DumpDir = dumpDir()
)

Functions

func BailOut added in v0.20.2

func BailOut(err error)

func NopCloser added in v0.20.0

func NopCloser(i io.ReadWriter) io.ReadWriteCloser

NopCloser fake closer.

Types

type Popeye

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

Popeye represents a kubernetes linter/linter.

func NewPopeye

func NewPopeye(flags *config.Flags, log *zerolog.Logger) (*Popeye, error)

NewPopeye returns a new instance.

func (*Popeye) Do added in v0.9.1

func (p *Popeye) Do(req *http.Request) (*http.Response, error)

Do implements the HTTPDoer interface to replace the standard http client push request and write to the outputTarget

func (*Popeye) Init added in v0.4.0

func (p *Popeye) Init() error

Init configures popeye prior to sanitization.

func (*Popeye) Lint added in v0.20.0

func (p *Popeye) Lint() (int, int, error)

Lint scans a cluster for potential issues.

func (*Popeye) SetFactory added in v0.8.0

func (p *Popeye) SetFactory(f types.Factory)

SetFactory sets the resource factory.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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