kubelinter

package
v0.52.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: Apache-2.0 Imports: 82 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller added in v0.41.0

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

func NewController added in v0.41.0

func NewController(log logrus.FieldLogger, cfg config.Linter, client castai.Client, linter *Linter) *Controller

func (*Controller) OnAdd added in v0.41.0

func (s *Controller) OnAdd(obj kube.Object)

func (*Controller) OnDelete added in v0.41.0

func (s *Controller) OnDelete(obj kube.Object)

func (*Controller) OnUpdate added in v0.41.0

func (s *Controller) OnUpdate(obj kube.Object)

func (*Controller) RequiredInformers added in v0.41.0

func (s *Controller) RequiredInformers() []reflect.Type

func (*Controller) Run added in v0.41.0

func (s *Controller) Run(ctx context.Context) error

type Linter

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

func New

func New(checks []string) (*Linter, error)

func (*Linter) Run

func (l *Linter) Run(objects []lintcontext.Object) ([]casttypes.LinterCheck, error)

func (*Linter) RunWithRules added in v0.34.0

func (l *Linter) RunWithRules(objects []lintcontext.Object, rules []string) ([]casttypes.LinterCheck, error)

Directories

Path Synopsis
customchecks

Jump to

Keyboard shortcuts

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