Skip to content

Commit

Permalink
feat: add siren provider plugin proto
Browse files Browse the repository at this point in the history
  • Loading branch information
mabdh committed Sep 8, 2023
1 parent 8300157 commit 2b5dfe8
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions gotocompany/siren/v1beta1/provider.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
syntax = "proto3";

package gotocompany.siren.provider.v1beta1;

Check failure on line 3 in gotocompany/siren/v1beta1/provider.proto

View workflow job for this annotation

GitHub Actions / validate

Multiple packages "gotocompany.siren.provider.v1beta1,gotocompany.siren.v1beta1" detected within directory "gotocompany/siren/v1beta1".

Check failure on line 3 in gotocompany/siren/v1beta1/provider.proto

View workflow job for this annotation

GitHub Actions / validate

Files with package "gotocompany.siren.provider.v1beta1" must be within a directory "gotocompany/siren/provider/v1beta1" relative to root but were in directory "gotocompany/siren/v1beta1".

import "gotocompany/siren/v1beta1/siren.proto";

option go_package = "github.com/goto/proton/gotocompany/siren/v1beta1;sirenproviderv1beta1";
option java_multiple_files = true;
option java_outer_classname = "ServiceManager";
option java_package = "com.gotocompany.proton.siren.provider";


message SyncRuntimeConfigRequest {
string namespaceID = 1;

Check failure on line 14 in gotocompany/siren/v1beta1/provider.proto

View workflow job for this annotation

GitHub Actions / validate

Field name "namespaceID" should be lower_snake_case, such as "namespace_id".
string namespaceURN = 2;

Check failure on line 15 in gotocompany/siren/v1beta1/provider.proto

View workflow job for this annotation

GitHub Actions / validate

Field name "namespaceURN" should be lower_snake_case, such as "namespace_urn".
gotocompany.siren.v1beta1.Provider provider = 3;
}

message SyncRuntimeConfigResponse {}

message UpsertRuleRequest {
string namespaceURN = 1;

Check failure on line 22 in gotocompany/siren/v1beta1/provider.proto

View workflow job for this annotation

GitHub Actions / validate

Field name "namespaceURN" should be lower_snake_case, such as "namespace_urn".
gotocompany.siren.v1beta1.Provider provider = 3;
gotocompany.siren.v1beta1.Rule rule = 4;
gotocompany.siren.v1beta1.Template template = 5;
}

message UpsertRuleResponse {}

service ProviderService {
rpc SyncRuntimeConfig(SyncRuntimeConfigRequest) returns (SyncRuntimeConfigResponse);
rpc UpsertRule(UpsertRuleRequest) returns (UpsertRuleResponse);
}

0 comments on commit 2b5dfe8

Please sign in to comment.