config

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KUBECONFIG_ENV_NAME = "kubeconfig"
)

Variables

View Source
var (
	DefaultRefreshInterval = time.Second * 5
)

Functions

This section is empty.

Types

type Config

type Config struct {
	RefreshInterval time.Duration
	Filters         Filter
	SortBy          SortBy
	Kubeconfig      string
}

type Filter

type Filter struct {
	// filter by namespace
	Namespace string
	// filter by pod
	Pod string
	// filter by container
	Container string
}

type SortBy

type SortBy struct {
	// sort by cpu
	Cpu bool
	// sort by cpu utilization
	CpuUtilization bool
	// sort by memory
	Mem bool
	// sort by memory utilization
	MemUtilization bool
	// sort by pod name
	PodName bool
}

Jump to

Keyboard shortcuts

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