tsuru

package
v0.0.0-...-5650998 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2014 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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.Client) 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.Client) 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.Client) error

func (AppList) Show

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

type AppLog

type AppLog struct {
	GuessingCommand
	// contains filtered or unexported fields
}

func (*AppLog) Flags

func (c *AppLog) Flags() *gnuflag.FlagSet

func (*AppLog) Info

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

func (*AppLog) Run

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

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.Client) 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.Client) error

type AppRun

type AppRun struct {
	GuessingCommand
	// contains filtered or unexported fields
}

func (*AppRun) Flags

func (c *AppRun) Flags() *gnuflag.FlagSet

func (*AppRun) Info

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

func (*AppRun) Run

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

type AppStart

type AppStart struct {
	GuessingCommand
}

func (*AppStart) Info

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

func (*AppStart) Run

func (c *AppStart) Run(context *cmd.Context, client *cmd.Client) error

type AppStop

type AppStop struct {
	GuessingCommand
}

func (*AppStop) Info

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

func (*AppStop) Run

func (c *AppStop) Run(context *cmd.Context, client *cmd.Client) 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.Client) 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.Client) 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.Client) 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 (<user>@<somehost>:<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
	// 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

func (ServiceAdd) Run

func (sa ServiceAdd) Run(ctx *cmd.Context, client *cmd.Client) 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.Client) error

type ServiceDoc

type ServiceDoc struct{}

func (ServiceDoc) Info

func (ServiceDoc) Info() *cmd.Info

func (ServiceDoc) Run

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

type ServiceInfo

type ServiceInfo struct{}

func (ServiceInfo) BuildInstancesTable

func (c ServiceInfo) BuildInstancesTable(serviceName string, ctx *cmd.Context, client *cmd.Client) error

func (ServiceInfo) BuildPlansTable

func (c ServiceInfo) BuildPlansTable(serviceName string, ctx *cmd.Context, client *cmd.Client) error

func (ServiceInfo) ExtraHeaders

func (ServiceInfo) ExtraHeaders(instances []ServiceInstanceModel) []string

func (ServiceInfo) Info

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

func (ServiceInfo) Run

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

type ServiceInstanceModel

type ServiceInstanceModel struct {
	Name string
	Apps []string
	Info map[string]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.Client) 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.Client) error

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

func (ServiceRemove) Run

func (c ServiceRemove) Run(ctx *cmd.Context, client *cmd.Client) 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.Client) error

type SetCName

type SetCName struct {
	GuessingCommand
}

func (*SetCName) Info

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

func (*SetCName) Run

func (c *SetCName) Run(context *cmd.Context, client *cmd.Client) error

type UnsetCName

type UnsetCName struct {
	GuessingCommand
}

func (*UnsetCName) Info

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

func (*UnsetCName) Run

func (c *UnsetCName) Run(context *cmd.Context, client *cmd.Client) error

Jump to

Keyboard shortcuts

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