Skip to content

Commit

Permalink
add aliases to support specifying EventOptions (#1696)
Browse files Browse the repository at this point in the history
* add aliases to support specifying EventOptions

This is done to enable specifying EventOptions when using
NewServerWithOptions.

https://pkg.go.dev/github.com/fsouza/fake-gcs-server/fakestorage#NewServerWithOptions

Fixes #1695

* fakestorage: remove unused type

---------

Co-authored-by: francisco souza <[email protected]>
  • Loading branch information
0xmohit and fsouza authored Sep 22, 2024
1 parent 88d8d3d commit 8f0994f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fakestorage/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ func NewServerWithHostPort(objects []Object, host string, port uint16) (*Server,
})
}

type EventManagerOptions = notification.EventManagerOptions

// Options are used to configure the server on creation.
type Options struct {
InitialObjects []Object
Expand Down Expand Up @@ -111,7 +113,7 @@ type Options struct {

// EventOptions contains the events that should be published and the URL
// of the Google cloud function such events should be published to.
EventOptions notification.EventManagerOptions
EventOptions EventManagerOptions

// Location used for buckets in the server.
BucketsLocation string
Expand Down

0 comments on commit 8f0994f

Please sign in to comment.