application

package
v6.29.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2017 License: Apache-2.0 Imports: 46 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"
View Source
const TCP = "tcp"

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectionType

type ConnectionType int
const (
	NoConnection ConnectionType = iota
	ConnectionWasEstablished
	ConnectionWasClosed
	StoppedTrying
)

type CopySource

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

func (*CopySource) Execute

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

func (*CopySource) MetaData

func (cmd *CopySource) MetaData() commandregistry.CommandMetadata

func (*CopySource) Requirements

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

func (*CopySource) SetDependency

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

type DeleteApp

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

func (*DeleteApp) Execute

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

func (*DeleteApp) MetaData

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

func (*DeleteApp) Requirements

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

func (*DeleteApp) SetDependency

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

type DisableSSH

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

func (*DisableSSH) Execute

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

func (*DisableSSH) MetaData

func (cmd *DisableSSH) MetaData() commandregistry.CommandMetadata

func (*DisableSSH) Requirements

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

func (*DisableSSH) SetDependency

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

type Displayer

type Displayer interface {
	ShowApp(app models.Application, orgName string, spaceName string) error
}

type EnableSSH

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

func (*EnableSSH) Execute

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

func (*EnableSSH) MetaData

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

func (*EnableSSH) Requirements

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

func (*EnableSSH) SetDependency

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

type Env

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

func (*Env) Execute

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

func (*Env) MetaData

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

func (*Env) Requirements

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

func (*Env) SetDependency

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

type Events

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

func (*Events) Execute

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

func (*Events) MetaData

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

func (*Events) Requirements

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

func (*Events) SetDependency

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

type Files

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

func (*Files) Execute

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

func (*Files) MetaData

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

func (*Files) Requirements

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

func (*Files) SetDependency

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

type GetHealthCheck

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

func (*GetHealthCheck) Execute

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

func (*GetHealthCheck) MetaData

func (*GetHealthCheck) Requirements

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

func (*GetHealthCheck) SetDependency

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

type ListApps

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

func (*ListApps) Execute

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

func (*ListApps) MetaData

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

func (*ListApps) Requirements

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

func (*ListApps) SetDependency

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

type Logs

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

func (*Logs) Execute

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

func (*Logs) MetaData

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

func (*Logs) Requirements

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

func (*Logs) SetDependency

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

type Push

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

func (*Push) Execute

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

func (*Push) MetaData

func (cmd *Push) MetaData() commandregistry.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 commandregistry.Dependency, pluginCall bool) commandregistry.Command

func (Push) ValidateContextAndAppParams

func (cmd Push) ValidateContextAndAppParams(appsFromManifest []models.AppParams, appFromContext models.AppParams) error

type RenameApp

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

func (*RenameApp) Execute

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

func (*RenameApp) MetaData

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

func (*RenameApp) Requirements

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

func (*RenameApp) SetDependency

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

type Restage

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

func (*Restage) Execute

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

func (*Restage) MetaData

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

func (*Restage) Requirements

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

func (*Restage) SetDependency

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

type Restart

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

func (*Restart) ApplicationRestart

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

func (*Restart) Execute

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

func (*Restart) MetaData

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

func (*Restart) Requirements

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

func (*Restart) SetDependency

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

type RestartAppInstance

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

func (*RestartAppInstance) Execute

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

func (*RestartAppInstance) MetaData

func (*RestartAppInstance) Requirements

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

func (*RestartAppInstance) SetDependency

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

type Restarter

type Restarter interface {
	commandregistry.Command
	ApplicationRestart(app models.Application, orgName string, spaceName string) error
}

type SSH

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

func (*SSH) Execute

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

func (*SSH) MetaData

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

func (*SSH) Requirements

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

func (*SSH) SetDependency

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

type SSHEnabled

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

func (*SSHEnabled) Execute

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

func (*SSHEnabled) MetaData

func (cmd *SSHEnabled) MetaData() commandregistry.CommandMetadata

func (*SSHEnabled) Requirements

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

func (*SSHEnabled) SetDependency

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

type Scale

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

func (*Scale) Execute

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

func (*Scale) MetaData

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

func (*Scale) Requirements

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

func (*Scale) SetDependency

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

type SetEnv

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

func (*SetEnv) Execute

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

func (*SetEnv) MetaData

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

func (*SetEnv) Requirements

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

func (*SetEnv) SetDependency

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

type SetHealthCheck

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

func (*SetHealthCheck) Execute

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

func (*SetHealthCheck) MetaData

func (*SetHealthCheck) Requirements

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

func (*SetHealthCheck) SetDependency

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

type ShowApp

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

func (*ShowApp) Execute

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

func (*ShowApp) MetaData

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

func (*ShowApp) Requirements

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

func (*ShowApp) SetDependency

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

func (*ShowApp) ShowApp

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

type StagingWatcher

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

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) (models.Application, error)

func (*Start) Execute

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

func (*Start) MetaData

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

func (*Start) Requirements

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

func (*Start) SetDependency

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

func (*Start) SetStartTimeoutInSeconds

func (cmd *Start) SetStartTimeoutInSeconds(timeout int)

func (*Start) TailStagingLogs

func (cmd *Start) TailStagingLogs(app models.Application, stopChan chan bool, startWait, doneWait *sync.WaitGroup)

func (*Start) WatchStaging

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

type Starter

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

type Stop

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

func (*Stop) ApplicationStop

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

func (*Stop) Execute

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

func (*Stop) MetaData

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

func (*Stop) Requirements

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

func (*Stop) SetDependency

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

type Stopper

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

type UnsetEnv

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

func (*UnsetEnv) Execute

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

func (*UnsetEnv) MetaData

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

func (*UnsetEnv) Requirements

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

func (*UnsetEnv) SetDependency

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

Directories

Path Synopsis
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