ec2mock

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateEc2ServiceMock

func CreateEc2ServiceMock(
	opts ...ec2ServiceMockOption,
) *ec2ServiceMock

func CreateEc2ServiceMockFactory

func CreateEc2ServiceMockFactory(
	opts ...ec2ServiceMockOption,
) func(awsConfig *aws.Config, providerContext provider.Context) ec2service.Service

func NewMockService

func NewMockService(t any) *ec2ServiceMock

func WithAllocateAddressError

func WithAllocateAddressError(err error) ec2ServiceMockOption

func WithAllocateAddressOutputs

func WithAllocateAddressOutputs(outputs []*ec2.AllocateAddressOutput) ec2ServiceMockOption

Elastic IP-related options.

func WithAssociateRouteTableError

func WithAssociateRouteTableError(err error) ec2ServiceMockOption

func WithAssociateRouteTableOutput

func WithAssociateRouteTableOutput(output *ec2.AssociateRouteTableOutput) ec2ServiceMockOption

func WithAttachInternetGatewayError

func WithAttachInternetGatewayError(err error) ec2ServiceMockOption

func WithAttachInternetGatewayOutput

func WithAttachInternetGatewayOutput(output *ec2.AttachInternetGatewayOutput) ec2ServiceMockOption

func WithAuthorizeSecurityGroupEgressError added in v0.2.0

func WithAuthorizeSecurityGroupEgressError(err error) ec2ServiceMockOption

func WithAuthorizeSecurityGroupEgressOutput added in v0.2.0

func WithAuthorizeSecurityGroupEgressOutput(output *ec2.AuthorizeSecurityGroupEgressOutput) ec2ServiceMockOption

func WithAuthorizeSecurityGroupIngressError

func WithAuthorizeSecurityGroupIngressError(err error) ec2ServiceMockOption

func WithAuthorizeSecurityGroupIngressOutput

func WithAuthorizeSecurityGroupIngressOutput(output *ec2.AuthorizeSecurityGroupIngressOutput) ec2ServiceMockOption

Security group ingress-related options.

func WithCreateInternetGatewayError

func WithCreateInternetGatewayError(err error) ec2ServiceMockOption

func WithCreateInternetGatewayOutput

func WithCreateInternetGatewayOutput(output *ec2.CreateInternetGatewayOutput) ec2ServiceMockOption

Internet gateway-related options.

func WithCreateNatGatewayError

func WithCreateNatGatewayError(err error) ec2ServiceMockOption

func WithCreateNatGatewayOutputs

func WithCreateNatGatewayOutputs(outputs []*ec2.CreateNatGatewayOutput) ec2ServiceMockOption

NAT gateway-related options.

func WithCreateNetworkAclEntryError

func WithCreateNetworkAclEntryError(err error) ec2ServiceMockOption

func WithCreateNetworkAclEntryOutput

func WithCreateNetworkAclEntryOutput(output *ec2.CreateNetworkAclEntryOutput) ec2ServiceMockOption

func WithCreateNetworkAclError

func WithCreateNetworkAclError(err error) ec2ServiceMockOption

func WithCreateNetworkAclOutput

func WithCreateNetworkAclOutput(output *ec2.CreateNetworkAclOutput) ec2ServiceMockOption

Network ACL-related options.

func WithCreateRouteError

func WithCreateRouteError(err error) ec2ServiceMockOption

func WithCreateRouteOutput

func WithCreateRouteOutput(output *ec2.CreateRouteOutput) ec2ServiceMockOption

func WithCreateRouteTableError

func WithCreateRouteTableError(err error) ec2ServiceMockOption

func WithCreateRouteTableOutputs

func WithCreateRouteTableOutputs(outputs []*ec2.CreateRouteTableOutput) ec2ServiceMockOption

Route table-related options.

func WithCreateSecurityGroupError

func WithCreateSecurityGroupError(err error) ec2ServiceMockOption

func WithCreateSecurityGroupOutput

func WithCreateSecurityGroupOutput(output *ec2.CreateSecurityGroupOutput) ec2ServiceMockOption

Security group-related options.

func WithCreateSubnetError

func WithCreateSubnetError(err error) ec2ServiceMockOption

func WithCreateSubnetOutputs

func WithCreateSubnetOutputs(outputs []*ec2.CreateSubnetOutput) ec2ServiceMockOption

