scanner

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PodMan

type PodMan interface {
	GetPodsForLabelSelector(ctx context.Context, namespace string, labelSelector string) ([]coreV1.Pod, error)
	DeletePod(ctx context.Context, namespace, name string) error
	Disconnect()
}

type Scanner

type Scanner struct {
	Namespace     string
	LabelSelector string
	Client        PodMan
	Logger        *slog.Logger
}

func (Scanner) Scan

func (s Scanner) Scan(ctx context.Context, interval time.Duration)

func (Scanner) ScanOnce

func (s Scanner) ScanOnce(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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