Documentation
¶
Index ¶
- func AWSS3NotFoundError() error
- func MakeS3Body(ret string) io.ReadCloser
- type DeleteObjectResponse
- type GetBucketTaggingResponse
- type GetObjectResponse
- type MockClients
- type MockLambdaClient
- type MockS3Client
- func (m *MockS3Client) AddGetObject(key string, body string, err error)
- func (m *MockS3Client) AddPutObject(key string, err error)
- func (m *MockS3Client) DeleteObject(in *s3.DeleteObjectInput) (*s3.DeleteObjectOutput, error)
- func (m *MockS3Client) GetBucketTagging(in *s3.GetBucketTaggingInput) (*s3.GetBucketTaggingOutput, error)
- func (m *MockS3Client) GetObject(in *s3.GetObjectInput) (*s3.GetObjectOutput, error)
- func (m *MockS3Client) ListObjects(in *s3.ListObjectsInput) (*s3.ListObjectsOutput, error)
- func (m *MockS3Client) PutObject(in *s3.PutObjectInput) (*s3.PutObjectOutput, error)
- func (m *MockS3Client) SetBucketTags(bucket string, tags map[string]string, err error)
- type MockSFNClient
- func (m *MockSFNClient) DescribeExecution(in *sfn.DescribeExecutionInput) (*sfn.DescribeExecutionOutput, error)
- func (m *MockSFNClient) DescribeStateMachine(in *sfn.DescribeStateMachineInput) (*sfn.DescribeStateMachineOutput, error)
- func (m *MockSFNClient) GetExecutionHistory(in *sfn.GetExecutionHistoryInput) (*sfn.GetExecutionHistoryOutput, error)
- func (m *MockSFNClient) ListExecutions(in *sfn.ListExecutionsInput) (*sfn.ListExecutionsOutput, error)
- func (m *MockSFNClient) StartExecution(in *sfn.StartExecutionInput) (*sfn.StartExecutionOutput, error)
- func (m *MockSFNClient) UpdateStateMachine(in *sfn.UpdateStateMachineInput) (*sfn.UpdateStateMachineOutput, error)
- type PutObjectResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AWSS3NotFoundError ¶
func AWSS3NotFoundError() error
func MakeS3Body ¶
func MakeS3Body(ret string) io.ReadCloser
Types ¶
type DeleteObjectResponse ¶
type DeleteObjectResponse struct {
Resp *s3.DeleteObjectOutput
Error error
}
type GetBucketTaggingResponse ¶
type GetBucketTaggingResponse struct {
Resp *s3.GetBucketTaggingOutput
Error error
}
type GetObjectResponse ¶
type GetObjectResponse struct {
Resp *s3.GetObjectOutput
Body string
Error error
}
S3Client
type MockClients ¶
type MockClients struct {
S3 *MockS3Client
Lambda *MockLambdaClient
SFN *MockSFNClient
}
func MockAwsClients ¶
func MockAwsClients() *MockClients
func (*MockClients) LambdaClient ¶
type MockLambdaClient ¶
type MockLambdaClient struct {
lambdaiface.LambdaAPI
UpdateFunctionCodeResp *lambda.FunctionConfiguration
UpdateFunctionCodeError error
ListTagsResp *lambda.ListTagsOutput
}
func (*MockLambdaClient) ListTags ¶
func (m *MockLambdaClient) ListTags(in *lambda.ListTagsInput) (*lambda.ListTagsOutput, error)
func (*MockLambdaClient) UpdateFunctionCode ¶
func (m *MockLambdaClient) UpdateFunctionCode(in *lambda.UpdateFunctionCodeInput) (*lambda.FunctionConfiguration, error)
type MockS3Client ¶
type MockS3Client struct {
s3iface.S3API
GetObjectResp map[string]*GetObjectResponse
PutObjectResp map[string]*PutObjectResponse
DeleteObjectResp map[string]*DeleteObjectResponse
GetBucketTaggingResp map[string]*GetBucketTaggingResponse
}
func (*MockS3Client) AddGetObject ¶
func (m *MockS3Client) AddGetObject(key string, body string, err error)
func (*MockS3Client) AddPutObject ¶
func (m *MockS3Client) AddPutObject(key string, err error)
func (*MockS3Client) DeleteObject ¶
func (m *MockS3Client) DeleteObject(in *s3.DeleteObjectInput) (*s3.DeleteObjectOutput, error)
func (*MockS3Client) GetBucketTagging ¶
func (m *MockS3Client) GetBucketTagging(in *s3.GetBucketTaggingInput) (*s3.GetBucketTaggingOutput, error)
func (*MockS3Client) GetObject ¶
func (m *MockS3Client) GetObject(in *s3.GetObjectInput) (*s3.GetObjectOutput, error)
func (*MockS3Client) ListObjects ¶
func (m *MockS3Client) ListObjects(in *s3.ListObjectsInput) (*s3.ListObjectsOutput, error)
func (*MockS3Client) PutObject ¶
func (m *MockS3Client) PutObject(in *s3.PutObjectInput) (*s3.PutObjectOutput, error)
func (*MockS3Client) SetBucketTags ¶
func (m *MockS3Client) SetBucketTags(bucket string, tags map[string]string, err error)
type MockSFNClient ¶
type MockSFNClient struct {
sfniface.SFNAPI
UpdateStateMachineResp *sfn.UpdateStateMachineOutput
UpdateStateMachineError error
StartExecutionResp *sfn.StartExecutionOutput
DescribeExecutionResp *sfn.DescribeExecutionOutput
GetExecutionHistoryResp *sfn.GetExecutionHistoryOutput
DescribeStateMachineResp *sfn.DescribeStateMachineOutput
ListExecutionsResp *sfn.ListExecutionsOutput
}
func (*MockSFNClient) DescribeExecution ¶
func (m *MockSFNClient) DescribeExecution(in *sfn.DescribeExecutionInput) (*sfn.DescribeExecutionOutput, error)
func (*MockSFNClient) DescribeStateMachine ¶
func (m *MockSFNClient) DescribeStateMachine(in *sfn.DescribeStateMachineInput) (*sfn.DescribeStateMachineOutput, error)
func (*MockSFNClient) GetExecutionHistory ¶
func (m *MockSFNClient) GetExecutionHistory(in *sfn.GetExecutionHistoryInput) (*sfn.GetExecutionHistoryOutput, error)
func (*MockSFNClient) ListExecutions ¶
func (m *MockSFNClient) ListExecutions(in *sfn.ListExecutionsInput) (*sfn.ListExecutionsOutput, error)
func (*MockSFNClient) StartExecution ¶
func (m *MockSFNClient) StartExecution(in *sfn.StartExecutionInput) (*sfn.StartExecutionOutput, error)
func (*MockSFNClient) UpdateStateMachine ¶
func (m *MockSFNClient) UpdateStateMachine(in *sfn.UpdateStateMachineInput) (*sfn.UpdateStateMachineOutput, error)
type PutObjectResponse ¶
type PutObjectResponse struct {
Resp *s3.PutObjectOutput
Error error
}
Click to show internal directories.
Click to hide internal directories.