printer

package
v0.10.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const TIME_FORMAT = "2006-01-02 15:04:05"

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONPrinter

type JSONPrinter struct{}

func (*JSONPrinter) Fatalf

func (j *JSONPrinter) Fatalf(code int64, format string, tokens ...interface{})

func (*JSONPrinter) PrintDeploySummaries

func (j *JSONPrinter) PrintDeploySummaries(deploys ...*models.DeploySummary) error

func (*JSONPrinter) PrintDeploys

func (j *JSONPrinter) PrintDeploys(deploys ...*models.Deploy) error

func (*JSONPrinter) PrintEnvironmentSummaries

func (j *JSONPrinter) PrintEnvironmentSummaries(environments ...*models.EnvironmentSummary) error

func (*JSONPrinter) PrintEnvironments

func (j *JSONPrinter) PrintEnvironments(environments ...*models.Environment) error

func (*JSONPrinter) PrintJobs

func (j *JSONPrinter) PrintJobs(jobs ...*models.Job) error

func (*JSONPrinter) PrintLoadBalancerHealthCheck

func (j *JSONPrinter) PrintLoadBalancerHealthCheck(loadBalancer *models.LoadBalancer) error

func (*JSONPrinter) PrintLoadBalancerSummaries

func (j *JSONPrinter) PrintLoadBalancerSummaries(loadBalancers ...*models.LoadBalancerSummary) error

func (*JSONPrinter) PrintLoadBalancers

func (j *JSONPrinter) PrintLoadBalancers(loadBalancers ...*models.LoadBalancer) error

func (*JSONPrinter) PrintLogs

func (j *JSONPrinter) PrintLogs(logs ...*models.LogFile) error

func (*JSONPrinter) PrintScalerRunInfo

func (j *JSONPrinter) PrintScalerRunInfo(runInfo *models.ScalerRunInfo) error

func (*JSONPrinter) PrintServiceSummaries

func (j *JSONPrinter) PrintServiceSummaries(services ...*models.ServiceSummary) error

func (*JSONPrinter) PrintServices

func (j *JSONPrinter) PrintServices(services ...*models.Service) error

func (*JSONPrinter) PrintTaskSummaries

func (j *JSONPrinter) PrintTaskSummaries(tasks ...*models.TaskSummary) error

func (*JSONPrinter) PrintTasks

func (j *JSONPrinter) PrintTasks(tasks ...*models.Task) error

func (*JSONPrinter) Printf

func (j *JSONPrinter) Printf(format string, tokens ...interface{})

func (*JSONPrinter) StartSpinner

func (j *JSONPrinter) StartSpinner(string)

func (*JSONPrinter) StopSpinner

func (j *JSONPrinter) StopSpinner()

type Printer

type Printer interface {
	StartSpinner(message string)
	StopSpinner()
	PrintDeploys(deploys ...*models.Deploy) error
	PrintDeploySummaries(deploys ...*models.DeploySummary) error
	PrintEnvironments(environments ...*models.Environment) error
	PrintEnvironmentSummaries(environments ...*models.EnvironmentSummary) error
	PrintJobs(jobs ...*models.Job) error
	PrintLoadBalancers(loadBalancers ...*models.LoadBalancer) error
	PrintLoadBalancerSummaries(loadBalancers ...*models.LoadBalancerSummary) error
	PrintLoadBalancerHealthCheck(loadBalancer *models.LoadBalancer) error
	PrintLogs(logs ...*models.LogFile) error
	PrintScalerRunInfo(*models.ScalerRunInfo) error
	PrintServices(services ...*models.Service) error
	PrintServiceSummaries(services ...*models.ServiceSummary) error
	PrintTasks(tasks ...*models.Task) error
	PrintTaskSummaries(tasks ...*models.TaskSummary) error
	Printf(format string, tokens ...interface{})
	Fatalf(code int64, format string, tokens ...interface{})
}

type TestPrinter

type TestPrinter struct{}

we use a TestPrinter instead of a mock because gomock doesn't support using gomock.Any() for variadic functions

func (*TestPrinter) Fatalf

func (t *TestPrinter) Fatalf(int64, string, ...interface{})

func (*TestPrinter) PrintDeploySummaries

func (t *TestPrinter) PrintDeploySummaries(...*models.DeploySummary) error

func (*TestPrinter) PrintDeploys

func (t *TestPrinter) PrintDeploys(...*models.Deploy) error

func (*TestPrinter) PrintEnvironmentSummaries