Subnet-related options.

func WithCreateTagsError

func WithCreateTagsError(err error) ec2ServiceMockOption

func WithCreateTagsOutput

func WithCreateTagsOutput(output *ec2.CreateTagsOutput) ec2ServiceMockOption

Tag-related options.

func WithCreateVpcEndpointError

func WithCreateVpcEndpointError(err error) ec2ServiceMockOption

func WithCreateVpcEndpointOutput

func WithCreateVpcEndpointOutput(output *ec2.CreateVpcEndpointOutput) ec2ServiceMockOption

func WithCreateVpcError

func WithCreateVpcError(err error) ec2ServiceMockOption

func WithCreateVpcOutput

func WithCreateVpcOutput(output *ec2.CreateVpcOutput) ec2ServiceMockOption

VPC-related options.

func WithDeleteInternetGatewayError

func WithDeleteInternetGatewayError(err error) ec2ServiceMockOption

func WithDeleteInternetGatewayOutput

func WithDeleteInternetGatewayOutput(output *ec2.DeleteInternetGatewayOutput) ec2ServiceMockOption

func WithDeleteNatGatewayError

func WithDeleteNatGatewayError(err error) ec2ServiceMockOption

func WithDeleteNatGatewayOutput

func WithDeleteNatGatewayOutput(output *ec2.DeleteNatGatewayOutput) ec2ServiceMockOption

func WithDeleteNetworkAclError

func WithDeleteNetworkAclError(err error) ec2ServiceMockOption

func WithDeleteNetworkAclOutput

func WithDeleteNetworkAclOutput(output *ec2.DeleteNetworkAclOutput) ec2ServiceMockOption

func WithDeleteRouteTableError

func WithDeleteRouteTableError(err error) ec2ServiceMockOption

func WithDeleteRouteTableOutput

func WithDeleteRouteTableOutput(output *ec2.DeleteRouteTableOutput) ec2ServiceMockOption

func WithDeleteSecurityGroupError

func WithDeleteSecurityGroupError(err error) ec2ServiceMockOption

func WithDeleteSecurityGroupOutput

func WithDeleteSecurityGroupOutput(output *ec2.DeleteSecurityGroupOutput) ec2ServiceMockOption

func WithDeleteSubnetError

func WithDeleteSubnetError(err error) ec2ServiceMockOption

func WithDeleteSubnetOutput

func WithDeleteSubnetOutput(output *ec2.DeleteSubnetOutput) ec2ServiceMockOption

func WithDeleteTagsError

func WithDeleteTagsError(err error) ec2ServiceMockOption

func WithDeleteTagsOutput

func WithDeleteTagsOutput(output *ec2.DeleteTagsOutput) ec2ServiceMockOption

func WithDeleteVpcEndpointsError

func WithDeleteVpcEndpointsError(err error) ec2ServiceMockOption

func WithDeleteVpcEndpointsOutput

func WithDeleteVpcEndpointsOutput(output *ec2.DeleteVpcEndpointsOutput) ec2ServiceMockOption

func WithDeleteVpcError

func WithDeleteVpcError(err error) ec2ServiceMockOption

func WithDeleteVpcOutput

func WithDeleteVpcOutput(output *ec2.DeleteVpcOutput) ec2ServiceMockOption

func WithDescribeAvailabilityZonesError

func WithDescribeAvailabilityZonesError(err error) ec2ServiceMockOption

func WithDescribeAvailabilityZonesOutput

func WithDescribeAvailabilityZonesOutput(output *ec2.DescribeAvailabilityZonesOutput) ec2ServiceMockOption

Availability zone-related options.

func WithDescribeInternetGatewaysError

func WithDescribeInternetGatewaysError(err error) ec2ServiceMockOption

func WithDescribeInternetGatewaysOutput

func WithDescribeInternetGatewaysOutput(output *ec2.DescribeInternetGatewaysOutput) ec2ServiceMockOption

func WithDescribeNatGatewaysError

func WithDescribeNatGatewaysError(err error) ec2ServiceMockOption

func WithDescribeNatGatewaysOutput

func WithDescribeNatGatewaysOutput(output *ec2.DescribeNatGatewaysOutput) ec2ServiceMockOption

func WithDescribeNetworkAclsError

func WithDescribeNetworkAclsError(err error) ec2ServiceMockOption

