Merged in bugfix/tests (pull request #107)

Fix Fullsuite

* save

* foundthefix..

* codeandrequire
This commit is contained in:
Michael McGuinness
2025-03-19 11:54:14 +00:00
parent 3dd0c718cd
commit 1587da9d11
101 changed files with 977 additions and 910 deletions
+5 -5
View File
@@ -53,17 +53,17 @@ type S3EventRecord struct {
EventSource string `json:"eventSource"`
AwsRegion string `json:"awsRegion"`
EventTime string `json:"eventTime"`
EventName string `json:"eventName"`
EventName EventS3 `json:"eventName"`
S3 S3EventRecordDetails `json:"s3"`
}
type S3EventNotification struct {
Records []S3EventRecord `json:"Records"`
}
type S3Events string
type EventS3 string
const (
S3EventObjectCreatedPut = "ObjectCreated:Put"
EventS3ObjectCreatedPut = "ObjectCreated:Put"
)
func (s Runner) Process(ctx context.Context, req *types.Message) bool {
@@ -118,6 +118,6 @@ func (s Runner) processRecord(ctx context.Context, record S3EventRecord) error {
return nil
}
func (s Runner) isSupportedEvent(name string) bool {
return name == S3EventObjectCreatedPut
func (s Runner) isSupportedEvent(name EventS3) bool {
return name == EventS3ObjectCreatedPut
}