Skip to content
This repository was archived by the owner on Mar 27, 2026. It is now read-only.

Commit 0339ed6

Browse files
committed
Scaffold gRPC service
1 parent 87d854d commit 0339ed6

File tree

8 files changed

+621
-1
lines changed

8 files changed

+621
-1
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ WORKDIR /workspace
33
COPY go.mod go.mod
44
COPY go.sum go.sum
55
RUN go mod download
6+
COPY api api
67
COPY main.go main.go
78
RUN CGO_ENABLED=0 go build -a -o galactic-agent main.go
89

api/local/local.pb.go

Lines changed: 307 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/local/local.proto

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
syntax = "proto3";
2+
3+
package local.v1;
4+
option go_package = "github.com/datum-cloud/galactic-agent/api/local;local";
5+
6+
service Local {
7+
rpc Register(RegisterRequest) returns (RegisterReply);
8+
rpc Deregister(DeregisterRequest) returns (DeregisterReply);
9+
}
10+
11+
message RegisterRequest {
12+
string vpc = 1;
13+
string vpcattachment = 2;
14+
repeated string networks = 3;
15+
}
16+
17+
message RegisterReply {
18+
bool confirmed = 1;
19+
}
20+
21+
message DeregisterRequest {
22+
string vpc = 1;
23+
string vpcattachment = 2;
24+
repeated string networks = 3;
25+
}
26+
27+
message DeregisterReply {
28+
bool confirmed = 1;
29+
}

0 commit comments

Comments
 (0)