Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SCHEMA_PLAIN = Schema{ StatusCodeIcon: SchemaStatusCode{ NONE: "", PASS: "", WARN: "", FAIL: "", }, StatusCodeText: SchemaStatusCode{ NONE: "%s", PASS: "%s", WARN: "%s", FAIL: "%s", }, Cluster: "%s", } SCHEMA_COLOR = Schema{ StatusCodeIcon: SchemaStatusCode{ NONE: "", PASS: "✅ ", WARN: "🟧 ", FAIL: "❌ ", }, StatusCodeText: SchemaStatusCode{ NONE: "%s", PASS: "\033[32m%s\033[0m", WARN: "\033[33m%s\033[0m", FAIL: "\033[31m%s\033[0m", }, Cluster: "\u001b[1m%s\u001b[0m", } SCHEMA = SCHEMA_PLAIN )
Functions ¶
func StatusIcon ¶
func StatusIcon(x types.StatusCode) string
func StatusText ¶
func StatusText(x types.StatusCode) string
Types ¶
type Schema ¶
type Schema struct { StatusCodeIcon SchemaStatusCode StatusCodeText SchemaStatusCode Cluster string }
func (Schema) FmtForStatus ¶
func (s Schema) FmtForStatus(c types.StatusCode) string
type SchemaStatusCode ¶
Click to show internal directories.
Click to hide internal directories.