application

package
v6.16.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2016 License: Apache-2.0 Imports: 45 Imported by: 0

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, orgName string, spaceName string)
}

type ApplicationRestarter

type ApplicationRestarter interface {
	command_registry.Command
	ApplicationRestart(app models.Application, orgName string, spaceName string)
}

type ApplicationStagingWatcher

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

type ApplicationStarter

type ApplicationStarter interface {
	command_registry.Command
	SetStartTimeoutInSeconds(timeout int)
	ApplicationStart(app models.Application, orgName string, spaceName string) (updatedApp models.Application, err error)
}

type ApplicationStopper

type ApplicationStopper interface {
	command_registry.Command
	ApplicationStop(app models.Application, orgName string, spaceName string) (updatedApp models.Application, err error)
}

type CopySource

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

func (*CopySource) Execute

func (cmd *CopySource) Execute(c flags.FlagContext)

func (*CopySource) MetaData

func (*CopySource) Requirements

func (cmd *CopySource) Requirements(requirementsFactory requirements.Factory, fc flags.FlagContext) (reqs []requirements.Requirement, err error)

func (*CopySource) SetDependency

func (cmd *CopySource) SetDependency(deps command_registry.Dependency, pluginCall bool) command_registry.Command

type DeleteApp

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

func (*DeleteApp) Execute

func (cmd *DeleteApp) Execute(c flags.FlagContext)

func (*DeleteApp) MetaData

func (cmd *DeleteApp) MetaData() command_registry.CommandMetadata

func (*DeleteApp) Requirements

func (cmd *DeleteApp) Requirements(requirementsFactory requirements.Factory, fc flags.FlagContext) (reqs []requirements.Requirement, err error)

func (*DeleteApp) SetDependency

func (cmd *DeleteApp) SetDependency(deps command_registry.Dependency, pluginCall bool) command_registry.Command

type DisableSSH

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

func (*DisableSSH) Execute

func (cmd *DisableSSH) Execute(fc flags.FlagContext)

func (*DisableSSH) MetaData

func (*DisableSSH) Requirements

func (cmd *DisableSSH) Requirements(requirementsFactory requirements.Factory, fc flags.FlagContext) (reqs []requirements.Requirement, err error)

func (*DisableSSH) SetDependency

func (cmd *DisableSSH) SetDependency(deps command_registry.Dependency, pluginCall bool) command_registry.Command

type EnableSSH

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

func (*EnableSSH) Execute

func (cmd *EnableSSH) Execute(fc flags.FlagContext)

func (*EnableSSH) MetaData

func (cmd *EnableSSH) MetaData() command_registry.CommandMetadata

func (*EnableSSH) Requirements

func (cmd *EnableSSH) Requirements(requirementsFactory requirements.Factory, fc flags.FlagContext) (reqs []requirements.Requirement, err error)

func (*EnableSSH) SetDependency

func (cmd *EnableSSH) SetDependency(deps command_registry.Dependency, pluginCall bool) command_registry.Command

type Env

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

func (*Env) Execute

func (cmd *Env) Execute(c flags.FlagContext)

func (*Env) MetaData

func (cmd *Env) MetaData() command_registry.CommandMetadata

func (*Env) Requirements

func (cmd *Env) Requirements(requirementsFactory requirements.Factory, fc flags.FlagContext) (reqs []requirements.Requirement, err error)

func (*Env) SetDependency

func (cmd *Env) SetDependency(deps command_registry.Dependency, pluginCall bool) command_registry.Command

type Events

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

func (*Events) Execute

func (cmd *Events) Execute(c flags.FlagContext)

func (*Events) MetaData

func (cmd *Events) MetaData() command_registry.CommandMetadata

func (*Events) Requirements

func (cmd *Events) Requirements(requirementsFactory requirements.Factory, c flags.FlagContext) (reqs []requirements.Requirement, err error)

func (*Events) SetDependency

func (cmd *Events) SetDependency(deps command_registry.Dependency, pluginCall bool) command_registry.Command

type Files

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

func (*Files) Execute

func (cmd *Files) Execute(c flags.FlagContext)

func (*Files) MetaData

func (cmd *Files) MetaData() command_registry.CommandMetadata

func (*Files) Requirements

func (cmd *Files) Requirements(requirementsFactory requirements.Factory, c flags.FlagContext) (reqs []requirements.Requirement, err error)

func (*Files) SetDependency

func (cmd *Files) SetDependency(deps command_registry.Dependency, pluginCall bool) command_registry.Command

type GetHealthCheck

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

func (*GetHealthCheck) Execute

func (cmd *GetHealthCheck) Execute(fc flags.FlagContext)

func (*GetHealthCheck) MetaData

func (*GetHealthCheck) Requirements

func (cmd *GetHealthCheck) Requirements(requirementsFactory requirements.Factory, fc flags.FlagContext) (reqs []requirements.Requirement, err error)

func (*GetHealthCheck) SetDependency

