Documentation ¶
Overview ¶
Package rds contains business logic of working with AWS RDS.
Index ¶
- type Instance
- type InstanceID
- type Service
- func (svc *Service) Add(ctx context.Context, accessKey, secretKey string, id *InstanceID, ...) error
- func (svc *Service) ApplyPrometheusConfiguration(ctx context.Context, q *reform.Querier) error
- func (svc *Service) Discover(ctx context.Context, accessKey, secretKey string) ([]Instance, error)
- func (svc *Service) List(ctx context.Context) ([]Instance, error)
- func (svc *Service) MySQLServiceFromRDSService(service *models.RDSService) *models.MySQLService
- func (svc *Service) Remove(ctx context.Context, id *InstanceID) error
- func (svc *Service) Restore(ctx context.Context, tx *reform.TX) error
- type ServiceConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InstanceID ¶
InstanceID uniquely identifies RDS instance. http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.DBInstance.html Each DB instance has a DB instance identifier. This customer-supplied name uniquely identifies the DB instance when interacting with the Amazon RDS API and AWS CLI commands. The DB instance identifier must be unique for that customer in an AWS Region.
type Service ¶
type Service struct { *ServiceConfig // contains filtered or unexported fields }
Service is responsible for interactions with AWS RDS.
func NewService ¶
func NewService(config *ServiceConfig) (*Service, error)
NewService creates a new service.
func (*Service) ApplyPrometheusConfiguration ¶
func (*Service) MySQLServiceFromRDSService ¶ added in v1.16.0
func (svc *Service) MySQLServiceFromRDSService(service *models.RDSService) *models.MySQLService
type ServiceConfig ¶
Click to show internal directories.
Click to hide internal directories.