ui

package
v3.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2019 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"

	NOCFAPIEndpoint    = "No Cloud Foundry api endpoint set. Use 'cf api' to set Cloud Foundry endpoint first."
	NoEndpoint         = "No AutoScaler 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."
	InconsistentDomain = "Failed to set AutoScaler domain to %s since it is inconsitent with the domain of CF API %s."

	Unauthorized  = "Unauthorized. Failed to access AutoScaler API endpoint %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   = "Retrieving policy for app %s..."
	AttachPolicyHint = "Attaching policy for app %s..."
	DetachPolicyHint = "Detaching policy for app %s..."

	CreateCredentialHint = "Creating custom metric credential for app %s..."
	DeleteCredentialHint = "Deleting custom metric credential for app %s..."

	ShowAggregatedMetricsHint = "Retrieving aggregated %s metrics for app %s..."
	ShowHistoryHint           = "Retrieving scaling event history for app %s..."

	SavePolicyHint           = "Saving policy for app %s to %s... "
	SaveCredentialHint       = "Saving new created credential for app %s to %s..."
	SaveAggregatedMetricHint = "Saving aggregated metrics for app %s to %s... "
	SaveHistoryHint          = "Saving scaling event history for app %s to %s... "

	UnrecognizedTimeFormat = "" /* 154-byte string literal not displayed */
	UnrecognizedMetricName = "" /* 174-byte string literal not displayed */
	InvalidTimeRange       = "Invalid time range. The start time %s is greater than the end time %s."

	AggregatedMetricsNotFound = "No aggregated %s metrics were found for app %s."
	HistoryNotFound           = "No event history were found for app %s."

	InvalidCredentialUsername = "Both USERNAME and PASSWORD need to be provided for user-defined credential."
	InvalidCredentialPassword = "Both USERNAME and PASSWORD need to be provided for user-defined credential."
	InvalidCredential         = "Invalid credential definition: %v."

	MoreRecordsWarning      = "TIP: More records available. Please re-run the command with --start or --end option to fetch more."
	DeprecatedDescWarning   = "TIP: The default order is set to descending now. Please remove the DEPRECATED flag '--desc'."
	CreateCredentialWarning = "" /* 163-byte string literal not displayed */
	DeleteCredentialWarning = "" /* 161-byte string literal not displayed */
)

Variables

This section is empty.

Functions

func SayFailed

func SayFailed()

func SayMessage

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

func SayOK

func SayOK()

func SayWarningMessage

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

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