dapr-ruby 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,138 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: dapr/proto/runtime/v1/dapr.proto for package 'dapr.proto.runtime.v1'
3
+ # Original file comments:
4
+ #
5
+ # Copyright 2021 The Dapr Authors
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
17
+ require 'grpc'
18
+ require 'dapr/proto/runtime/v1/dapr_pb'
19
+
20
+ module Dapr
21
+ module Proto
22
+ module Runtime
23
+ module V1
24
+ module Dapr
25
+ # Dapr service provides APIs to user application to access Dapr building blocks.
26
+ class Service
27
+
28
+ include ::GRPC::GenericService
29
+
30
+ self.marshal_class_method = :encode
31
+ self.unmarshal_class_method = :decode
32
+ self.service_name = 'dapr.proto.runtime.v1.Dapr'
33
+
34
+ # Invokes a method on a remote Dapr app.
35
+ # Deprecated: Use proxy mode service invocation instead.
36
+ rpc :InvokeService, ::Dapr::Proto::Runtime::V1::InvokeServiceRequest, ::Dapr::Proto::Common::V1::InvokeResponse
37
+ # Gets the state for a specific key.
38
+ rpc :GetState, ::Dapr::Proto::Runtime::V1::GetStateRequest, ::Dapr::Proto::Runtime::V1::GetStateResponse
39
+ # Gets a bulk of state items for a list of keys
40
+ rpc :GetBulkState, ::Dapr::Proto::Runtime::V1::GetBulkStateRequest, ::Dapr::Proto::Runtime::V1::GetBulkStateResponse
41
+ # Saves the state for a specific key.
42
+ rpc :SaveState, ::Dapr::Proto::Runtime::V1::SaveStateRequest, ::Google::Protobuf::Empty
43
+ # Queries the state.
44
+ rpc :QueryStateAlpha1, ::Dapr::Proto::Runtime::V1::QueryStateRequest, ::Dapr::Proto::Runtime::V1::QueryStateResponse
45
+ # Deletes the state for a specific key.
46
+ rpc :DeleteState, ::Dapr::Proto::Runtime::V1::DeleteStateRequest, ::Google::Protobuf::Empty
47
+ # Deletes a bulk of state items for a list of keys
48
+ rpc :DeleteBulkState, ::Dapr::Proto::Runtime::V1::DeleteBulkStateRequest, ::Google::Protobuf::Empty
49
+ # Executes transactions for a specified store
50
+ rpc :ExecuteStateTransaction, ::Dapr::Proto::Runtime::V1::ExecuteStateTransactionRequest, ::Google::Protobuf::Empty
51
+ # Publishes events to the specific topic.
52
+ rpc :PublishEvent, ::Dapr::Proto::Runtime::V1::PublishEventRequest, ::Google::Protobuf::Empty
53
+ # Bulk Publishes multiple events to the specified topic.
54
+ rpc :BulkPublishEventAlpha1, ::Dapr::Proto::Runtime::V1::BulkPublishRequest, ::Dapr::Proto::Runtime::V1::BulkPublishResponse
55
+ # Invokes binding data to specific output bindings
56
+ rpc :InvokeBinding, ::Dapr::Proto::Runtime::V1::InvokeBindingRequest, ::Dapr::Proto::Runtime::V1::InvokeBindingResponse
57
+ # Gets secrets from secret stores.
58
+ rpc :GetSecret, ::Dapr::Proto::Runtime::V1::GetSecretRequest, ::Dapr::Proto::Runtime::V1::GetSecretResponse
59
+ # Gets a bulk of secrets
60
+ rpc :GetBulkSecret, ::Dapr::Proto::Runtime::V1::GetBulkSecretRequest, ::Dapr::Proto::Runtime::V1::GetBulkSecretResponse
61
+ # Register an actor timer.
62
+ rpc :RegisterActorTimer, ::Dapr::Proto::Runtime::V1::RegisterActorTimerRequest, ::Google::Protobuf::Empty
63
+ # Unregister an actor timer.
64
+ rpc :UnregisterActorTimer, ::Dapr::Proto::Runtime::V1::UnregisterActorTimerRequest, ::Google::Protobuf::Empty
65
+ # Register an actor reminder.
66
+ rpc :RegisterActorReminder, ::Dapr::Proto::Runtime::V1::RegisterActorReminderRequest, ::Google::Protobuf::Empty
67
+ # Unregister an actor reminder.
68
+ rpc :UnregisterActorReminder, ::Dapr::Proto::Runtime::V1::UnregisterActorReminderRequest, ::Google::Protobuf::Empty
69
+ # Rename an actor reminder.
70
+ rpc :RenameActorReminder, ::Dapr::Proto::Runtime::V1::RenameActorReminderRequest, ::Google::Protobuf::Empty
71
+ # Gets the state for a specific actor.
72
+ rpc :GetActorState, ::Dapr::Proto::Runtime::V1::GetActorStateRequest, ::Dapr::Proto::Runtime::V1::GetActorStateResponse
73
+ # Executes state transactions for a specified actor
74
+ rpc :ExecuteActorStateTransaction, ::Dapr::Proto::Runtime::V1::ExecuteActorStateTransactionRequest, ::Google::Protobuf::Empty
75
+ # InvokeActor calls a method on an actor.
76
+ rpc :InvokeActor, ::Dapr::Proto::Runtime::V1::InvokeActorRequest, ::Dapr::Proto::Runtime::V1::InvokeActorResponse
77
+ # GetConfiguration gets configuration from configuration store.
78
+ rpc :GetConfigurationAlpha1, ::Dapr::Proto::Runtime::V1::GetConfigurationRequest, ::Dapr::Proto::Runtime::V1::GetConfigurationResponse
79
+ # GetConfiguration gets configuration from configuration store.
80
+ rpc :GetConfiguration, ::Dapr::Proto::Runtime::V1::GetConfigurationRequest, ::Dapr::Proto::Runtime::V1::GetConfigurationResponse
81
+ # SubscribeConfiguration gets configuration from configuration store and subscribe the updates event by grpc stream
82
+ rpc :SubscribeConfigurationAlpha1, ::Dapr::Proto::Runtime::V1::SubscribeConfigurationRequest, stream(::Dapr::Proto::Runtime::V1::SubscribeConfigurationResponse)
83
+ # SubscribeConfiguration gets configuration from configuration store and subscribe the updates event by grpc stream
84
+ rpc :SubscribeConfiguration, ::Dapr::Proto::Runtime::V1::SubscribeConfigurationRequest, stream(::Dapr::Proto::Runtime::V1::SubscribeConfigurationResponse)
85
+ # UnSubscribeConfiguration unsubscribe the subscription of configuration
86
+ rpc :UnsubscribeConfigurationAlpha1, ::Dapr::Proto::Runtime::V1::UnsubscribeConfigurationRequest, ::Dapr::Proto::Runtime::V1::UnsubscribeConfigurationResponse
87
+ # UnSubscribeConfiguration unsubscribe the subscription of configuration
88
+ rpc :UnsubscribeConfiguration, ::Dapr::Proto::Runtime::V1::UnsubscribeConfigurationRequest, ::Dapr::Proto::Runtime::V1::UnsubscribeConfigurationResponse
89
+ # TryLockAlpha1 tries to get a lock with an expiry.
90
+ rpc :TryLockAlpha1, ::Dapr::Proto::Runtime::V1::TryLockRequest, ::Dapr::Proto::Runtime::V1::TryLockResponse
91
+ # UnlockAlpha1 unlocks a lock.
92
+ rpc :UnlockAlpha1, ::Dapr::Proto::Runtime::V1::UnlockRequest, ::Dapr::Proto::Runtime::V1::UnlockResponse
93
+ # EncryptAlpha1 encrypts a message using the Dapr encryption scheme and a key stored in the vault.
94
+ rpc :EncryptAlpha1, stream(::Dapr::Proto::Runtime::V1::EncryptRequest), stream(::Dapr::Proto::Runtime::V1::EncryptResponse)
95
+ # DecryptAlpha1 decrypts a message using the Dapr encryption scheme and a key stored in the vault.
96
+ rpc :DecryptAlpha1, stream(::Dapr::Proto::Runtime::V1::DecryptRequest), stream(::Dapr::Proto::Runtime::V1::DecryptResponse)
97
+ # Gets metadata of the sidecar
98
+ rpc :GetMetadata, ::Google::Protobuf::Empty, ::Dapr::Proto::Runtime::V1::GetMetadataResponse
99
+ # Sets value in extended metadata of the sidecar
100
+ rpc :SetMetadata, ::Dapr::Proto::Runtime::V1::SetMetadataRequest, ::Google::Protobuf::Empty
101
+ # SubtleGetKeyAlpha1 returns the public part of an asymmetric key stored in the vault.
102
+ rpc :SubtleGetKeyAlpha1, ::Dapr::Proto::Runtime::V1::SubtleGetKeyRequest, ::Dapr::Proto::Runtime::V1::SubtleGetKeyResponse
103
+ # SubtleEncryptAlpha1 encrypts a small message using a key stored in the vault.
104
+ rpc :SubtleEncryptAlpha1, ::Dapr::Proto::Runtime::V1::SubtleEncryptRequest, ::Dapr::Proto::Runtime::V1::SubtleEncryptResponse
105
+ # SubtleDecryptAlpha1 decrypts a small message using a key stored in the vault.
106
+ rpc :SubtleDecryptAlpha1, ::Dapr::Proto::Runtime::V1::SubtleDecryptRequest, ::Dapr::Proto::Runtime::V1::SubtleDecryptResponse
107
+ # SubtleWrapKeyAlpha1 wraps a key using a key stored in the vault.
108
+ rpc :SubtleWrapKeyAlpha1, ::Dapr::Proto::Runtime::V1::SubtleWrapKeyRequest, ::Dapr::Proto::Runtime::V1::SubtleWrapKeyResponse
109
+ # SubtleUnwrapKeyAlpha1 unwraps a key using a key stored in the vault.
110
+ rpc :SubtleUnwrapKeyAlpha1, ::Dapr::Proto::Runtime::V1::SubtleUnwrapKeyRequest, ::Dapr::Proto::Runtime::V1::SubtleUnwrapKeyResponse
111
+ # SubtleSignAlpha1 signs a message using a key stored in the vault.
112
+ rpc :SubtleSignAlpha1, ::Dapr::Proto::Runtime::V1::SubtleSignRequest, ::Dapr::Proto::Runtime::V1::SubtleSignResponse
113
+ # SubtleVerifyAlpha1 verifies the signature of a message using a key stored in the vault.
114
+ rpc :SubtleVerifyAlpha1, ::Dapr::Proto::Runtime::V1::SubtleVerifyRequest, ::Dapr::Proto::Runtime::V1::SubtleVerifyResponse
115
+ # Starts a new instance of a workflow
116
+ rpc :StartWorkflowAlpha1, ::Dapr::Proto::Runtime::V1::StartWorkflowRequest, ::Dapr::Proto::Runtime::V1::StartWorkflowResponse
117
+ # Gets details about a started workflow instance
118
+ rpc :GetWorkflowAlpha1, ::Dapr::Proto::Runtime::V1::GetWorkflowRequest, ::Dapr::Proto::Runtime::V1::GetWorkflowResponse
119
+ # Purge Workflow
120
+ rpc :PurgeWorkflowAlpha1, ::Dapr::Proto::Runtime::V1::PurgeWorkflowRequest, ::Google::Protobuf::Empty
121
+ # Terminates a running workflow instance
122
+ rpc :TerminateWorkflowAlpha1, ::Dapr::Proto::Runtime::V1::TerminateWorkflowRequest, ::Google::Protobuf::Empty
123
+ # Pauses a running workflow instance
124
+ rpc :PauseWorkflowAlpha1, ::Dapr::Proto::Runtime::V1::PauseWorkflowRequest, ::Google::Protobuf::Empty
125
+ # Resumes a paused workflow instance
126
+ rpc :ResumeWorkflowAlpha1, ::Dapr::Proto::Runtime::V1::ResumeWorkflowRequest, ::Google::Protobuf::Empty
127
+ # Raise an event to a running workflow instance
128
+ rpc :RaiseEventWorkflowAlpha1, ::Dapr::Proto::Runtime::V1::RaiseEventWorkflowRequest, ::Google::Protobuf::Empty
129
+ # Shutdown the sidecar
130
+ rpc :Shutdown, ::Google::Protobuf::Empty, ::Google::Protobuf::Empty
131
+ end
132
+
133
+ Stub = Service.rpc_stub_class
134
+ end
135
+ end
136
+ end
137
+ end
138
+ end
@@ -0,0 +1,3 @@
1
+ module Dapr
2
+ VERSION = "0.4.2"
3
+ end
@@ -0,0 +1,3 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "dapr"
data/lib/dapr.rb ADDED
@@ -0,0 +1 @@
1
+ require "dapr/version"
metadata ADDED
@@ -0,0 +1,158 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: dapr-ruby
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.4.2
5
+ platform: ruby
6
+ authors:
7
+ - tjwp
8
+ - bougyman
9
+ autorequire:
10
+ bindir: exe
11
+ cert_chain: []
12
+ date: 2024-04-15 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: google-protobuf
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ">="
19
+ - !ruby/object:Gem::Version
20
+ version: '0'
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ version: '0'
28
+ - !ruby/object:Gem::Dependency
29
+ name: grpc
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
35
+ type: :development
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
42
+ - !ruby/object:Gem::Dependency
43
+ name: grpc-tools
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - ">="
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
49
+ type: :development
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ - !ruby/object:Gem::Dependency
57
+ name: rake
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ - !ruby/object:Gem::Dependency
71
+ name: rspec
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: '0'
84
+ description: Dapr SDK for Ruby
85
+ email:
86
+ - tjwp@users.noreply.github.com
87
+ - bougyman@users.noreply.github.com
88
+ executables: []
89
+ extensions: []
90
+ extra_rdoc_files: []
91
+ files:
92
+ - ".gitignore"
93
+ - ".rspec"
94
+ - ".ruby-gemset"
95
+ - ".ruby-version"
96
+ - ".travis.yml"
97
+ - CHANGELOG.md
98
+ - Gemfile
99
+ - Gemfile.lock
100
+ - LICENSE.txt
101
+ - README.md
102
+ - Rakefile
103
+ - bin/console
104
+ - bin/regen_client.sh
105
+ - bin/setup
106
+ - dapr.gemspec
107
+ - dapr/proto/common/v1/common.proto
108
+ - dapr/proto/runtime/v1/appcallback.proto
109
+ - dapr/proto/runtime/v1/dapr.proto
110
+ - example.rb
111
+ - examples/app-callback/README.md
112
+ - examples/app-callback/app_callback_example.rb
113
+ - examples/app-callback/app_callback_service.rb
114
+ - examples/invoke-simple/README.md
115
+ - examples/invoke-simple/invoke-caller.rb
116
+ - examples/invoke-simple/invoke-receiver.rb
117
+ - examples/pubsub-simple/README.md
118
+ - examples/pubsub-simple/publisher.rb
119
+ - examples/pubsub-simple/subscriber.rb
120
+ - examples/state-store/README.md
121
+ - examples/state-store/state-store.rb
122
+ - lib/dapr-client.rb
123
+ - lib/dapr.rb
124
+ - lib/dapr/proto/common/v1/common_pb.rb
125
+ - lib/dapr/proto/runtime/v1/appcallback_pb.rb
126
+ - lib/dapr/proto/runtime/v1/appcallback_services_pb.rb
127
+ - lib/dapr/proto/runtime/v1/dapr_pb.rb
128
+ - lib/dapr/proto/runtime/v1/dapr_services_pb.rb
129
+ - lib/dapr/version.rb
130
+ homepage: https://github.com/rubyists/dapr-ruby-sdk
131
+ licenses:
132
+ - MIT
133
+ metadata:
134
+ allowed_push_host: https://rubygems.org
135
+ homepage_uri: https://github.com/rubyists/dapr-ruby-sdk
136
+ source_code_uri: https://github.com/rubyists/dapr-ruby-sdk
137
+ changelog_uri: https://github.com/rubyists/dapr-ruby-sdk/CHANGELOG.md
138
+ github_repo: ssh://github.com/rubyists/dapr-ruby-sdk
139
+ post_install_message:
140
+ rdoc_options: []
141
+ require_paths:
142
+ - lib
143
+ required_ruby_version: !ruby/object:Gem::Requirement
144
+ requirements:
145
+ - - ">="
146
+ - !ruby/object:Gem::Version
147
+ version: '0'
148
+ required_rubygems_version: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ requirements: []
154
+ rubygems_version: 3.5.3
155
+ signing_key:
156
+ specification_version: 4
157
+ summary: Dapr SDK for Ruby
158
+ test_files: []