tsuru

package
v0.0.0-...-319bedf Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2012 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

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
}

func (*AppGrant) Info

func (c *AppGrant) Info() *cmd.Info

func (*AppGrant) Run

func (c *AppGrant) Run(context *cmd.Context, client cmd.Doer) error

type AppGuesser

type AppGuesser interface {
	GuessName(path string) (string, error)
}

AppGuesser is used to guess the name of an app based in a file path.

type AppInfo

type AppInfo struct {
	GuessingCommand
}

func (*AppInfo) Info

func (c *AppInfo) Info() *cmd.Info

func (*AppInfo) Run

func (c *AppInfo) Run(context *cmd.Context, client cmd.Doer) error

func (*AppInfo) Show

func (c *AppInfo) Show(result []byte, context *cmd.Context) error

type AppList

type AppList struct{}

func (*AppList) Info

func (c *AppList) Info() *cmd.Info

func (*AppList) Run

func (c *AppList) Run(context *cmd.Context, client cmd.Doer) error

func (*AppList) Show

func (c *AppList) Show(result []byte, context *cmd.Context) error

type AppLog

type AppLog struct {
	GuessingCommand
}

func (*AppLog) Info

func (c *AppLog) Info() *cmd.Info

func (*AppLog) Run

func (c *AppLog) Run(context *cmd.Context, client cmd.Doer) error

type AppModel

type AppModel struct {
	Name  string
	State string
	Units []Units
}

type AppRestart

type AppRestart struct {
	GuessingCommand
}

func (*AppRestart) Info

func (c *AppRestart) Info() *cmd.Info

func (*AppRestart) Run

func (c *AppRestart) Run(context *cmd.Context, client cmd.Doer) error

type AppRevoke

type AppRevoke struct {
	GuessingCommand
}

func (*AppRevoke) Info

func (c *AppRevoke) Info() *cmd.Info

func (*AppRevoke) Run

func (c *AppRevoke) Run(context *cmd.Context, client cmd.Doer) error

type AppRun

type AppRun struct {
	GuessingCommand
}

func (*AppRun) Info

func (c *AppRun) Info() *cmd.Info

func (*AppRun) Run

func (c *AppRun) Run(context *cmd.Context, client cmd.Doer) error

type EnvGet

type EnvGet struct {
	GuessingCommand
}

func (*EnvGet) Info

func (c *EnvGet) Info() *cmd.Info

func (*EnvGet) Run

func (c *EnvGet) Run(context *cmd.Context, client cmd.Doer) error

type EnvSet

type EnvSet struct {
	GuessingCommand
}

func (*EnvSet) Info

func (c *EnvSet) Info() *cmd.Info

func (*EnvSet) Run

func (c *EnvSet) Run(context *cmd.Context, client cmd.Doer) error

type EnvUnset

type EnvUnset struct {
	GuessingCommand
}

func (*EnvUnset) Info

func (c *EnvUnset) Info() *cmd.Info

func (*EnvUnset) Run

func (c *EnvUnset) Run(context *cmd.Context, client cmd.Doer) error

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.

func (GitGuesser) GuessName

func (g GitGuesser) GuessName(path string) (string, 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

func (*ServiceAdd) Run

func (sa *ServiceAdd) Run(ctx *cmd.Context, client cmd.Doer) error

type ServiceBind

type ServiceBind struct {
	GuessingCommand
}

func (*ServiceBind) Info

func (sb *ServiceBind) Info() *cmd.Info

func (*ServiceBind) Run

func (sb *ServiceBind) Run(ctx *cmd.Context, client cmd.Doer) error

type ServiceDoc

type ServiceDoc struct{}

func (*ServiceDoc) Info

func (c *ServiceDoc) Info() *cmd.Info

func (*ServiceDoc) Run

func (c *ServiceDoc) Run(ctx *cmd.Context, client cmd.Doer) error

type ServiceInfo

type ServiceInfo struct{}

func (*ServiceInfo) Info

func (c *ServiceInfo) Info() *cmd.Info

func (*ServiceInfo) Run

func (c *ServiceInfo) Run(ctx *cmd.Context, client cmd.Doer) error

type ServiceInstanceModel

type ServiceInstanceModel struct {
	Name string
	Apps []string
}

type ServiceInstanceStatus

type ServiceInstanceStatus struct{}

func (*ServiceInstanceStatus) Info

func (c *ServiceInstanceStatus) Info() *cmd.Info

func (*ServiceInstanceStatus) Run

func (c *ServiceInstanceStatus) Run(ctx *cmd.Context, client cmd.Doer) error

type ServiceList

type ServiceList struct{}

func (*ServiceList) Info

func (s *ServiceList) Info() *cmd.Info

func (*ServiceList) Run

func (s *ServiceList) Run(ctx *cmd.Context, client cmd.Doer) error

type ServiceRemove

type ServiceRemove struct{}

func (*ServiceRemove) Info

func (c *ServiceRemove) Info() *cmd.Info

func (*ServiceRemove) Run

func (c *ServiceRemove) Run(ctx *cmd.Context, client cmd.Doer) error

type ServiceUnbind

type ServiceUnbind struct {
	GuessingCommand
}

func (*ServiceUnbind) Info

func (su *ServiceUnbind) Info() *cmd.Info

func (*ServiceUnbind) Run

func (su *ServiceUnbind) Run(ctx *cmd.Context, client cmd.Doer) error

type Units

type Units struct {
	Ip string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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