format

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2022 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 DatabaseState

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

DatabaseState implements Format function for database states

func KubernetesState added in v2.4.0

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

KubernetesState implements Format function for Kubernetes 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 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