Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kvch committed Nov 12, 2019
1 parent 731ab3c commit 7d23cb9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions x-pack/functionbeat/provider/gcp/gcp/pubsub.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ type PubSub struct {
config *FunctionConfig
}

// PubSubMsg is an alias to string
type PubSubMsg string

// PubSubContext is an alias to string
type PubSubContext string

// NewPubSub returns a new function to read from Google Pub/Sub.
Expand Down
5 changes: 4 additions & 1 deletion x-pack/functionbeat/provider/gcp/gcp/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ type Storage struct {
config *FunctionConfig
}

// StorageMsg is an alias to string
type StorageMsg string

// StorageContext is an alias to string
type StorageContext string

// NewStorage returns a new function to read from Google Cloud Storage.
Expand Down Expand Up @@ -88,7 +91,7 @@ func StorageDetails() *feature.Details {

// Name returns the name of the function.
func (s *Storage) Name() string {
return "cloud_storage"
return "storage"
}

// Config returns the configuration to use when creating the function.
Expand Down

0 comments on commit 7d23cb9

Please sign in to comment.