Documentation ¶
Index ¶
- Variables
- type CmdInterface
- type Command
- func (c *Command) CheckPendingStatus(dbInstance *rds.DBInstance) bool
- func (c *Command) CreateDBSnapshot(dbIdentifier string) (*rds.DBSnapshot, error)
- func (c *Command) DeleteDBInstance(dbIdentifier string) (*rds.DBInstance, error)
- func (c *Command) DeleteDBResources(rdstypes interface{}) error
- func (c *Command) DeleteDBSnapshot(snapshotIdentifier string) (*rds.DBSnapshot, error)
- func (c *Command) DescribeDBInstance(dbIdentifier string) (*rds.DBInstance, error)
- func (c *Command) DescribeDBInstancesByTags() ([]*rds.DBInstance, error)
- func (c *Command) DescribeDBSnapshot(snapshotIdentifier string) (*rds.DBSnapshot, error)
- func (c *Command) DescribeDBSnapshotsByTags() ([]*rds.DBSnapshot, error)
- func (c *Command) DescribeLatestDBSnapshot(dbIdentifier string) (*rds.DBSnapshot, error)
- func (c *Command) ExecuteSQL(args *ExecuteSQLArgs) ([]time.Duration, error)
- func (c *Command) ModifyDBInstance(dbIdentifier string, dbInstance *rds.DBInstance) (*rds.DBInstance, error)
- func (c *Command) RebootDBInstance(dbIdentifier string) (*rds.DBInstance, error)
- func (c *Command) RestoreDBInstanceFromDBSnapshot(args *RestoreDBInstanceFromDBSnapshotArgs) (*rds.DBInstance, error)
- func (c *Command) WaitForStatusAvailable(rdstypes interface{}) <-chan bool
- type EsCommand
- type ExecuteSQLArgs
- type LsCommand
- type RestoreDBInstanceFromDBSnapshotArgs
- type RmCommand
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrDBInstancetNotFound = errors.New("DB Instance is not found") ErrSnapshotNotFound = errors.New("DB Snapshot is not found") ErrDriverNotFound = errors.New("DB Driver is not found") ErrRdsTypesNotFound = errors.New("RDS Types is not found") ErrRdsARNsNotFound = errors.New("RDS ARN Types is not found") )
View Source
var ErrDBInstancetTimeOut = errors.New("DB Instance is time out")
View Source
var ErrInterruptedAskDelete = errors.New("OS Interrupted Ask Delete")
Functions ¶
This section is empty.
Types ¶
type CmdInterface ¶
type Command ¶
type Command struct { OutConfig config.OutConfig RDSConfig config.RDSConfig RDSClient *rds.RDS ARNPrefix string }
func (*Command) CheckPendingStatus ¶
func (c *Command) CheckPendingStatus(dbInstance *rds.DBInstance) bool
"Pending Status" If the return value is ture
func (*Command) CreateDBSnapshot ¶
func (c *Command) CreateDBSnapshot(dbIdentifier string) (*rds.DBSnapshot, error)
func (*Command) DeleteDBInstance ¶
func (c *Command) DeleteDBInstance(dbIdentifier string) (*rds.DBInstance, error)
delete DB instance and skip create snapshot
func (*Command) DeleteDBResources ¶
func (*Command) DeleteDBSnapshot ¶
func (c *Command) DeleteDBSnapshot(snapshotIdentifier string) (*rds.DBSnapshot, error)
func (*Command) DescribeDBInstance ¶
func (c *Command) DescribeDBInstance(dbIdentifier string) (*rds.DBInstance, error)
all status in target, result return only one
func (*Command) DescribeDBInstancesByTags ¶
func (c *Command) DescribeDBInstancesByTags() ([]*rds.DBInstance, error)
func (*Command) DescribeDBSnapshot ¶
func (c *Command) DescribeDBSnapshot(snapshotIdentifier string) (*rds.DBSnapshot, error)
all status in target, result return only one
func (*Command) DescribeDBSnapshotsByTags ¶
func (c *Command) DescribeDBSnapshotsByTags() ([]*rds.DBSnapshot, error)
func (*Command) DescribeLatestDBSnapshot ¶
func (c *Command) DescribeLatestDBSnapshot(dbIdentifier string) (*rds.DBSnapshot, error)
the target only "available"
func (*Command) ExecuteSQL ¶
func (c *Command) ExecuteSQL(args *ExecuteSQLArgs) ([]time.Duration, error)
func (*Command) ModifyDBInstance ¶
func (c *Command) ModifyDBInstance(dbIdentifier string, dbInstance *rds.DBInstance) (*rds.DBInstance, error)
func (*Command) RebootDBInstance ¶
func (c *Command) RebootDBInstance(dbIdentifier string) (*rds.DBInstance, error)
func (*Command) RestoreDBInstanceFromDBSnapshot ¶
func (c *Command) RestoreDBInstanceFromDBSnapshot(args *RestoreDBInstanceFromDBSnapshotArgs) (*rds.DBInstance, error)
func (*Command) WaitForStatusAvailable ¶
wait for status available
type ExecuteSQLArgs ¶
type RestoreDBInstanceFromDBSnapshotArgs ¶
type RestoreDBInstanceFromDBSnapshotArgs struct { DBInstanceClass string DBIdentifier string MultiAZ bool Snapshot *rds.DBSnapshot Instance *rds.DBInstance }
Click to show internal directories.
Click to hide internal directories.