rds

package
v0.0.0-...-19bd712 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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

type MockClient struct {
	mock.Mock
}

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

type MockClient_DescribeDBInstances_Call struct {
	*mock.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 (*MockClient_DescribeDBInstances_Call) Run

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

type MockRds struct {
	mock.Mock
}

MockRds is an autogenerated mock type for the Rds type

func NewMockRds

func NewMockRds(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockRds

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

func (_m *MockRds) DescribeDBInstances(ctx context.Context) ([]awslib.AwsResource, error)

DescribeDBInstances provides a mock function with given fields: ctx

func (*MockRds) EXPECT

func (_m *MockRds) EXPECT() *MockRds_Expecter

type MockRds_DescribeDBInstances_Call

type MockRds_DescribeDBInstances_Call struct {
	*mock.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 (*MockRds_DescribeDBInstances_Call) Run

func (*MockRds_DescribeDBInstances_Call) RunAndReturn

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(log *logp.Logger, cfg aws.Config, factory awslib.CrossRegionFactory[Client], ec2Provider ec2Provider.ElasticCompute) *Provider

func (Provider) DescribeDBInstances

func (p Provider) DescribeDBInstances(ctx context.Context) ([]awslib.AwsResource, error)

type Rds

type Rds interface {
	DescribeDBInstances(ctx context.Context) ([]awslib.AwsResource, error)
}

type Route

type Route struct {
	DestinationCidrBlock *string
	GatewayId            *string
}

type RouteTable

type RouteTable struct {
	ID     string
	Routes []Route
}

type Subnet

type Subnet struct {
	ID         string
	RouteTable *RouteTable
}

Jump to

Keyboard shortcuts

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