Documentation
¶
Index ¶
Constants ¶
View Source
const ( Success = iota Stopped Warning Err )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppRestarter ¶
func NewAppRestarter ¶
func NewAppRestarter(cli api.Connection) AppRestarter
type AppRestarterContext ¶
type AppRestarterContext struct {
CLIConnection api.Connection
RestartApps RestartAppsCommand `command:"restart-apps" description:"Restart all apps"`
UninstallPlugin UninstallHook `command:"CLI-MESSAGE-UNINSTALL"`
}
var Context AppRestarterContext
type RestartAppsCommand ¶
type RestartAppsCommand struct {
Organization string `short:"o" value-name:"ORG" description:"Organization to restrict the app restarts"`
Space string `short:"s" value-name:"SPACE" description:"Space in the targeted organization to restrict the app restarts"`
}
func (RestartAppsCommand) Execute ¶
func (command RestartAppsCommand) Execute(flags []string) error
type RestartAppsExecutor ¶
type RestartAppsExecutor struct {
AppsGetterFunc resource_mapper.AppsGetterFunc
RestartAppsUI *ui.RestartApps
}
func (*RestartAppsExecutor) Execute ¶
func (exe *RestartAppsExecutor) Execute(cliConnection api.Connection) error
func (*RestartAppsExecutor) RestartApp ¶
func (exe *RestartAppsExecutor) RestartApp( appPrinter *displayhelpers.AppPrinter, appRestarter AppRestarter, ) int
type UninstallHook ¶
type UninstallHook struct{}
func (UninstallHook) Execute ¶
func (command UninstallHook) Execute([]string) error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.