Skip to content

Commit

Permalink
update rbs signature
Browse files Browse the repository at this point in the history
  • Loading branch information
GustavoCaso committed Feb 16, 2023
1 parent 3ce4c2e commit 3fa663c
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sig/datadog/appsec/contrib/rack/gateway/watcher.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ module Datadog
module Watcher
def self.watch: () -> untyped

def self.watch_request: (?Datadog::AppSec::Instrumentation::Gateway gateway) -> untyped

def self.watch_response: (?Datadog::AppSec::Instrumentation::Gateway gateway) -> untyped

def self.watch_request_body: (?Datadog::AppSec::Instrumentation::Gateway gateway) -> untyped

def self.watch_user_id: (?Datadog::AppSec::Instrumentation::Gateway gateway) -> untyped

private

def self.active_trace: () -> (nil | untyped)
Expand Down
17 changes: 17 additions & 0 deletions sig/datadog/appsec/contrib/rack/reactive/set_user.rbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module Datadog
module AppSec
module Contrib
module Rack
module Reactive
module SetUser
ADDRESSES: ::Array[::String]

def self.publish: (untyped op, untyped user) -> untyped

def self.subscribe: (untyped op, untyped waf_context) { (untyped) -> untyped } -> untyped
end
end
end
end
end
end
2 changes: 2 additions & 0 deletions sig/datadog/appsec/contrib/rails/gateway/watcher.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ module Datadog
module Watcher
def self.watch: () -> untyped

def self.watch_request_action: (?Datadog::AppSec::Instrumentation::Gateway gateway) -> untyped

private

def self.active_trace: () -> (nil | untyped)
Expand Down
4 changes: 4 additions & 0 deletions sig/datadog/appsec/contrib/sinatra/gateway/watcher.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ module Datadog
module Watcher
def self.watch: () -> untyped

def self.watch_request_dispatch: (?Datadog::AppSec::Instrumentation::Gateway gateway) -> untyped

def self.watch_request_routed: (?Datadog::AppSec::Instrumentation::Gateway gateway) -> untyped

private

def self.active_trace: () -> (nil | untyped)
Expand Down
7 changes: 7 additions & 0 deletions sig/datadog/appsec/processor.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ module Datadog
def finalize: () -> void
end

class InvalidContextError < StandardError
end

def self.current_context: () -> Context?
def self.current_context=: (untyped context) -> void
def self.reset_current_context: () -> void

attr_reader ruleset_info: untyped
attr_reader addresses: untyped

Expand Down

0 comments on commit 3fa663c

Please sign in to comment.