Skip to content

Commit

Permalink
Avoid the generic name of Configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
kdnakt committed Dec 22, 2023
1 parent 0de482b commit 8e3bb1e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions events/s3_object_lambda.go
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package events

type S3ObjectLambdaEvent struct {
XAmzRequestId string `json:"xAmzRequestId"`
GetObjectContext *GetObjectContext `json:"getObjectContext,omitempty"`
ListObjectsContext *ListObjectsContext `json:"listObjectsContext,omitempty"`
ListObjectsV2Context *ListObjectsV2Context `json:"listObjectsV2Context,omitempty"`
HeadObjectContext *HeadObjectContext `json:"headObjectContext,omitempty"`
Configuration Configuration `json:"configuration"`
UserRequest UserRequest `json:"userRequest"`
UserIdentity UserIdentity `json:"userIdentity"`
ProtocolVersion string `json:"protocolVersion"`
XAmzRequestId string `json:"xAmzRequestId"`

Check failure on line 4 in events/s3_object_lambda.go

View workflow job for this annotation

GitHub Actions / run golangci-golint on the project

ST1003: struct field XAmzRequestId should be XAmzRequestID (stylecheck)
GetObjectContext *GetObjectContext `json:"getObjectContext,omitempty"`
ListObjectsContext *ListObjectsContext `json:"listObjectsContext,omitempty"`
ListObjectsV2Context *ListObjectsV2Context `json:"listObjectsV2Context,omitempty"`
HeadObjectContext *HeadObjectContext `json:"headObjectContext,omitempty"`
Configuration S3ObjectLambdaConfiguration `json:"configuration"`
UserRequest UserRequest `json:"userRequest"`
UserIdentity UserIdentity `json:"userIdentity"`
ProtocolVersion string `json:"protocolVersion"`
}

type GetObjectContext struct {
Expand All @@ -30,7 +30,7 @@ type HeadObjectContext struct {
InputS3Url string `json:"inputS3Url"`
}

type Configuration struct {
type S3ObjectLambdaConfiguration struct {
AccessPointArn string `json:"accessPointArn"`

Check failure on line 34 in events/s3_object_lambda.go

View workflow job for this annotation

GitHub Actions / run golangci-golint on the project

ST1003: struct field AccessPointArn should be AccessPointARN (stylecheck)
SupportingAccessPointArn string `json:"supportingAccessPointArn"`

Check failure on line 35 in events/s3_object_lambda.go

View workflow job for this annotation

GitHub Actions / run golangci-golint on the project

ST1003: struct field SupportingAccessPointArn should be SupportingAccessPointARN (stylecheck)
Payload string `json:"payload"`
Expand Down

0 comments on commit 8e3bb1e

Please sign in to comment.