util

package
v1.6.4 Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const ClearLine = "\r\033[K"
View Source
const Frames = `⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏`
View Source
const ProgressBarWidth = 30

Variables

This section is empty.

Functions

func AugmentStarterClusterType

func AugmentStarterClusterType(starterClusterCreateClusterType string) (models.ClusterType, error)

func AugmentZoneType added in v1.4.0

func AugmentZoneType(enterpriseClusterCreateZoneType string) (models.ZoneType, error)

func Print

func Print(request PrintRequest)

Types

type LoadingIndicator

type LoadingIndicator struct {
	// contains filtered or unexported fields
}

func NewLoadingIndicator

func NewLoadingIndicator(message string, totalSteps int) *LoadingIndicator

func (*LoadingIndicator) SetStep

func (s *LoadingIndicator) SetStep(message string, currentStep int)

func (*LoadingIndicator) Start

func (s *LoadingIndicator) Start()

func (*LoadingIndicator) Stop

func (s *LoadingIndicator) Stop() string

type PrintRequest

type PrintRequest struct {
	Rows       []table.Row
	Header     table.Row
	Data       interface{}
	PrintStyle PrintStyle
}

type PrintStyle

type PrintStyle string
const (
	PrintStyleDefault  PrintStyle = "default"
	PrintStyleCsv      PrintStyle = "csv"
	PrintStyleHtml     PrintStyle = "html"
	PrintStyleMarkdown PrintStyle = "markdown"
	PrintStyleJson     PrintStyle = "json"
)

Jump to

Keyboard shortcuts

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