package
1.13.0
Repository: https://github.com/kubeshop/botkube.git
Documentation: pkg.go.dev

# Functions

NewDynamicSpinner returns a new DynamicSpinner instance.
NewForResource returns a new ResourcePrinter instance.
NewStaticSpinner returns a new StaticSpinner instance.
NewStatus returns a new Status instance.
WithDefaultOutputFormat sets a default format type.
WithJSON registers JSON format type.
WithYAML registers YAML format type.

# Constants

JSONFormat represents JSON data format.
YAMLFormat represents YAML data format.

# Variables

ErrInvalidFormatType is returned when an unsupported format type is used.

# Structs

DynamicSpinner is suitable for smart terminals which support animations (control cursor location, color etc.).
JSON prints data in JSON format.
ResourcePrinter provides functionality to print a given resource in requested format.
StaticSpinner is suitable for non-smart terminals.
StatusPrinter provides functionality to display steps progress in terminal.
YAML prints data in YAML format.

# Interfaces

Printer is an interface that knows how to print objects.
Spinner defines interface for terminal spinner.
Status defines status printer methods.

# Type aliases

PrintFormat is a type for capturing supported output formats.
ResourcePrinterOption allows ResourcePrinter instance customization.