Documentation ¶
Index ¶
- type Client
- type DBInstance
- type MockClient
- type MockClient_DescribeDBInstances_Call
- func (_c *MockClient_DescribeDBInstances_Call) Return(_a0 *servicerds.DescribeDBInstancesOutput, _a1 error) *MockClient_DescribeDBInstances_Call
- func (_c *MockClient_DescribeDBInstances_Call) Run(...) *MockClient_DescribeDBInstances_Call
- func (_c *MockClient_DescribeDBInstances_Call) RunAndReturn(...) *MockClient_DescribeDBInstances_Call
- type MockClient_Expecter
- type MockRds
- type MockRds_DescribeDBInstances_Call
- func (_c *MockRds_DescribeDBInstances_Call) Return(_a0 []awslib.AwsResource, _a1 error) *MockRds_DescribeDBInstances_Call
- func (_c *MockRds_DescribeDBInstances_Call) Run(run func(ctx context.Context)) *MockRds_DescribeDBInstances_Call
- func (_c *MockRds_DescribeDBInstances_Call) RunAndReturn(run func(context.Context) ([]awslib.AwsResource, error)) *MockRds_DescribeDBInstances_Call
- type MockRds_Expecter
- type Provider
- type Rds
- type Route
- type RouteTable
- type Subnet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
DescribeDBInstances(ctx context.Context, params *rds.DescribeDBInstancesInput, optFns ...func(*rds.Options)) (*rds.DescribeDBInstancesOutput, error)
}
type DBInstance ¶
type DBInstance struct { Identifier string `json:"identifier"` Arn string `json:"arn"` StorageEncrypted bool `json:"storage_encrypted"` AutoMinorVersionUpgrade bool `json:"auto_minor_version_upgrade"` PubliclyAccessible bool `json:"publicly_accessible"` Subnets []Subnet `json:"subnets"` // contains filtered or unexported fields }
func (DBInstance) GetRegion ¶
func (d DBInstance) GetRegion() string
func (DBInstance) GetResourceArn ¶
func (d DBInstance) GetResourceArn() string
func (DBInstance) GetResourceName ¶
func (d DBInstance) GetResourceName() string
func (DBInstance) GetResourceType ¶
func (d DBInstance) GetResourceType() string
type MockClient ¶
MockClient is an autogenerated mock type for the Client type
func NewMockClient ¶
func NewMockClient(t interface { mock.TestingT Cleanup(func()) }) *MockClient
NewMockClient creates a new instance of MockClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockClient) DescribeDBInstances ¶
func (_m *MockClient) DescribeDBInstances(ctx context.Context, params *servicerds.DescribeDBInstancesInput, optFns ...func(*servicerds.Options)) (*servicerds.DescribeDBInstancesOutput, error)
DescribeDBInstances provides a mock function with given fields: ctx, params, optFns
func (*MockClient) EXPECT ¶
func (_m *MockClient) EXPECT() *MockClient_Expecter
type MockClient_DescribeDBInstances_Call ¶
MockClient_DescribeDBInstances_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeDBInstances'
func (*MockClient_DescribeDBInstances_Call) Return ¶
func (_c *MockClient_DescribeDBInstances_Call) Return(_a0 *servicerds.DescribeDBInstancesOutput, _a1 error) *MockClient_DescribeDBInstances_Call
func (*MockClient_DescribeDBInstances_Call) Run ¶
func (_c *MockClient_DescribeDBInstances_Call) Run(run func(ctx context.Context, params *servicerds.DescribeDBInstancesInput, optFns ...func(*servicerds.Options))) *MockClient_DescribeDBInstances_Call
func (*MockClient_DescribeDBInstances_Call) RunAndReturn ¶
func (_c *MockClient_DescribeDBInstances_Call) RunAndReturn(run func(context.Context, *servicerds.DescribeDBInstancesInput, ...func(*servicerds.Options)) (*servicerds.DescribeDBInstancesOutput, error)) *MockClient_DescribeDBInstances_Call
type MockClient_Expecter ¶
type MockClient_Expecter struct {
// contains filtered or unexported fields
}
func (*MockClient_Expecter) DescribeDBInstances ¶
func (_e *MockClient_Expecter) DescribeDBInstances(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_DescribeDBInstances_Call
DescribeDBInstances is a helper method to define mock.On call
- ctx context.Context
- params *servicerds.DescribeDBInstancesInput
- optFns ...func(*servicerds.Options)
type MockRds ¶
MockRds is an autogenerated mock type for the Rds type
func NewMockRds ¶
NewMockRds creates a new instance of MockRds. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockRds) DescribeDBInstances ¶
DescribeDBInstances provides a mock function with given fields: ctx
func (*MockRds) EXPECT ¶
func (_m *MockRds) EXPECT() *MockRds_Expecter
type MockRds_DescribeDBInstances_Call ¶
MockRds_DescribeDBInstances_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeDBInstances'
func (*MockRds_DescribeDBInstances_Call) Return ¶
func (_c *MockRds_DescribeDBInstances_Call) Return(_a0 []awslib.AwsResource, _a1 error) *MockRds_DescribeDBInstances_Call
func (*MockRds_DescribeDBInstances_Call) Run ¶
func (_c *MockRds_DescribeDBInstances_Call) Run(run func(ctx context.Context)) *MockRds_DescribeDBInstances_Call
func (*MockRds_DescribeDBInstances_Call) RunAndReturn ¶
func (_c *MockRds_DescribeDBInstances_Call) RunAndReturn(run func(context.Context) ([]awslib.AwsResource, error)) *MockRds_DescribeDBInstances_Call
type MockRds_Expecter ¶
type MockRds_Expecter struct {
// contains filtered or unexported fields
}
func (*MockRds_Expecter) DescribeDBInstances ¶
func (_e *MockRds_Expecter) DescribeDBInstances(ctx interface{}) *MockRds_DescribeDBInstances_Call
DescribeDBInstances is a helper method to define mock.On call
- ctx context.Context
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewProvider ¶
func NewProvider(ctx context.Context, log *logp.Logger, cfg aws.Config, factory awslib.CrossRegionFactory[Client], ec2Provider ec2Provider.ElasticCompute) *Provider
func (Provider) DescribeDBInstances ¶
type Rds ¶
type Rds interface {
DescribeDBInstances(ctx context.Context) ([]awslib.AwsResource, error)
}
type RouteTable ¶
type Subnet ¶
type Subnet struct { ID string RouteTable *RouteTable }