Documentation
¶
Index ¶
- Variables
- type AppGrant
- type AppGuesser
- type AppInfo
- type AppList
- type AppLog
- type AppModel
- type AppRestart
- type AppRevoke
- type AppRun
- type EnvGet
- type EnvSet
- type EnvUnset
- type GitGuesser
- type GuessingCommand
- type ServiceAdd
- type ServiceBind
- type ServiceDoc
- type ServiceInfo
- type ServiceInstanceModel
- type ServiceInstanceStatus
- type ServiceList
- type ServiceRemove
- type ServiceUnbind
- type Units
Constants ¶
This section is empty.
Variables ¶
View Source
var AppName = gnuflag.String("app", "", "App name for running app related commands.")
View Source
var AssumeYes = gnuflag.Bool("assume-yes", false, "Don't ask for confirmation on operations.")
View Source
var LogLines = gnuflag.Int("lines", 10, "The number of log lines to display")
View Source
var LogSource = gnuflag.String("source", "", "The log from the given source")
Functions ¶
This section is empty.
Types ¶
type AppGrant ¶
type AppGrant struct {
GuessingCommand
}
type AppGuesser ¶
AppGuesser is used to guess the name of an app based in a file path.
type AppInfo ¶
type AppInfo struct {
GuessingCommand
}
type AppLog ¶
type AppLog struct {
GuessingCommand
}
type AppRestart ¶
type AppRestart struct {
GuessingCommand
}
func (*AppRestart) Info ¶
func (c *AppRestart) Info() *cmd.Info
type AppRevoke ¶
type AppRevoke struct {
GuessingCommand
}
type AppRun ¶
type AppRun struct {
GuessingCommand
}
type EnvGet ¶
type EnvGet struct {
GuessingCommand
}
type EnvSet ¶
type EnvSet struct {
GuessingCommand
}
type EnvUnset ¶
type EnvUnset struct {
GuessingCommand
}
type GitGuesser ¶
type GitGuesser struct{}
GitGuesser uses git to guess the name of the app.
It reads the "tsuru" remote from git config file. If the remote does not exist, or does not match the tsuru pattern (git@<something>:<app-name>.git), GuessName will return an error.
type GuessingCommand ¶
type GuessingCommand struct {
G AppGuesser
}
Embed this struct if you want your command to guess the name of the app.
func (*GuessingCommand) Guess ¶
func (cmd *GuessingCommand) Guess() (string, error)
type ServiceAdd ¶
type ServiceAdd struct{}
func (*ServiceAdd) Info ¶
func (sa *ServiceAdd) Info() *cmd.Info
type ServiceBind ¶
type ServiceBind struct {
GuessingCommand
}
func (*ServiceBind) Info ¶
func (sb *ServiceBind) Info() *cmd.Info
type ServiceDoc ¶
type ServiceDoc struct{}
func (*ServiceDoc) Info ¶
func (c *ServiceDoc) Info() *cmd.Info
type ServiceInfo ¶
type ServiceInfo struct{}
func (*ServiceInfo) Info ¶
func (c *ServiceInfo) Info() *cmd.Info
type ServiceInstanceModel ¶
type ServiceInstanceStatus ¶
type ServiceInstanceStatus struct{}
func (*ServiceInstanceStatus) Info ¶
func (c *ServiceInstanceStatus) Info() *cmd.Info
type ServiceList ¶
type ServiceList struct{}
func (*ServiceList) Info ¶
func (s *ServiceList) Info() *cmd.Info
type ServiceRemove ¶
type ServiceRemove struct{}
func (*ServiceRemove) Info ¶
func (c *ServiceRemove) Info() *cmd.Info
type ServiceUnbind ¶
type ServiceUnbind struct {
GuessingCommand
}
func (*ServiceUnbind) Info ¶
func (su *ServiceUnbind) Info() *cmd.Info
Click to show internal directories.
Click to hide internal directories.