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 PasswordFromReader(reader io.Reader) (string, error)
- func ReadTarget() (string, error)
- func ReadToken() (string, error)
- func SamlCallbackFailureMessage() string
- func SamlCallbackSuccessMessage() string
- func ShowServicesInstancesList(b []byte) ([]byte, error)
- func StreamJSONResponse(w io.Writer, response *http.Response) error
- type APIUser
- type AdminCommandable
- type AppGuesser
- type Client
- type Command
- type Commandable
- type ConfirmationCommand
- type Context
- type DeprecatedCommand
- type DirnameGuesser
- type FlaggedCommand
- type GitGuesser
- type GuessingCommand
- type Info
- type Lookup
- type Manager
- type MapFlag
- type MultiGuesser
- type Row
- type ServiceModel
- type ShellToContainerCmd
- type StringSliceFlag
- type Table
Constants ¶
This section is empty.
Variables ¶
var ErrAbortCommand = gerrors.New("")
Functions ¶
func ExtractProgramName ¶
func JoinWithUserDir ¶
func ReadTarget ¶
func SamlCallbackFailureMessage ¶
func SamlCallbackFailureMessage() string
func SamlCallbackSuccessMessage ¶
func SamlCallbackSuccessMessage() string
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 Client ¶
type Commandable ¶
type Commandable interface {
Commands() []Command
}
Implementing the Commandable interface allows extending the tsurud 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 DirnameGuesser ¶
type DirnameGuesser struct{}
DirnameGuesser uses the directory name to guess the name of the app
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 MultiGuesser ¶
type MultiGuesser struct {
Guessers []AppGuesser
}
MultiGuesser can use multiple guessers
type ServiceModel ¶
type ShellToContainerCmd ¶
type ShellToContainerCmd struct {
GuessingCommand
}
func (*ShellToContainerCmd) Info ¶
func (c *ShellToContainerCmd) Info() *Info
type StringSliceFlag ¶
type StringSliceFlag []string
func (*StringSliceFlag) Set ¶
func (f *StringSliceFlag) Set(val string) error
func (*StringSliceFlag) String ¶
func (f *StringSliceFlag) String() string