func WithDescribeNetworkAclsOutput

func WithDescribeNetworkAclsOutput(output *ec2.DescribeNetworkAclsOutput) ec2ServiceMockOption

func WithDescribeRouteTablesError

func WithDescribeRouteTablesError(err error) ec2ServiceMockOption

func WithDescribeRouteTablesOutput

func WithDescribeRouteTablesOutput(output *ec2.DescribeRouteTablesOutput) ec2ServiceMockOption

func WithDescribeSecurityGroupsError

func WithDescribeSecurityGroupsError(err error) ec2ServiceMockOption

func WithDescribeSecurityGroupsOutput

func WithDescribeSecurityGroupsOutput(output *ec2.DescribeSecurityGroupsOutput) ec2ServiceMockOption

func WithDescribeSubnetsError

func WithDescribeSubnetsError(err error) ec2ServiceMockOption

func WithDescribeSubnetsOutput

func WithDescribeSubnetsOutput(output *ec2.DescribeSubnetsOutput) ec2ServiceMockOption

func WithDescribeVpcAttributeError

func WithDescribeVpcAttributeError(err error) ec2ServiceMockOption

func WithDescribeVpcAttributeOutput

func WithDescribeVpcAttributeOutput(output *ec2.DescribeVpcAttributeOutput) ec2ServiceMockOption

func WithDescribeVpcEndpointsError

func WithDescribeVpcEndpointsError(err error) ec2ServiceMockOption

func WithDescribeVpcEndpointsOutput

func WithDescribeVpcEndpointsOutput(output *ec2.DescribeVpcEndpointsOutput) ec2ServiceMockOption

VPC endpoint-related options.

func WithDescribeVpcsError

func WithDescribeVpcsError(err error) ec2ServiceMockOption

func WithDescribeVpcsOutputs

func WithDescribeVpcsOutputs(outputs []*ec2.DescribeVpcsOutput) ec2ServiceMockOption

func WithDetachInternetGatewayError

func WithDetachInternetGatewayError(err error) ec2ServiceMockOption

func WithDetachInternetGatewayOutput

func WithDetachInternetGatewayOutput(output *ec2.DetachInternetGatewayOutput) ec2ServiceMockOption

func WithDisassociateRouteTableError

func WithDisassociateRouteTableError(err error) ec2ServiceMockOption

func WithDisassociateRouteTableOutput

func WithDisassociateRouteTableOutput(output *ec2.DisassociateRouteTableOutput) ec2ServiceMockOption

func WithModifySubnetAttributeError

func WithModifySubnetAttributeError(err error) ec2ServiceMockOption

func WithModifySubnetAttributeOutput

func WithModifySubnetAttributeOutput(output *ec2.ModifySubnetAttributeOutput) ec2ServiceMockOption

func WithModifyVpcAttributeError

func WithModifyVpcAttributeError(err error) ec2ServiceMockOption

func WithModifyVpcAttributeOutput

func WithModifyVpcAttributeOutput(output *ec2.ModifyVpcAttributeOutput) ec2ServiceMockOption

VPC attribute-related options.

func WithModifyVpcEndpointError

func WithModifyVpcEndpointError(err error) ec2ServiceMockOption

func WithModifyVpcEndpointOutput

func WithModifyVpcEndpointOutput(output *ec2.ModifyVpcEndpointOutput) ec2ServiceMockOption

func WithReleaseAddressError

func WithReleaseAddressError(err error) ec2ServiceMockOption

func WithReleaseAddressOutput

func WithReleaseAddressOutput(output *ec2.ReleaseAddressOutput) ec2ServiceMockOption

func WithReplaceNetworkAclAssociationError

func WithReplaceNetworkAclAssociationError(err error) ec2ServiceMockOption

func WithReplaceNetworkAclAssociationOutput

func WithReplaceNetworkAclAssociationOutput(output *ec2.ReplaceNetworkAclAssociationOutput) ec2ServiceMockOption

func WithRevokeSecurityGroupEgressError

func WithRevokeSecurityGroupEgressError(err error) ec2ServiceMockOption

func WithRevokeSecurityGroupEgressOutput

func WithRevokeSecurityGroupEgressOutput(output *ec2.RevokeSecurityGroupEgressOutput) ec2ServiceMockOption

Types

This section is empty.

Jump to

Keyboard shortcuts

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