command

package
v0.0.0-...-e4d5ac6 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2014 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const WaitPeriodSecond = 10
View Source
const WaitTimeoutPeriod = 180 // 180 * 10 sec = 30 min

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
	Ui       cli.Ui
	Resource config.Resource
	Client   *rds.Rds
	Notifier notify.NotifierInterface
}

func (*Base) GetInstances

func (c *Base) GetInstances(needle string) (instances []rds.DBInstance, err error)

func (*Base) GetTestInstancePrefix

func (c *Base) GetTestInstancePrefix() (prefix string)

func (*Base) LoadQueries

func (c *Base) LoadQueries(file string) (queries []string, err error)

func (*Base) Measure

func (c *Base) Measure(endpoint string, queries []string) (intervals []time.Duration, err error)

type CloseCommand

type CloseCommand struct {
	Base
}

func (*CloseCommand) DeleteInstances

func (c *CloseCommand) DeleteInstances(instances []rds.DBInstance) (err error)

func (*CloseCommand) Help

func (c *CloseCommand) Help() string

func (*CloseCommand) Run

func (c *CloseCommand) Run(args []string) int

func (*CloseCommand) Synopsis

func (c *CloseCommand) Synopsis() string

type ListCommand

type ListCommand struct {
	Base
}

func (*ListCommand) Help

func (c *ListCommand) Help() string

func (*ListCommand) Run

func (c *ListCommand) Run(args []string) int

func (*ListCommand) Synopsis

func (c *ListCommand) Synopsis() string

type OpenCommand

type OpenCommand struct {
	Base
	// contains filtered or unexported fields
}

func (*OpenCommand) CreateInstanceFromSnapshot

func (c *OpenCommand) CreateInstanceFromSnapshot(snapshot *rds.DBSnapshot) (testInstanceName string, err error)

func (*OpenCommand) GetLatestSnapshot

func (c *OpenCommand) GetLatestSnapshot() (latestDBSnapshot rds.DBSnapshot, err error)

RDS Utility methods.

func (*OpenCommand) Help

func (c *OpenCommand) Help() string

func (*OpenCommand) Run

func (c *OpenCommand) Run(args []string) int

func (*OpenCommand) Synopsis

func (c *OpenCommand) Synopsis() string

func (*OpenCommand) WaitTestInstanceAvailable

func (c *OpenCommand) WaitTestInstanceAvailable(instanceName string) bool

Jump to

Keyboard shortcuts

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