internal

package
v0.50.4 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2025 License: Apache-2.0, Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultPoolSize = 10

Variables

This section is empty.

Functions

func IsFuzzySelector added in v0.32.0

func IsFuzzySelector(s string) (string, bool)

IsFuzzySelector checks if query is fuzzy.

func IsInverseSelector added in v0.32.0

func IsInverseSelector(s string) bool

IsInverseSelector checks if inverse char has been provided.

func IsLabelSelector added in v0.32.0

func IsLabelSelector(s string) bool

IsLabelSelector checks if query is a label query.

Types

type ContextKey

type ContextKey string

ContextKey represents context key.

const (
	KeyFactory       ContextKey = "factory"
	KeyLabels        ContextKey = "labels"
	KeyFields        ContextKey = "fields"
	KeyTable         ContextKey = "table"
	KeyDir           ContextKey = "dir"
	KeyPath          ContextKey = "path"
	KeySubject       ContextKey = "subject"
	KeyGVR           ContextKey = "gvr"
	KeyFQN           ContextKey = "fqn"
	KeyForwards      ContextKey = "forwards"
	KeyContainers    ContextKey = "containers"
	KeyBenchCfg      ContextKey = "benchcfg"
	KeyAliases       ContextKey = "aliases"
	KeyUID           ContextKey = "uid"
	KeySubjectKind   ContextKey = "subjectKind"
	KeySubjectName   ContextKey = "subjectName"
	KeyNamespace     ContextKey = "namespace"
	KeyCluster       ContextKey = "cluster"
	KeyApp           ContextKey = "app"
	KeyStyles        ContextKey = "styles"
	KeyMetrics       ContextKey = "metrics"
	KeyHasMetrics    ContextKey = "has-metrics"
	KeyToast         ContextKey = "toast"
	KeyWithMetrics   ContextKey = "withMetrics"
	KeyViewConfig    ContextKey = "viewConfig"
	KeyWait          ContextKey = "wait"
	KeyPodCounting   ContextKey = "podCounting"
	KeyEnableImgScan ContextKey = "vulScan"
)

A collection of context keys.

type WorkerPool added in v0.50.0

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

func NewWorkerPool added in v0.50.0

func NewWorkerPool(ctx context.Context, size int) *WorkerPool

func (*WorkerPool) Add added in v0.50.0

func (p *WorkerPool) Add(job jobFn)

func (*WorkerPool) Drain added in v0.50.0

func (p *WorkerPool) Drain() []error

Directories

Path Synopsis
SPDX-License-Identifier: Apache-2.0 Copyright Authors of K9s
SPDX-License-Identifier: Apache-2.0 Copyright Authors of K9s
ui
cmd

Jump to

Keyboard shortcuts

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