monitor

package
v0.3.61 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, c client.Client, o *Options)

Run sits in an infinite loop, polling every so often.

Types

type Checker

type Checker interface {
	// Check does whatever the checker is checking for.
	Check(context.Context) error
}

Checker is an interface that monitors must implement.

type Options

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

Options allow modification of parameters via the CLI.

func (*Options) AddFlags

func (o *Options) AddFlags(flags *pflag.FlagSet)

AddFlags registers option flags with pflag.

Directories

Path Synopsis
upgrade

Jump to

Keyboard shortcuts

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