kubelinter

package
v0.19.9 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: Apache-2.0 Imports: 80 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSubscriber

func NewSubscriber(log logrus.FieldLogger, client castai.Client) (controller.ObjectSubscriber, error)

Types

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)

type Subscriber

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

func (*Subscriber) OnAdd

func (s *Subscriber) OnAdd(obj controller.Object)

func (*Subscriber) OnDelete

func (s *Subscriber) OnDelete(obj controller.Object)

func (*Subscriber) OnUpdate

func (s *Subscriber) OnUpdate(obj controller.Object)

func (*Subscriber) RequiredInformers

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

func (*Subscriber) Run

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

Directories

Path Synopsis
customchecks

Jump to

Keyboard shortcuts

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