format

package
v2.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: MIT Imports: 4 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 added in v2.8.0

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

DatabaseIndexHealth implements Format function for database index health

func DatabaseIndexState added in v2.8.0

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

DatabaseIndexState implements Format function for database index states

func DatabaseState

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

DatabaseState implements Format function for database states

func KubernetesClusterState added in v2.6.0

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

KubernetesClusterState implements Format function for Kubernetes cluster states

func KubernetesNodeGroupState added in v2.6.0

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

KubernetesNodeGroupState implements Format function for Kubernetes node-group states

func LoadBalancerState

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

LoadBalancerState implements Format function for load-balancer 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 added in v2.9.0

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