Documentation ¶
Index ¶
- Constants
- type Base
- func (c *Base) GetInstances(needle string) (instances []rds.DBInstance, err error)
- func (c *Base) GetTestInstancePrefix() (prefix string)
- func (c *Base) LoadQueries(file string) (queries []string, err error)
- func (c *Base) Measure(endpoint string, queries []string) (intervals []time.Duration, err error)
- type CloseCommand
- type ListCommand
- type OpenCommand
- func (c *OpenCommand) CreateInstanceFromSnapshot(snapshot *rds.DBSnapshot) (testInstanceName string, err error)
- func (c *OpenCommand) GetLatestSnapshot() (latestDBSnapshot rds.DBSnapshot, err error)
- func (c *OpenCommand) Help() string
- func (c *OpenCommand) Run(args []string) int
- func (c *OpenCommand) Synopsis() string
- func (c *OpenCommand) WaitTestInstanceAvailable(instanceName string) bool
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 ¶
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
Click to show internal directories.
Click to hide internal directories.