ui

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2018 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	OK     = "OK"
	FAILED = "FAILED"

	NoEndpoint         = "No api endpoint set. Use 'cf autoscaling-api' to set an endpoint."
	APIEndpoint        = "Autoscaler api endpoint: %s."
	SetAPIEndpoint     = "Setting AutoScaler api endpoint to %s..."
	UnsetAPIEndpoint   = "Unsetting AutoScaler api endpoint."
	InvalidAPIEndpoint = "Invalid AutoScaler API endpoint : %s."
	InvalidSSLCerts    = "Invalid SSL Cert for %s \nTIP: Use --skip-ssl-validation to continue with an insecure API endpoint."

	Unauthorized  = "Unauthorized. Failed to access AutoScaler API Endpoint %s with the access token generated by %s."
	LoginRequired = "You must be logged in %s first."

	FailToLoadPolicyFile = "Failed to read policy file %s."
	PolicyNotFound       = "No policy defined for app %s."
	InvalidPolicy        = "Invalid policy definition: %v."

	ShowPolicyHint   = "Showing policy for app %s..."
	AttachPolicyHint = "Attaching policy for app %s..."
	DetachPolicyHint = "Detaching policy for app %s..."
	ShowMetricsHint  = "Showing metrics for app %s..."
	ShowHistoryHint  = "Showing history for app %s..."

	UnrecognizedTimeFormat = "" /* 153-byte string literal not displayed */
	UnrecognizedMetricName = "Unrecognized metric name input: %s. \nSupported value: memoryused, memoryutil, responsetime, throughput."
	InvalidTimeRange       = "Invalid time range. The start time %s is greater than the end time %s."

	MetricsNotFound = "No metrics found for app %s."
	HistoryNotFound = "No history found for app %s."
)

Variables

This section is empty.

Functions

func SayFailed

func SayFailed()

func SayMessage

func SayMessage(message string, args ...interface{})

func SayOK

func SayOK()

Types

type PrintableTable

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

func (*PrintableTable) Add

func (t *PrintableTable) Add(row []string)

func (*PrintableTable) Print

func (t *PrintableTable) Print()

type Table

type Table interface {
	Add(row []string)
	Print()
}

func NewTable

func NewTable(w io.Writer, headers []string) Table

Jump to

Keyboard shortcuts

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