Documentation ¶
Index ¶
- Constants
- type JSONPrinter
- func (j *JSONPrinter) Fatalf(code int64, format string, tokens ...interface{})
- func (j *JSONPrinter) PrintDeploySummaries(deploys ...*models.DeploySummary) error
- func (j *JSONPrinter) PrintDeploys(deploys ...*models.Deploy) error
- func (j *JSONPrinter) PrintEnvironmentSummaries(environments ...*models.EnvironmentSummary) error
- func (j *JSONPrinter) PrintEnvironments(environments ...*models.Environment) error
- func (j *JSONPrinter) PrintJobs(jobs ...*models.Job) error
- func (j *JSONPrinter) PrintLoadBalancerHealthCheck(loadBalancer *models.LoadBalancer) error
- func (j *JSONPrinter) PrintLoadBalancerSummaries(loadBalancers ...*models.LoadBalancerSummary) error
- func (j *JSONPrinter) PrintLoadBalancers(loadBalancers ...*models.LoadBalancer) error
- func (j *JSONPrinter) PrintLogs(logs ...*models.LogFile) error
- func (j *JSONPrinter) PrintScalerRunInfo(runInfo *models.ScalerRunInfo) error
- func (j *JSONPrinter) PrintServiceSummaries(services ...*models.ServiceSummary) error
- func (j *JSONPrinter) PrintServices(services ...*models.Service) error
- func (j *JSONPrinter) PrintTaskSummaries(tasks ...*models.TaskSummary) error
- func (j *JSONPrinter) PrintTasks(tasks ...*models.Task) error
- func (j *JSONPrinter) Printf(format string, tokens ...interface{})
- func (j *JSONPrinter) StartSpinner(string)
- func (j *JSONPrinter) StopSpinner()
- type Printer
- type TestPrinter
- func (t *TestPrinter) Fatalf(int64, string, ...interface{})
- func (t *TestPrinter) PrintDeploySummaries(...*models.DeploySummary) error
- func (t *TestPrinter) PrintDeploys(...*models.Deploy) error
- func (t *TestPrinter) PrintEnvironmentSummaries(...*models.EnvironmentSummary) error
- func (t *TestPrinter) PrintEnvironments(...*models.Environment) error
- func (t *TestPrinter) PrintJobs(...*models.Job) error
- func (t *TestPrinter) PrintLoadBalancerHealthCheck(*models.LoadBalancer) error
- func (t *TestPrinter) PrintLoadBalancerSummaries(...*models.LoadBalancerSummary) error
- func (t *TestPrinter) PrintLoadBalancers(...*models.LoadBalancer) error
- func (t *TestPrinter) PrintLogs(...*models.LogFile) error
- func (t *TestPrinter) PrintScalerRunInfo(*models.ScalerRunInfo) error
- func (t *TestPrinter) PrintServiceSummaries(...*models.ServiceSummary) error
- func (t *TestPrinter) PrintServices(...*models.Service) error
- func (t *TestPrinter) PrintTaskSummaries(...*models.TaskSummary) error
- func (t *TestPrinter) PrintTasks(...*models.Task) error
- func (t *TestPrinter) Printf(string, ...interface{})
- func (t *TestPrinter) StartSpinner(string)
- func (t *TestPrinter) StopSpinner()
- type TextPrinter
- func (t *TextPrinter) Fatalf(code int64, format string, tokens ...interface{})
- func (t *TextPrinter) PrintDeploySummaries(deploys ...*models.DeploySummary) error
- func (t *TextPrinter) PrintDeploys(deploys ...*models.Deploy) error
- func (t *TextPrinter) PrintEnvironmentSummaries(environments ...*models.EnvironmentSummary) error
- func (t *TextPrinter) PrintEnvironments(environments ...*models.Environment) error
- func (t *TextPrinter) PrintJobs(jobs ...*models.Job) error
- func (t *TextPrinter) PrintLoadBalancerHealthCheck(loadBalancer *models.LoadBalancer) error
- func (t *TextPrinter) PrintLoadBalancerSummaries(loadBalancers ...*models.LoadBalancerSummary) error
- func (t *TextPrinter) PrintLoadBalancers(loadBalancers ...*models.LoadBalancer) error
- func (t *TextPrinter) PrintLogs(logs ...*models.LogFile) error
- func (t *TextPrinter) PrintScalerRunInfo(runInfo *models.ScalerRunInfo) error
- func (t *TextPrinter) PrintServiceSummaries(services ...*models.ServiceSummary) error
- func (t *TextPrinter) PrintServices(services ...*models.Service) error
- func (t *TextPrinter) PrintTaskSummaries(tasks ...*models.TaskSummary) error
- func (t *TextPrinter) PrintTasks(tasks ...*models.Task) error
- func (t *TextPrinter) Printf(format string, tokens ...interface{})
- func (t *TextPrinter) StartSpinner(prefix string)
- func (t *TextPrinter) StopSpinner()
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) 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) 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) 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) 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) 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) 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()
Click to show internal directories.
Click to hide internal directories.