Documentation
¶
Index ¶
- type AppGrant
- type AppGuesser
- type AppInfo
- type AppList
- type AppLog
- type AppRestart
- type AppRevoke
- type AppRun
- type AppStart
- type AppStop
- type EnvGet
- type EnvSet
- type EnvUnset
- type GitGuesser
- type GuessingCommand
- type ServiceAdd
- type ServiceBind
- type ServiceDoc
- type ServiceInfo
- func (c ServiceInfo) BuildInstancesTable(serviceName string, ctx *cmd.Context, client *cmd.Client) error
- func (c ServiceInfo) BuildPlansTable(serviceName string, ctx *cmd.Context, client *cmd.Client) error
- func (ServiceInfo) ExtraHeaders(instances []ServiceInstanceModel) []string
- func (c ServiceInfo) Info() *cmd.Info
- func (c ServiceInfo) Run(ctx *cmd.Context, client *cmd.Client) error
- type ServiceInstanceModel
- type ServiceInstanceStatus
- type ServiceList
- type ServiceRemove
- type ServiceUnbind
- type SetCName
- type UnsetCName
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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 // contains filtered or unexported fields }
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 // contains filtered or unexported fields }
type AppStart ¶
type AppStart struct {
GuessingCommand
}
type AppStop ¶
type AppStop 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 (<user>@<somehost>:<app-name>.git), GuessName will return an error.
type GuessingCommand ¶
type GuessingCommand struct { G AppGuesser // contains filtered or unexported fields }
Embed this struct if you want your command to guess the name of the app.
func (*GuessingCommand) Flags ¶
func (cmd *GuessingCommand) Flags() *gnuflag.FlagSet
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 (ServiceDoc) Info() *cmd.Info
type ServiceInfo ¶
type ServiceInfo struct{}
func (ServiceInfo) BuildInstancesTable ¶
func (ServiceInfo) BuildPlansTable ¶
func (ServiceInfo) ExtraHeaders ¶
func (ServiceInfo) ExtraHeaders(instances []ServiceInstanceModel) []string
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 { GuessingCommand // contains filtered or unexported fields }
func (*ServiceRemove) Flags ¶
func (c *ServiceRemove) Flags() *gnuflag.FlagSet
func (ServiceRemove) Info ¶
func (c ServiceRemove) Info() *cmd.Info
type ServiceUnbind ¶
type ServiceUnbind struct {
GuessingCommand
}
func (*ServiceUnbind) Info ¶
func (su *ServiceUnbind) Info() *cmd.Info
type SetCName ¶
type SetCName struct {
GuessingCommand
}
type UnsetCName ¶
type UnsetCName struct {
GuessingCommand
}
func (*UnsetCName) Info ¶
func (c *UnsetCName) Info() *cmd.Info
Click to show internal directories.
Click to hide internal directories.