Documentation ¶
Index ¶
- Constants
- type AppRunnerCommandFactory
- func (factory *AppRunnerCommandFactory) BuildAppEnvironment(envVars []string, appName string) map[string]string
- func (factory *AppRunnerCommandFactory) BuildEnvironment(envVars []string) map[string]string
- func (factory *AppRunnerCommandFactory) GetMonitorConfig(exposedPorts []uint16, portMonitorFlag int, noMonitorFlag bool, ...) (app_runner.MonitorConfig, error)
- func (factory *AppRunnerCommandFactory) MakeRemoveAppCommand() cli.Command
- func (factory *AppRunnerCommandFactory) MakeScaleAppCommand() cli.Command
- func (factory *AppRunnerCommandFactory) MakeSubmitLrpCommand() cli.Command
- func (factory *AppRunnerCommandFactory) MakeUpdateCommand() cli.Command
- func (factory *AppRunnerCommandFactory) ParseRouteOverrides(routes []string, ports []uint16) (app_runner.RouteOverrides, error)
- func (factory *AppRunnerCommandFactory) ParseTcpRoutes(routesTcp []string, ports []uint16) (app_runner.TcpRoutes, error)
- func (factory *AppRunnerCommandFactory) WaitForAppCreation(appName string, pollTimeout time.Duration, instanceCount int)
- type AppRunnerCommandFactoryConfig
Constants ¶
View Source
const ( InvalidPortErrorMessage = "Invalid port specified. Ports must be a positive integer less than 65536." ReservedPortErrorMessage = "" /* 134-byte string literal not displayed */ MalformedRouteErrorMessage = "Malformed route. Routes must be of the format route:port" MalformedTcpRouteErrorMessage = "Malformed TCP route. A TCP Route must be of the format container_port:external_port" MustSetMonitoredPortErrorMessage = "Must set monitor-port when specifying multiple exposed ports unless --no-monitor is set." MonitorPortNotExposed = "Must have an exposed port that matches the monitored port" DefaultPollingTimeout time.Duration = 2 * time.Minute )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppRunnerCommandFactory ¶
type AppRunnerCommandFactory struct { AppRunner app_runner.AppRunner AppExaminer app_examiner.AppExaminer UI terminal.UI Domain string Env []string Clock clock.Clock TailedLogsOutputter console_tailed_logs_outputter.TailedLogsOutputter ExitHandler exit_handler.ExitHandler }
func NewAppRunnerCommandFactory ¶
func NewAppRunnerCommandFactory(config AppRunnerCommandFactoryConfig) *AppRunnerCommandFactory
func (*AppRunnerCommandFactory) BuildAppEnvironment ¶
func (factory *AppRunnerCommandFactory) BuildAppEnvironment(envVars []string, appName string) map[string]string
func (*AppRunnerCommandFactory) BuildEnvironment ¶
func (factory *AppRunnerCommandFactory) BuildEnvironment(envVars []string) map[string]string
func (*AppRunnerCommandFactory) GetMonitorConfig ¶
func (factory *AppRunnerCommandFactory) GetMonitorConfig(exposedPorts []uint16, portMonitorFlag int, noMonitorFlag bool, urlMonitorFlag, monitorCommandFlag string, monitorTimeoutFlag time.Duration) (app_runner.MonitorConfig, error)
func (*AppRunnerCommandFactory) MakeRemoveAppCommand ¶
func (factory *AppRunnerCommandFactory) MakeRemoveAppCommand() cli.Command
func (*AppRunnerCommandFactory) MakeScaleAppCommand ¶
func (factory *AppRunnerCommandFactory) MakeScaleAppCommand() cli.Command
func (*AppRunnerCommandFactory) MakeSubmitLrpCommand ¶
func (factory *AppRunnerCommandFactory) MakeSubmitLrpCommand() cli.Command
func (*AppRunnerCommandFactory) MakeUpdateCommand ¶
func (factory *AppRunnerCommandFactory) MakeUpdateCommand() cli.Command
func (*AppRunnerCommandFactory) ParseRouteOverrides ¶
func (factory *AppRunnerCommandFactory) ParseRouteOverrides(routes []string, ports []uint16) (app_runner.RouteOverrides, error)
func (*AppRunnerCommandFactory) ParseTcpRoutes ¶
func (factory *AppRunnerCommandFactory) ParseTcpRoutes(routesTcp []string, ports []uint16) (app_runner.TcpRoutes, error)
func (*AppRunnerCommandFactory) WaitForAppCreation ¶
func (factory *AppRunnerCommandFactory) WaitForAppCreation(appName string, pollTimeout time.Duration, instanceCount int)
type AppRunnerCommandFactoryConfig ¶
type AppRunnerCommandFactoryConfig struct { AppRunner app_runner.AppRunner AppExaminer app_examiner.AppExaminer UI terminal.UI Domain string Env []string Clock clock.Clock Logger lager.Logger TailedLogsOutputter console_tailed_logs_outputter.TailedLogsOutputter ExitHandler exit_handler.ExitHandler }
Click to show internal directories.
Click to hide internal directories.