application

package
v6.6.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2014 License: Apache-2.0 Imports: 32 Imported by: 52

Documentation

Index

Constants

View Source
const (
	DefaultStagingTimeout = 15 * time.Minute
	DefaultStartupTimeout = 5 * time.Minute
	DefaultPingerThrottle = 5 * time.Second
)
View Source
const LogMessageTypeStaging = "STG"

Variables

This section is empty.

Functions

func LogMessageOutput

func LogMessageOutput(msg *logmessage.LogMessage, loc *time.Location) string

Types

type ApplicationDisplayer

type ApplicationDisplayer interface {
	ShowApp(app models.Application)
}

type ApplicationRestarter

type ApplicationRestarter interface {
	ApplicationRestart(app models.Application)
}

type ApplicationStagingWatcher

type ApplicationStagingWatcher interface {
	ApplicationWatchStaging(app models.Application, startCommand func(app models.Application) (models.Application, error)) (updatedApp models.Application, err error)
}

type ApplicationStarter

type ApplicationStarter interface {
	SetStartTimeoutInSeconds(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 core_config.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)

func (*DeleteApp) Metadata

func (cmd *DeleteApp) Metadata() command_metadata.CommandMetadata

func (*DeleteApp) Run

func (cmd *DeleteApp) Run(c *cli.Context)

type Env

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

func NewEnv

func NewEnv(ui terminal.UI, config core_config.Reader, appRepo api.ApplicationRepository) (cmd *Env)

func (*Env) GetRequirements

func (cmd *Env) GetRequirements(requirementsFactory requirements.Factory, c *cli.Context) ([]requirements.Requirement, error)

func (*Env) Metadata

func (cmd *Env) Metadata() command_metadata.CommandMetadata

func (*Env) Run

func (cmd *Env) Run(c *cli.Context)

type Events

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

func NewEvents

func NewEvents(ui terminal.UI, config core_config.Reader, eventsRepo app_events.AppEventsRepository) (cmd *Events)

func (*Events) GetRequirements

func (cmd *Events) GetRequirements(requirementsFactory requirements.Factory, c *cli.Context) (reqs []requirements.Requirement, err error)

func (*Events) Metadata

func (cmd *Events) Metadata() command_metadata.CommandMetadata

func (*Events) Run

func (cmd *Events) Run(c *cli.Context)

type Files

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

func NewFiles

func NewFiles(ui terminal.UI, config core_config.Reader, appFilesRepo app_files.AppFilesRepository) (cmd *Files)

func (*Files) GetRequirements

func (cmd *Files) GetRequirements(requirementsFactory requirements.Factory, c *cli.Context) (reqs []requirements.Requirement, err error)

func (*Files) Metadata

func (cmd *Files) Metadata() command_metadata.CommandMetadata

func (*Files) Run

func (cmd *Files) Run(c *cli.Context)

type ListApps

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

func NewListApps

func NewListApps(ui terminal.UI, config core_config.Reader, appSummaryRepo api.AppSummaryRepository) (cmd ListApps)

func (ListApps) GetRequirements

func (cmd ListApps) GetRequirements(requirementsFactory requirements.Factory, c *cli.Context) (reqs []requirements.Requirement, err error)

func (ListApps) Metadata

func (cmd ListApps) Metadata() command_metadata.CommandMetadata

func (ListApps) Run

func (cmd ListApps) Run(c *cli.Context)

type Logs

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

func NewLogs

func NewLogs(ui terminal.UI, config core_config.Reader, logsRepo api.LogsRepository) (cmd *Logs)

func (*Logs) GetRequirements

func (cmd *Logs) GetRequirements(requirementsFactory requirements.Factory, c *cli.Context) (reqs []requirements.Requirement, err error)

func (*Logs) Metadata

func (cmd *Logs) Metadata() command_metadata.CommandMetadata

func (*Logs) Run

func (cmd *Logs) Run(c *cli.Context)

type Push

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

func (*Push) GetRequirements

func (cmd *Push) GetRequirements(requirementsFactory requirements.Factory, c *cli.Context) (reqs []requirements.Requirement, err error)

func (*Push) Metadata

func (cmd *Push) Metadata() command_metadata.CommandMetadata

func (*Push) Run

func (cmd *Push) Run(c *cli.Context)

type RenameApp

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

func NewRenameApp

func NewRenameApp(ui terminal.UI, config core_config.Reader, appRepo api.ApplicationRepository) (cmd *RenameApp)

func (*RenameApp) GetRequirements

func (cmd *RenameApp) GetRequirements(requirementsFactory requirements.Factory, c *cli.Context) (reqs []requirements.Requirement, err error)

func (*RenameApp) Metadata

func (cmd *RenameApp) Metadata() command_metadata.CommandMetadata

func (*RenameApp) Run

func (cmd *RenameApp) Run(c *cli.Context)

type Restage

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

func NewRestage

func NewRestage(ui terminal.UI, config core_config.Reader, appRepo api.ApplicationRepository, stagingWatcher ApplicationStagingWatcher) *Restage

func (*Restage) GetRequirements

func (cmd *Restage) GetRequirements(requirementsFactory requirements.Factory, c *cli.Context) (reqs []requirements.Requirement, err error)

func (*Restage) Metadata

func (cmd *Restage) Metadata() command_metadata.CommandMetadata

func (*Restage) Run

func (cmd *Restage) Run(c *cli.Context)

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)

