commands

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 31, 2016 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Success = iota
	Stopped
	Warning
	Err
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AppRestarter

type AppRestarter interface {
	Restart(string) ([]string, error)
}

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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