mode

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Determines the Execution Modes supported by the application.

  • adhoc: the application will poll the k8s API once and then print and report (if configured) its findings
  • periodic: the application will poll the k8s API on an interval (polling-interval-seconds) and report (if configured) its findings

Index

Constants

This section is empty.

Variables

View Source
var Modes = []Mode{
	AdHoc,
	PeriodicPolling,
}

Functions

This section is empty.

Types

type Mode

type Mode int
const (
	AdHoc Mode = iota
	PeriodicPolling
)

func ParseMode

func ParseMode(userStr string) Mode

Parse the Mode from the user specified string (should match one of modeStr - see above). If no matches, we fallback to adhoc

func (Mode) String

func (o Mode) String() string

Convert the mode object to a string

Jump to

Keyboard shortcuts

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