From c583bcd1473205104a1e1af812ed4976d30c7baa Mon Sep 17 00:00:00 2001 From: mo khan Date: Fri, 2 May 2025 14:29:41 -0600 Subject: refactor: remove anything unrelated to the authz daemon --- lib/authx/rpc/ability_pb.rb | 24 ------------------------ lib/authx/rpc/ability_twirp.rb | 17 ----------------- 2 files changed, 41 deletions(-) delete mode 100644 lib/authx/rpc/ability_pb.rb delete mode 100644 lib/authx/rpc/ability_twirp.rb (limited to 'lib/authx/rpc') diff --git a/lib/authx/rpc/ability_pb.rb b/lib/authx/rpc/ability_pb.rb deleted file mode 100644 index ee71dc57..00000000 --- a/lib/authx/rpc/ability_pb.rb +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: ability.proto - -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("ability.proto", :syntax => :proto3) do - add_message "authx.rpc.AllowRequest" do - optional :subject, :string, 1 - optional :permission, :string, 2 - optional :resource, :string, 3 - end - add_message "authx.rpc.AllowReply" do - optional :result, :bool, 1 - end - end -end - -module Authx - module Rpc - AllowRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authx.rpc.AllowRequest").msgclass - AllowReply = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authx.rpc.AllowReply").msgclass - end -end diff --git a/lib/authx/rpc/ability_twirp.rb b/lib/authx/rpc/ability_twirp.rb deleted file mode 100644 index 120e9a99..00000000 --- a/lib/authx/rpc/ability_twirp.rb +++ /dev/null @@ -1,17 +0,0 @@ -# Code generated by protoc-gen-twirp_ruby 1.11.0, DO NOT EDIT. -require 'twirp' -require_relative 'ability_pb.rb' - -module Authx - module Rpc - class AbilityService < ::Twirp::Service - package 'authx.rpc' - service 'Ability' - rpc :Allowed, AllowRequest, AllowReply, :ruby_method => :allowed - end - - class AbilityClient < ::Twirp::Client - client_for AbilityService - end - end -end -- cgit v1.2.3