Documentation ¶
Index ¶
- Constants
- func LogMessageOutput(msg *logmessage.LogMessage, loc *time.Location) string
- func NewLogMessage(msgText, appGuid, sourceName string, timestamp time.Time) *logmessage.LogMessage
- type ApplicationDisplayer
- type ApplicationRestarter
- type ApplicationStarter
- type ApplicationStopper
- type DeleteApp
- type Env
- type Events
- type Files
- type ListApps
- type Logs
- type Push
- type RenameApp
- type Restart
- type Scale
- type SetEnv
- type ShowApp
- type Start
- func (cmd *Start) ApplicationStart(app models.Application) (updatedApp models.Application, err error)
- func (cmd *Start) GetRequirements(requirementsFactory requirements.Factory, c *cli.Context) (reqs []requirements.Requirement, err error)
- func (cmd *Start) Run(c *cli.Context)
- func (cmd *Start) SetStartTimeoutSeconds(timeout int)
- type Stop
- type UnsetEnv
Constants ¶
View Source
const ( DefaultStagingTimeout = 15 * time.Minute DefaultStartupTimeout = 5 * time.Minute DefaultPingerThrottle = 5 * time.Second )
View Source
const LogMessageTypeStaging = "STG"
View Source
const (
TIMESTAMP_FORMAT = "2006-01-02T15:04:05.00-0700"
)
Variables ¶
This section is empty.
Functions ¶
func LogMessageOutput ¶
func LogMessageOutput(msg *logmessage.LogMessage, loc *time.Location) string
func NewLogMessage ¶
func NewLogMessage(msgText, appGuid, sourceName string, timestamp time.Time) *logmessage.LogMessage
Types ¶
type ApplicationDisplayer ¶
type ApplicationDisplayer interface {
ShowApp(app models.Application)
}
type ApplicationRestarter ¶
type ApplicationRestarter interface {
ApplicationRestart(app models.Application)
}
type ApplicationStarter ¶
type ApplicationStarter interface { SetStartTimeoutSeconds(timeout int) ApplicationStart(app models.Application) (updatedApp models.Application, err error) }
type ApplicationStopper ¶
type ApplicationStopper interface {
ApplicationStop(app models.Application) (updatedApp models.Application, err error)
}
type DeleteApp ¶
type DeleteApp struct {
// contains filtered or unexported fields
}
func NewDeleteApp ¶
func NewDeleteApp(ui terminal.UI, config configuration.Reader, appRepo api.ApplicationRepository, routeRepo api.RouteRepository) (cmd *DeleteApp)
func (*DeleteApp) GetRequirements ¶
func (cmd *DeleteApp) GetRequirements(requirementsFactory requirements.Factory, c *cli.Context) (reqs []requirements.Requirement, err error)
type Env ¶
type Env struct {
// contains filtered or unexported fields
}
func (*Env) GetRequirements ¶
func (cmd *Env) GetRequirements(requirementsFactory requirements.Factory, c *cli.Context) (reqs []requirements.Requirement, err error)
type Events ¶
type Events struct {
// contains filtered or unexported fields
}
func NewEvents ¶
func NewEvents(ui terminal.UI, config configuration.Reader, eventsRepo api.AppEventsRepository) (cmd *Events)
func (*Events) GetRequirements ¶
func (cmd *Events) GetRequirements(requirementsFactory requirements.Factory, c *cli.Context) (reqs []requirements.Requirement, err error)
type Files ¶
type Files struct {
// contains filtered or unexported fields
}
func NewFiles ¶
func NewFiles(ui terminal.UI, config configuration.Reader, appFilesRepo api.AppFilesRepository) (cmd *Files)
func (*Files) GetRequirements ¶
func (cmd *Files) GetRequirements(requirementsFactory requirements.Factory, c *cli.Context) (reqs []requirements.Requirement, err error)
type ListApps ¶
type ListApps struct {
// contains filtered or unexported fields
}
func NewListApps ¶
func NewListApps(ui terminal.UI, config configuration.Reader, appSummaryRepo api.AppSummaryRepository) (cmd ListApps)
func (ListApps) GetRequirements ¶
func (cmd ListApps) GetRequirements(requirementsFactory requirements.Factory, c *cli.Context) (reqs []requirements.Requirement, err error)
type Logs ¶
type Logs struct {
// contains filtered or unexported fields
}
func NewLogs ¶
func NewLogs(ui terminal.UI, config configuration.Reader, logsRepo api.LogsRepository) (cmd *Logs)
func (*Logs) GetRequirements ¶
func (cmd *Logs) GetRequirements(requirementsFactory requirements.Factory, c *cli.Context) (reqs []requirements.Requirement, err error)
type Push ¶
type Push struct {
// contains filtered or unexported fields
}
func NewPush ¶
func NewPush(ui terminal.UI, config configuration.Reader, manifestRepo manifest.ManifestRepository, starter ApplicationStarter, stopper ApplicationStopper, binder service.ServiceBinder, appRepo api.ApplicationRepository, domainRepo api.DomainRepository, routeRepo api.RouteRepository, stackRepo api.StackRepository, serviceRepo api.ServiceRepository, appBitsRepo api.ApplicationBitsRepository, authRepo api.AuthenticationRepository, wordGenerator words.WordGenerator) *Push
func (*Push) GetRequirements ¶
func (cmd *Push) GetRequirements(requirementsFactory requirements.Factory, c *cli.Context) (reqs []requirements.Requirement, err error)
type RenameApp ¶
type RenameApp struct {
// contains filtered or unexported fields
}
func NewRenameApp ¶
func NewRenameApp(ui terminal.UI, config configuration.Reader, appRepo api.ApplicationRepository) (cmd *RenameApp)
func (*RenameApp) GetRequirements ¶
func (cmd *RenameApp) GetRequirements(requirementsFactory requirements.Factory, c *cli.Context) (reqs []requirements.Requirement, err error)
type Restart ¶
type Restart struct {
// contains filtered or unexported fields
}
func NewRestart ¶
func NewRestart(ui terminal.UI, starter ApplicationStarter, stopper ApplicationStopper) (cmd *Restart)
func (*Restart) ApplicationRestart ¶
func (cmd *Restart) ApplicationRestart(app models.Application)
func (*Restart) GetRequirements ¶
func (cmd *Restart) GetRequirements(requirementsFactory requirements.Factory, c *cli.Context) (reqs []requirements.Requirement, err error)
type Scale ¶
type Scale struct {
// contains filtered or unexported fields
}
func NewScale ¶
func NewScale(ui terminal.UI, config configuration.Reader, restarter ApplicationRestarter, appRepo api.ApplicationRepository) (cmd *Scale)
func (*Scale) GetRequirements ¶
func (cmd *Scale) GetRequirements(requirementsFactory requirements.Factory, c *cli.Context) (reqs []requirements.Requirement, err error)
type SetEnv ¶
type SetEnv struct {
// contains filtered or unexported fields
}
func NewSetEnv ¶
func NewSetEnv(ui terminal.UI, config configuration.Reader, appRepo api.ApplicationRepository) (cmd *SetEnv)
func (*SetEnv) GetRequirements ¶
func (cmd *SetEnv) GetRequirements(requirementsFactory requirements.Factory, c *cli.Context) (reqs []requirements.Requirement, err error)
type ShowApp ¶
type ShowApp struct {
// contains filtered or unexported fields
}
func NewShowApp ¶
func NewShowApp(ui terminal.UI, config configuration.Reader, appSummaryRepo api.AppSummaryRepository, appInstancesRepo api.AppInstancesRepository) (cmd *ShowApp)
func (*ShowApp) GetRequirements ¶
func (cmd *ShowApp) GetRequirements(requirementsFactory requirements.Factory, c *cli.Context) (reqs []requirements.Requirement, err error)
func (*ShowApp) ShowApp ¶
func (cmd *ShowApp) ShowApp(app models.Application)
type Start ¶
type Start struct { StartupTimeout time.Duration StagingTimeout time.Duration PingerThrottle time.Duration // contains filtered or unexported fields }
func NewStart ¶
func NewStart(ui terminal.UI, config configuration.Reader, appDisplayer ApplicationDisplayer, appRepo api.ApplicationRepository, appInstancesRepo api.AppInstancesRepository, logRepo api.LogsRepository) (cmd *Start)
func (*Start) ApplicationStart ¶
func (cmd *Start) ApplicationStart(app models.Application) (updatedApp models.Application, err error)
func (*Start) GetRequirements ¶
func (cmd *Start) GetRequirements(requirementsFactory requirements.Factory, c *cli.Context) (reqs []requirements.Requirement, err error)
func (*Start) SetStartTimeoutSeconds ¶
type Stop ¶
type Stop struct {
// contains filtered or unexported fields
}
func NewStop ¶
func NewStop(ui terminal.UI, config configuration.Reader, appRepo api.ApplicationRepository) (cmd *Stop)
func (*Stop) ApplicationStop ¶
func (cmd *Stop) ApplicationStop(app models.Application) (updatedApp models.Application, err error)
func (*Stop) GetRequirements ¶
func (cmd *Stop) GetRequirements(requirementsFactory requirements.Factory, c *cli.Context) (reqs []requirements.Requirement, err error)
type UnsetEnv ¶
type UnsetEnv struct {
// contains filtered or unexported fields
}
func NewUnsetEnv ¶
func NewUnsetEnv(ui terminal.UI, config configuration.Reader, appRepo api.ApplicationRepository) (cmd *UnsetEnv)
func (*UnsetEnv) GetRequirements ¶
func (cmd *UnsetEnv) GetRequirements(requirementsFactory requirements.Factory, c *cli.Context) (reqs []requirements.Requirement, err error)
Click to show internal directories.
Click to hide internal directories.