Documentation ¶
Index ¶
- type EC2Client
- func (m EC2Client) AuthorizeSecurityGroupEgress(ctx context.Context, params *ec2.AuthorizeSecurityGroupEgressInput, ...) (*ec2.AuthorizeSecurityGroupEgressOutput, error)
- func (m EC2Client) AuthorizeSecurityGroupIngress(ctx context.Context, params *ec2.AuthorizeSecurityGroupIngressInput, ...) (*ec2.AuthorizeSecurityGroupIngressOutput, error)
- func (m EC2Client) CreateSecurityGroup(ctx context.Context, params *ec2.CreateSecurityGroupInput, ...) (*ec2.CreateSecurityGroupOutput, error)
- func (m EC2Client) DescribeInternetGateways(ctx context.Context, params *ec2.DescribeInternetGatewaysInput, ...) (*ec2.DescribeInternetGatewaysOutput, error)
- func (m EC2Client) DescribeRouteTables(ctx context.Context, params *ec2.DescribeRouteTablesInput, ...) (*ec2.DescribeRouteTablesOutput, error)
- func (m EC2Client) DescribeSecurityGroups(ctx context.Context, params *ec2.DescribeSecurityGroupsInput, ...) (*ec2.DescribeSecurityGroupsOutput, error)
- func (m EC2Client) DescribeSubnets(ctx context.Context, params *ec2.DescribeSubnetsInput, ...) (*ec2.DescribeSubnetsOutput, error)
- func (m EC2Client) DescribeVpcs(ctx context.Context, params *ec2.DescribeVpcsInput, ...) (*ec2.DescribeVpcsOutput, error)
- type MockRDSClient
- func (m MockRDSClient) CopyDBClusterSnapshot(ctx context.Context, params *rds.CopyDBClusterSnapshotInput, ...) (*rds.CopyDBClusterSnapshotOutput, error)
- func (m MockRDSClient) CopyDBSnapshot(ctx context.Context, params *rds.CopyDBSnapshotInput, ...) (*rds.CopyDBSnapshotOutput, error)
- func (m MockRDSClient) CreateDBClusterParameterGroup(ctx context.Context, params *rds.CreateDBClusterParameterGroupInput, ...) (*rds.CreateDBClusterParameterGroupOutput, error)
- func (m MockRDSClient) CreateDBClusterSnapshot(ctx context.Context, params *rds.CreateDBClusterSnapshotInput, ...) (*rds.CreateDBClusterSnapshotOutput, error)
- func (m MockRDSClient) CreateDBInstance(ctx context.Context, params *rds.CreateDBInstanceInput, ...) (*rds.CreateDBInstanceOutput, error)
- func (m MockRDSClient) CreateDBParameterGroup(ctx context.Context, params *rds.CreateDBParameterGroupInput, ...) (*rds.CreateDBParameterGroupOutput, error)
- func (m MockRDSClient) CreateDBSnapshot(ctx context.Context, params *rds.CreateDBSnapshotInput, ...) (*rds.CreateDBSnapshotOutput, error)
- func (m MockRDSClient) CreateDBSubnetGroup(ctx context.Context, params *rds.CreateDBSubnetGroupInput, ...) (*rds.CreateDBSubnetGroupOutput, error)
- func (m MockRDSClient) CreateOptionGroup(ctx context.Context, params *rds.CreateOptionGroupInput, ...) (*rds.CreateOptionGroupOutput, error)
- func (m MockRDSClient) DescribeDBClusterParameterGroups(ctx context.Context, params *rds.DescribeDBClusterParameterGroupsInput, ...) (*rds.DescribeDBClusterParameterGroupsOutput, error)
- func (m MockRDSClient) DescribeDBClusterParameters(ctx context.Context, params *rds.DescribeDBClusterParametersInput, ...) (*rds.DescribeDBClusterParametersOutput, error)
- func (m MockRDSClient) DescribeDBClusterSnapshots(ctx context.Context, params *rds.DescribeDBClusterSnapshotsInput, ...) (*rds.DescribeDBClusterSnapshotsOutput, error)
- func (m MockRDSClient) DescribeDBClusters(ctx context.Context, params *rds.DescribeDBClustersInput, ...) (*rds.DescribeDBClustersOutput, error)
- func (m MockRDSClient) DescribeDBInstances(ctx context.Context, input *rds.DescribeDBInstancesInput, ...) (*rds.DescribeDBInstancesOutput, error)
- func (m MockRDSClient) DescribeDBParameterGroups(ctx context.Context, params *rds.DescribeDBParameterGroupsInput, ...) (*rds.DescribeDBParameterGroupsOutput, error)
- func (m MockRDSClient) DescribeDBParameters(ctx context.Context, params *rds.DescribeDBParametersInput, ...) (*rds.DescribeDBParametersOutput, error)
- func (m MockRDSClient) DescribeDBSnapshots(ctx context.Context, params *rds.DescribeDBSnapshotsInput, ...) (*rds.DescribeDBSnapshotsOutput, error)
- func (m MockRDSClient) DescribeOptionGroups(ctx context.Context, params *rds.DescribeOptionGroupsInput, ...) (*rds.DescribeOptionGroupsOutput, error)
- func (m MockRDSClient) ModifyDBClusterParameterGroup(ctx context.Context, params *rds.ModifyDBClusterParameterGroupInput, ...) (*rds.ModifyDBClusterParameterGroupOutput, error)
- func (m MockRDSClient) ModifyDBParameterGroup(ctx context.Context, params *rds.ModifyDBParameterGroupInput, ...) (*rds.ModifyDBParameterGroupOutput, error)
- func (m MockRDSClient) ModifyOptionGroup(ctx context.Context, params *rds.ModifyOptionGroupInput, ...) (*rds.ModifyOptionGroupOutput, error)
- func (m MockRDSClient) RestoreDBClusterFromSnapshot(ctx context.Context, params *rds.RestoreDBClusterFromSnapshotInput, ...) (*rds.RestoreDBClusterFromSnapshotOutput, error)
- func (m MockRDSClient) RestoreDBInstanceFromDBSnapshot(ctx context.Context, params *rds.RestoreDBInstanceFromDBSnapshotInput, ...) (*rds.RestoreDBInstanceFromDBSnapshotOutput, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EC2Client ¶
type EC2Client struct { }
EC2Client is a client for ec2 that's a mock
func (EC2Client) AuthorizeSecurityGroupEgress ¶
func (m EC2Client) AuthorizeSecurityGroupEgress(ctx context.Context, params *ec2.AuthorizeSecurityGroupEgressInput, optFns ...func(*ec2.Options)) (*ec2.AuthorizeSecurityGroupEgressOutput, error)
AuthorizeSecurityGroupEgress mock authorize security group egress
func (EC2Client) AuthorizeSecurityGroupIngress ¶
func (m EC2Client) AuthorizeSecurityGroupIngress(ctx context.Context, params *ec2.AuthorizeSecurityGroupIngressInput, optFns ...func(*ec2.Options)) (*ec2.AuthorizeSecurityGroupIngressOutput, error)
AuthorizeSecurityGroupIngress another mock
func (EC2Client) CreateSecurityGroup ¶
func (m EC2Client) CreateSecurityGroup(ctx context.Context, params *ec2.CreateSecurityGroupInput, optFns ...func(*ec2.Options)) (*ec2.CreateSecurityGroupOutput, error)
CreateSecurityGroup mock security group creaton
func (EC2Client) DescribeInternetGateways ¶
func (m EC2Client) DescribeInternetGateways(ctx context.Context, params *ec2.DescribeInternetGatewaysInput, optFns ...func(*ec2.Options)) (*ec2.DescribeInternetGatewaysOutput, error)
func (EC2Client) DescribeRouteTables ¶
func (m EC2Client) DescribeRouteTables(ctx context.Context, params *ec2.DescribeRouteTablesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeRouteTablesOutput, error)
func (EC2Client) DescribeSecurityGroups ¶
func (m EC2Client) DescribeSecurityGroups(ctx context.Context, params *ec2.DescribeSecurityGroupsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeSecurityGroupsOutput, error)
DescribeSecurityGroups mock descirbe security groups
func (EC2Client) DescribeSubnets ¶
func (m EC2Client) DescribeSubnets(ctx context.Context, params *ec2.DescribeSubnetsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeSubnetsOutput, error)
func (EC2Client) DescribeVpcs ¶
func (m EC2Client) DescribeVpcs(ctx context.Context, params *ec2.DescribeVpcsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeVpcsOutput, error)
type MockRDSClient ¶
type MockRDSClient struct{}
MockRDSClient is a struct to mock an RDS client testing is fun :)
func (MockRDSClient) CopyDBClusterSnapshot ¶
func (m MockRDSClient) CopyDBClusterSnapshot(ctx context.Context, params *rds.CopyDBClusterSnapshotInput, optFns ...func(*rds.Options)) (*rds.CopyDBClusterSnapshotOutput, error)
func (MockRDSClient) CopyDBSnapshot ¶
func (m MockRDSClient) CopyDBSnapshot(ctx context.Context, params *rds.CopyDBSnapshotInput, optFns ...func(*rds.Options)) (*rds.CopyDBSnapshotOutput, error)
func (MockRDSClient) CreateDBClusterParameterGroup ¶
func (m MockRDSClient) CreateDBClusterParameterGroup(ctx context.Context, params *rds.CreateDBClusterParameterGroupInput, optFns ...func(*rds.Options)) (*rds.CreateDBClusterParameterGroupOutput, error)
CreateDBClusterParameterGroup mock create a db cluster parameter group
func (MockRDSClient) CreateDBClusterSnapshot ¶
func (m MockRDSClient) CreateDBClusterSnapshot(ctx context.Context, params *rds.CreateDBClusterSnapshotInput, optFns ...func(*rds.Options)) (*rds.CreateDBClusterSnapshotOutput, error)
func (MockRDSClient) CreateDBInstance ¶
func (m MockRDSClient) CreateDBInstance(ctx context.Context, params *rds.CreateDBInstanceInput, optFns ...func(*rds.Options)) (*rds.CreateDBInstanceOutput, error)
CreateDBInstance mock create a db instance
func (MockRDSClient) CreateDBParameterGroup ¶
func (m MockRDSClient) CreateDBParameterGroup(ctx context.Context, params *rds.CreateDBParameterGroupInput, optFns ...func(*rds.Options)) (*rds.CreateDBParameterGroupOutput, error)
CreateDBParameterGroup mock create a db parameter group
func (MockRDSClient) CreateDBSnapshot ¶
func (m MockRDSClient) CreateDBSnapshot(ctx context.Context, params *rds.CreateDBSnapshotInput, optFns ...func(*rds.Options)) (*rds.CreateDBSnapshotOutput, error)
CreateDBCluster mock create a db cluster
func (MockRDSClient) CreateDBSubnetGroup ¶
func (m MockRDSClient) CreateDBSubnetGroup(ctx context.Context, params *rds.CreateDBSubnetGroupInput, optFns ...func(*rds.Options)) (*rds.CreateDBSubnetGroupOutput, error)
CreateDBSubnetGroup mock create a db subnet group
func (MockRDSClient) CreateOptionGroup ¶
func (m MockRDSClient) CreateOptionGroup(ctx context.Context, params *rds.CreateOptionGroupInput, optFns ...func(*rds.Options)) (*rds.CreateOptionGroupOutput, error)
CreateOptionGroup mock create an option group
func (MockRDSClient) DescribeDBClusterParameterGroups ¶
func (m MockRDSClient) DescribeDBClusterParameterGroups(ctx context.Context, params *rds.DescribeDBClusterParameterGroupsInput, optFns ...func(*rds.Options)) (*rds.DescribeDBClusterParameterGroupsOutput, error)
func (MockRDSClient) DescribeDBClusterParameters ¶
func (m MockRDSClient) DescribeDBClusterParameters(ctx context.Context, params *rds.DescribeDBClusterParametersInput, optFns ...func(*rds.Options)) (*rds.DescribeDBClusterParametersOutput, error)
func (MockRDSClient) DescribeDBClusterSnapshots ¶
func (m MockRDSClient) DescribeDBClusterSnapshots(ctx context.Context, params *rds.DescribeDBClusterSnapshotsInput, optFns ...func(*rds.Options)) (*rds.DescribeDBClusterSnapshotsOutput, error)
DescribeDBClusterSnapshots mock get a db cluster snapshot
func (MockRDSClient) DescribeDBClusters ¶
func (m MockRDSClient) DescribeDBClusters(ctx context.Context, params *rds.DescribeDBClustersInput, optFns ...func(*rds.Options)) (*rds.DescribeDBClustersOutput, error)
DescribeDBClusters mock get a db cluster
func (MockRDSClient) DescribeDBInstances ¶
func (m MockRDSClient) DescribeDBInstances(ctx context.Context, input *rds.DescribeDBInstancesInput, optFns ...func(*rds.Options)) (*rds.DescribeDBInstancesOutput, error)
DescribeDBInstances mock get for a db instance
func (MockRDSClient) DescribeDBParameterGroups ¶
func (m MockRDSClient) DescribeDBParameterGroups(ctx context.Context, params *rds.DescribeDBParameterGroupsInput, optFns ...func(*rds.Options)) (*rds.DescribeDBParameterGroupsOutput, error)
func (MockRDSClient) DescribeDBParameters ¶
func (m MockRDSClient) DescribeDBParameters(ctx context.Context, params *rds.DescribeDBParametersInput, optFns ...func(*rds.Options)) (*rds.DescribeDBParametersOutput, error)
func (MockRDSClient) DescribeDBSnapshots ¶
func (m MockRDSClient) DescribeDBSnapshots(ctx context.Context, params *rds.DescribeDBSnapshotsInput, optFns ...func(*rds.Options)) (*rds.DescribeDBSnapshotsOutput, error)
DescribeDBSnapshots mock get for a db snapshot
func (MockRDSClient) DescribeOptionGroups ¶
func (m MockRDSClient) DescribeOptionGroups(ctx context.Context, params *rds.DescribeOptionGroupsInput, optFns ...func(*rds.Options)) (*rds.DescribeOptionGroupsOutput, error)
func (MockRDSClient) ModifyDBClusterParameterGroup ¶
func (m MockRDSClient) ModifyDBClusterParameterGroup(ctx context.Context, params *rds.ModifyDBClusterParameterGroupInput, optFns ...func(*rds.Options)) (*rds.ModifyDBClusterParameterGroupOutput, error)
func (MockRDSClient) ModifyDBParameterGroup ¶
func (m MockRDSClient) ModifyDBParameterGroup(ctx context.Context, params *rds.ModifyDBParameterGroupInput, optFns ...func(*rds.Options)) (*rds.ModifyDBParameterGroupOutput, error)
func (MockRDSClient) ModifyOptionGroup ¶
func (m MockRDSClient) ModifyOptionGroup(ctx context.Context, params *rds.ModifyOptionGroupInput, optFns ...func(*rds.Options)) (*rds.ModifyOptionGroupOutput, error)
func (MockRDSClient) RestoreDBClusterFromSnapshot ¶
func (m MockRDSClient) RestoreDBClusterFromSnapshot(ctx context.Context, params *rds.RestoreDBClusterFromSnapshotInput, optFns ...func(*rds.Options)) (*rds.RestoreDBClusterFromSnapshotOutput, error)
func (MockRDSClient) RestoreDBInstanceFromDBSnapshot ¶
func (m MockRDSClient) RestoreDBInstanceFromDBSnapshot(ctx context.Context, params *rds.RestoreDBInstanceFromDBSnapshotInput, optFns ...func(*rds.Options)) (*rds.RestoreDBInstanceFromDBSnapshotOutput, error)