Documentation ¶
Index ¶
- Constants
- func LogMessageOutput(msg *logmessage.LogMessage, loc *time.Location) string
- func LogNoaaMessageOutput(msg *events.LogMessage, loc *time.Location) string
- type ApplicationDisplayer
- type ApplicationRestarter
- type ApplicationStagingWatcher
- type ApplicationStarter
- type ApplicationStopper
- type CopySource
- type DeleteApp
- func (cmd *DeleteApp) Execute(c flags.FlagContext)
- func (cmd *DeleteApp) MetaData() command_registry.CommandMetadata
- func (cmd *DeleteApp) Requirements(requirementsFactory requirements.Factory, fc flags.FlagContext) (reqs []requirements.Requirement, err error)
- func (cmd *DeleteApp) SetDependency(deps command_registry.Dependency, pluginCall bool) command_registry.Command
- type Env
- func (cmd *Env) Execute(c flags.FlagContext)
- func (cmd *Env) MetaData() command_registry.CommandMetadata
- func (cmd *Env) Requirements(requirementsFactory requirements.Factory, fc flags.FlagContext) (reqs []requirements.Requirement, err error)
- func (cmd *Env) SetDependency(deps command_registry.Dependency, pluginCall bool) command_registry.Command
- type Events
- func (cmd *Events) Execute(c flags.FlagContext)
- func (cmd *Events) MetaData() command_registry.CommandMetadata
- func (cmd *Events) Requirements(requirementsFactory requirements.Factory, c flags.FlagContext) (reqs []requirements.Requirement, err error)
- func (cmd *Events) SetDependency(deps command_registry.Dependency, pluginCall bool) command_registry.Command
- type Files
- func (cmd *Files) Execute(c flags.FlagContext)
- func (cmd *Files) MetaData() command_registry.CommandMetadata
- func (cmd *Files) Requirements(requirementsFactory requirements.Factory, c flags.FlagContext) (reqs []requirements.Requirement, err error)
- func (cmd *Files) SetDependency(deps command_registry.Dependency, pluginCall bool) command_registry.Command
- type ListApps
- func (cmd *ListApps) Execute(c flags.FlagContext)
- func (cmd *ListApps) MetaData() command_registry.CommandMetadata
- func (cmd *ListApps) Requirements(requirementsFactory requirements.Factory, fc flags.FlagContext) (reqs []requirements.Requirement, err error)
- func (cmd *ListApps) SetDependency(deps command_registry.Dependency, pluginCall bool) command_registry.Command
- type Logs
- func (cmd *Logs) Execute(c flags.FlagContext)
- func (cmd *Logs) MetaData() command_registry.CommandMetadata
- func (cmd *Logs) Requirements(requirementsFactory requirements.Factory, fc flags.FlagContext) (reqs []requirements.Requirement, err error)
- func (cmd *Logs) SetDependency(deps command_registry.Dependency, pluginCall bool) command_registry.Command
- type Push
- type RenameApp
- func (cmd *RenameApp) Execute(c flags.FlagContext)
- func (cmd *RenameApp) MetaData() command_registry.CommandMetadata
- func (cmd *RenameApp) Requirements(requirementsFactory requirements.Factory, c flags.FlagContext) (reqs []requirements.Requirement, err error)
- func (cmd *RenameApp) SetDependency(deps command_registry.Dependency, pluginCall bool) command_registry.Command
- type Restage
- type Restart
- func (cmd *Restart) ApplicationRestart(app models.Application, orgName, spaceName string)
- func (cmd *Restart) GetRequirements(requirementsFactory requirements.Factory, c *cli.Context) (reqs []requirements.Requirement, err error)
- func (cmd *Restart) Metadata() command_metadata.CommandMetadata
- func (cmd *Restart) Run(c *cli.Context)
- type RestartAppInstance
- type Scale
- type SetEnv
- func (cmd *SetEnv) Execute(c flags.FlagContext)
- func (cmd *SetEnv) MetaData() command_registry.CommandMetadata
- func (cmd *SetEnv) Requirements(requirementsFactory requirements.Factory, fc flags.FlagContext) (reqs []requirements.Requirement, err error)
- func (cmd *SetEnv) SetDependency(deps command_registry.Dependency, pluginCall bool) command_registry.Command
- type ShowApp
- func (cmd *ShowApp) Execute(c flags.FlagContext)
- func (cmd *ShowApp) MetaData() command_registry.CommandMetadata
- func (cmd *ShowApp) Requirements(requirementsFactory requirements.Factory, fc flags.FlagContext) (reqs []requirements.Requirement, err error)
- func (cmd *ShowApp) SetDependency(deps command_registry.Dependency, pluginCall bool) command_registry.Command
- func (cmd *ShowApp) ShowApp(app models.Application, orgName, spaceName string)
- type Start
- func (cmd *Start) ApplicationStart(app models.Application, orgName, spaceName string) (updatedApp models.Application, err error)
- func (cmd *Start) ApplicationWatchStaging(app models.Application, orgName, spaceName string, ...) (updatedApp models.Application, err error)
- func (cmd *Start) GetRequirements(requirementsFactory requirements.Factory, c *cli.Context) (reqs []requirements.Requirement, err error)
- func (cmd *Start) Metadata() command_metadata.CommandMetadata
- func (cmd *Start) Run(c *cli.Context)
- func (cmd *Start) SetStartTimeoutInSeconds(timeout int)
- type Stop
- func (cmd *Stop) ApplicationStop(app models.Application, orgName, spaceName string) (updatedApp models.Application, err error)
- func (cmd *Stop) GetRequirements(requirementsFactory requirements.Factory, c *cli.Context) (reqs []requirements.Requirement, err error)
- func (cmd *Stop) Metadata() command_metadata.CommandMetadata
- func (cmd *Stop) Run(c *cli.Context)
- type UnsetEnv
- func (cmd *UnsetEnv) Execute(c flags.FlagContext)
- func (cmd *UnsetEnv) MetaData() command_registry.CommandMetadata
- func (cmd *UnsetEnv) Requirements(requirementsFactory requirements.Factory, fc flags.FlagContext) (reqs []requirements.Requirement, err error)
- func (cmd *UnsetEnv) SetDependency(deps command_registry.Dependency, pluginCall bool) command_registry.Command
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
func LogNoaaMessageOutput ¶
func LogNoaaMessageOutput(msg *events.LogMessage, loc *time.Location) string
Types ¶
type ApplicationDisplayer ¶
type ApplicationDisplayer interface {
ShowApp(app models.Application, orgName string, spaceName string)
}
type ApplicationRestarter ¶
type ApplicationRestarter interface {
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 { SetStartTimeoutInSeconds(timeout int) ApplicationStart(app models.Application, orgName string, spaceName string) (updatedApp models.Application, err error) }
type ApplicationStopper ¶
type ApplicationStopper interface {
ApplicationStop(app models.Application, orgName string, spaceName string) (updatedApp models.Application, err error)
}
type CopySource ¶
type CopySource struct {
// contains filtered or unexported fields
}
func NewCopySource ¶
func NewCopySource( ui terminal.UI, config core_config.Reader, authRepo authentication.AuthenticationRepository, appRepo applications.ApplicationRepository, orgRepo organizations.OrganizationRepository, spaceRepo spaces.SpaceRepository, copyAppSourceRepo copy_application_source.CopyApplicationSourceRepository, appRestart ApplicationRestarter, ) *CopySource
func (*CopySource) GetRequirements ¶
func (cmd *CopySource) GetRequirements(requirementsFactory requirements.Factory, c *cli.Context) (reqs []requirements.Requirement, err error)
func (*CopySource) Metadata ¶
func (cmd *CopySource) Metadata() command_metadata.CommandMetadata
func (*CopySource) Run ¶
func (cmd *CopySource) Run(c *cli.Context)
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 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 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 NewPush ¶
func NewPush(ui terminal.UI, config core_config.Reader, manifestRepo manifest.ManifestRepository, starter ApplicationStarter, stopper ApplicationStopper, binder service.ServiceBinder, appRepo applications.ApplicationRepository, domainRepo api.DomainRepository, routeRepo api.RouteRepository, stackRepo stacks.StackRepository, serviceRepo api.ServiceRepository, authRepo authentication.AuthenticationRepository, wordGenerator generator.WordGenerator, actor actors.PushActor, zipper app_files.Zipper, app_files app_files.AppFiles) *Push
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
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 NewRestage ¶
func NewRestage(ui terminal.UI, config core_config.Reader, appRepo applications.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
type Restart ¶
type Restart struct {
// contains filtered or unexported fields
}
func NewRestart ¶
func NewRestart(ui terminal.UI, config core_config.Reader, starter ApplicationStarter, stopper ApplicationStopper) (cmd *Restart)
func (*Restart) ApplicationRestart ¶
func (cmd *Restart) ApplicationRestart(app models.Application, orgName, spaceName string)
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
type RestartAppInstance ¶
type RestartAppInstance struct {
// contains filtered or unexported fields
}
func NewRestartAppInstance ¶
func NewRestartAppInstance(ui terminal.UI, config core_config.Reader, appInstancesRepo app_instances.AppInstancesRepository) (cmd *RestartAppInstance)
func (*RestartAppInstance) GetRequirements ¶
func (cmd *RestartAppInstance) GetRequirements(requirementsFactory requirements.Factory, c *cli.Context) (reqs []requirements.Requirement, err error)
func (*RestartAppInstance) Metadata ¶
func (cmd *RestartAppInstance) Metadata() command_metadata.CommandMetadata
func (*RestartAppInstance) Run ¶
func (cmd *RestartAppInstance) 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 applications.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
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 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, appLogsNoaaRepo api.LogsNoaaRepository) (cmd *ShowApp)
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
type Start ¶
type Start struct { LogServerConnectionTimeout time.Duration 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 applications.ApplicationRepository, appInstancesRepo app_instances.AppInstancesRepository, logRepo api.LogsNoaaRepository, oldLogsRepo api.OldLogsRepository) (cmd *Start)
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) 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) SetStartTimeoutInSeconds ¶
type Stop ¶
type Stop struct {
// contains filtered or unexported fields
}
func NewStop ¶
func NewStop(ui terminal.UI, config core_config.Reader, appRepo applications.ApplicationRepository) (cmd *Stop)
func (*Stop) ApplicationStop ¶
func (cmd *Stop) ApplicationStop(app models.Application, orgName, spaceName string) (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
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
Click to show internal directories.
Click to hide internal directories.