func (*Restart) Metadata

func (cmd *Restart) Metadata() command_metadata.CommandMetadata

func (*Restart) Run

func (cmd *Restart) Run(c *cli.Context)

type Scale

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

func NewScale

func NewScale(ui terminal.UI, config core_config.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)

func (*Scale) Metadata

func (cmd *Scale) Metadata() command_metadata.CommandMetadata

func (*Scale) Run

func (cmd *Scale) Run(c *cli.Context)

type SetEnv

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

func NewSetEnv

func NewSetEnv(ui terminal.UI, config core_config.Reader, appRepo api.ApplicationRepository) *SetEnv

func (*SetEnv) GetRequirements

func (cmd *SetEnv) GetRequirements(requirementsFactory requirements.Factory, c *cli.Context) (reqs []requirements.Requirement, err error)

func (*SetEnv) Metadata

func (cmd *SetEnv) Metadata() command_metadata.CommandMetadata

func (*SetEnv) Run

func (cmd *SetEnv) Run(c *cli.Context)

type ShowApp

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

func NewShowApp

func NewShowApp(ui terminal.UI, config core_config.Reader, appSummaryRepo api.AppSummaryRepository, appInstancesRepo app_instances.AppInstancesRepository) (cmd *ShowApp)

func (*ShowApp) GetRequirements

func (cmd *ShowApp) GetRequirements(requirementsFactory requirements.Factory, c *cli.Context) (reqs []requirements.Requirement, err error)

func (*ShowApp) Metadata

func (cmd *ShowApp) Metadata() command_metadata.CommandMetadata

func (*ShowApp) Run

func (cmd *ShowApp) Run(c *cli.Context)

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 core_config.Reader, appDisplayer ApplicationDisplayer, appRepo api.ApplicationRepository, appInstancesRepo app_instances.AppInstancesRepository, logRepo api.LogsRepository) (cmd *Start)

func (*Start) ApplicationStart

func (cmd *Start) ApplicationStart(app models.Application) (updatedApp models.Application, err error)

func (*Start) ApplicationWatchStaging

func (cmd *Start) ApplicationWatchStaging(app models.Application, start func(app models.Application) (models.Application, error)) (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) Metadata

func (cmd *Start) Metadata() command_metadata.CommandMetadata

func (*Start) Run

func (cmd *Start) Run(c *cli.Context)

func (*Start) SetStartTimeoutInSeconds

func (cmd *Start) SetStartTimeoutInSeconds(timeout int)

type Stop

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

func NewStop

func NewStop(ui terminal.UI, config core_config.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)

func (*Stop) Metadata

func (cmd *Stop) Metadata() command_metadata.CommandMetadata

func (*Stop) Run

func (cmd *Stop) Run(c *cli.Context)

type UnsetEnv

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

func NewUnsetEnv

func NewUnsetEnv(ui terminal.UI, config core_config.Reader, appRepo api.ApplicationRepository) (cmd *UnsetEnv)

func (*UnsetEnv) GetRequirements

func (cmd *UnsetEnv) GetRequirements(requirementsFactory requirements.Factory, c *cli.Context) (reqs []requirements.Requirement, err error)

func (*UnsetEnv) Metadata

func (cmd *UnsetEnv) Metadata() command_metadata.CommandMetadata

func (*UnsetEnv) Run

func (cmd *UnsetEnv) Run(c *cli.Context)

Jump to

Keyboard shortcuts

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