Documentation ¶
Index ¶
- type Client
- type EBSEncryption
- type EBSSnapshot
- type Ec2Instance
- func (i Ec2Instance) GetResourceArn() string
- func (i Ec2Instance) GetResourceId() string
- func (i Ec2Instance) GetResourceMacAddresses() []string
- func (i Ec2Instance) GetResourceName() string
- func (i Ec2Instance) GetResourceSecurityGroups() []SecurityGroupInfo
- func (i Ec2Instance) GetResourceTags() map[string]string
- func (i Ec2Instance) GetResourceType() string
- type ElasticCompute
- type MockClient
- func (_m *MockClient) CreateSnapshots(ctx context.Context, params *serviceec2.CreateSnapshotsInput, ...) (*serviceec2.CreateSnapshotsOutput, error)
- func (_m *MockClient) DeleteSnapshot(ctx context.Context, params *serviceec2.DeleteSnapshotInput, ...) (*serviceec2.DeleteSnapshotOutput, error)
- func (_m *MockClient) DescribeFlowLogs(ctx context.Context, params *serviceec2.DescribeFlowLogsInput, ...) (*serviceec2.DescribeFlowLogsOutput, error)
- func (_m *MockClient) DescribeInstances(ctx context.Context, params *serviceec2.DescribeInstancesInput, ...) (*serviceec2.DescribeInstancesOutput, error)
- func (_m *MockClient) DescribeNetworkAcls(ctx context.Context, params *serviceec2.DescribeNetworkAclsInput, ...) (*serviceec2.DescribeNetworkAclsOutput, error)
- func (_m *MockClient) DescribeRouteTables(ctx context.Context, params *serviceec2.DescribeRouteTablesInput, ...) (*serviceec2.DescribeRouteTablesOutput, error)
- func (_m *MockClient) DescribeSecurityGroups(ctx context.Context, params *serviceec2.DescribeSecurityGroupsInput, ...) (*serviceec2.DescribeSecurityGroupsOutput, error)
- func (_m *MockClient) DescribeSnapshots(ctx context.Context, params *serviceec2.DescribeSnapshotsInput, ...) (*serviceec2.DescribeSnapshotsOutput, error)
- func (_m *MockClient) DescribeVolumes(ctx context.Context, params *serviceec2.DescribeVolumesInput, ...) (*serviceec2.DescribeVolumesOutput, error)
- func (_m *MockClient) DescribeVpcs(ctx context.Context, params *serviceec2.DescribeVpcsInput, ...) (*serviceec2.DescribeVpcsOutput, error)
- func (_m *MockClient) EXPECT() *MockClient_Expecter
- func (_m *MockClient) GetEbsEncryptionByDefault(ctx context.Context, params *serviceec2.GetEbsEncryptionByDefaultInput, ...) (*serviceec2.GetEbsEncryptionByDefaultOutput, error)
- type MockClient_CreateSnapshots_Call
- func (_c *MockClient_CreateSnapshots_Call) Return(_a0 *serviceec2.CreateSnapshotsOutput, _a1 error) *MockClient_CreateSnapshots_Call
- func (_c *MockClient_CreateSnapshots_Call) Run(run func(ctx context.Context, params *serviceec2.CreateSnapshotsInput, ...)) *MockClient_CreateSnapshots_Call
- func (_c *MockClient_CreateSnapshots_Call) RunAndReturn(...) *MockClient_CreateSnapshots_Call
- type MockClient_DeleteSnapshot_Call
- func (_c *MockClient_DeleteSnapshot_Call) Return(_a0 *serviceec2.DeleteSnapshotOutput, _a1 error) *MockClient_DeleteSnapshot_Call
- func (_c *MockClient_DeleteSnapshot_Call) Run(run func(ctx context.Context, params *serviceec2.DeleteSnapshotInput, ...)) *MockClient_DeleteSnapshot_Call
- func (_c *MockClient_DeleteSnapshot_Call) RunAndReturn(...) *MockClient_DeleteSnapshot_Call
- type MockClient_DescribeFlowLogs_Call
- func (_c *MockClient_DescribeFlowLogs_Call) Return(_a0 *serviceec2.DescribeFlowLogsOutput, _a1 error) *MockClient_DescribeFlowLogs_Call
- func (_c *MockClient_DescribeFlowLogs_Call) Run(run func(ctx context.Context, params *serviceec2.DescribeFlowLogsInput, ...)) *MockClient_DescribeFlowLogs_Call
- func (_c *MockClient_DescribeFlowLogs_Call) RunAndReturn(...) *MockClient_DescribeFlowLogs_Call
- type MockClient_DescribeInstances_Call
- func (_c *MockClient_DescribeInstances_Call) Return(_a0 *serviceec2.DescribeInstancesOutput, _a1 error) *MockClient_DescribeInstances_Call
- func (_c *MockClient_DescribeInstances_Call) Run(run func(ctx context.Context, params *serviceec2.DescribeInstancesInput, ...)) *MockClient_DescribeInstances_Call
- func (_c *MockClient_DescribeInstances_Call) RunAndReturn(...) *MockClient_DescribeInstances_Call
- type MockClient_DescribeNetworkAcls_Call
- func (_c *MockClient_DescribeNetworkAcls_Call) Return(_a0 *serviceec2.DescribeNetworkAclsOutput, _a1 error) *MockClient_DescribeNetworkAcls_Call
- func (_c *MockClient_DescribeNetworkAcls_Call) Run(...) *MockClient_DescribeNetworkAcls_Call
- func (_c *MockClient_DescribeNetworkAcls_Call) RunAndReturn(...) *MockClient_DescribeNetworkAcls_Call
- type MockClient_DescribeRouteTables_Call
- func (_c *MockClient_DescribeRouteTables_Call) Return(_a0 *serviceec2.DescribeRouteTablesOutput, _a1 error) *MockClient_DescribeRouteTables_Call
- func (_c *MockClient_DescribeRouteTables_Call) Run(...) *MockClient_DescribeRouteTables_Call
- func (_c *MockClient_DescribeRouteTables_Call) RunAndReturn(...) *MockClient_DescribeRouteTables_Call
- type MockClient_DescribeSecurityGroups_Call
- func (_c *MockClient_DescribeSecurityGroups_Call) Return(_a0 *serviceec2.DescribeSecurityGroupsOutput, _a1 error) *MockClient_DescribeSecurityGroups_Call
- func (_c *MockClient_DescribeSecurityGroups_Call) Run(...) *MockClient_DescribeSecurityGroups_Call
- func (_c *MockClient_DescribeSecurityGroups_Call) RunAndReturn(...) *MockClient_DescribeSecurityGroups_Call
- type MockClient_DescribeSnapshots_Call
- func (_c *MockClient_DescribeSnapshots_Call) Return(_a0 *serviceec2.DescribeSnapshotsOutput, _a1 error) *MockClient_DescribeSnapshots_Call
- func (_c *MockClient_DescribeSnapshots_Call) Run(run func(ctx context.Context, params *serviceec2.DescribeSnapshotsInput, ...)) *MockClient_DescribeSnapshots_Call
- func (_c *MockClient_DescribeSnapshots_Call) RunAndReturn(...) *MockClient_DescribeSnapshots_Call
- type MockClient_DescribeVolumes_Call
- func (_c *MockClient_DescribeVolumes_Call) Return(_a0 *serviceec2.DescribeVolumesOutput, _a1 error) *MockClient_DescribeVolumes_Call
- func (_c *MockClient_DescribeVolumes_Call) Run(run func(ctx context.Context, params *serviceec2.DescribeVolumesInput, ...)) *MockClient_DescribeVolumes_Call
- func (_c *MockClient_DescribeVolumes_Call) RunAndReturn(...) *MockClient_DescribeVolumes_Call
- type MockClient_DescribeVpcs_Call
- func (_c *MockClient_DescribeVpcs_Call) Return(_a0 *serviceec2.DescribeVpcsOutput, _a1 error) *MockClient_DescribeVpcs_Call
- func (_c *MockClient_DescribeVpcs_Call) Run(run func(ctx context.Context, params *serviceec2.DescribeVpcsInput, ...)) *MockClient_DescribeVpcs_Call
- func (_c *MockClient_DescribeVpcs_Call) RunAndReturn(...) *MockClient_DescribeVpcs_Call
- type MockClient_Expecter
- func (_e *MockClient_Expecter) CreateSnapshots(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_CreateSnapshots_Call
- func (_e *MockClient_Expecter) DeleteSnapshot(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_DeleteSnapshot_Call
- func (_e *MockClient_Expecter) DescribeFlowLogs(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_DescribeFlowLogs_Call
- func (_e *MockClient_Expecter) DescribeInstances(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_DescribeInstances_Call
- func (_e *MockClient_Expecter) DescribeNetworkAcls(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_DescribeNetworkAcls_Call
- func (_e *MockClient_Expecter) DescribeRouteTables(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_DescribeRouteTables_Call
- func (_e *MockClient_Expecter) DescribeSecurityGroups(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_DescribeSecurityGroups_Call
- func (_e *MockClient_Expecter) DescribeSnapshots(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_DescribeSnapshots_Call
- func (_e *MockClient_Expecter) DescribeVolumes(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_DescribeVolumes_Call
- func (_e *MockClient_Expecter) DescribeVpcs(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_DescribeVpcs_Call
- func (_e *MockClient_Expecter) GetEbsEncryptionByDefault(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_GetEbsEncryptionByDefault_Call
- type MockClient_GetEbsEncryptionByDefault_Call
- func (_c *MockClient_GetEbsEncryptionByDefault_Call) Return(_a0 *serviceec2.GetEbsEncryptionByDefaultOutput, _a1 error) *MockClient_GetEbsEncryptionByDefault_Call
- func (_c *MockClient_GetEbsEncryptionByDefault_Call) Run(...) *MockClient_GetEbsEncryptionByDefault_Call
- func (_c *MockClient_GetEbsEncryptionByDefault_Call) RunAndReturn(...) *MockClient_GetEbsEncryptionByDefault_Call
- type MockElasticCompute
- func (_m *MockElasticCompute) DescribeNetworkAcl(ctx context.Context) ([]awslib.AwsResource, error)
- func (_m *MockElasticCompute) DescribeSecurityGroups(ctx context.Context) ([]awslib.AwsResource, error)
- func (_m *MockElasticCompute) DescribeVPCs(ctx context.Context) ([]awslib.AwsResource, error)
- func (_m *MockElasticCompute) EXPECT() *MockElasticCompute_Expecter
- func (_m *MockElasticCompute) GetEbsEncryptionByDefault(ctx context.Context) ([]awslib.AwsResource, error)
- func (_m *MockElasticCompute) GetRouteTableForSubnet(ctx context.Context, region string, subnetId string, vpcId string) (types.RouteTable, error)
- type MockElasticCompute_DescribeNetworkAcl_Call
- func (_c *MockElasticCompute_DescribeNetworkAcl_Call) Return(_a0 []awslib.AwsResource, _a1 error) *MockElasticCompute_DescribeNetworkAcl_Call
- func (_c *MockElasticCompute_DescribeNetworkAcl_Call) Run(run func(ctx context.Context)) *MockElasticCompute_DescribeNetworkAcl_Call
- func (_c *MockElasticCompute_DescribeNetworkAcl_Call) RunAndReturn(run func(context.Context) ([]awslib.AwsResource, error)) *MockElasticCompute_DescribeNetworkAcl_Call
- type MockElasticCompute_DescribeSecurityGroups_Call
- func (_c *MockElasticCompute_DescribeSecurityGroups_Call) Return(_a0 []awslib.AwsResource, _a1 error) *MockElasticCompute_DescribeSecurityGroups_Call
- func (_c *MockElasticCompute_DescribeSecurityGroups_Call) Run(run func(ctx context.Context)) *MockElasticCompute_DescribeSecurityGroups_Call
- func (_c *MockElasticCompute_DescribeSecurityGroups_Call) RunAndReturn(run func(context.Context) ([]awslib.AwsResource, error)) *MockElasticCompute_DescribeSecurityGroups_Call
- type MockElasticCompute_DescribeVPCs_Call
- func (_c *MockElasticCompute_DescribeVPCs_Call) Return(_a0 []awslib.AwsResource, _a1 error) *MockElasticCompute_DescribeVPCs_Call
- func (_c *MockElasticCompute_DescribeVPCs_Call) Run(run func(ctx context.Context)) *MockElasticCompute_DescribeVPCs_Call
- func (_c *MockElasticCompute_DescribeVPCs_Call) RunAndReturn(run func(context.Context) ([]awslib.AwsResource, error)) *MockElasticCompute_DescribeVPCs_Call
- type MockElasticCompute_Expecter
- func (_e *MockElasticCompute_Expecter) DescribeNetworkAcl(ctx interface{}) *MockElasticCompute_DescribeNetworkAcl_Call
- func (_e *MockElasticCompute_Expecter) DescribeSecurityGroups(ctx interface{}) *MockElasticCompute_DescribeSecurityGroups_Call
- func (_e *MockElasticCompute_Expecter) DescribeVPCs(ctx interface{}) *MockElasticCompute_DescribeVPCs_Call
- func (_e *MockElasticCompute_Expecter) GetEbsEncryptionByDefault(ctx interface{}) *MockElasticCompute_GetEbsEncryptionByDefault_Call
- func (_e *MockElasticCompute_Expecter) GetRouteTableForSubnet(ctx interface{}, region interface{}, subnetId interface{}, vpcId interface{}) *MockElasticCompute_GetRouteTableForSubnet_Call
- type MockElasticCompute_GetEbsEncryptionByDefault_Call
- func (_c *MockElasticCompute_GetEbsEncryptionByDefault_Call) Return(_a0 []awslib.AwsResource, _a1 error) *MockElasticCompute_GetEbsEncryptionByDefault_Call
- func (_c *MockElasticCompute_GetEbsEncryptionByDefault_Call) Run(run func(ctx context.Context)) *MockElasticCompute_GetEbsEncryptionByDefault_Call
- func (_c *MockElasticCompute_GetEbsEncryptionByDefault_Call) RunAndReturn(run func(context.Context) ([]awslib.AwsResource, error)) *MockElasticCompute_GetEbsEncryptionByDefault_Call
- type MockElasticCompute_GetRouteTableForSubnet_Call
- func (_c *MockElasticCompute_GetRouteTableForSubnet_Call) Return(_a0 types.RouteTable, _a1 error) *MockElasticCompute_GetRouteTableForSubnet_Call
- func (_c *MockElasticCompute_GetRouteTableForSubnet_Call) Run(run func(ctx context.Context, region string, subnetId string, vpcId string)) *MockElasticCompute_GetRouteTableForSubnet_Call
- func (_c *MockElasticCompute_GetRouteTableForSubnet_Call) RunAndReturn(run func(context.Context, string, string, string) (types.RouteTable, error)) *MockElasticCompute_GetRouteTableForSubnet_Call
- type NACLInfo
- type Provider
- func (p *Provider) CreateSnapshots(ctx context.Context, ins *Ec2Instance) ([]EBSSnapshot, error)
- func (p *Provider) DeleteSnapshot(ctx context.Context, snapshot EBSSnapshot) error
- func (p *Provider) DescribeInstances(ctx context.Context) ([]*Ec2Instance, error)
- func (p *Provider) DescribeNetworkAcl(ctx context.Context) ([]awslib.AwsResource, error)
- func (p *Provider) DescribeSecurityGroups(ctx context.Context) ([]awslib.AwsResource, error)
- func (p *Provider) DescribeSnapshots(ctx context.Context, snapshot EBSSnapshot) ([]EBSSnapshot, error)
- func (p *Provider) DescribeVPCs(ctx context.Context) ([]awslib.AwsResource, error)
- func (p *Provider) DescribeVolumes(ctx context.Context, instances []*Ec2Instance) ([]*Volume, error)
- func (p *Provider) GetEbsEncryptionByDefault(ctx context.Context) ([]awslib.AwsResource, error)
- func (p *Provider) GetRouteTableForSubnet(ctx context.Context, region string, subnetId string, vpcId string) (types.RouteTable, error)
- type SecurityGroup
- type SecurityGroupInfo
- type Volume
- type VpcInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { DescribeNetworkAcls(ctx context.Context, params *ec2.DescribeNetworkAclsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeNetworkAclsOutput, error) DescribeSecurityGroups(ctx context.Context, params *ec2.DescribeSecurityGroupsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeSecurityGroupsOutput, error) DescribeVpcs(ctx context.Context, params *ec2.DescribeVpcsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeVpcsOutput, error) DescribeFlowLogs(ctx context.Context, params *ec2.DescribeFlowLogsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeFlowLogsOutput, error) GetEbsEncryptionByDefault(ctx context.Context, params *ec2.GetEbsEncryptionByDefaultInput, optFns ...func(*ec2.Options)) (*ec2.GetEbsEncryptionByDefaultOutput, error) DescribeInstances(ctx context.Context, params *ec2.DescribeInstancesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeInstancesOutput, error) CreateSnapshots(ctx context.Context, params *ec2.CreateSnapshotsInput, optFns ...func(*ec2.Options)) (*ec2.CreateSnapshotsOutput, error) DescribeSnapshots(ctx context.Context, params *ec2.DescribeSnapshotsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeSnapshotsOutput, error) DeleteSnapshot(ctx context.Context, params *ec2.DeleteSnapshotInput, optFns ...func(*ec2.Options)) (*ec2.DeleteSnapshotOutput, error) DescribeRouteTables(ctx context.Context, params *ec2.DescribeRouteTablesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeRouteTablesOutput, error) DescribeVolumes(ctx context.Context, params *ec2.DescribeVolumesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeVolumesOutput, error) }
type EBSEncryption ¶
type EBSEncryption struct { Enabled bool `json:"enabled"` // contains filtered or unexported fields }
func (EBSEncryption) GetRegion ¶
func (e EBSEncryption) GetRegion() string
func (EBSEncryption) GetResourceArn ¶
func (e EBSEncryption) GetResourceArn() string
func (EBSEncryption) GetResourceName ¶
func (e EBSEncryption) GetResourceName() string
func (EBSEncryption) GetResourceType ¶
func (e EBSEncryption) GetResourceType() string
type EBSSnapshot ¶
type EBSSnapshot struct { Instance Ec2Instance SnapshotId string State types.SnapshotState Region string VolumeSize int IsEncrypted bool // contains filtered or unexported fields }
func FromSnapshot ¶
func FromSnapshot(snapshot types.Snapshot, region string, awsAccount string, ins Ec2Instance) EBSSnapshot
func FromSnapshotInfo ¶
func FromSnapshotInfo(snapshot types.SnapshotInfo, region string, awsAccount string, ins Ec2Instance) EBSSnapshot
func (EBSSnapshot) GetResourceArn ¶
func (e EBSSnapshot) GetResourceArn() string
func (EBSSnapshot) GetResourceName ¶
func (e EBSSnapshot) GetResourceName() string
func (EBSSnapshot) GetResourceType ¶
func (e EBSSnapshot) GetResourceType() string
type Ec2Instance ¶
type Ec2Instance struct { types.Instance Region string RootVolume *Volume // contains filtered or unexported fields }
func (Ec2Instance) GetResourceArn ¶
func (i Ec2Instance) GetResourceArn() string
func (Ec2Instance) GetResourceId ¶
func (i Ec2Instance) GetResourceId() string
func (Ec2Instance) GetResourceMacAddresses ¶
func (i Ec2Instance) GetResourceMacAddresses() []string
TODO: Use genertic implementation with custom functions
func (Ec2Instance) GetResourceName ¶
func (i Ec2Instance) GetResourceName() string
func (Ec2Instance) GetResourceSecurityGroups ¶
func (i Ec2Instance) GetResourceSecurityGroups() []SecurityGroupInfo
TODO: Use genertic implementation with custom functions
func (Ec2Instance) GetResourceTags ¶
func (i Ec2Instance) GetResourceTags() map[string]string
TODO: Use genertic implementation with custom functions
func (Ec2Instance) GetResourceType ¶
func (i Ec2Instance) GetResourceType() string
type ElasticCompute ¶
type ElasticCompute interface { DescribeNetworkAcl(ctx context.Context) ([]awslib.AwsResource, error) DescribeSecurityGroups(ctx context.Context) ([]awslib.AwsResource, error) DescribeVPCs(ctx context.Context) ([]awslib.AwsResource, error) GetEbsEncryptionByDefault(ctx context.Context) ([]awslib.AwsResource, error) GetRouteTableForSubnet(ctx context.Context, region string, subnetId string, vpcId string) (types.RouteTable, error) }
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) CreateSnapshots ¶
func (_m *MockClient) CreateSnapshots(ctx context.Context, params *serviceec2.CreateSnapshotsInput, optFns ...func(*serviceec2.Options)) (*serviceec2.CreateSnapshotsOutput, error)
CreateSnapshots provides a mock function with given fields: ctx, params, optFns
func (*MockClient) DeleteSnapshot ¶
func (_m *MockClient) DeleteSnapshot(ctx context.Context, params *serviceec2.DeleteSnapshotInput, optFns ...func(*serviceec2.Options)) (*serviceec2.DeleteSnapshotOutput, error)
DeleteSnapshot provides a mock function with given fields: ctx, params, optFns
func (*MockClient) DescribeFlowLogs ¶
func (_m *MockClient) DescribeFlowLogs(ctx context.Context, params *serviceec2.DescribeFlowLogsInput, optFns ...func(*serviceec2.Options)) (*serviceec2.DescribeFlowLogsOutput, error)
DescribeFlowLogs provides a mock function with given fields: ctx, params, optFns
func (*MockClient) DescribeInstances ¶
func (_m *MockClient) DescribeInstances(ctx context.Context, params *serviceec2.DescribeInstancesInput, optFns ...func(*serviceec2.Options)) (*serviceec2.DescribeInstancesOutput, error)
DescribeInstances provides a mock function with given fields: ctx, params, optFns
func (*MockClient) DescribeNetworkAcls ¶
func (_m *MockClient) DescribeNetworkAcls(ctx context.Context, params *serviceec2.DescribeNetworkAclsInput, optFns ...func(*serviceec2.Options)) (*serviceec2.DescribeNetworkAclsOutput, error)
DescribeNetworkAcls provides a mock function with given fields: ctx, params, optFns
func (*MockClient) DescribeRouteTables ¶
func (_m *MockClient) DescribeRouteTables(ctx context.Context, params *serviceec2.DescribeRouteTablesInput, optFns ...func(*serviceec2.Options)) (*serviceec2.DescribeRouteTablesOutput, error)
DescribeRouteTables provides a mock function with given fields: ctx, params, optFns
func (*MockClient) DescribeSecurityGroups ¶
func (_m *MockClient) DescribeSecurityGroups(ctx context.Context, params *serviceec2.DescribeSecurityGroupsInput, optFns ...func(*serviceec2.Options)) (*serviceec2.DescribeSecurityGroupsOutput, error)
DescribeSecurityGroups provides a mock function with given fields: ctx, params, optFns
func (*MockClient) DescribeSnapshots ¶
func (_m *MockClient) DescribeSnapshots(ctx context.Context, params *serviceec2.DescribeSnapshotsInput, optFns ...func(*serviceec2.Options)) (*serviceec2.DescribeSnapshotsOutput, error)
DescribeSnapshots provides a mock function with given fields: ctx, params, optFns
func (*MockClient) DescribeVolumes ¶
func (_m *MockClient) DescribeVolumes(ctx context.Context, params *serviceec2.DescribeVolumesInput, optFns ...func(*serviceec2.Options)) (*serviceec2.DescribeVolumesOutput, error)
DescribeVolumes provides a mock function with given fields: ctx, params, optFns
func (*MockClient) DescribeVpcs ¶
func (_m *MockClient) DescribeVpcs(ctx context.Context, params *serviceec2.DescribeVpcsInput, optFns ...func(*serviceec2.Options)) (*serviceec2.DescribeVpcsOutput, error)
DescribeVpcs provides a mock function with given fields: ctx, params, optFns
func (*MockClient) EXPECT ¶
func (_m *MockClient) EXPECT() *MockClient_Expecter
func (*MockClient) GetEbsEncryptionByDefault ¶
func (_m *MockClient) GetEbsEncryptionByDefault(ctx context.Context, params *serviceec2.GetEbsEncryptionByDefaultInput, optFns ...func(*serviceec2.Options)) (*serviceec2.GetEbsEncryptionByDefaultOutput, error)
GetEbsEncryptionByDefault provides a mock function with given fields: ctx, params, optFns
type MockClient_CreateSnapshots_Call ¶
MockClient_CreateSnapshots_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateSnapshots'
func (*MockClient_CreateSnapshots_Call) Return ¶
func (_c *MockClient_CreateSnapshots_Call) Return(_a0 *serviceec2.CreateSnapshotsOutput, _a1 error) *MockClient_CreateSnapshots_Call
func (*MockClient_CreateSnapshots_Call) Run ¶
func (_c *MockClient_CreateSnapshots_Call) Run(run func(ctx context.Context, params *serviceec2.CreateSnapshotsInput, optFns ...func(*serviceec2.Options))) *MockClient_CreateSnapshots_Call
func (*MockClient_CreateSnapshots_Call) RunAndReturn ¶
func (_c *MockClient_CreateSnapshots_Call) RunAndReturn(run func(context.Context, *serviceec2.CreateSnapshotsInput, ...func(*serviceec2.Options)) (*serviceec2.CreateSnapshotsOutput, error)) *MockClient_CreateSnapshots_Call
type MockClient_DeleteSnapshot_Call ¶
MockClient_DeleteSnapshot_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteSnapshot'
func (*MockClient_DeleteSnapshot_Call) Return ¶
func (_c *MockClient_DeleteSnapshot_Call) Return(_a0 *serviceec2.DeleteSnapshotOutput, _a1 error) *MockClient_DeleteSnapshot_Call
func (*MockClient_DeleteSnapshot_Call) Run ¶
func (_c *MockClient_DeleteSnapshot_Call) Run(run func(ctx context.Context, params *serviceec2.DeleteSnapshotInput, optFns ...func(*serviceec2.Options))) *MockClient_DeleteSnapshot_Call
func (*MockClient_DeleteSnapshot_Call) RunAndReturn ¶
func (_c *MockClient_DeleteSnapshot_Call) RunAndReturn(run func(context.Context, *serviceec2.DeleteSnapshotInput, ...func(*serviceec2.Options)) (*serviceec2.DeleteSnapshotOutput, error)) *MockClient_DeleteSnapshot_Call
type MockClient_DescribeFlowLogs_Call ¶
MockClient_DescribeFlowLogs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeFlowLogs'
func (*MockClient_DescribeFlowLogs_Call) Return ¶
func (_c *MockClient_DescribeFlowLogs_Call) Return(_a0 *serviceec2.DescribeFlowLogsOutput, _a1 error) *MockClient_DescribeFlowLogs_Call
func (*MockClient_DescribeFlowLogs_Call) Run ¶
func (_c *MockClient_DescribeFlowLogs_Call) Run(run func(ctx context.Context, params *serviceec2.DescribeFlowLogsInput, optFns ...func(*serviceec2.Options))) *MockClient_DescribeFlowLogs_Call
func (*MockClient_DescribeFlowLogs_Call) RunAndReturn ¶
func (_c *MockClient_DescribeFlowLogs_Call) RunAndReturn(run func(context.Context, *serviceec2.DescribeFlowLogsInput, ...func(*serviceec2.Options)) (*serviceec2.DescribeFlowLogsOutput, error)) *MockClient_DescribeFlowLogs_Call
type MockClient_DescribeInstances_Call ¶
MockClient_DescribeInstances_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeInstances'
func (*MockClient_DescribeInstances_Call) Return ¶
func (_c *MockClient_DescribeInstances_Call) Return(_a0 *serviceec2.DescribeInstancesOutput, _a1 error) *MockClient_DescribeInstances_Call
func (*MockClient_DescribeInstances_Call) Run ¶
func (_c *MockClient_DescribeInstances_Call) Run(run func(ctx context.Context, params *serviceec2.DescribeInstancesInput, optFns ...func(*serviceec2.Options))) *MockClient_DescribeInstances_Call
func (*MockClient_DescribeInstances_Call) RunAndReturn ¶
func (_c *MockClient_DescribeInstances_Call) RunAndReturn(run func(context.Context, *serviceec2.DescribeInstancesInput, ...func(*serviceec2.Options)) (*serviceec2.DescribeInstancesOutput, error)) *MockClient_DescribeInstances_Call
type MockClient_DescribeNetworkAcls_Call ¶
MockClient_DescribeNetworkAcls_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeNetworkAcls'
func (*MockClient_DescribeNetworkAcls_Call) Return ¶
func (_c *MockClient_DescribeNetworkAcls_Call) Return(_a0 *serviceec2.DescribeNetworkAclsOutput, _a1 error) *MockClient_DescribeNetworkAcls_Call
func (*MockClient_DescribeNetworkAcls_Call) Run ¶
func (_c *MockClient_DescribeNetworkAcls_Call) Run(run func(ctx context.Context, params *serviceec2.DescribeNetworkAclsInput, optFns ...func(*serviceec2.Options))) *MockClient_DescribeNetworkAcls_Call
func (*MockClient_DescribeNetworkAcls_Call) RunAndReturn ¶
func (_c *MockClient_DescribeNetworkAcls_Call) RunAndReturn(run func(context.Context, *serviceec2.DescribeNetworkAclsInput, ...func(*serviceec2.Options)) (*serviceec2.DescribeNetworkAclsOutput, error)) *MockClient_DescribeNetworkAcls_Call
type MockClient_DescribeRouteTables_Call ¶
MockClient_DescribeRouteTables_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeRouteTables'
func (*MockClient_DescribeRouteTables_Call) Return ¶
func (_c *MockClient_DescribeRouteTables_Call) Return(_a0 *serviceec2.DescribeRouteTablesOutput, _a1 error) *MockClient_DescribeRouteTables_Call
func (*MockClient_DescribeRouteTables_Call) Run ¶
func (_c *MockClient_DescribeRouteTables_Call) Run(run func(ctx context.Context, params *serviceec2.DescribeRouteTablesInput, optFns ...func(*serviceec2.Options))) *MockClient_DescribeRouteTables_Call
func (*MockClient_DescribeRouteTables_Call) RunAndReturn ¶
func (_c *MockClient_DescribeRouteTables_Call) RunAndReturn(run func(context.Context, *serviceec2.DescribeRouteTablesInput, ...func(*serviceec2.Options)) (*serviceec2.DescribeRouteTablesOutput, error)) *MockClient_DescribeRouteTables_Call
type MockClient_DescribeSecurityGroups_Call ¶
MockClient_DescribeSecurityGroups_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeSecurityGroups'
func (*MockClient_DescribeSecurityGroups_Call) Return ¶
func (_c *MockClient_DescribeSecurityGroups_Call) Return(_a0 *serviceec2.DescribeSecurityGroupsOutput, _a1 error) *MockClient_DescribeSecurityGroups_Call
func (*MockClient_DescribeSecurityGroups_Call) Run ¶
func (_c *MockClient_DescribeSecurityGroups_Call) Run(run func(ctx context.Context, params *serviceec2.DescribeSecurityGroupsInput, optFns ...func(*serviceec2.Options))) *MockClient_DescribeSecurityGroups_Call
func (*MockClient_DescribeSecurityGroups_Call) RunAndReturn ¶
func (_c *MockClient_DescribeSecurityGroups_Call) RunAndReturn(run func(context.Context, *serviceec2.DescribeSecurityGroupsInput, ...func(*serviceec2.Options)) (*serviceec2.DescribeSecurityGroupsOutput, error)) *MockClient_DescribeSecurityGroups_Call
type MockClient_DescribeSnapshots_Call ¶
MockClient_DescribeSnapshots_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeSnapshots'
func (*MockClient_DescribeSnapshots_Call) Return ¶
func (_c *MockClient_DescribeSnapshots_Call) Return(_a0 *serviceec2.DescribeSnapshotsOutput, _a1 error) *MockClient_DescribeSnapshots_Call
func (*MockClient_DescribeSnapshots_Call) Run ¶
func (_c *MockClient_DescribeSnapshots_Call) Run(run func(ctx context.Context, params *serviceec2.DescribeSnapshotsInput, optFns ...func(*serviceec2.Options))) *MockClient_DescribeSnapshots_Call
func (*MockClient_DescribeSnapshots_Call) RunAndReturn ¶
func (_c *MockClient_DescribeSnapshots_Call) RunAndReturn(run func(context.Context, *serviceec2.DescribeSnapshotsInput, ...func(*serviceec2.Options)) (*serviceec2.DescribeSnapshotsOutput, error)) *MockClient_DescribeSnapshots_Call
type MockClient_DescribeVolumes_Call ¶
MockClient_DescribeVolumes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeVolumes'
func (*MockClient_DescribeVolumes_Call) Return ¶
func (_c *MockClient_DescribeVolumes_Call) Return(_a0 *serviceec2.DescribeVolumesOutput, _a1 error) *MockClient_DescribeVolumes_Call
func (*MockClient_DescribeVolumes_Call) Run ¶
func (_c *MockClient_DescribeVolumes_Call) Run(run func(ctx context.Context, params *serviceec2.DescribeVolumesInput, optFns ...func(*serviceec2.Options))) *MockClient_DescribeVolumes_Call
func (*MockClient_DescribeVolumes_Call) RunAndReturn ¶
func (_c *MockClient_DescribeVolumes_Call) RunAndReturn(run func(context.Context, *serviceec2.DescribeVolumesInput, ...func(*serviceec2.Options)) (*serviceec2.DescribeVolumesOutput, error)) *MockClient_DescribeVolumes_Call
type MockClient_DescribeVpcs_Call ¶
MockClient_DescribeVpcs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeVpcs'
func (*MockClient_DescribeVpcs_Call) Return ¶
func (_c *MockClient_DescribeVpcs_Call) Return(_a0 *serviceec2.DescribeVpcsOutput, _a1 error) *MockClient_DescribeVpcs_Call
func (*MockClient_DescribeVpcs_Call) Run ¶
func (_c *MockClient_DescribeVpcs_Call) Run(run func(ctx context.Context, params *serviceec2.DescribeVpcsInput, optFns ...func(*serviceec2.Options))) *MockClient_DescribeVpcs_Call
func (*MockClient_DescribeVpcs_Call) RunAndReturn ¶
func (_c *MockClient_DescribeVpcs_Call) RunAndReturn(run func(context.Context, *serviceec2.DescribeVpcsInput, ...func(*serviceec2.Options)) (*serviceec2.DescribeVpcsOutput, error)) *MockClient_DescribeVpcs_Call
type MockClient_Expecter ¶
type MockClient_Expecter struct {
// contains filtered or unexported fields
}
func (*MockClient_Expecter) CreateSnapshots ¶
func (_e *MockClient_Expecter) CreateSnapshots(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_CreateSnapshots_Call
CreateSnapshots is a helper method to define mock.On call
- ctx context.Context
- params *serviceec2.CreateSnapshotsInput
- optFns ...func(*serviceec2.Options)
func (*MockClient_Expecter) DeleteSnapshot ¶
func (_e *MockClient_Expecter) DeleteSnapshot(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_DeleteSnapshot_Call
DeleteSnapshot is a helper method to define mock.On call
- ctx context.Context
- params *serviceec2.DeleteSnapshotInput
- optFns ...func(*serviceec2.Options)
func (*MockClient_Expecter) DescribeFlowLogs ¶
func (_e *MockClient_Expecter) DescribeFlowLogs(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_DescribeFlowLogs_Call
DescribeFlowLogs is a helper method to define mock.On call
- ctx context.Context
- params *serviceec2.DescribeFlowLogsInput
- optFns ...func(*serviceec2.Options)
func (*MockClient_Expecter) DescribeInstances ¶
func (_e *MockClient_Expecter) DescribeInstances(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_DescribeInstances_Call
DescribeInstances is a helper method to define mock.On call
- ctx context.Context
- params *serviceec2.DescribeInstancesInput
- optFns ...func(*serviceec2.Options)
func (*MockClient_Expecter) DescribeNetworkAcls ¶
func (_e *MockClient_Expecter) DescribeNetworkAcls(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_DescribeNetworkAcls_Call
DescribeNetworkAcls is a helper method to define mock.On call
- ctx context.Context
- params *serviceec2.DescribeNetworkAclsInput
- optFns ...func(*serviceec2.Options)
func (*MockClient_Expecter) DescribeRouteTables ¶
func (_e *MockClient_Expecter) DescribeRouteTables(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_DescribeRouteTables_Call
DescribeRouteTables is a helper method to define mock.On call
- ctx context.Context
- params *serviceec2.DescribeRouteTablesInput
- optFns ...func(*serviceec2.Options)
func (*MockClient_Expecter) DescribeSecurityGroups ¶
func (_e *MockClient_Expecter) DescribeSecurityGroups(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_DescribeSecurityGroups_Call
DescribeSecurityGroups is a helper method to define mock.On call
- ctx context.Context
- params *serviceec2.DescribeSecurityGroupsInput
- optFns ...func(*serviceec2.Options)
func (*MockClient_Expecter) DescribeSnapshots ¶
func (_e *MockClient_Expecter) DescribeSnapshots(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_DescribeSnapshots_Call
DescribeSnapshots is a helper method to define mock.On call
- ctx context.Context
- params *serviceec2.DescribeSnapshotsInput
- optFns ...func(*serviceec2.Options)
func (*MockClient_Expecter) DescribeVolumes ¶
func (_e *MockClient_Expecter) DescribeVolumes(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_DescribeVolumes_Call
DescribeVolumes is a helper method to define mock.On call
- ctx context.Context
- params *serviceec2.DescribeVolumesInput
- optFns ...func(*serviceec2.Options)
func (*MockClient_Expecter) DescribeVpcs ¶
func (_e *MockClient_Expecter) DescribeVpcs(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_DescribeVpcs_Call
DescribeVpcs is a helper method to define mock.On call
- ctx context.Context
- params *serviceec2.DescribeVpcsInput
- optFns ...func(*serviceec2.Options)
func (*MockClient_Expecter) GetEbsEncryptionByDefault ¶
func (_e *MockClient_Expecter) GetEbsEncryptionByDefault(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_GetEbsEncryptionByDefault_Call
GetEbsEncryptionByDefault is a helper method to define mock.On call
- ctx context.Context
- params *serviceec2.GetEbsEncryptionByDefaultInput
- optFns ...func(*serviceec2.Options)
type MockClient_GetEbsEncryptionByDefault_Call ¶
MockClient_GetEbsEncryptionByDefault_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEbsEncryptionByDefault'
func (*MockClient_GetEbsEncryptionByDefault_Call) Return ¶
func (_c *MockClient_GetEbsEncryptionByDefault_Call) Return(_a0 *serviceec2.GetEbsEncryptionByDefaultOutput, _a1 error) *MockClient_GetEbsEncryptionByDefault_Call
func (*MockClient_GetEbsEncryptionByDefault_Call) Run ¶
func (_c *MockClient_GetEbsEncryptionByDefault_Call) Run(run func(ctx context.Context, params *serviceec2.GetEbsEncryptionByDefaultInput, optFns ...func(*serviceec2.Options))) *MockClient_GetEbsEncryptionByDefault_Call
func (*MockClient_GetEbsEncryptionByDefault_Call) RunAndReturn ¶
func (_c *MockClient_GetEbsEncryptionByDefault_Call) RunAndReturn(run func(context.Context, *serviceec2.GetEbsEncryptionByDefaultInput, ...func(*serviceec2.Options)) (*serviceec2.GetEbsEncryptionByDefaultOutput, error)) *MockClient_GetEbsEncryptionByDefault_Call
type MockElasticCompute ¶
MockElasticCompute is an autogenerated mock type for the ElasticCompute type
func NewMockElasticCompute ¶
func NewMockElasticCompute(t interface { mock.TestingT Cleanup(func()) }) *MockElasticCompute
NewMockElasticCompute creates a new instance of MockElasticCompute. 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 (*MockElasticCompute) DescribeNetworkAcl ¶
func (_m *MockElasticCompute) DescribeNetworkAcl(ctx context.Context) ([]awslib.AwsResource, error)
DescribeNetworkAcl provides a mock function with given fields: ctx
func (*MockElasticCompute) DescribeSecurityGroups ¶
func (_m *MockElasticCompute) DescribeSecurityGroups(ctx context.Context) ([]awslib.AwsResource, error)
DescribeSecurityGroups provides a mock function with given fields: ctx
func (*MockElasticCompute) DescribeVPCs ¶
func (_m *MockElasticCompute) DescribeVPCs(ctx context.Context) ([]awslib.AwsResource, error)
DescribeVPCs provides a mock function with given fields: ctx
func (*MockElasticCompute) EXPECT ¶
func (_m *MockElasticCompute) EXPECT() *MockElasticCompute_Expecter
func (*MockElasticCompute) GetEbsEncryptionByDefault ¶
func (_m *MockElasticCompute) GetEbsEncryptionByDefault(ctx context.Context) ([]awslib.AwsResource, error)
GetEbsEncryptionByDefault provides a mock function with given fields: ctx
func (*MockElasticCompute) GetRouteTableForSubnet ¶
func (_m *MockElasticCompute) GetRouteTableForSubnet(ctx context.Context, region string, subnetId string, vpcId string) (types.RouteTable, error)
GetRouteTableForSubnet provides a mock function with given fields: ctx, region, subnetId, vpcId
type MockElasticCompute_DescribeNetworkAcl_Call ¶
MockElasticCompute_DescribeNetworkAcl_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeNetworkAcl'
func (*MockElasticCompute_DescribeNetworkAcl_Call) Return ¶
func (_c *MockElasticCompute_DescribeNetworkAcl_Call) Return(_a0 []awslib.AwsResource, _a1 error) *MockElasticCompute_DescribeNetworkAcl_Call
func (*MockElasticCompute_DescribeNetworkAcl_Call) Run ¶
func (_c *MockElasticCompute_DescribeNetworkAcl_Call) Run(run func(ctx context.Context)) *MockElasticCompute_DescribeNetworkAcl_Call
func (*MockElasticCompute_DescribeNetworkAcl_Call) RunAndReturn ¶
func (_c *MockElasticCompute_DescribeNetworkAcl_Call) RunAndReturn(run func(context.Context) ([]awslib.AwsResource, error)) *MockElasticCompute_DescribeNetworkAcl_Call
type MockElasticCompute_DescribeSecurityGroups_Call ¶
MockElasticCompute_DescribeSecurityGroups_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeSecurityGroups'
func (*MockElasticCompute_DescribeSecurityGroups_Call) Return ¶
func (_c *MockElasticCompute_DescribeSecurityGroups_Call) Return(_a0 []awslib.AwsResource, _a1 error) *MockElasticCompute_DescribeSecurityGroups_Call
func (*MockElasticCompute_DescribeSecurityGroups_Call) Run ¶
func (_c *MockElasticCompute_DescribeSecurityGroups_Call) Run(run func(ctx context.Context)) *MockElasticCompute_DescribeSecurityGroups_Call
func (*MockElasticCompute_DescribeSecurityGroups_Call) RunAndReturn ¶
func (_c *MockElasticCompute_DescribeSecurityGroups_Call) RunAndReturn(run func(context.Context) ([]awslib.AwsResource, error)) *MockElasticCompute_DescribeSecurityGroups_Call
type MockElasticCompute_DescribeVPCs_Call ¶
MockElasticCompute_DescribeVPCs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeVPCs'
func (*MockElasticCompute_DescribeVPCs_Call) Return ¶
func (_c *MockElasticCompute_DescribeVPCs_Call) Return(_a0 []awslib.AwsResource, _a1 error) *MockElasticCompute_DescribeVPCs_Call
func (*MockElasticCompute_DescribeVPCs_Call) Run ¶
func (_c *MockElasticCompute_DescribeVPCs_Call) Run(run func(ctx context.Context)) *MockElasticCompute_DescribeVPCs_Call
func (*MockElasticCompute_DescribeVPCs_Call) RunAndReturn ¶
func (_c *MockElasticCompute_DescribeVPCs_Call) RunAndReturn(run func(context.Context) ([]awslib.AwsResource, error)) *MockElasticCompute_DescribeVPCs_Call
type MockElasticCompute_Expecter ¶
type MockElasticCompute_Expecter struct {
// contains filtered or unexported fields
}
func (*MockElasticCompute_Expecter) DescribeNetworkAcl ¶
func (_e *MockElasticCompute_Expecter) DescribeNetworkAcl(ctx interface{}) *MockElasticCompute_DescribeNetworkAcl_Call
DescribeNetworkAcl is a helper method to define mock.On call
- ctx context.Context
func (*MockElasticCompute_Expecter) DescribeSecurityGroups ¶
func (_e *MockElasticCompute_Expecter) DescribeSecurityGroups(ctx interface{}) *MockElasticCompute_DescribeSecurityGroups_Call
DescribeSecurityGroups is a helper method to define mock.On call
- ctx context.Context
func (*MockElasticCompute_Expecter) DescribeVPCs ¶
func (_e *MockElasticCompute_Expecter) DescribeVPCs(ctx interface{}) *MockElasticCompute_DescribeVPCs_Call
DescribeVPCs is a helper method to define mock.On call
- ctx context.Context
func (*MockElasticCompute_Expecter) GetEbsEncryptionByDefault ¶
func (_e *MockElasticCompute_Expecter) GetEbsEncryptionByDefault(ctx interface{}) *MockElasticCompute_GetEbsEncryptionByDefault_Call
GetEbsEncryptionByDefault is a helper method to define mock.On call
- ctx context.Context
func (*MockElasticCompute_Expecter) GetRouteTableForSubnet ¶
func (_e *MockElasticCompute_Expecter) GetRouteTableForSubnet(ctx interface{}, region interface{}, subnetId interface{}, vpcId interface{}) *MockElasticCompute_GetRouteTableForSubnet_Call
GetRouteTableForSubnet is a helper method to define mock.On call
- ctx context.Context
- region string
- subnetId string
- vpcId string
type MockElasticCompute_GetEbsEncryptionByDefault_Call ¶
MockElasticCompute_GetEbsEncryptionByDefault_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEbsEncryptionByDefault'
func (*MockElasticCompute_GetEbsEncryptionByDefault_Call) Return ¶
func (_c *MockElasticCompute_GetEbsEncryptionByDefault_Call) Return(_a0 []awslib.AwsResource, _a1 error) *MockElasticCompute_GetEbsEncryptionByDefault_Call
func (*MockElasticCompute_GetEbsEncryptionByDefault_Call) Run ¶
func (_c *MockElasticCompute_GetEbsEncryptionByDefault_Call) Run(run func(ctx context.Context)) *MockElasticCompute_GetEbsEncryptionByDefault_Call
func (*MockElasticCompute_GetEbsEncryptionByDefault_Call) RunAndReturn ¶
func (_c *MockElasticCompute_GetEbsEncryptionByDefault_Call) RunAndReturn(run func(context.Context) ([]awslib.AwsResource, error)) *MockElasticCompute_GetEbsEncryptionByDefault_Call
type MockElasticCompute_GetRouteTableForSubnet_Call ¶
MockElasticCompute_GetRouteTableForSubnet_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRouteTableForSubnet'
func (*MockElasticCompute_GetRouteTableForSubnet_Call) Return ¶
func (_c *MockElasticCompute_GetRouteTableForSubnet_Call) Return(_a0 types.RouteTable, _a1 error) *MockElasticCompute_GetRouteTableForSubnet_Call
func (*MockElasticCompute_GetRouteTableForSubnet_Call) Run ¶
func (_c *MockElasticCompute_GetRouteTableForSubnet_Call) Run(run func(ctx context.Context, region string, subnetId string, vpcId string)) *MockElasticCompute_GetRouteTableForSubnet_Call
func (*MockElasticCompute_GetRouteTableForSubnet_Call) RunAndReturn ¶
func (_c *MockElasticCompute_GetRouteTableForSubnet_Call) RunAndReturn(run func(context.Context, string, string, string) (types.RouteTable, error)) *MockElasticCompute_GetRouteTableForSubnet_Call
type NACLInfo ¶
type NACLInfo struct { types.NetworkAcl // contains filtered or unexported fields }
func (NACLInfo) GetResourceArn ¶
func (NACLInfo) GetResourceName ¶
func (NACLInfo) GetResourceType ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewEC2Provider ¶
func (*Provider) CreateSnapshots ¶
func (p *Provider) CreateSnapshots(ctx context.Context, ins *Ec2Instance) ([]EBSSnapshot, error)
func (*Provider) DeleteSnapshot ¶
func (p *Provider) DeleteSnapshot(ctx context.Context, snapshot EBSSnapshot) error
func (*Provider) DescribeInstances ¶
func (p *Provider) DescribeInstances(ctx context.Context) ([]*Ec2Instance, error)
func (*Provider) DescribeNetworkAcl ¶
func (*Provider) DescribeSecurityGroups ¶
func (*Provider) DescribeSnapshots ¶
func (p *Provider) DescribeSnapshots(ctx context.Context, snapshot EBSSnapshot) ([]EBSSnapshot, error)
TODO: Maybe we should bulk request snapshots? This will limit us scaling the pipeline
func (*Provider) DescribeVPCs ¶
func (*Provider) DescribeVolumes ¶
func (*Provider) GetEbsEncryptionByDefault ¶
type SecurityGroup ¶
type SecurityGroup struct { types.SecurityGroup // contains filtered or unexported fields }
func (SecurityGroup) GetRegion ¶
func (s SecurityGroup) GetRegion() string
func (SecurityGroup) GetResourceArn ¶
func (s SecurityGroup) GetResourceArn() string
func (SecurityGroup) GetResourceName ¶
func (s SecurityGroup) GetResourceName() string
func (SecurityGroup) GetResourceType ¶
func (s SecurityGroup) GetResourceType() string
type SecurityGroupInfo ¶
type VpcInfo ¶
type VpcInfo struct { Vpc types.Vpc `json:"vpc"` FlowLogs []types.FlowLog `json:"flow_logs"` // contains filtered or unexported fields }