func (cmd *GetHealthCheck) SetDependency(deps command_registry.Dependency, pluginCall bool) command_registry.Command

type ListApps

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

func (*ListApps) Execute

func (cmd *ListApps) Execute(c flags.FlagContext)

func (*ListApps) MetaData

func (cmd *ListApps) MetaData() command_registry.CommandMetadata

func (*ListApps) Requirements

func (cmd *ListApps) Requirements(requirementsFactory requirements.Factory, fc flags.FlagContext) (reqs []requirements.Requirement, err error)

func (*ListApps) SetDependency

func (cmd *ListApps) SetDependency(deps command_registry.Dependency, pluginCall bool) command_registry.Command

type Logs

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

func (*Logs) Execute

func (cmd *Logs) Execute(c flags.FlagContext)

func (*Logs) MetaData

func (cmd *Logs) MetaData() command_registry.CommandMetadata

func (*Logs) Requirements

func (cmd *Logs) Requirements(requirementsFactory requirements.Factory, fc flags.FlagContext) (reqs []requirements.Requirement, err error)

func (*Logs) SetDependency

func (cmd *Logs) SetDependency(deps command_registry.Dependency, pluginCall bool) command_registry.Command

type Push

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

func (*Push) Execute

func (cmd *Push) Execute(c flags.FlagContext)

func (*Push) MetaData

func (cmd *Push) MetaData() command_registry.CommandMetadata

func (*Push) Requirements

func (cmd *Push) Requirements(requirementsFactory requirements.Factory, fc flags.FlagContext) ([]requirements.Requirement, error)

func (*Push) SetDependency

func (cmd *Push) SetDependency(deps command_registry.Dependency, pluginCall bool) command_registry.Command

type RenameApp

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

func (*RenameApp) Execute

func (cmd *RenameApp) Execute(c flags.FlagContext)

func (*RenameApp) MetaData

func (cmd *RenameApp) MetaData() command_registry.CommandMetadata

func (*RenameApp) Requirements

func (cmd *RenameApp) Requirements(requirementsFactory requirements.Factory, c flags.FlagContext) (reqs []requirements.Requirement, err error)

func (*RenameApp) SetDependency

func (cmd *RenameApp) SetDependency(deps command_registry.Dependency, pluginCall bool) command_registry.Command

type Restage

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

func (*Restage) Execute

func (cmd *Restage) Execute(c flags.FlagContext)

func (*Restage) MetaData

func (cmd *Restage) MetaData() command_registry.CommandMetadata

func (*Restage) Requirements

func (cmd *Restage) Requirements(requirementsFactory requirements.Factory, fc flags.FlagContext) (reqs []requirements.Requirement, err error)

func (*Restage) SetDependency

func (cmd *Restage) SetDependency(deps command_registry.Dependency, pluginCall bool) command_registry.Command

type Restart

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

func (*Restart) ApplicationRestart

func (cmd *Restart) ApplicationRestart(app models.Application, orgName, spaceName string)

func (*Restart) Execute

func (cmd *Restart) Execute(c flags.FlagContext)

func (*Restart) MetaData

func (cmd *Restart) MetaData() command_registry.CommandMetadata

func (*Restart) Requirements

func (cmd *Restart) Requirements(requirementsFactory requirements.Factory, fc flags.FlagContext) (reqs []requirements.Requirement, err error)

func (*Restart) SetDependency

func (cmd *Restart) SetDependency(deps command_registry.Dependency, pluginCall bool) command_registry.Command

type RestartAppInstance

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

func (*RestartAppInstance) Execute

func (cmd *RestartAppInstance) Execute(fc flags.FlagContext)

func (*RestartAppInstance) MetaData

func (*RestartAppInstance) Requirements

func (cmd *RestartAppInstance) Requirements(requirementsFactory requirements.Factory, fc flags.FlagContext) (reqs []requirements.Requirement, err error)

func (*RestartAppInstance) SetDependency

func (cmd *RestartAppInstance) SetDependency(deps command_registry.Dependency, pluginCall bool) command_registry.Command

type SSH

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

func (*SSH) Execute

func (cmd *SSH) Execute(fc flags.FlagContext)

func (*SSH) MetaData

func (cmd *SSH) MetaData() command_registry.CommandMetadata

func (*SSH) Requirements

func (cmd *SSH) Requirements(requirementsFactory requirements.Factory, fc flags.FlagContext) (reqs []requirements.Requirement, err error)

func (*SSH) SetDependency

func (cmd *SSH) SetDependency(deps command_registry.Dependency, pluginCall bool) command_registry.Command

type SSHEnabled

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

func (*SSHEnabled) Execute

func (cmd *SSHEnabled) Execute(fc flags.FlagContext)

func (*SSHEnabled) MetaData

func (*SSHEnabled) Requirements

func (cmd *SSHEnabled) Requirements(requirementsFactory requirements.Factory, fc flags.FlagContext) (reqs []requirements.Requirement, err error)

func (*SSHEnabled) SetDependency

