mirror of
https://github.com/derailed/k9s.git
synced 2026-10-12 02:12:51 +00:00
* fix(lint): update golangci-lint version to v2.13 * fix(lint): resolve goconst/gosec/govet issues from golangci-lint v2.13
76 lines
1.6 KiB
Go
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"
|
|
)
|