mocks

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2020 License: Apache-2.0 Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeMockSecurityGroup

func MakeMockSecurityGroup(name string, projectName string, configName string, serviceName string) *ec2.SecurityGroup

MakeMockSecurityGroup returns

Types

type CFClient

type CFClient struct {
	aws.CFAPI
	StackResp         *cloudformation.DescribeStacksOutput
	ChangeSet         *cloudformation.DescribeChangeSetOutput
	DeleteStackCalled bool
}

CFClient returns

func (*CFClient) CreateChangeSet

DescribeStacks returns

func (*CFClient) DeleteStack

DeleteStack returns

func (*CFClient) DescribeChangeSet

DescribeChangeSet returns

func (*CFClient) DescribeStacks

DescribeStacks returns

func (*CFClient) ExecuteChangeSet

ExecuteChangeSet returns

type CWLClient

type CWLClient struct {
	aws.CWLAPI
}

func (*CWLClient) ListTagsLogGroup

ListTagsLogGroup returns

type DDBClient

type DDBClient struct {
	aws.DDBAPI
}

func (*DDBClient) ListTagsOfResource

ListTagsOfResource returns

type DescribeSecurityGroupsResponse

type DescribeSecurityGroupsResponse struct {
	Resp  *ec2.DescribeSecurityGroupsOutput
	Error error
}

DescribeSecurityGroupsResponse returns

type DescribeSubnetsResponse

type DescribeSubnetsResponse struct {
	Resp  *ec2.DescribeSubnetsOutput
	Error error
}

DescribeSubnetsResponse returns

type EC2Client

type EC2Client struct {
	aws.EC2API
	DescribeSecurityGroupsResp map[string]*DescribeSecurityGroupsResponse
	DescribeSubnetsResp        map[string]*DescribeSubnetsResponse
}

EC2Client returns

func (*EC2Client) AddSecurityGroup

func (m *EC2Client) AddSecurityGroup(name string, projectName string, configName string, serviceName string, err error)

AddSecurityGroup returns

func (*EC2Client) AddSubnet

func (m *EC2Client) AddSubnet(nameTag string, id string, tag bool)

AddSubnet returns

func (*EC2Client) DescribeSecurityGroups

DescribeSecurityGroups returns

func (*EC2Client) DescribeSubnets

func (m *EC2Client) DescribeSubnets(in *ec2.DescribeSubnetsInput) (*ec2.DescribeSubnetsOutput, error)

DescribeSubnets returns

type GetRoleResponse

type GetRoleResponse struct {
	Resp  *iam.GetRoleOutput
	Error error
}

GetRoleResponse returns

type IAMClient

type IAMClient struct {
	aws.IAMAPI
	GetRoleResp map[string]*GetRoleResponse
}

IAMClient returns

func (*IAMClient) AddGetRole

func (m *IAMClient) AddGetRole(roleName, project, config, service string)

AddGetRole returns

func (*IAMClient) GetRole

func (m *IAMClient) GetRole(in *iam.GetRoleInput) (*iam.GetRoleOutput, error)

GetRole returns

type KINClient

type KINClient struct {
	aws.KINAPI
}

func (*KINClient) ListTagsForStream

type KMSClient

type KMSClient struct {
	aws.KMSAPI
}

func (*KMSClient) DescribeKey

func (m *KMSClient) DescribeKey(in *kms.DescribeKeyInput) (*kms.DescribeKeyOutput, error)

func (*KMSClient) ListResourceTags

func (m *KMSClient) ListResourceTags(in *kms.ListResourceTagsInput) (*kms.ListResourceTagsOutput, error)

type LambdaClient

type LambdaClient struct {
	aws.LambdaAPI
}

func (*LambdaClient) GetFunction

type MockClients

type MockClients struct {
	S3Client     *mocks.MockS3Client
	CFClient     *CFClient
	CWLClient    *CWLClient
	EC2Client    *EC2Client
	IAMClient    *IAMClient
	SFNClient    *mocks.MockSFNClient
	SNSClient    *SNSClient
	KINClient    *KINClient
	DDBClient    *DDBClient
	SQSClient    *SQSClient
	KMSClient    *KMSClient
	LambdaClient *LambdaClient
	DynamoDB     *mocks.MockDynamoDBClient
}

MockClients struct

func MockAWS

func MockAWS() *MockClients

MockAWS mock clients

func (*MockClients) CF

func (a *MockClients) CF(*string, *string, *string) aws.CFAPI

func (*MockClients) CWL

func (a *MockClients) CWL(*string, *string, *string) aws.CWLAPI

func (*MockClients) DDB

func (a *MockClients) DDB(*string, *string, *string) aws.DDBAPI

func (*MockClients) DynamoDBClient

func (a *MockClients) DynamoDBClient(*string, *string, *string) aws.DynamoDBAPI

func (*MockClients) EC2

func (a *MockClients) EC2(*string, *string, *string) aws.EC2API

EC2Client returns

func (*MockClients) IAM

func (a *MockClients) IAM(*string, *string, *string) aws.IAMAPI

IAMClient returns

func (*MockClients) KIN

func (a *MockClients) KIN(*string, *string, *string) aws.KINAPI

func (*MockClients) KMS

func (a *MockClients) KMS(*string, *string, *string) aws.KMSAPI

func (*MockClients) Lambda

func (a *MockClients) Lambda(*string, *string, *string) aws.LambdaAPI

func (*MockClients) S3

func (a *MockClients) S3(*string, *string, *string) aws.S3API

S3Client returns

func (*MockClients) SFN

func (a *MockClients) SFN(*string, *string, *string) aws.SFNAPI

SFNClient returns

func (*MockClients) SNS

func (a *MockClients) SNS(*string, *string, *string) aws.SNSAPI

SNSClient returns

func (*MockClients) SQS

func (a *MockClients) SQS(*string, *string, *string) aws.SQSAPI

type SNSClient

type SNSClient struct {
	aws.SNSAPI
}

SNSClient returns

func (*SNSClient) ListTagsForResource

func (m *SNSClient) ListTagsForResource(in *sns.ListTagsForResourceInput) (*sns.ListTagsForResourceOutput, error)

ListTagsForResource returns

type SQSClient

type SQSClient struct {
	aws.SQSAPI
}

func (*SQSClient) ListQueueTags

func (m *SQSClient) ListQueueTags(in *sqs.ListQueueTagsInput) (*sqs.ListQueueTagsOutput, error)

Jump to

Keyboard shortcuts

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