func (cmd *SSHEnabled) SetDependency(deps command_registry.Dependency, pluginCall bool) command_registry.Command

type Scale

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

func (*Scale) Execute

func (cmd *Scale) Execute(c flags.FlagContext)

func (*Scale) MetaData

func (cmd *Scale) MetaData() command_registry.CommandMetadata

func (*Scale) Requirements

func (cmd *Scale) Requirements(requirementsFactory requirements.Factory, fc flags.FlagContext) (reqs []requirements.Requirement, err error)

func (*Scale) SetDependency

func (cmd *Scale) SetDependency(deps command_registry.Dependency, pluginCall bool) command_registry.Command

type SetEnv

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

func (*SetEnv) Execute

func (cmd *SetEnv) Execute(c flags.FlagContext)

func (*SetEnv) MetaData

func (cmd *SetEnv) MetaData() command_registry.CommandMetadata

func (*SetEnv) Requirements

func (cmd *SetEnv) Requirements(requirementsFactory requirements.Factory, fc flags.FlagContext) (reqs []requirements.Requirement, err error)

func (*SetEnv) SetDependency

func (cmd *SetEnv) SetDependency(deps command_registry.Dependency, pluginCall bool) command_registry.Command

type SetHealthCheck

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

func (*SetHealthCheck) Execute

func (cmd *SetHealthCheck) Execute(fc flags.FlagContext)

func (*SetHealthCheck) MetaData

func (*SetHealthCheck) Requirements

func (cmd *SetHealthCheck) Requirements(requirementsFactory requirements.Factory, fc flags.FlagContext) (reqs []requirements.Requirement, err error)

func (*SetHealthCheck) SetDependency

func (cmd *SetHealthCheck) SetDependency(deps command_registry.Dependency, pluginCall bool) command_registry.Command

type ShowApp

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

func (*ShowApp) Execute

func (cmd *ShowApp) Execute(c flags.FlagContext)

func (*ShowApp) MetaData

func (cmd *ShowApp) MetaData() command_registry.CommandMetadata

func (*ShowApp) Requirements

func (cmd *ShowApp) Requirements(requirementsFactory requirements.Factory, fc flags.FlagContext) (reqs []requirements.Requirement, err error)

func (*ShowApp) SetDependency

func (cmd *ShowApp) SetDependency(deps command_registry.Dependency, pluginCall bool) command_registry.Command

func (*ShowApp) ShowApp

func (cmd *ShowApp) ShowApp(app models.Application, orgName, spaceName string)

type Start

type Start struct {
	LogServerConnectionTimeout time.Duration
	StartupTimeout             time.Duration
	StagingTimeout             time.Duration
	PingerThrottle             time.Duration
	// contains filtered or unexported fields
}

func (*Start) ApplicationStart

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

func (*Start) ApplicationWatchStaging

func (cmd *Start) ApplicationWatchStaging(app models.Application, orgName, spaceName string, start func(app models.Application) (models.Application, error)) (updatedApp models.Application, err error)

func (*Start) Execute

func (cmd *Start) Execute(c flags.FlagContext)

func (*Start) MetaData

func (cmd *Start) MetaData() command_registry.CommandMetadata

func (*Start) Requirements

func (cmd *Start) Requirements(requirementsFactory requirements.Factory, fc flags.FlagContext) (reqs []requirements.Requirement, err error)

func (*Start) SetDependency

func (cmd *Start) SetDependency(deps command_registry.Dependency, pluginCall bool) command_registry.Command

func (*Start) SetStartTimeoutInSeconds

func (cmd *Start) SetStartTimeoutInSeconds(timeout int)

type Stop

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

func (*Stop) ApplicationStop

func (cmd *Stop) ApplicationStop(app models.Application, orgName, spaceName string) (updatedApp models.Application, err error)

func (*Stop) Execute

func (cmd *Stop) Execute(c flags.FlagContext)

func (*Stop) MetaData

func (cmd *Stop) MetaData() command_registry.CommandMetadata

func (*Stop) Requirements

func (cmd *Stop) Requirements(requirementsFactory requirements.Factory, fc flags.FlagContext) (reqs []requirements.Requirement, err error)

func (*Stop) SetDependency

func (cmd *Stop) SetDependency(deps command_registry.Dependency, pluginCall bool) command_registry.Command

type UnsetEnv

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

func (*UnsetEnv) Execute

func (cmd *UnsetEnv) Execute(c flags.FlagContext)

func (*UnsetEnv) MetaData

func (cmd *UnsetEnv) MetaData() command_registry.CommandMetadata

func (*UnsetEnv) Requirements

func (cmd *UnsetEnv) Requirements(requirementsFactory requirements.Factory, fc flags.FlagContext) (reqs []requirements.Requirement, err error)

func (*UnsetEnv) SetDependency

func (cmd *UnsetEnv) SetDependency(deps command_registry.Dependency, pluginCall bool) command_registry.Command

Directories

Path Synopsis
This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter
This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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