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 InternetGatewayInfo
- 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(_a0 context.Context, _a1 *serviceec2.DescribeFlowLogsInput, ...) (*serviceec2.DescribeFlowLogsOutput, error)
- func (_m *MockClient) DescribeInstances(_a0 context.Context, _a1 *serviceec2.DescribeInstancesInput, ...) (*serviceec2.DescribeInstancesOutput, error)
- func (_m *MockClient) DescribeInternetGateways(_a0 context.Context, _a1 *serviceec2.DescribeInternetGatewaysInput, ...) (*serviceec2.DescribeInternetGatewaysOutput, error)
- func (_m *MockClient) DescribeNatGateways(_a0 context.Context, _a1 *serviceec2.DescribeNatGatewaysInput, ...) (*serviceec2.DescribeNatGatewaysOutput, error)
- func (_m *MockClient) DescribeNetworkAcls(_a0 context.Context, _a1 *serviceec2.DescribeNetworkAclsInput, ...) (*serviceec2.DescribeNetworkAclsOutput, error)
- func (_m *MockClient) DescribeNetworkInterfaces(_a0 context.Context, _a1 *serviceec2.DescribeNetworkInterfacesInput, ...) (*serviceec2.DescribeNetworkInterfacesOutput, error)
- func (_m *MockClient) DescribeRouteTables(_a0 context.Context, _a1 *serviceec2.DescribeRouteTablesInput, ...) (*serviceec2.DescribeRouteTablesOutput, error)
- func (_m *MockClient) DescribeSecurityGroups(_a0 context.Context, _a1 *serviceec2.DescribeSecurityGroupsInput, ...) (*serviceec2.DescribeSecurityGroupsOutput, error)
- func (_m *MockClient) DescribeSnapshots(_a0 context.Context, _a1 *serviceec2.DescribeSnapshotsInput, ...) (*serviceec2.DescribeSnapshotsOutput, error)
- func (_m *MockClient) DescribeSubnets(_a0 context.Context, _a1 *serviceec2.DescribeSubnetsInput, ...) (*serviceec2.DescribeSubnetsOutput, error)
- func (_m *MockClient) DescribeTransitGatewayAttachments(_a0 context.Context, _a1 *serviceec2.DescribeTransitGatewayAttachmentsInput, ...) (*serviceec2.DescribeTransitGatewayAttachmentsOutput, error)
- func (_m *MockClient) DescribeTransitGateways(_a0 context.Context, _a1 *serviceec2.DescribeTransitGatewaysInput, ...) (*serviceec2.DescribeTransitGatewaysOutput, error)
- func (_m *MockClient) DescribeVolumes(_a0 context.Context, _a1 *serviceec2.DescribeVolumesInput, ...) (*serviceec2.DescribeVolumesOutput, error)
- func (_m *MockClient) DescribeVpcPeeringConnections(_a0 context.Context, _a1 *serviceec2.DescribeVpcPeeringConnectionsInput, ...) (*serviceec2.DescribeVpcPeeringConnectionsOutput, error)
- func (_m *MockClient) DescribeVpcs(_a0 context.Context, _a1 *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(_a0 context.Context, _a1 *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(_a0 context.Context, _a1 *serviceec2.DescribeInstancesInput, ...)) *MockClient_DescribeInstances_Call
- func (_c *MockClient_DescribeInstances_Call) RunAndReturn(...) *MockClient_DescribeInstances_Call
- type MockClient_DescribeInternetGateways_Call
- func (_c *MockClient_DescribeInternetGateways_Call) Return(_a0 *serviceec2.DescribeInternetGatewaysOutput, _a1 error) *MockClient_DescribeInternetGateways_Call
- func (_c *MockClient_DescribeInternetGateways_Call) Run(...) *MockClient_DescribeInternetGateways_Call
- func (_c *MockClient_DescribeInternetGateways_Call) RunAndReturn(...) *MockClient_DescribeInternetGateways_Call
- type MockClient_DescribeNatGateways_Call
- func (_c *MockClient_DescribeNatGateways_Call) Return(_a0 *serviceec2.DescribeNatGatewaysOutput, _a1 error) *MockClient_DescribeNatGateways_Call
- func (_c *MockClient_DescribeNatGateways_Call) Run(run func(_a0 context.Context, _a1 *serviceec2.DescribeNatGatewaysInput, ...)) *MockClient_DescribeNatGateways_Call
- func (_c *MockClient_DescribeNatGateways_Call) RunAndReturn(...) *MockClient_DescribeNatGateways_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(run func(_a0 context.Context, _a1 *serviceec2.DescribeNetworkAclsInput, ...)) *MockClient_DescribeNetworkAcls_Call
- func (_c *MockClient_DescribeNetworkAcls_Call) RunAndReturn(...) *MockClient_DescribeNetworkAcls_Call
- type MockClient_DescribeNetworkInterfaces_Call
- func (_c *MockClient_DescribeNetworkInterfaces_Call) Return(_a0 *serviceec2.DescribeNetworkInterfacesOutput, _a1 error) *MockClient_DescribeNetworkInterfaces_Call
- func (_c *MockClient_DescribeNetworkInterfaces_Call) Run(...) *MockClient_DescribeNetworkInterfaces_Call
- func (_c *MockClient_DescribeNetworkInterfaces_Call) RunAndReturn(...) *MockClient_DescribeNetworkInterfaces_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(run func(_a0 context.Context, _a1 *serviceec2.DescribeRouteTablesInput, ...)) *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(_a0 context.Context, _a1 *serviceec2.DescribeSnapshotsInput, ...)) *MockClient_DescribeSnapshots_Call
- func (_c *MockClient_DescribeSnapshots_Call) RunAndReturn(...) *MockClient_DescribeSnapshots_Call
- type MockClient_DescribeSubnets_Call
- func (_c *MockClient_DescribeSubnets_Call) Return(_a0 *serviceec2.DescribeSubnetsOutput, _a1 error) *MockClient_DescribeSubnets_Call
- func (_c *MockClient_DescribeSubnets_Call) Run(run func(_a0 context.Context, _a1 *serviceec2.DescribeSubnetsInput, ...)) *MockClient_DescribeSubnets_Call
- func (_c *MockClient_DescribeSubnets_Call) RunAndReturn(...) *MockClient_DescribeSubnets_Call
- type MockClient_DescribeTransitGatewayAttachments_Call
- func (_c *MockClient_DescribeTransitGatewayAttachments_Call) Return(_a0 *serviceec2.DescribeTransitGatewayAttachmentsOutput, _a1 error) *MockClient_DescribeTransitGatewayAttachments_Call
- func (_c *MockClient_DescribeTransitGatewayAttachments_Call) Run(...) *MockClient_DescribeTransitGatewayAttachments_Call
- func (_c *MockClient_DescribeTransitGatewayAttachments_Call) RunAndReturn(...) *MockClient_DescribeTransitGatewayAttachments_Call
- type MockClient_DescribeTransitGateways_Call
- func (_c *MockClient_DescribeTransitGateways_Call) Return(_a0 *serviceec2.DescribeTransitGatewaysOutput, _a1 error) *MockClient_DescribeTransitGateways_Call
- func (_c *MockClient_DescribeTransitGateways_Call) Run(...) *MockClient_DescribeTransitGateways_Call
- func (_c *MockClient_DescribeTransitGateways_Call) RunAndReturn(...) *MockClient_DescribeTransitGateways_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(_a0 context.Context, _a1 *serviceec2.DescribeVolumesInput, ...)) *MockClient_DescribeVolumes_Call
- func (_c *MockClient_DescribeVolumes_Call) RunAndReturn(...) *MockClient_DescribeVolumes_Call
- type MockClient_DescribeVpcPeeringConnections_Call
- func (_c *MockClient_DescribeVpcPeeringConnections_Call) Return(_a0 *serviceec2.DescribeVpcPeeringConnectionsOutput, _a1 error) *MockClient_DescribeVpcPeeringConnections_Call
- func (_c *MockClient_DescribeVpcPeeringConnections_Call) Run(...) *MockClient_DescribeVpcPeeringConnections_Call
- func (_c *MockClient_DescribeVpcPeeringConnections_Call) RunAndReturn(...) *MockClient_DescribeVpcPeeringConnections_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(_a0 context.Context, _a1 *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(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockClient_DescribeFlowLogs_Call
- func (_e *MockClient_Expecter) DescribeInstances(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockClient_DescribeInstances_Call
- func (_e *MockClient_Expecter) DescribeInternetGateways(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockClient_DescribeInternetGateways_Call
- func (_e *MockClient_Expecter) DescribeNatGateways(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockClient_DescribeNatGateways_Call
- func (_e *MockClient_Expecter) DescribeNetworkAcls(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockClient_DescribeNetworkAcls_Call
- func (_e *MockClient_Expecter) DescribeNetworkInterfaces(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockClient_DescribeNetworkInterfaces_Call
- func (_e *MockClient_Expecter) DescribeRouteTables(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockClient_DescribeRouteTables_Call
- func (_e *MockClient_Expecter) DescribeSecurityGroups(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockClient_DescribeSecurityGroups_Call
- func (_e *MockClient_Expecter) DescribeSnapshots(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockClient_DescribeSnapshots_Call
- func (_e *MockClient_Expecter) DescribeSubnets(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockClient_DescribeSubnets_Call
- func (_e *MockClient_Expecter) DescribeTransitGatewayAttachments(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockClient_DescribeTransitGatewayAttachments_Call
- func (_e *MockClient_Expecter) DescribeTransitGateways(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockClient_DescribeTransitGateways_Call
- func (_e *MockClient_Expecter) DescribeVolumes(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockClient_DescribeVolumes_Call
- func (_e *MockClient_Expecter) DescribeVpcPeeringConnections(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockClient_DescribeVpcPeeringConnections_Call
- func (_e *MockClient_Expecter) DescribeVpcs(_a0 interface{}, _a1 interface{}, _a2 ...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 NatGatewayInfo
- type NetworkInterfaceInfo
- 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) DescribeInternetGateways(ctx context.Context) ([]awslib.AwsResource, error)
- func (p *Provider) DescribeNatGateways(ctx context.Context) ([]awslib.AwsResource, error)
- func (p *Provider) DescribeNetworkAcl(ctx context.Context) ([]awslib.AwsResource, error)
- func (p *Provider) DescribeNetworkInterfaces(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) DescribeSubnets(ctx context.Context) ([]awslib.AwsResource, error)
- func (p *Provider) DescribeTransitGatewayAttachments(ctx context.Context) ([]awslib.AwsResource, error)
- func (p *Provider) DescribeTransitGateways(ctx context.Context) ([]awslib.AwsResource, error)
- func (p *Provider) DescribeVolumes(ctx context.Context, instances []*Ec2Instance) ([]*Volume, error)
- func (p *Provider) DescribeVpcPeeringConnections(ctx context.Context) ([]awslib.AwsResource, error)
- func (p *Provider) DescribeVpcs(ctx context.Context) ([]awslib.AwsResource, 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 SubnetInfo
- type TransitGatewayAttachmentInfo
- type TransitGatewayInfo
- type Volume
- type VpcInfo
- type VpcPeeringConnectionInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { CreateSnapshots(ctx context.Context, params *ec2.CreateSnapshotsInput, optFns ...func(*ec2.Options)) (*ec2.CreateSnapshotsOutput, error) DeleteSnapshot(ctx context.Context, params *ec2.DeleteSnapshotInput, optFns ...func(*ec2.Options)) (*ec2.DeleteSnapshotOutput, error) GetEbsEncryptionByDefault(ctx context.Context, params *ec2.GetEbsEncryptionByDefaultInput, optFns ...func(*ec2.Options)) (*ec2.GetEbsEncryptionByDefaultOutput, error) ec2.DescribeFlowLogsAPIClient ec2.DescribeInstancesAPIClient ec2.DescribeInternetGatewaysAPIClient ec2.DescribeNatGatewaysAPIClient ec2.DescribeNetworkAclsAPIClient ec2.DescribeNetworkInterfacesAPIClient ec2.DescribeRouteTablesAPIClient ec2.DescribeSecurityGroupsAPIClient ec2.DescribeSnapshotsAPIClient ec2.DescribeSubnetsAPIClient ec2.DescribeTransitGatewayAttachmentsAPIClient ec2.DescribeTransitGatewaysAPIClient ec2.DescribeVolumesAPIClient ec2.DescribeVpcsAPIClient ec2.DescribeVpcPeeringConnectionsAPIClient }
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 InternetGatewayInfo ¶
type InternetGatewayInfo struct { InternetGateway types.InternetGateway `json:"internet_gateway"` // contains filtered or unexported fields }
func (InternetGatewayInfo) GetRegion ¶
func (v InternetGatewayInfo) GetRegion() string
func (InternetGatewayInfo) GetResourceArn ¶
func (v InternetGatewayInfo) GetResourceArn() string
func (InternetGatewayInfo) GetResourceName ¶
func (v InternetGatewayInfo) GetResourceName() string
func (InternetGatewayInfo) GetResourceType ¶
func (v InternetGatewayInfo) 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) 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(_a0 context.Context, _a1 *serviceec2.DescribeFlowLogsInput, _a2 ...func(*serviceec2.Options)) (*serviceec2.DescribeFlowLogsOutput, error)
DescribeFlowLogs provides a mock function with given fields: _a0, _a1, _a2
func (*MockClient) DescribeInstances ¶
func (_m *MockClient) DescribeInstances(_a0 context.Context, _a1 *serviceec2.DescribeInstancesInput, _a2 ...func(*serviceec2.Options)) (*serviceec2.DescribeInstancesOutput, error)
DescribeInstances provides a mock function with given fields: _a0, _a1, _a2
func (*MockClient) DescribeInternetGateways ¶
func (_m *MockClient) DescribeInternetGateways(_a0 context.Context, _a1 *serviceec2.DescribeInternetGatewaysInput, _a2 ...func(*serviceec2.Options)) (*serviceec2.DescribeInternetGatewaysOutput, error)
DescribeInternetGateways provides a mock function with given fields: _a0, _a1, _a2
func (*MockClient) DescribeNatGateways ¶
func (_m *MockClient) DescribeNatGateways(_a0 context.Context, _a1 *serviceec2.DescribeNatGatewaysInput, _a2 ...func(*serviceec2.Options)) (*serviceec2.DescribeNatGatewaysOutput, error)
DescribeNatGateways provides a mock function with given fields: _a0, _a1, _a2
func (*MockClient) DescribeNetworkAcls ¶
func (_m *MockClient) DescribeNetworkAcls(_a0 context.Context, _a1 *serviceec2.DescribeNetworkAclsInput, _a2 ...func(*serviceec2.Options)) (*serviceec2.DescribeNetworkAclsOutput, error)
DescribeNetworkAcls provides a mock function with given fields: _a0, _a1, _a2
func (*MockClient) DescribeNetworkInterfaces ¶
func (_m *MockClient) DescribeNetworkInterfaces(_a0 context.Context, _a1 *serviceec2.DescribeNetworkInterfacesInput, _a2 ...func(*serviceec2.Options)) (*serviceec2.DescribeNetworkInterfacesOutput, error)
DescribeNetworkInterfaces provides a mock function with given fields: _a0, _a1, _a2
func (*MockClient) DescribeRouteTables ¶
func (_m *MockClient) DescribeRouteTables(_a0 context.Context, _a1 *serviceec2.DescribeRouteTablesInput, _a2 ...func(*serviceec2.Options)) (*serviceec2.DescribeRouteTablesOutput, error)
DescribeRouteTables provides a mock function with given fields: _a0, _a1, _a2
func (*MockClient) DescribeSecurityGroups ¶
func (_m *MockClient) DescribeSecurityGroups(_a0 context.Context, _a1 *serviceec2.DescribeSecurityGroupsInput, _a2 ...func(*serviceec2.Options)) (*serviceec2.DescribeSecurityGroupsOutput, error)
DescribeSecurityGroups provides a mock function with given fields: _a0, _a1, _a2
func (*MockClient) DescribeSnapshots ¶
func (_m *MockClient) DescribeSnapshots(_a0 context.Context, _a1 *serviceec2.DescribeSnapshotsInput, _a2 ...func(*serviceec2.Options)) (*serviceec2.DescribeSnapshotsOutput, error)
DescribeSnapshots provides a mock function with given fields: _a0, _a1, _a2
func (*MockClient) DescribeSubnets ¶
func (_m *MockClient) DescribeSubnets(_a0 context.Context, _a1 *serviceec2.DescribeSubnetsInput, _a2 ...func(*serviceec2.Options)) (*serviceec2.DescribeSubnetsOutput, error)
DescribeSubnets provides a mock function with given fields: _a0, _a1, _a2
func (*MockClient) DescribeTransitGatewayAttachments ¶
func (_m *MockClient) DescribeTransitGatewayAttachments(_a0 context.Context, _a1 *serviceec2.DescribeTransitGatewayAttachmentsInput, _a2 ...func(*serviceec2.Options)) (*serviceec2.DescribeTransitGatewayAttachmentsOutput, error)
DescribeTransitGatewayAttachments provides a mock function with given fields: _a0, _a1, _a2
func (*MockClient) DescribeTransitGateways ¶
func (_m *MockClient) DescribeTransitGateways(_a0 context.Context, _a1 *serviceec2.DescribeTransitGatewaysInput, _a2 ...func(*serviceec2.Options)) (*serviceec2.DescribeTransitGatewaysOutput, error)
DescribeTransitGateways provides a mock function with given fields: _a0, _a1, _a2
func (*MockClient) DescribeVolumes ¶
func (_m *MockClient) DescribeVolumes(_a0 context.Context, _a1 *serviceec2.DescribeVolumesInput, _a2 ...func(*serviceec2.Options)) (*serviceec2.DescribeVolumesOutput, error)
DescribeVolumes provides a mock function with given fields: _a0, _a1, _a2
func (*MockClient) DescribeVpcPeeringConnections ¶
func (_m *MockClient) DescribeVpcPeeringConnections(_a0 context.Context, _a1 *serviceec2.DescribeVpcPeeringConnectionsInput, _a2 ...func(*serviceec2.Options)) (*serviceec2.DescribeVpcPeeringConnectionsOutput, error)
DescribeVpcPeeringConnections provides a mock function with given fields: _a0, _a1, _a2
func (*MockClient) DescribeVpcs ¶
func (_m *MockClient) DescribeVpcs(_a0 context.Context, _a1 *serviceec2.DescribeVpcsInput, _a2 ...func(*serviceec2.Options)) (*serviceec2.DescribeVpcsOutput, error)
DescribeVpcs provides a mock function with given fields: _a0, _a1, _a2
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(_a0 context.Context, _a1 *serviceec2.DescribeFlowLogsInput, _a2 ...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(_a0 context.Context, _a1 *serviceec2.DescribeInstancesInput, _a2 ...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_DescribeInternetGateways_Call ¶
MockClient_DescribeInternetGateways_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeInternetGateways'
func (*MockClient_DescribeInternetGateways_Call) Return ¶
func (_c *MockClient_DescribeInternetGateways_Call) Return(_a0 *serviceec2.DescribeInternetGatewaysOutput, _a1 error) *MockClient_DescribeInternetGateways_Call
func (*MockClient_DescribeInternetGateways_Call) Run ¶
func (_c *MockClient_DescribeInternetGateways_Call) Run(run func(_a0 context.Context, _a1 *serviceec2.DescribeInternetGatewaysInput, _a2 ...func(*serviceec2.Options))) *MockClient_DescribeInternetGateways_Call
func (*MockClient_DescribeInternetGateways_Call) RunAndReturn ¶
func (_c *MockClient_DescribeInternetGateways_Call) RunAndReturn(run func(context.Context, *serviceec2.DescribeInternetGatewaysInput, ...func(*serviceec2.Options)) (*serviceec2.DescribeInternetGatewaysOutput, error)) *MockClient_DescribeInternetGateways_Call
type MockClient_DescribeNatGateways_Call ¶
MockClient_DescribeNatGateways_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeNatGateways'
func (*MockClient_DescribeNatGateways_Call) Return ¶
func (_c *MockClient_DescribeNatGateways_Call) Return(_a0 *serviceec2.DescribeNatGatewaysOutput, _a1 error) *MockClient_DescribeNatGateways_Call
func (*MockClient_DescribeNatGateways_Call) Run ¶
func (_c *MockClient_DescribeNatGateways_Call) Run(run func(_a0 context.Context, _a1 *serviceec2.DescribeNatGatewaysInput, _a2 ...func(*serviceec2.Options))) *MockClient_DescribeNatGateways_Call
func (*MockClient_DescribeNatGateways_Call) RunAndReturn ¶
func (_c *MockClient_DescribeNatGateways_Call) RunAndReturn(run func(context.Context, *serviceec2.DescribeNatGatewaysInput, ...func(*serviceec2.Options)) (*serviceec2.DescribeNatGatewaysOutput, error)) *MockClient_DescribeNatGateways_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(_a0 context.Context, _a1 *serviceec2.DescribeNetworkAclsInput, _a2 ...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_DescribeNetworkInterfaces_Call ¶
MockClient_DescribeNetworkInterfaces_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeNetworkInterfaces'
func (*MockClient_DescribeNetworkInterfaces_Call) Return ¶
func (_c *MockClient_DescribeNetworkInterfaces_Call) Return(_a0 *serviceec2.DescribeNetworkInterfacesOutput, _a1 error) *MockClient_DescribeNetworkInterfaces_Call
func (*MockClient_DescribeNetworkInterfaces_Call) Run ¶
func (_c *MockClient_DescribeNetworkInterfaces_Call) Run(run func(_a0 context.Context, _a1 *serviceec2.DescribeNetworkInterfacesInput, _a2 ...func(*serviceec2.Options))) *MockClient_DescribeNetworkInterfaces_Call
func (*MockClient_DescribeNetworkInterfaces_Call) RunAndReturn ¶
func (_c *MockClient_DescribeNetworkInterfaces_Call) RunAndReturn(run func(context.Context, *serviceec2.DescribeNetworkInterfacesInput, ...func(*serviceec2.Options)) (*serviceec2.DescribeNetworkInterfacesOutput, error)) *MockClient_DescribeNetworkInterfaces_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(_a0 context.Context, _a1 *serviceec2.DescribeRouteTablesInput, _a2 ...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(_a0 context.Context, _a1 *serviceec2.DescribeSecurityGroupsInput, _a2 ...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(_a0 context.Context, _a1 *serviceec2.DescribeSnapshotsInput, _a2 ...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_DescribeSubnets_Call ¶
MockClient_DescribeSubnets_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeSubnets'
func (*MockClient_DescribeSubnets_Call) Return ¶
func (_c *MockClient_DescribeSubnets_Call) Return(_a0 *serviceec2.DescribeSubnetsOutput, _a1 error) *MockClient_DescribeSubnets_Call
func (*MockClient_DescribeSubnets_Call) Run ¶
func (_c *MockClient_DescribeSubnets_Call) Run(run func(_a0 context.Context, _a1 *serviceec2.DescribeSubnetsInput, _a2 ...func(*serviceec2.Options))) *MockClient_DescribeSubnets_Call
func (*MockClient_DescribeSubnets_Call) RunAndReturn ¶
func (_c *MockClient_DescribeSubnets_Call) RunAndReturn(run func(context.Context, *serviceec2.DescribeSubnetsInput, ...func(*serviceec2.Options)) (*serviceec2.DescribeSubnetsOutput, error)) *MockClient_DescribeSubnets_Call
type MockClient_DescribeTransitGatewayAttachments_Call ¶
MockClient_DescribeTransitGatewayAttachments_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeTransitGatewayAttachments'
func (*MockClient_DescribeTransitGatewayAttachments_Call) Run ¶
func (_c *MockClient_DescribeTransitGatewayAttachments_Call) Run(run func(_a0 context.Context, _a1 *serviceec2.DescribeTransitGatewayAttachmentsInput, _a2 ...func(*serviceec2.Options))) *MockClient_DescribeTransitGatewayAttachments_Call
func (*MockClient_DescribeTransitGatewayAttachments_Call) RunAndReturn ¶
func (_c *MockClient_DescribeTransitGatewayAttachments_Call) RunAndReturn(run func(context.Context, *serviceec2.DescribeTransitGatewayAttachmentsInput, ...func(*serviceec2.Options)) (*serviceec2.DescribeTransitGatewayAttachmentsOutput, error)) *MockClient_DescribeTransitGatewayAttachments_Call
type MockClient_DescribeTransitGateways_Call ¶
MockClient_DescribeTransitGateways_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeTransitGateways'
func (*MockClient_DescribeTransitGateways_Call) Return ¶
func (_c *MockClient_DescribeTransitGateways_Call) Return(_a0 *serviceec2.DescribeTransitGatewaysOutput, _a1 error) *MockClient_DescribeTransitGateways_Call
func (*MockClient_DescribeTransitGateways_Call) Run ¶
func (_c *MockClient_DescribeTransitGateways_Call) Run(run func(_a0 context.Context, _a1 *serviceec2.DescribeTransitGatewaysInput, _a2 ...func(*serviceec2.Options))) *MockClient_DescribeTransitGateways_Call
func (*MockClient_DescribeTransitGateways_Call) RunAndReturn ¶
func (_c *MockClient_DescribeTransitGateways_Call) RunAndReturn(run func(context.Context, *serviceec2.DescribeTransitGatewaysInput, ...func(*serviceec2.Options)) (*serviceec2.DescribeTransitGatewaysOutput, error)) *MockClient_DescribeTransitGateways_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(_a0 context.Context, _a1 *serviceec2.DescribeVolumesInput, _a2 ...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_DescribeVpcPeeringConnections_Call ¶
MockClient_DescribeVpcPeeringConnections_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeVpcPeeringConnections'
func (*MockClient_DescribeVpcPeeringConnections_Call) Run ¶
func (_c *MockClient_DescribeVpcPeeringConnections_Call) Run(run func(_a0 context.Context, _a1 *serviceec2.DescribeVpcPeeringConnectionsInput, _a2 ...func(*serviceec2.Options))) *MockClient_DescribeVpcPeeringConnections_Call
func (*MockClient_DescribeVpcPeeringConnections_Call) RunAndReturn ¶
func (_c *MockClient_DescribeVpcPeeringConnections_Call) RunAndReturn(run func(context.Context, *serviceec2.DescribeVpcPeeringConnectionsInput, ...func(*serviceec2.Options)) (*serviceec2.DescribeVpcPeeringConnectionsOutput, error)) *MockClient_DescribeVpcPeeringConnections_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(_a0 context.Context, _a1 *serviceec2.DescribeVpcsInput, _a2 ...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(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockClient_DescribeFlowLogs_Call
DescribeFlowLogs is a helper method to define mock.On call
- _a0 context.Context
- _a1 *serviceec2.DescribeFlowLogsInput
- _a2 ...func(*serviceec2.Options)
func (*MockClient_Expecter) DescribeInstances ¶
func (_e *MockClient_Expecter) DescribeInstances(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockClient_DescribeInstances_Call
DescribeInstances is a helper method to define mock.On call
- _a0 context.Context
- _a1 *serviceec2.DescribeInstancesInput
- _a2 ...func(*serviceec2.Options)
func (*MockClient_Expecter) DescribeInternetGateways ¶
func (_e *MockClient_Expecter) DescribeInternetGateways(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockClient_DescribeInternetGateways_Call
DescribeInternetGateways is a helper method to define mock.On call
- _a0 context.Context
- _a1 *serviceec2.DescribeInternetGatewaysInput
- _a2 ...func(*serviceec2.Options)
func (*MockClient_Expecter) DescribeNatGateways ¶
func (_e *MockClient_Expecter) DescribeNatGateways(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockClient_DescribeNatGateways_Call
DescribeNatGateways is a helper method to define mock.On call
- _a0 context.Context
- _a1 *serviceec2.DescribeNatGatewaysInput
- _a2 ...func(*serviceec2.Options)
func (*MockClient_Expecter) DescribeNetworkAcls ¶
func (_e *MockClient_Expecter) DescribeNetworkAcls(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockClient_DescribeNetworkAcls_Call
DescribeNetworkAcls is a helper method to define mock.On call
- _a0 context.Context
- _a1 *serviceec2.DescribeNetworkAclsInput
- _a2 ...func(*serviceec2.Options)
func (*MockClient_Expecter) DescribeNetworkInterfaces ¶
func (_e *MockClient_Expecter) DescribeNetworkInterfaces(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockClient_DescribeNetworkInterfaces_Call
DescribeNetworkInterfaces is a helper method to define mock.On call
- _a0 context.Context
- _a1 *serviceec2.DescribeNetworkInterfacesInput
- _a2 ...func(*serviceec2.Options)
func (*MockClient_Expecter) DescribeRouteTables ¶
func (_e *MockClient_Expecter) DescribeRouteTables(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockClient_DescribeRouteTables_Call
DescribeRouteTables is a helper method to define mock.On call
- _a0 context.Context
- _a1 *serviceec2.DescribeRouteTablesInput
- _a2 ...func(*serviceec2.Options)
func (*MockClient_Expecter) DescribeSecurityGroups ¶
func (_e *MockClient_Expecter) DescribeSecurityGroups(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockClient_DescribeSecurityGroups_Call
DescribeSecurityGroups is a helper method to define mock.On call
- _a0 context.Context
- _a1 *serviceec2.DescribeSecurityGroupsInput
- _a2 ...func(*serviceec2.Options)
func (*MockClient_Expecter) DescribeSnapshots ¶
func (_e *MockClient_Expecter) DescribeSnapshots(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockClient_DescribeSnapshots_Call
DescribeSnapshots is a helper method to define mock.On call
- _a0 context.Context
- _a1 *serviceec2.DescribeSnapshotsInput
- _a2 ...func(*serviceec2.Options)
func (*MockClient_Expecter) DescribeSubnets ¶
func (_e *MockClient_Expecter) DescribeSubnets(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockClient_DescribeSubnets_Call
DescribeSubnets is a helper method to define mock.On call
- _a0 context.Context
- _a1 *serviceec2.DescribeSubnetsInput
- _a2 ...func(*serviceec2.Options)
func (*MockClient_Expecter) DescribeTransitGatewayAttachments ¶
func (_e *MockClient_Expecter) DescribeTransitGatewayAttachments(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockClient_DescribeTransitGatewayAttachments_Call
DescribeTransitGatewayAttachments is a helper method to define mock.On call
- _a0 context.Context
- _a1 *serviceec2.DescribeTransitGatewayAttachmentsInput
- _a2 ...func(*serviceec2.Options)
func (*MockClient_Expecter) DescribeTransitGateways ¶
func (_e *MockClient_Expecter) DescribeTransitGateways(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockClient_DescribeTransitGateways_Call
DescribeTransitGateways is a helper method to define mock.On call
- _a0 context.Context
- _a1 *serviceec2.DescribeTransitGatewaysInput
- _a2 ...func(*serviceec2.Options)
func (*MockClient_Expecter) DescribeVolumes ¶
func (_e *MockClient_Expecter) DescribeVolumes(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockClient_DescribeVolumes_Call
DescribeVolumes is a helper method to define mock.On call
- _a0 context.Context
- _a1 *serviceec2.DescribeVolumesInput
- _a2 ...func(*serviceec2.Options)
func (*MockClient_Expecter) DescribeVpcPeeringConnections ¶
func (_e *MockClient_Expecter) DescribeVpcPeeringConnections(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockClient_DescribeVpcPeeringConnections_Call
DescribeVpcPeeringConnections is a helper method to define mock.On call
- _a0 context.Context
- _a1 *serviceec2.DescribeVpcPeeringConnectionsInput
- _a2 ...func(*serviceec2.Options)
func (*MockClient_Expecter) DescribeVpcs ¶
func (_e *MockClient_Expecter) DescribeVpcs(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockClient_DescribeVpcs_Call
DescribeVpcs is a helper method to define mock.On call
- _a0 context.Context
- _a1 *serviceec2.DescribeVpcsInput
- _a2 ...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 NatGatewayInfo ¶
type NatGatewayInfo struct { NatGateway types.NatGateway `json:"nat_gateway"` // contains filtered or unexported fields }
func (NatGatewayInfo) GetRegion ¶
func (v NatGatewayInfo) GetRegion() string
func (NatGatewayInfo) GetResourceArn ¶
func (v NatGatewayInfo) GetResourceArn() string
func (NatGatewayInfo) GetResourceName ¶
func (v NatGatewayInfo) GetResourceName() string
func (NatGatewayInfo) GetResourceType ¶
func (v NatGatewayInfo) GetResourceType() string
type NetworkInterfaceInfo ¶
type NetworkInterfaceInfo struct { NetworkInterface types.NetworkInterface `json:"network_interface"` // contains filtered or unexported fields }
func (NetworkInterfaceInfo) GetRegion ¶
func (v NetworkInterfaceInfo) GetRegion() string
func (NetworkInterfaceInfo) GetResourceArn ¶
func (v NetworkInterfaceInfo) GetResourceArn() string
func (NetworkInterfaceInfo) GetResourceName ¶
func (v NetworkInterfaceInfo) GetResourceName() string
func (NetworkInterfaceInfo) GetResourceType ¶
func (v NetworkInterfaceInfo) GetResourceType() string
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) DescribeInternetGateways ¶
func (*Provider) DescribeNatGateways ¶
func (*Provider) DescribeNetworkAcl ¶
func (*Provider) DescribeNetworkInterfaces ¶
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) DescribeSubnets ¶
func (*Provider) DescribeTransitGatewayAttachments ¶
func (*Provider) DescribeTransitGateways ¶
func (*Provider) DescribeVolumes ¶
func (*Provider) DescribeVpcPeeringConnections ¶
func (*Provider) DescribeVpcs ¶
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 SubnetInfo ¶
type SubnetInfo struct { Subnet types.Subnet `json:"subnet"` // contains filtered or unexported fields }
func (SubnetInfo) GetRegion ¶
func (v SubnetInfo) GetRegion() string
func (SubnetInfo) GetResourceArn ¶
func (v SubnetInfo) GetResourceArn() string
func (SubnetInfo) GetResourceName ¶
func (v SubnetInfo) GetResourceName() string
func (SubnetInfo) GetResourceType ¶
func (v SubnetInfo) GetResourceType() string
type TransitGatewayAttachmentInfo ¶
type TransitGatewayAttachmentInfo struct { TransitGatewayAttachment types.TransitGatewayAttachment `json:"transit_gateway_attachment"` // contains filtered or unexported fields }
func (TransitGatewayAttachmentInfo) GetRegion ¶
func (v TransitGatewayAttachmentInfo) GetRegion() string
func (TransitGatewayAttachmentInfo) GetResourceArn ¶
func (v TransitGatewayAttachmentInfo) GetResourceArn() string
func (TransitGatewayAttachmentInfo) GetResourceName ¶
func (v TransitGatewayAttachmentInfo) GetResourceName() string
func (TransitGatewayAttachmentInfo) GetResourceType ¶
func (v TransitGatewayAttachmentInfo) GetResourceType() string
type TransitGatewayInfo ¶
type TransitGatewayInfo struct { TransitGateway types.TransitGateway `json:"transit_gateway"` // contains filtered or unexported fields }
func (TransitGatewayInfo) GetRegion ¶
func (v TransitGatewayInfo) GetRegion() string
func (TransitGatewayInfo) GetResourceArn ¶
func (v TransitGatewayInfo) GetResourceArn() string
func (TransitGatewayInfo) GetResourceName ¶
func (v TransitGatewayInfo) GetResourceName() string
func (TransitGatewayInfo) GetResourceType ¶
func (v TransitGatewayInfo) GetResourceType() string
type VpcInfo ¶
type VpcInfo struct { Vpc types.Vpc `json:"vpc"` FlowLogs []types.FlowLog `json:"flow_logs"` // contains filtered or unexported fields }
func (VpcInfo) GetResourceArn ¶
func (VpcInfo) GetResourceName ¶
func (VpcInfo) GetResourceType ¶
type VpcPeeringConnectionInfo ¶
type VpcPeeringConnectionInfo struct { VpcPeeringConnection types.VpcPeeringConnection `json:"vpc_peering_connection"` // contains filtered or unexported fields }
func (VpcPeeringConnectionInfo) GetRegion ¶
func (v VpcPeeringConnectionInfo) GetRegion() string
func (VpcPeeringConnectionInfo) GetResourceArn ¶
func (v VpcPeeringConnectionInfo) GetResourceArn() string
func (VpcPeeringConnectionInfo) GetResourceName ¶
func (v VpcPeeringConnectionInfo) GetResourceName() string
func (VpcPeeringConnectionInfo) GetResourceType ¶
func (v VpcPeeringConnectionInfo) GetResourceType() string