pkg

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: May 12, 2021 License: Apache-2.0 Imports: 27 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 indicates a directory location for sanitizer reports.
	DumpDir = dumpDir()
	// ErrUnknownS3BucketProtocol defines the error if we can't parse the S3 URI
	ErrUnknownS3BucketProtocol = errors.New("invalid S3 URI: hostname not valid")
)

Functions

func NopWriter added in v0.7.0

func NopWriter(i io.ReadWriter) io.ReadWriteCloser

NopWriter fake writer.

Types

type Popeye

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

Popeye represents a kubernetes linter/sanitizer.

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) Sanitize

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

Sanitize 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.

func (*Popeye) SetOutputTarget added in v0.8.0

func (p *Popeye) SetOutputTarget(s io.ReadWriteCloser)

SetOutputTarget sets up a new output stream writer.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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