format

package
v3.28.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Boolean

func Boolean(val any) (text.Colors, string, error)

Boolean returns val formatted as a boolean

func DatabaseIndexHealth

func DatabaseIndexHealth(val any) (text.Colors, string, error)

DatabaseIndexHealth implements Format function for database index health

func DatabaseIndexState

func DatabaseIndexState(val any) (text.Colors, string, error)

DatabaseIndexState implements Format function for database index states

func DatabaseSessionPID

func DatabaseSessionPID(val any) (text.Colors, string, error)

DatabaseSessionPID implements Format function for database session PID

func DatabaseSessionState

func DatabaseSessionState(val any) (text.Colors, string, error)

DatabaseSessionState implements Format function for database session states

func DatabaseState

func DatabaseState(val any) (text.Colors, string, error)

DatabaseState implements Format function for database states

func Dereference added in v3.2.2

func Dereference[T any](val any) (text.Colors, string, error)

Dereference returns "%v" Sprintf'ed value of a pointer

func IPFilter added in v3.15.0

func IPFilter(val any) (text.Colors, string, error)

IPFilter returns formatted IP filter.

func KubernetesClusterState

func KubernetesClusterState(val any) (text.Colors, string, error)

KubernetesClusterState implements Format function for Kubernetes cluster states

func KubernetesNodeGroupState

func KubernetesNodeGroupState(val any) (text.Colors, string, error)

KubernetesNodeGroupState implements Format function for Kubernetes node-group states

func KubernetesNodeState

func KubernetesNodeState(val any) (text.Colors, string, error)

KubernetesNodeState implements Format function for Kubernetes node states

func LoadBalancerState

func LoadBalancerState(val any) (text.Colors, string, error)

LoadBalancerState implements Format function for load-balancer states

func NetworkPeeringState added in v3.6.0

func NetworkPeeringState(val any) (text.Colors, string, error)

NetworkPeeringState implements Format function for network peering states

func ObjectStorageConfiguredStatus added in v3.2.0

func ObjectStorageConfiguredStatus(val any) (text.Colors, string, error)

ObjectStorageConfiguredStatus implements Format function for managed object storage configured statuses

func ObjectStorageOperationalState added in v3.2.0

func ObjectStorageOperationalState(val any) (text.Colors, string, error)

ObjectStorageOperationalState implements Format function for managed object storage operational states

func PossiblyUnknownString

func PossiblyUnknownString(val any) (text.Colors, string, error)

PossiblyUnknownString outputs "Unknown" in light black if input value is an empty string, otherwise passesthrough the input value.

func ServerGroupAntiAffinityState

func ServerGroupAntiAffinityState(val any) (text.Colors, string, error)

ServerGroupAntiAffinityState implements Format function for server group anti-affinity states

func ServerState

func ServerState(val any) (text.Colors, string, error)

ServerState implements Format function for server states

func StorageState

func StorageState(val any) (text.Colors, string, error)

StorageState implements Format function for storage states

func StringSliceAnd added in v3.9.0

func StringSliceAnd(val any) (text.Colors, string, error)

func StringSliceOr added in v3.9.0

func StringSliceOr(val any) (text.Colors, string, error)

func StringSliceSingleLineAnd added in v3.9.0

func StringSliceSingleLineAnd(val any) (text.Colors, string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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