func (t *TestPrinter) PrintEnvironmentSummaries(...*models.EnvironmentSummary) error

func (*TestPrinter) PrintEnvironments

func (t *TestPrinter) PrintEnvironments(...*models.Environment) error

func (*TestPrinter) PrintJobs

func (t *TestPrinter) PrintJobs(...*models.Job) error

func (*TestPrinter) PrintLoadBalancerHealthCheck

func (t *TestPrinter) PrintLoadBalancerHealthCheck(*models.LoadBalancer) error

func (*TestPrinter) PrintLoadBalancerSummaries

func (t *TestPrinter) PrintLoadBalancerSummaries(...*models.LoadBalancerSummary) error

func (*TestPrinter) PrintLoadBalancers

func (t *TestPrinter) PrintLoadBalancers(...*models.LoadBalancer) error

func (*TestPrinter) PrintLogs

func (t *TestPrinter) PrintLogs(...*models.LogFile) error

func (*TestPrinter) PrintScalerRunInfo

func (t *TestPrinter) PrintScalerRunInfo(*models.ScalerRunInfo) error

func (*TestPrinter) PrintServiceSummaries

func (t *TestPrinter) PrintServiceSummaries(...*models.ServiceSummary) error

func (*TestPrinter) PrintServices

func (t *TestPrinter) PrintServices(...*models.Service) error

func (*TestPrinter) PrintTaskSummaries

func (t *TestPrinter) PrintTaskSummaries(...*models.TaskSummary) error

func (*TestPrinter) PrintTasks

func (t *TestPrinter) PrintTasks(...*models.Task) error

func (*TestPrinter) Printf

func (t *TestPrinter) Printf(string, ...interface{})

func (*TestPrinter) StartSpinner

func (t *TestPrinter) StartSpinner(string)

func (*TestPrinter) StopSpinner

func (t *TestPrinter) StopSpinner()

type TextPrinter

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

func (*TextPrinter) Fatalf

func (t *TextPrinter) Fatalf(code int64, format string, tokens ...interface{})

func (*TextPrinter) PrintDeploySummaries

func (t *TextPrinter) PrintDeploySummaries(deploys ...*models.DeploySummary) error

func (*TextPrinter) PrintDeploys

func (t *TextPrinter) PrintDeploys(deploys ...*models.Deploy) error

func (*TextPrinter) PrintEnvironmentSummaries

func (t *TextPrinter) PrintEnvironmentSummaries(environments ...*models.EnvironmentSummary) error

func (*TextPrinter) PrintEnvironments

func (t *TextPrinter) PrintEnvironments(environments ...*models.Environment) error

func (*TextPrinter) PrintJobs

func (t *TextPrinter) PrintJobs(jobs ...*models.Job) error

func (*TextPrinter) PrintLoadBalancerHealthCheck

func (t *TextPrinter) PrintLoadBalancerHealthCheck(loadBalancer *models.LoadBalancer) error

func (*TextPrinter) PrintLoadBalancerSummaries

func (t *TextPrinter) PrintLoadBalancerSummaries(loadBalancers ...*models.LoadBalancerSummary) error

func (*TextPrinter) PrintLoadBalancers

func (t *TextPrinter) PrintLoadBalancers(loadBalancers ...*models.LoadBalancer) error

func (*TextPrinter) PrintLogs

func (t *TextPrinter) PrintLogs(logs ...*models.LogFile) error

func (*TextPrinter) PrintScalerRunInfo

func (t *TextPrinter) PrintScalerRunInfo(runInfo *models.ScalerRunInfo) error

func (*TextPrinter) PrintServiceSummaries

func (t *TextPrinter) PrintServiceSummaries(services ...*models.ServiceSummary) error

func (*TextPrinter) PrintServices

func (t *TextPrinter) PrintServices(services ...*models.Service) error

func (*TextPrinter) PrintTaskSummaries

func (t *TextPrinter) PrintTaskSummaries(tasks ...*models.TaskSummary) error

func (*TextPrinter) PrintTasks

func (t *TextPrinter) PrintTasks(tasks ...*models.Task) error

func (*TextPrinter) Printf

func (t *TextPrinter) Printf(format string, tokens ...interface{})

func (*TextPrinter) StartSpinner

func (t *TextPrinter) StartSpinner(prefix string)

func (*TextPrinter) StopSpinner

func (t *TextPrinter) StopSpinner()

Jump to

Keyboard shortcuts

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