format

package
v3.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Boolean

func Boolean(val interface{}) (text.Colors, string, error)

Boolean returns val formatted as a boolean

func DatabaseIndexHealth

func DatabaseIndexHealth(val interface{}) (text.Colors, string, error)

DatabaseIndexHealth implements Format function for database index health

func DatabaseIndexState

func DatabaseIndexState(val interface{}) (text.Colors, string, error)

DatabaseIndexState implements Format function for database index states

func DatabaseSessionPID

func DatabaseSessionPID(val interface{}) (text.Colors, string, error)

DatabaseSessionPID implements Format function for database session PID

func DatabaseSessionState

func DatabaseSessionState(val interface{}) (text.Colors, string, error)

DatabaseSessionState implements Format function for database session states

func DatabaseState

func DatabaseState(val interface{}) (text.Colors, string, error)

DatabaseState implements Format function for database states

func Dereference added in v3.2.2

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

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

func KubernetesClusterState

func KubernetesClusterState(val interface{}) (text.Colors, string, error)

KubernetesClusterState implements Format function for Kubernetes cluster states

func KubernetesNodeGroupState

func KubernetesNodeGroupState(val interface{}) (text.Colors, string, error)

KubernetesNodeGroupState implements Format function for Kubernetes node-group states

func KubernetesNodeState

func KubernetesNodeState(val interface{}) (text.Colors, string, error)

KubernetesNodeState implements Format function for Kubernetes node states

func LoadBalancerState

func LoadBalancerState(val interface{}) (text.Colors, string, error)

LoadBalancerState implements Format function for load-balancer states

func NetworkPeeringState added in v3.6.0

func NetworkPeeringState(val interface{}) (text.Colors, string, error)

NetworkPeeringState implements Format function for network peering states

func ObjectStorageConfiguredStatus added in v3.2.0

func ObjectStorageConfiguredStatus(val interface{}) (text.Colors, string, error)

ObjectStorageConfiguredStatus implements Format function for managed object storage configured statuses

func ObjectStorageOperationalState added in v3.2.0

func ObjectStorageOperationalState(val interface{}) (text.Colors, string, error)

ObjectStorageOperationalState implements Format function for managed object storage operational states

func PossiblyUnknownString

func PossiblyUnknownString(val interface{}) (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 interface{}) (text.Colors, string, error)

ServerGroupAntiAffinityState implements Format function for server group anti-affinity states

func ServerState

func ServerState(val interface{}) (text.Colors, string, error)

ServerState implements Format function for server states

func StorageState

func StorageState(val interface{}) (text.Colors, string, error)

StorageState implements Format function for storage states

Types

This section is empty.

Jump to

Keyboard shortcuts

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