Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop Authz and Entities services #118

Merged
merged 1 commit into from
Nov 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions proto/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
# ruek/api/v1/**/*.proto
cmake_path(SET authz_proto ${CMAKE_CURRENT_SOURCE_DIR}/ruek/api/v1/authz.proto)
cmake_path(SET authz_grpcxx_header ${CMAKE_CURRENT_BINARY_DIR}/ruek/api/v1/authz.grpcxx.pb.h)
cmake_path(SET authz_header ${CMAKE_CURRENT_BINARY_DIR}/ruek/api/v1/authz.pb.h)
cmake_path(SET authz_source ${CMAKE_CURRENT_BINARY_DIR}/ruek/api/v1/authz.pb.cc)

cmake_path(SET principals_proto ${CMAKE_CURRENT_SOURCE_DIR}/ruek/api/v1/principals.proto)
cmake_path(SET principals_grpcxx_header ${CMAKE_CURRENT_BINARY_DIR}/ruek/api/v1/principals.grpcxx.pb.h)
cmake_path(SET principals_header ${CMAKE_CURRENT_BINARY_DIR}/ruek/api/v1/principals.pb.h)
Expand All @@ -14,30 +9,19 @@ cmake_path(SET relations_grpcxx_header ${CMAKE_CURRENT_BINARY_DIR}/ruek/api/v1/r
cmake_path(SET relations_header ${CMAKE_CURRENT_BINARY_DIR}/ruek/api/v1/relations.pb.h)
cmake_path(SET relations_source ${CMAKE_CURRENT_BINARY_DIR}/ruek/api/v1/relations.pb.cc)

cmake_path(SET entities_proto ${CMAKE_CURRENT_SOURCE_DIR}/ruek/api/v1/entities.proto)
cmake_path(SET entities_grpcxx_header ${CMAKE_CURRENT_BINARY_DIR}/ruek/api/v1/entities.grpcxx.pb.h)
cmake_path(SET entities_header ${CMAKE_CURRENT_BINARY_DIR}/ruek/api/v1/entities.pb.h)
cmake_path(SET entities_source ${CMAKE_CURRENT_BINARY_DIR}/ruek/api/v1/entities.pb.cc)

set(protos
${authz_proto}
${principals_proto}
${relations_proto}
${entities_proto}
)

set(headers
${authz_header} ${authz_grpcxx_header}
${principals_header} ${principals_grpcxx_header}
${relations_header} ${relations_grpcxx_header}
${entities_header} ${entities_grpcxx_header}
)

set(sources
${authz_source}
${principals_source}
${relations_source}
${entities_source}
)

add_custom_command(
Expand Down
41 changes: 0 additions & 41 deletions proto/ruek/api/v1/authz.proto

This file was deleted.

51 changes: 0 additions & 51 deletions proto/ruek/api/v1/entities.proto

This file was deleted.

6 changes: 0 additions & 6 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,6 @@ int main(int argc, char *argv[]) {

grpcxx::server server;

svc::Authz a;
server.add(a.service());

svc::Entities e;
server.add(e.service());

svc::Principals p;
server.add(p.service());

Expand Down
6 changes: 0 additions & 6 deletions src/svc/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
add_library(svc)
target_sources(svc
PRIVATE
authz.cpp
entities.cpp
principals.cpp
relations.cpp
PUBLIC
FILE_SET headers TYPE HEADERS
FILES
authz.h
entities.h
principals.h
relations.h
svc.h
Expand Down Expand Up @@ -42,8 +38,6 @@ if (RUEK_BUILD_TESTING)
add_executable(svc_tests)
target_sources(svc_tests
PRIVATE
authz_test.cpp
entities_test.cpp
principals_test.cpp
relations_test.cpp
)
Expand Down
120 changes: 0 additions & 120 deletions src/svc/authz.cpp

This file was deleted.

39 changes: 0 additions & 39 deletions src/svc/authz.h

This file was deleted.

Loading