Documentation ¶
Index ¶
- Variables
- func Colorfy(msg string, fontcolor string, background string, effect string) string
- func ExtractProgramName(path string) string
- func GetURL(path string) (string, error)
- func JoinWithUserDir(p ...string) string
- func MergeFlagSet(fs1, fs2 *gnuflag.FlagSet) *gnuflag.FlagSet
- func ReadTarget() (string, error)
- func ReadToken() (string, error)
- func ShowServicesInstancesList(b []byte) ([]byte, error)
- type AdminCommandable
- type AppGuesser
- type Client
- type Command
- type Commandable
- type ConfirmationCommand
- type Context
- type DeprecatedCommand
- type FlaggedCommand
- type GitGuesser
- type GuessingCommand
- type Info
- type Lookup
- type Manager
- type Row
- type ServiceModel
- type Table
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAbortCommand = gerrors.New("")
Functions ¶
func ExtractProgramName ¶
func JoinWithUserDir ¶
func ReadTarget ¶
Types ¶
type AdminCommandable ¶
type AdminCommandable interface {
AdminCommands() []Command
}
Implementing the AdminCommandable interface allows extending the tsuru-admin command line interface
type AppGuesser ¶
AppGuesser is used to guess the name of an app based in a file path.
type Commandable ¶
type Commandable interface {
Commands() []Command
}
Implementing the Commandable interface allows extending the tsr command line interface
type ConfirmationCommand ¶
type ConfirmationCommand struct {
// contains filtered or unexported fields
}
func (*ConfirmationCommand) Confirm ¶
func (cmd *ConfirmationCommand) Confirm(context *Context, question string) bool
func (*ConfirmationCommand) Flags ¶
func (cmd *ConfirmationCommand) Flags() *gnuflag.FlagSet
type DeprecatedCommand ¶
type DeprecatedCommand struct { Command // contains filtered or unexported fields }
func (*DeprecatedCommand) Flags ¶
func (c *DeprecatedCommand) Flags() *gnuflag.FlagSet
type FlaggedCommand ¶
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 Manager ¶
func BuildBaseManager ¶
func NewManager ¶
func (*Manager) RegisterDeprecated ¶
func (*Manager) RegisterTopic ¶
type ServiceModel ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.