Files
k9s/internal/render/types.go
T
Ümüt Özalp 7e31b293d6 fix(lint): update golangci-lint version to v2.13 (#4197)
* fix(lint): update golangci-lint version to v2.13

* fix(lint): resolve goconst/gosec/govet issues from golangci-lint v2.13
2026-09-14 15:04:24 -06:00

76 lines
1.6 KiB
Go

// SPDX-License-Identifier: Apache-2.0
// Copyright Authors of K9s
package render
const (
// NonResource represents a custom resource.
NonResource = "*"
)
const (
// Terminating represents a pod terminating status.
Terminating = "Terminating"
// Running represents a pod running status.
Running = "Running"
// Initialized represents a pod initialized status.
Initialized = "Initialized"
// Completed represents a pod completed status.
Completed = "Completed"
// ContainerCreating represents a pod container status.
ContainerCreating = "ContainerCreating"
// PodInitializing represents a pod initializing status.
PodInitializing = "PodInitializing"
// Pending represents a pod pending status.
Pending = "Pending"
// Blank represents no value.
Blank = ""
)
const (
// MissingValue indicates an unset value.
MissingValue = "<none>"
// NAValue indicates a value that does not pertain.
NAValue = "n/a"
// UnknownValue represents an unknown.
UnknownValue = "<unknown>"
// UnsetValue represent an unset value.
UnsetValue = "<unset>"
// ZeroValue represents a zero value.
ZeroValue = "0"
)
// Common header column names shared across resource renderers.
const (
colNamespace = "NAMESPACE"
colName = "NAME"
colAge = "AGE"
colStatus = "STATUS"
colValid = "VALID"
colReady = "READY"
colCPU = "CPU"
colMEM = "MEM"
colLabels = "LABELS"
colType = "TYPE"
colKind = "KIND"
colPorts = "PORTS"
colSelector = "SELECTOR"
colContainers = "CONTAINERS"
colImages = "IMAGES"
colDesired = "DESIRED"
colCurrent = "CURRENT"
colVS = "VS"
colVersion = "VERSION"
)