Documentation
¶
Index ¶
- Constants
- type AWS
- type AWSMock
- func (m *AWSMock) Close() error
- func (m *AWSMock) CloseInvoked() bool
- func (m *AWSMock) GetBucketTags(ctx context.Context, bucketName string) (commons.Tags, error)
- func (m *AWSMock) GetFunction(ctx context.Context, functionName string) (*Function, error)
- func (m *AWSMock) ListBuckets(_ context.Context) ([]*Bucket, error)
- func (m *AWSMock) ListBucketsInvoked() bool
- func (m *AWSMock) ListFunctions(_ context.Context) ([]*Function, error)
- func (m *AWSMock) ListFunctionsInvoked() bool
- func (m *AWSMock) Listen(ctx context.Context, handler ListenerFunc) error
- func (m *AWSMock) ListenInvoked() bool
- type Bucket
- type Config
- type Function
- type ListenerFunc
Constants ¶
View Source
const ( S3EventSource = "s3.amazonaws.com" LambdaEventSource = "lambda.amazonaws.com" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWS ¶
type AWS interface {
GetBucketTags(ctx context.Context, bucketName string) (commons.Tags, error)
ListBuckets(ctx context.Context) ([]*Bucket, error)
GetFunction(ctx context.Context, functionName string) (*Function, error)
ListFunctions(ctx context.Context) ([]*Function, error)
Listen(ctx context.Context, handler ListenerFunc) error
Close() error
}
type AWSMock ¶
type AWSMock struct {
ListenError error
ListenAssert func(ctx context.Context, handler ListenerFunc)
GetBucketTagsResult commons.Tags
GetBucketTagsError error
ListBucketsResult []*Bucket
ListBucketsError error
GetFunctionResult *Function
GetFunctionError error
ListFunctionsResult []*Function
ListFunctionsError error
CloseError error
// contains filtered or unexported fields
}
func (*AWSMock) CloseInvoked ¶
func (*AWSMock) GetBucketTags ¶
func (*AWSMock) GetFunction ¶
func (*AWSMock) ListBucketsInvoked ¶
func (*AWSMock) ListFunctions ¶
func (*AWSMock) ListFunctionsInvoked ¶
func (*AWSMock) ListenInvoked ¶
Click to show internal directories.
Click to hide internal directories.