From 731d40abb6cda736280909820fdc881c0a852fb8 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Tue, 1 Oct 2024 12:55:14 -0400 Subject: [PATCH 1/2] Drop generated bindings --- .github/workflows/generate.yaml | 24 - Makefile | 24 +- buf.gen.yaml | 19 - buf.yaml | 2 +- go/go.mod | 15 - go/go.sum | 14 - go/jumpstarter/v1/jumpstarter.pb.go | 2139 ----------------- go/jumpstarter/v1/jumpstarter_grpc.pb.go | 736 ------ go/jumpstarter/v1/kubernetes.pb.go | 265 -- go/jumpstarter/v1/router.pb.go | 315 --- go/jumpstarter/v1/router_grpc.pb.go | 133 - python/.gitignore | 3 - python/README.md | 0 python/jumpstarter/v1/jumpstarter_pb2.py | 112 - python/jumpstarter/v1/jumpstarter_pb2_grpc.py | 695 ------ python/jumpstarter/v1/kubernetes_pb2.py | 43 - python/jumpstarter/v1/kubernetes_pb2_grpc.py | 4 - python/jumpstarter/v1/router_pb2.py | 43 - python/jumpstarter/v1/router_pb2_grpc.py | 96 - python/pyproject.toml | 20 - 20 files changed, 3 insertions(+), 4699 deletions(-) delete mode 100644 .github/workflows/generate.yaml delete mode 100644 buf.gen.yaml delete mode 100644 go/go.mod delete mode 100644 go/go.sum delete mode 100644 go/jumpstarter/v1/jumpstarter.pb.go delete mode 100644 go/jumpstarter/v1/jumpstarter_grpc.pb.go delete mode 100644 go/jumpstarter/v1/kubernetes.pb.go delete mode 100644 go/jumpstarter/v1/router.pb.go delete mode 100644 go/jumpstarter/v1/router_grpc.pb.go delete mode 100644 python/.gitignore delete mode 100644 python/README.md delete mode 100644 python/jumpstarter/v1/jumpstarter_pb2.py delete mode 100644 python/jumpstarter/v1/jumpstarter_pb2_grpc.py delete mode 100644 python/jumpstarter/v1/kubernetes_pb2.py delete mode 100644 python/jumpstarter/v1/kubernetes_pb2_grpc.py delete mode 100644 python/jumpstarter/v1/router_pb2.py delete mode 100644 python/jumpstarter/v1/router_pb2_grpc.py delete mode 100644 python/pyproject.toml diff --git a/.github/workflows/generate.yaml b/.github/workflows/generate.yaml deleted file mode 100644 index 1666693..0000000 --- a/.github/workflows/generate.yaml +++ /dev/null @@ -1,24 +0,0 @@ -name: "Generate stubs" -on: - workflow_dispatch: - push: - branches: - - main - pull_request: - -permissions: - contents: read - pull-requests: read -jobs: - generate: - runs-on: "ubuntu-latest" - steps: - - uses: actions/checkout@v4 - with: - ref: ${{ github.event.pull_request.head.sha }} - - name: Running generate - run: make generate - - - name: Verify that stubs are up-to-date - run: git diff --exit-code - diff --git a/Makefile b/Makefile index c2ca7af..4df0234 100644 --- a/Makefile +++ b/Makefile @@ -1,29 +1,9 @@ BUF_IMAGE=docker.io/bufbuild/buf:latest BUF=podman run --volume "$(shell pwd):/workspace" --workdir /workspace docker.io/bufbuild/buf:latest -GENERATED_GO=go/jumpstarter/v1/jumpstarter.pb.go go/jumpstarter/v1/jumpstarter_grpc.pb.go \ - go/jumpstarter/v1/router.pb.go go/jumpstarter/v1/router_grpc.pb.go -GENERATED_PYTHON=python/jumpstarter/v1/jumpstarter_pb2.py python/jumpstarter/v1/jumpstarter_pb2_grpc.py \ - python/jumpstarter/v1/router_pb2.py python/jumpstarter/v1/router_pb2_grpc.py - -all: $(GENERATED_GO) $(GENERATED_PYTHON) +all: lint lint: $(BUF) lint -go/jumpstarter/v1/jumpstarter.pb.go: proto/jumpstarter/v1/jumpstarter.proto - $(BUF) generate - -go/jumpstarter/v1/jumpstarter_grpc.pb.go: proto/jumpstarter/v1/jumpstarter.proto - $(BUF) generate - - -go/jumpstarter/v1/router.pb.go: proto/jumpstarter/v1/router.proto - $(BUF) generate - -go/jumpstarter/v1/router_grpc.pb.go: proto/jumpstarter/v1/router.proto - $(BUF) generate - - - -.PHONY: lint generate \ No newline at end of file +.PHONY: lint diff --git a/buf.gen.yaml b/buf.gen.yaml deleted file mode 100644 index 59171f3..0000000 --- a/buf.gen.yaml +++ /dev/null @@ -1,19 +0,0 @@ -version: v2 -managed: - enabled: true - override: - - file_option: go_package_prefix - value: github.com/jumpstarter-dev/jumpstarter-protocol -plugins: - - remote: buf.build/protocolbuffers/go - out: go - opt: paths=source_relative - - remote: buf.build/grpc/go - out: go - opt: paths=source_relative - - remote: buf.build/protocolbuffers/python - out: python - - remote: buf.build/grpc/python - out: python -inputs: - - directory: proto diff --git a/buf.yaml b/buf.yaml index 39e77f6..5d0a9df 100644 --- a/buf.yaml +++ b/buf.yaml @@ -3,7 +3,7 @@ modules: - path: proto lint: use: - - DEFAULT + - STANDARD except: - ENUM_ZERO_VALUE_SUFFIX rpc_allow_same_request_response: true diff --git a/go/go.mod b/go/go.mod deleted file mode 100644 index 41d5341..0000000 --- a/go/go.mod +++ /dev/null @@ -1,15 +0,0 @@ -module github.com/jumpstarter-dev/jumpstarter-protocol/go - -go 1.22.3 - -require ( - google.golang.org/grpc v1.64.0 - google.golang.org/protobuf v1.34.2 -) - -require ( - golang.org/x/net v0.23.0 // indirect - golang.org/x/sys v0.18.0 // indirect - golang.org/x/text v0.14.0 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20240318140521-94a12d6c2237 // indirect -) diff --git a/go/go.sum b/go/go.sum deleted file mode 100644 index ae71bef..0000000 --- a/go/go.sum +++ /dev/null @@ -1,14 +0,0 @@ -github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= -github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= -golang.org/x/net v0.23.0 h1:7EYJ93RZ9vYSZAIb2x3lnuvqO5zneoD6IvWjuhfxjTs= -golang.org/x/net v0.23.0/go.mod h1:JKghWKKOSdJwpW2GEx0Ja7fmaKnMsbu+MWVZTokSYmg= -golang.org/x/sys v0.18.0 h1:DBdB3niSjOA/O0blCZBqDefyWNYveAYMNF1Wum0DYQ4= -golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= -golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240318140521-94a12d6c2237 h1:NnYq6UN9ReLM9/Y01KWNOWyI5xQ9kbIms5GGJVwS/Yc= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240318140521-94a12d6c2237/go.mod h1:WtryC6hu0hhx87FDGxWCDptyssuo68sk10vYjF+T9fY= -google.golang.org/grpc v1.64.0 h1:KH3VH9y/MgNQg1dE7b3XfVK0GsPSIzJwdF617gUSbvY= -google.golang.org/grpc v1.64.0/go.mod h1:oxjF8E3FBnjp+/gVFYdWacaLDx9na1aqy9oovLpxQYg= -google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg= -google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw= diff --git a/go/jumpstarter/v1/jumpstarter.pb.go b/go/jumpstarter/v1/jumpstarter.pb.go deleted file mode 100644 index 5de10e3..0000000 --- a/go/jumpstarter/v1/jumpstarter.pb.go +++ /dev/null @@ -1,2139 +0,0 @@ -// Copyright 2024 The Jumpstarter Authors - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.34.2 -// protoc (unknown) -// source: jumpstarter/v1/jumpstarter.proto - -package jumpstarterv1 - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - emptypb "google.golang.org/protobuf/types/known/emptypb" - structpb "google.golang.org/protobuf/types/known/structpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type RegisterRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // additional context: - // - token/authentication mechanism - Labels map[string]string `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - // standard labels: - // jumpstarter.dev/hostname= - // jumpstarter.dev/name= - Reports []*DriverInstanceReport `protobuf:"bytes,2,rep,name=reports,proto3" json:"reports,omitempty"` -} - -func (x *RegisterRequest) Reset() { - *x = RegisterRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_jumpstarter_v1_jumpstarter_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RegisterRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RegisterRequest) ProtoMessage() {} - -func (x *RegisterRequest) ProtoReflect() protoreflect.Message { - mi := &file_jumpstarter_v1_jumpstarter_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead. -func (*RegisterRequest) Descriptor() ([]byte, []int) { - return file_jumpstarter_v1_jumpstarter_proto_rawDescGZIP(), []int{0} -} - -func (x *RegisterRequest) GetLabels() map[string]string { - if x != nil { - return x.Labels - } - return nil -} - -func (x *RegisterRequest) GetReports() []*DriverInstanceReport { - if x != nil { - return x.Reports - } - return nil -} - -type DriverInstanceReport struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // a unique id within the expoter - ParentUuid *string `protobuf:"bytes,2,opt,name=parent_uuid,json=parentUuid,proto3,oneof" json:"parent_uuid,omitempty"` // optional, if device has a parent device - Labels map[string]string `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *DriverInstanceReport) Reset() { - *x = DriverInstanceReport{} - if protoimpl.UnsafeEnabled { - mi := &file_jumpstarter_v1_jumpstarter_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DriverInstanceReport) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DriverInstanceReport) ProtoMessage() {} - -func (x *DriverInstanceReport) ProtoReflect() protoreflect.Message { - mi := &file_jumpstarter_v1_jumpstarter_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DriverInstanceReport.ProtoReflect.Descriptor instead. -func (*DriverInstanceReport) Descriptor() ([]byte, []int) { - return file_jumpstarter_v1_jumpstarter_proto_rawDescGZIP(), []int{1} -} - -func (x *DriverInstanceReport) GetUuid() string { - if x != nil { - return x.Uuid - } - return "" -} - -func (x *DriverInstanceReport) GetParentUuid() string { - if x != nil && x.ParentUuid != nil { - return *x.ParentUuid - } - return "" -} - -func (x *DriverInstanceReport) GetLabels() map[string]string { - if x != nil { - return x.Labels - } - return nil -} - -type RegisterResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` -} - -func (x *RegisterResponse) Reset() { - *x = RegisterResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_jumpstarter_v1_jumpstarter_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RegisterResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RegisterResponse) ProtoMessage() {} - -func (x *RegisterResponse) ProtoReflect() protoreflect.Message { - mi := &file_jumpstarter_v1_jumpstarter_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RegisterResponse.ProtoReflect.Descriptor instead. -func (*RegisterResponse) Descriptor() ([]byte, []int) { - return file_jumpstarter_v1_jumpstarter_proto_rawDescGZIP(), []int{2} -} - -func (x *RegisterResponse) GetUuid() string { - if x != nil { - return x.Uuid - } - return "" -} - -type UnregisterRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` -} - -func (x *UnregisterRequest) Reset() { - *x = UnregisterRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_jumpstarter_v1_jumpstarter_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UnregisterRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UnregisterRequest) ProtoMessage() {} - -func (x *UnregisterRequest) ProtoReflect() protoreflect.Message { - mi := &file_jumpstarter_v1_jumpstarter_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UnregisterRequest.ProtoReflect.Descriptor instead. -func (*UnregisterRequest) Descriptor() ([]byte, []int) { - return file_jumpstarter_v1_jumpstarter_proto_rawDescGZIP(), []int{3} -} - -func (x *UnregisterRequest) GetReason() string { - if x != nil { - return x.Reason - } - return "" -} - -type UnregisterResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *UnregisterResponse) Reset() { - *x = UnregisterResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_jumpstarter_v1_jumpstarter_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UnregisterResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UnregisterResponse) ProtoMessage() {} - -func (x *UnregisterResponse) ProtoReflect() protoreflect.Message { - mi := &file_jumpstarter_v1_jumpstarter_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UnregisterResponse.ProtoReflect.Descriptor instead. -func (*UnregisterResponse) Descriptor() ([]byte, []int) { - return file_jumpstarter_v1_jumpstarter_proto_rawDescGZIP(), []int{4} -} - -type ListenRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *ListenRequest) Reset() { - *x = ListenRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_jumpstarter_v1_jumpstarter_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListenRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListenRequest) ProtoMessage() {} - -func (x *ListenRequest) ProtoReflect() protoreflect.Message { - mi := &file_jumpstarter_v1_jumpstarter_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ListenRequest.ProtoReflect.Descriptor instead. -func (*ListenRequest) Descriptor() ([]byte, []int) { - return file_jumpstarter_v1_jumpstarter_proto_rawDescGZIP(), []int{5} -} - -type ListenResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - RouterEndpoint string `protobuf:"bytes,1,opt,name=router_endpoint,json=routerEndpoint,proto3" json:"router_endpoint,omitempty"` - RouterToken string `protobuf:"bytes,2,opt,name=router_token,json=routerToken,proto3" json:"router_token,omitempty"` -} - -func (x *ListenResponse) Reset() { - *x = ListenResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_jumpstarter_v1_jumpstarter_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListenResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListenResponse) ProtoMessage() {} - -func (x *ListenResponse) ProtoReflect() protoreflect.Message { - mi := &file_jumpstarter_v1_jumpstarter_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ListenResponse.ProtoReflect.Descriptor instead. -func (*ListenResponse) Descriptor() ([]byte, []int) { - return file_jumpstarter_v1_jumpstarter_proto_rawDescGZIP(), []int{6} -} - -func (x *ListenResponse) GetRouterEndpoint() string { - if x != nil { - return x.RouterEndpoint - } - return "" -} - -func (x *ListenResponse) GetRouterToken() string { - if x != nil { - return x.RouterToken - } - return "" -} - -type DialRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` -} - -func (x *DialRequest) Reset() { - *x = DialRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_jumpstarter_v1_jumpstarter_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DialRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DialRequest) ProtoMessage() {} - -func (x *DialRequest) ProtoReflect() protoreflect.Message { - mi := &file_jumpstarter_v1_jumpstarter_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DialRequest.ProtoReflect.Descriptor instead. -func (*DialRequest) Descriptor() ([]byte, []int) { - return file_jumpstarter_v1_jumpstarter_proto_rawDescGZIP(), []int{7} -} - -func (x *DialRequest) GetUuid() string { - if x != nil { - return x.Uuid - } - return "" -} - -type DialResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - RouterEndpoint string `protobuf:"bytes,1,opt,name=router_endpoint,json=routerEndpoint,proto3" json:"router_endpoint,omitempty"` - RouterToken string `protobuf:"bytes,2,opt,name=router_token,json=routerToken,proto3" json:"router_token,omitempty"` -} - -func (x *DialResponse) Reset() { - *x = DialResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_jumpstarter_v1_jumpstarter_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DialResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DialResponse) ProtoMessage() {} - -func (x *DialResponse) ProtoReflect() protoreflect.Message { - mi := &file_jumpstarter_v1_jumpstarter_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DialResponse.ProtoReflect.Descriptor instead. -func (*DialResponse) Descriptor() ([]byte, []int) { - return file_jumpstarter_v1_jumpstarter_proto_rawDescGZIP(), []int{8} -} - -func (x *DialResponse) GetRouterEndpoint() string { - if x != nil { - return x.RouterEndpoint - } - return "" -} - -func (x *DialResponse) GetRouterToken() string { - if x != nil { - return x.RouterToken - } - return "" -} - -type AuditStreamRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // additional context: - // - token/authentication mechanism - ExporterUuid string `protobuf:"bytes,1,opt,name=exporter_uuid,json=exporterUuid,proto3" json:"exporter_uuid,omitempty"` - DriverInstanceUuid string `protobuf:"bytes,2,opt,name=driver_instance_uuid,json=driverInstanceUuid,proto3" json:"driver_instance_uuid,omitempty"` - Severity string `protobuf:"bytes,3,opt,name=severity,proto3" json:"severity,omitempty"` - Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"` -} - -func (x *AuditStreamRequest) Reset() { - *x = AuditStreamRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_jumpstarter_v1_jumpstarter_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AuditStreamRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AuditStreamRequest) ProtoMessage() {} - -func (x *AuditStreamRequest) ProtoReflect() protoreflect.Message { - mi := &file_jumpstarter_v1_jumpstarter_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AuditStreamRequest.ProtoReflect.Descriptor instead. -func (*AuditStreamRequest) Descriptor() ([]byte, []int) { - return file_jumpstarter_v1_jumpstarter_proto_rawDescGZIP(), []int{9} -} - -func (x *AuditStreamRequest) GetExporterUuid() string { - if x != nil { - return x.ExporterUuid - } - return "" -} - -func (x *AuditStreamRequest) GetDriverInstanceUuid() string { - if x != nil { - return x.DriverInstanceUuid - } - return "" -} - -func (x *AuditStreamRequest) GetSeverity() string { - if x != nil { - return x.Severity - } - return "" -} - -func (x *AuditStreamRequest) GetMessage() string { - if x != nil { - return x.Message - } - return "" -} - -type GetReportResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` - Labels map[string]string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - // standard labels: - // jumpstarter.dev/hostname= - // jumpstarter.dev/name= - Reports []*DriverInstanceReport `protobuf:"bytes,3,rep,name=reports,proto3" json:"reports,omitempty"` -} - -func (x *GetReportResponse) Reset() { - *x = GetReportResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_jumpstarter_v1_jumpstarter_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetReportResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetReportResponse) ProtoMessage() {} - -func (x *GetReportResponse) ProtoReflect() protoreflect.Message { - mi := &file_jumpstarter_v1_jumpstarter_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetReportResponse.ProtoReflect.Descriptor instead. -func (*GetReportResponse) Descriptor() ([]byte, []int) { - return file_jumpstarter_v1_jumpstarter_proto_rawDescGZIP(), []int{10} -} - -func (x *GetReportResponse) GetUuid() string { - if x != nil { - return x.Uuid - } - return "" -} - -func (x *GetReportResponse) GetLabels() map[string]string { - if x != nil { - return x.Labels - } - return nil -} - -func (x *GetReportResponse) GetReports() []*DriverInstanceReport { - if x != nil { - return x.Reports - } - return nil -} - -type DriverCallRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` - Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"` - Args []*structpb.Value `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"` -} - -func (x *DriverCallRequest) Reset() { - *x = DriverCallRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_jumpstarter_v1_jumpstarter_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DriverCallRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DriverCallRequest) ProtoMessage() {} - -func (x *DriverCallRequest) ProtoReflect() protoreflect.Message { - mi := &file_jumpstarter_v1_jumpstarter_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DriverCallRequest.ProtoReflect.Descriptor instead. -func (*DriverCallRequest) Descriptor() ([]byte, []int) { - return file_jumpstarter_v1_jumpstarter_proto_rawDescGZIP(), []int{11} -} - -func (x *DriverCallRequest) GetUuid() string { - if x != nil { - return x.Uuid - } - return "" -} - -func (x *DriverCallRequest) GetMethod() string { - if x != nil { - return x.Method - } - return "" -} - -func (x *DriverCallRequest) GetArgs() []*structpb.Value { - if x != nil { - return x.Args - } - return nil -} - -type DriverCallResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` - Result *structpb.Value `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"` -} - -func (x *DriverCallResponse) Reset() { - *x = DriverCallResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_jumpstarter_v1_jumpstarter_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DriverCallResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DriverCallResponse) ProtoMessage() {} - -func (x *DriverCallResponse) ProtoReflect() protoreflect.Message { - mi := &file_jumpstarter_v1_jumpstarter_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DriverCallResponse.ProtoReflect.Descriptor instead. -func (*DriverCallResponse) Descriptor() ([]byte, []int) { - return file_jumpstarter_v1_jumpstarter_proto_rawDescGZIP(), []int{12} -} - -func (x *DriverCallResponse) GetUuid() string { - if x != nil { - return x.Uuid - } - return "" -} - -func (x *DriverCallResponse) GetResult() *structpb.Value { - if x != nil { - return x.Result - } - return nil -} - -type StreamingDriverCallRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` - Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"` - Args []*structpb.Value `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"` -} - -func (x *StreamingDriverCallRequest) Reset() { - *x = StreamingDriverCallRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_jumpstarter_v1_jumpstarter_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StreamingDriverCallRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StreamingDriverCallRequest) ProtoMessage() {} - -func (x *StreamingDriverCallRequest) ProtoReflect() protoreflect.Message { - mi := &file_jumpstarter_v1_jumpstarter_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StreamingDriverCallRequest.ProtoReflect.Descriptor instead. -func (*StreamingDriverCallRequest) Descriptor() ([]byte, []int) { - return file_jumpstarter_v1_jumpstarter_proto_rawDescGZIP(), []int{13} -} - -func (x *StreamingDriverCallRequest) GetUuid() string { - if x != nil { - return x.Uuid - } - return "" -} - -func (x *StreamingDriverCallRequest) GetMethod() string { - if x != nil { - return x.Method - } - return "" -} - -func (x *StreamingDriverCallRequest) GetArgs() []*structpb.Value { - if x != nil { - return x.Args - } - return nil -} - -type StreamingDriverCallResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` - Result *structpb.Value `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"` -} - -func (x *StreamingDriverCallResponse) Reset() { - *x = StreamingDriverCallResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_jumpstarter_v1_jumpstarter_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StreamingDriverCallResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StreamingDriverCallResponse) ProtoMessage() {} - -func (x *StreamingDriverCallResponse) ProtoReflect() protoreflect.Message { - mi := &file_jumpstarter_v1_jumpstarter_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StreamingDriverCallResponse.ProtoReflect.Descriptor instead. -func (*StreamingDriverCallResponse) Descriptor() ([]byte, []int) { - return file_jumpstarter_v1_jumpstarter_proto_rawDescGZIP(), []int{14} -} - -func (x *StreamingDriverCallResponse) GetUuid() string { - if x != nil { - return x.Uuid - } - return "" -} - -func (x *StreamingDriverCallResponse) GetResult() *structpb.Value { - if x != nil { - return x.Result - } - return nil -} - -type LogStreamResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` - Severity string `protobuf:"bytes,2,opt,name=severity,proto3" json:"severity,omitempty"` - Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` -} - -func (x *LogStreamResponse) Reset() { - *x = LogStreamResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_jumpstarter_v1_jumpstarter_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LogStreamResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LogStreamResponse) ProtoMessage() {} - -func (x *LogStreamResponse) ProtoReflect() protoreflect.Message { - mi := &file_jumpstarter_v1_jumpstarter_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LogStreamResponse.ProtoReflect.Descriptor instead. -func (*LogStreamResponse) Descriptor() ([]byte, []int) { - return file_jumpstarter_v1_jumpstarter_proto_rawDescGZIP(), []int{15} -} - -func (x *LogStreamResponse) GetUuid() string { - if x != nil { - return x.Uuid - } - return "" -} - -func (x *LogStreamResponse) GetSeverity() string { - if x != nil { - return x.Severity - } - return "" -} - -func (x *LogStreamResponse) GetMessage() string { - if x != nil { - return x.Message - } - return "" -} - -type ListExportersRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Labels map[string]string `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *ListExportersRequest) Reset() { - *x = ListExportersRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_jumpstarter_v1_jumpstarter_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListExportersRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListExportersRequest) ProtoMessage() {} - -func (x *ListExportersRequest) ProtoReflect() protoreflect.Message { - mi := &file_jumpstarter_v1_jumpstarter_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ListExportersRequest.ProtoReflect.Descriptor instead. -func (*ListExportersRequest) Descriptor() ([]byte, []int) { - return file_jumpstarter_v1_jumpstarter_proto_rawDescGZIP(), []int{16} -} - -func (x *ListExportersRequest) GetLabels() map[string]string { - if x != nil { - return x.Labels - } - return nil -} - -type ListExportersResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Exporters []*GetReportResponse `protobuf:"bytes,1,rep,name=exporters,proto3" json:"exporters,omitempty"` -} - -func (x *ListExportersResponse) Reset() { - *x = ListExportersResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_jumpstarter_v1_jumpstarter_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListExportersResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListExportersResponse) ProtoMessage() {} - -func (x *ListExportersResponse) ProtoReflect() protoreflect.Message { - mi := &file_jumpstarter_v1_jumpstarter_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ListExportersResponse.ProtoReflect.Descriptor instead. -func (*ListExportersResponse) Descriptor() ([]byte, []int) { - return file_jumpstarter_v1_jumpstarter_proto_rawDescGZIP(), []int{17} -} - -func (x *ListExportersResponse) GetExporters() []*GetReportResponse { - if x != nil { - return x.Exporters - } - return nil -} - -type GetExporterRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` -} - -func (x *GetExporterRequest) Reset() { - *x = GetExporterRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_jumpstarter_v1_jumpstarter_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetExporterRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetExporterRequest) ProtoMessage() {} - -func (x *GetExporterRequest) ProtoReflect() protoreflect.Message { - mi := &file_jumpstarter_v1_jumpstarter_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetExporterRequest.ProtoReflect.Descriptor instead. -func (*GetExporterRequest) Descriptor() ([]byte, []int) { - return file_jumpstarter_v1_jumpstarter_proto_rawDescGZIP(), []int{18} -} - -func (x *GetExporterRequest) GetUuid() string { - if x != nil { - return x.Uuid - } - return "" -} - -type GetExporterResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Exporter *GetReportResponse `protobuf:"bytes,1,opt,name=exporter,proto3" json:"exporter,omitempty"` -} - -func (x *GetExporterResponse) Reset() { - *x = GetExporterResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_jumpstarter_v1_jumpstarter_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetExporterResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetExporterResponse) ProtoMessage() {} - -func (x *GetExporterResponse) ProtoReflect() protoreflect.Message { - mi := &file_jumpstarter_v1_jumpstarter_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetExporterResponse.ProtoReflect.Descriptor instead. -func (*GetExporterResponse) Descriptor() ([]byte, []int) { - return file_jumpstarter_v1_jumpstarter_proto_rawDescGZIP(), []int{19} -} - -func (x *GetExporterResponse) GetExporter() *GetReportResponse { - if x != nil { - return x.Exporter - } - return nil -} - -type GetLeaseRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` -} - -func (x *GetLeaseRequest) Reset() { - *x = GetLeaseRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_jumpstarter_v1_jumpstarter_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetLeaseRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetLeaseRequest) ProtoMessage() {} - -func (x *GetLeaseRequest) ProtoReflect() protoreflect.Message { - mi := &file_jumpstarter_v1_jumpstarter_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetLeaseRequest.ProtoReflect.Descriptor instead. -func (*GetLeaseRequest) Descriptor() ([]byte, []int) { - return file_jumpstarter_v1_jumpstarter_proto_rawDescGZIP(), []int{20} -} - -func (x *GetLeaseRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -type GetLeaseResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Duration *durationpb.Duration `protobuf:"bytes,1,opt,name=duration,proto3" json:"duration,omitempty"` - Selector *LabelSelector `protobuf:"bytes,2,opt,name=selector,proto3" json:"selector,omitempty"` - BeginTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=begin_time,json=beginTime,proto3,oneof" json:"begin_time,omitempty"` - EndTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=end_time,json=endTime,proto3,oneof" json:"end_time,omitempty"` - ExporterUuid *string `protobuf:"bytes,5,opt,name=exporter_uuid,json=exporterUuid,proto3,oneof" json:"exporter_uuid,omitempty"` -} - -func (x *GetLeaseResponse) Reset() { - *x = GetLeaseResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_jumpstarter_v1_jumpstarter_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetLeaseResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetLeaseResponse) ProtoMessage() {} - -func (x *GetLeaseResponse) ProtoReflect() protoreflect.Message { - mi := &file_jumpstarter_v1_jumpstarter_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetLeaseResponse.ProtoReflect.Descriptor instead. -func (*GetLeaseResponse) Descriptor() ([]byte, []int) { - return file_jumpstarter_v1_jumpstarter_proto_rawDescGZIP(), []int{21} -} - -func (x *GetLeaseResponse) GetDuration() *durationpb.Duration { - if x != nil { - return x.Duration - } - return nil -} - -func (x *GetLeaseResponse) GetSelector() *LabelSelector { - if x != nil { - return x.Selector - } - return nil -} - -func (x *GetLeaseResponse) GetBeginTime() *timestamppb.Timestamp { - if x != nil { - return x.BeginTime - } - return nil -} - -func (x *GetLeaseResponse) GetEndTime() *timestamppb.Timestamp { - if x != nil { - return x.EndTime - } - return nil -} - -func (x *GetLeaseResponse) GetExporterUuid() string { - if x != nil && x.ExporterUuid != nil { - return *x.ExporterUuid - } - return "" -} - -type RequestLeaseRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Duration *durationpb.Duration `protobuf:"bytes,1,opt,name=duration,proto3" json:"duration,omitempty"` - Selector *LabelSelector `protobuf:"bytes,2,opt,name=selector,proto3" json:"selector,omitempty"` -} - -func (x *RequestLeaseRequest) Reset() { - *x = RequestLeaseRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_jumpstarter_v1_jumpstarter_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RequestLeaseRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RequestLeaseRequest) ProtoMessage() {} - -func (x *RequestLeaseRequest) ProtoReflect() protoreflect.Message { - mi := &file_jumpstarter_v1_jumpstarter_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RequestLeaseRequest.ProtoReflect.Descriptor instead. -func (*RequestLeaseRequest) Descriptor() ([]byte, []int) { - return file_jumpstarter_v1_jumpstarter_proto_rawDescGZIP(), []int{22} -} - -func (x *RequestLeaseRequest) GetDuration() *durationpb.Duration { - if x != nil { - return x.Duration - } - return nil -} - -func (x *RequestLeaseRequest) GetSelector() *LabelSelector { - if x != nil { - return x.Selector - } - return nil -} - -type RequestLeaseResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` -} - -func (x *RequestLeaseResponse) Reset() { - *x = RequestLeaseResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_jumpstarter_v1_jumpstarter_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RequestLeaseResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RequestLeaseResponse) ProtoMessage() {} - -func (x *RequestLeaseResponse) ProtoReflect() protoreflect.Message { - mi := &file_jumpstarter_v1_jumpstarter_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RequestLeaseResponse.ProtoReflect.Descriptor instead. -func (*RequestLeaseResponse) Descriptor() ([]byte, []int) { - return file_jumpstarter_v1_jumpstarter_proto_rawDescGZIP(), []int{23} -} - -func (x *RequestLeaseResponse) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -type ReleaseLeaseRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` -} - -func (x *ReleaseLeaseRequest) Reset() { - *x = ReleaseLeaseRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_jumpstarter_v1_jumpstarter_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ReleaseLeaseRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ReleaseLeaseRequest) ProtoMessage() {} - -func (x *ReleaseLeaseRequest) ProtoReflect() protoreflect.Message { - mi := &file_jumpstarter_v1_jumpstarter_proto_msgTypes[24] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ReleaseLeaseRequest.ProtoReflect.Descriptor instead. -func (*ReleaseLeaseRequest) Descriptor() ([]byte, []int) { - return file_jumpstarter_v1_jumpstarter_proto_rawDescGZIP(), []int{24} -} - -func (x *ReleaseLeaseRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -type ReleaseLeaseResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *ReleaseLeaseResponse) Reset() { - *x = ReleaseLeaseResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_jumpstarter_v1_jumpstarter_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ReleaseLeaseResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ReleaseLeaseResponse) ProtoMessage() {} - -func (x *ReleaseLeaseResponse) ProtoReflect() protoreflect.Message { - mi := &file_jumpstarter_v1_jumpstarter_proto_msgTypes[25] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ReleaseLeaseResponse.ProtoReflect.Descriptor instead. -func (*ReleaseLeaseResponse) Descriptor() ([]byte, []int) { - return file_jumpstarter_v1_jumpstarter_proto_rawDescGZIP(), []int{25} -} - -var File_jumpstarter_v1_jumpstarter_proto protoreflect.FileDescriptor - -var file_jumpstarter_v1_jumpstarter_proto_rawDesc = []byte{ - 0x0a, 0x20, 0x6a, 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x31, - 0x2f, 0x6a, 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x12, 0x0e, 0x6a, 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x2e, - 0x76, 0x31, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, - 0x6a, 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x2f, 0x6b, - 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, - 0xd1, 0x01, 0x0a, 0x0f, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x43, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x6a, 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, - 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, - 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x3e, 0x0a, 0x07, 0x72, 0x65, 0x70, 0x6f, - 0x72, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x6a, 0x75, 0x6d, 0x70, - 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x72, 0x69, 0x76, 0x65, - 0x72, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, - 0x07, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, - 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, - 0x02, 0x38, 0x01, 0x22, 0xe5, 0x01, 0x0a, 0x14, 0x44, 0x72, 0x69, 0x76, 0x65, 0x72, 0x49, 0x6e, - 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x12, 0x0a, 0x04, - 0x75, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, - 0x12, 0x24, 0x0a, 0x0b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x75, 0x75, 0x69, 0x64, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0a, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x55, - 0x75, 0x69, 0x64, 0x88, 0x01, 0x01, 0x12, 0x48, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, - 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x6a, 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, - 0x72, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x72, 0x69, 0x76, 0x65, 0x72, 0x49, 0x6e, - 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x4c, 0x61, 0x62, - 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, - 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, - 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, - 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, - 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x75, 0x75, 0x69, 0x64, 0x22, 0x26, 0x0a, 0x10, 0x52, - 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x12, 0x0a, 0x04, 0x75, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, - 0x75, 0x69, 0x64, 0x22, 0x2b, 0x0a, 0x11, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, - 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, - 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, - 0x22, 0x14, 0x0a, 0x12, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x0f, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x5c, 0x0a, 0x0e, 0x4c, 0x69, 0x73, 0x74, 0x65, - 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x6f, 0x75, - 0x74, 0x65, 0x72, 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, - 0x6e, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x5f, 0x74, 0x6f, 0x6b, - 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, - 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x21, 0x0a, 0x0b, 0x44, 0x69, 0x61, 0x6c, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x22, 0x5a, 0x0a, 0x0c, 0x44, 0x69, 0x61, 0x6c, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x6f, 0x75, 0x74, - 0x65, 0x72, 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, - 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x5f, 0x74, 0x6f, 0x6b, 0x65, - 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x54, - 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xa1, 0x01, 0x0a, 0x12, 0x41, 0x75, 0x64, 0x69, 0x74, 0x53, 0x74, - 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x65, - 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x5f, 0x75, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0c, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x55, 0x75, 0x69, 0x64, - 0x12, 0x30, 0x0a, 0x14, 0x64, 0x72, 0x69, 0x76, 0x65, 0x72, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, - 0x6e, 0x63, 0x65, 0x5f, 0x75, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, - 0x64, 0x72, 0x69, 0x76, 0x65, 0x72, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x55, 0x75, - 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x12, 0x18, - 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0xe9, 0x01, 0x0a, 0x11, 0x47, 0x65, 0x74, - 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, - 0x0a, 0x04, 0x75, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x75, - 0x69, 0x64, 0x12, 0x45, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x6a, 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, - 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, - 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x3e, 0x0a, 0x07, 0x72, 0x65, 0x70, - 0x6f, 0x72, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x6a, 0x75, 0x6d, - 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x72, 0x69, 0x76, - 0x65, 0x72, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, - 0x52, 0x07, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, - 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x3a, 0x02, 0x38, 0x01, 0x22, 0x6b, 0x0a, 0x11, 0x44, 0x72, 0x69, 0x76, 0x65, 0x72, 0x43, 0x61, - 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x75, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x12, 0x16, 0x0a, - 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, - 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x2a, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, 0x18, 0x03, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x04, 0x61, 0x72, 0x67, - 0x73, 0x22, 0x58, 0x0a, 0x12, 0x44, 0x72, 0x69, 0x76, 0x65, 0x72, 0x43, 0x61, 0x6c, 0x6c, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x75, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x12, 0x2e, 0x0a, 0x06, 0x72, - 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x74, 0x0a, 0x1a, 0x53, - 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x44, 0x72, 0x69, 0x76, 0x65, 0x72, 0x43, 0x61, - 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x75, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x12, 0x16, 0x0a, - 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, - 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x2a, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, 0x18, 0x03, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x04, 0x61, 0x72, 0x67, - 0x73, 0x22, 0x61, 0x0a, 0x1b, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x44, 0x72, - 0x69, 0x76, 0x65, 0x72, 0x43, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x12, 0x0a, 0x04, 0x75, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x75, 0x75, 0x69, 0x64, 0x12, 0x2e, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x72, 0x65, - 0x73, 0x75, 0x6c, 0x74, 0x22, 0x5d, 0x0a, 0x11, 0x4c, 0x6f, 0x67, 0x53, 0x74, 0x72, 0x65, 0x61, - 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x75, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x12, 0x1a, 0x0a, - 0x08, 0x73, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x73, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, - 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, - 0x61, 0x67, 0x65, 0x22, 0x9b, 0x01, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x78, 0x70, 0x6f, - 0x72, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x48, 0x0a, 0x06, - 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x6a, - 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, - 0x73, 0x74, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, - 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, - 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, - 0x01, 0x22, 0x58, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, - 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x09, 0x65, 0x78, - 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, - 0x6a, 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x47, - 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x52, 0x09, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x73, 0x22, 0x28, 0x0a, 0x12, 0x47, - 0x65, 0x74, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x75, 0x75, 0x69, 0x64, 0x22, 0x54, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x45, 0x78, 0x70, 0x6f, - 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x08, - 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, - 0x2e, 0x6a, 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, - 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x52, 0x08, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x22, 0x25, 0x0a, 0x0f, 0x47, - 0x65, 0x74, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, - 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x22, 0xd8, 0x02, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x39, - 0x0a, 0x08, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1d, 0x2e, 0x6a, 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x2e, 0x76, - 0x31, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, - 0x08, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x3e, 0x0a, 0x0a, 0x62, 0x65, 0x67, - 0x69, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x48, 0x00, 0x52, 0x09, 0x62, 0x65, 0x67, - 0x69, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x88, 0x01, 0x01, 0x12, 0x3a, 0x0a, 0x08, 0x65, 0x6e, 0x64, - 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x48, 0x01, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, - 0x6d, 0x65, 0x88, 0x01, 0x01, 0x12, 0x28, 0x0a, 0x0d, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, - 0x72, 0x5f, 0x75, 0x75, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x02, 0x52, 0x0c, - 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x55, 0x75, 0x69, 0x64, 0x88, 0x01, 0x01, 0x42, - 0x0d, 0x0a, 0x0b, 0x5f, 0x62, 0x65, 0x67, 0x69, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x42, 0x0b, - 0x0a, 0x09, 0x5f, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x42, 0x10, 0x0a, 0x0e, 0x5f, - 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x5f, 0x75, 0x75, 0x69, 0x64, 0x22, 0x87, 0x01, - 0x0a, 0x13, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x0a, 0x08, - 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, - 0x2e, 0x6a, 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, - 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x08, 0x73, - 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x22, 0x2a, 0x0a, 0x14, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x22, 0x29, 0x0a, 0x13, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x4c, 0x65, - 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x16, - 0x0a, 0x14, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xcd, 0x06, 0x0a, 0x11, 0x43, 0x6f, 0x6e, 0x74, 0x72, - 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x4d, 0x0a, 0x08, - 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x12, 0x1f, 0x2e, 0x6a, 0x75, 0x6d, 0x70, 0x73, - 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, - 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x6a, 0x75, 0x6d, 0x70, - 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, - 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x0a, 0x55, - 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x12, 0x21, 0x2e, 0x6a, 0x75, 0x6d, 0x70, - 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x72, 0x65, 0x67, - 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x6a, - 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, - 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x49, 0x0a, 0x06, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x12, 0x1d, 0x2e, 0x6a, 0x75, 0x6d, - 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, - 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x6a, 0x75, 0x6d, 0x70, - 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x65, - 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x41, 0x0a, 0x04, 0x44, - 0x69, 0x61, 0x6c, 0x12, 0x1b, 0x2e, 0x6a, 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, - 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x1c, 0x2e, 0x6a, 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x2e, 0x76, - 0x31, 0x2e, 0x44, 0x69, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, - 0x0a, 0x0b, 0x41, 0x75, 0x64, 0x69, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x22, 0x2e, - 0x6a, 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x41, - 0x75, 0x64, 0x69, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x28, 0x01, 0x12, 0x5c, 0x0a, 0x0d, 0x4c, - 0x69, 0x73, 0x74, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x73, 0x12, 0x24, 0x2e, 0x6a, - 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, - 0x73, 0x74, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x6a, 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, - 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x56, 0x0a, 0x0b, 0x47, 0x65, 0x74, - 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, 0x22, 0x2e, 0x6a, 0x75, 0x6d, 0x70, 0x73, - 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x45, 0x78, 0x70, - 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x6a, - 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, - 0x74, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x4d, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x1f, 0x2e, - 0x6a, 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x47, - 0x65, 0x74, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, - 0x2e, 0x6a, 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, - 0x47, 0x65, 0x74, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x59, 0x0a, 0x0c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4c, 0x65, 0x61, 0x73, 0x65, - 0x12, 0x23, 0x2e, 0x6a, 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x2e, 0x76, - 0x31, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x6a, 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, - 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4c, 0x65, - 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, 0x0c, 0x52, - 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x23, 0x2e, 0x6a, 0x75, - 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6c, - 0x65, 0x61, 0x73, 0x65, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x24, 0x2e, 0x6a, 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x2e, 0x76, - 0x31, 0x2e, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xea, 0x02, 0x0a, 0x0f, 0x45, 0x78, 0x70, 0x6f, 0x72, - 0x74, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x46, 0x0a, 0x09, 0x47, 0x65, - 0x74, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, - 0x21, 0x2e, 0x6a, 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, - 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x53, 0x0a, 0x0a, 0x44, 0x72, 0x69, 0x76, 0x65, 0x72, 0x43, 0x61, 0x6c, 0x6c, - 0x12, 0x21, 0x2e, 0x6a, 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x2e, 0x76, - 0x31, 0x2e, 0x44, 0x72, 0x69, 0x76, 0x65, 0x72, 0x43, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x6a, 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, - 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x72, 0x69, 0x76, 0x65, 0x72, 0x43, 0x61, 0x6c, 0x6c, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x70, 0x0a, 0x13, 0x53, 0x74, 0x72, 0x65, 0x61, - 0x6d, 0x69, 0x6e, 0x67, 0x44, 0x72, 0x69, 0x76, 0x65, 0x72, 0x43, 0x61, 0x6c, 0x6c, 0x12, 0x2a, - 0x2e, 0x6a, 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, - 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x44, 0x72, 0x69, 0x76, 0x65, 0x72, 0x43, - 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x6a, 0x75, 0x6d, - 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x65, - 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x44, 0x72, 0x69, 0x76, 0x65, 0x72, 0x43, 0x61, 0x6c, 0x6c, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x48, 0x0a, 0x09, 0x4c, 0x6f, 0x67, - 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x21, - 0x2e, 0x6a, 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, - 0x4c, 0x6f, 0x67, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x30, 0x01, 0x42, 0xcd, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x6a, 0x75, 0x6d, 0x70, - 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x42, 0x10, 0x4a, 0x75, 0x6d, 0x70, - 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4c, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6a, 0x75, 0x6d, 0x70, 0x73, - 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x2d, 0x64, 0x65, 0x76, 0x2f, 0x6a, 0x75, 0x6d, 0x70, 0x73, - 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, - 0x6a, 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x3b, 0x6a, - 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4a, - 0x58, 0x58, 0xaa, 0x02, 0x0e, 0x4a, 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, - 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0e, 0x4a, 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, - 0x72, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1a, 0x4a, 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, - 0x65, 0x72, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0xea, 0x02, 0x0f, 0x4a, 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x3a, - 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_jumpstarter_v1_jumpstarter_proto_rawDescOnce sync.Once - file_jumpstarter_v1_jumpstarter_proto_rawDescData = file_jumpstarter_v1_jumpstarter_proto_rawDesc -) - -func file_jumpstarter_v1_jumpstarter_proto_rawDescGZIP() []byte { - file_jumpstarter_v1_jumpstarter_proto_rawDescOnce.Do(func() { - file_jumpstarter_v1_jumpstarter_proto_rawDescData = protoimpl.X.CompressGZIP(file_jumpstarter_v1_jumpstarter_proto_rawDescData) - }) - return file_jumpstarter_v1_jumpstarter_proto_rawDescData -} - -var file_jumpstarter_v1_jumpstarter_proto_msgTypes = make([]protoimpl.MessageInfo, 30) -var file_jumpstarter_v1_jumpstarter_proto_goTypes = []any{ - (*RegisterRequest)(nil), // 0: jumpstarter.v1.RegisterRequest - (*DriverInstanceReport)(nil), // 1: jumpstarter.v1.DriverInstanceReport - (*RegisterResponse)(nil), // 2: jumpstarter.v1.RegisterResponse - (*UnregisterRequest)(nil), // 3: jumpstarter.v1.UnregisterRequest - (*UnregisterResponse)(nil), // 4: jumpstarter.v1.UnregisterResponse - (*ListenRequest)(nil), // 5: jumpstarter.v1.ListenRequest - (*ListenResponse)(nil), // 6: jumpstarter.v1.ListenResponse - (*DialRequest)(nil), // 7: jumpstarter.v1.DialRequest - (*DialResponse)(nil), // 8: jumpstarter.v1.DialResponse - (*AuditStreamRequest)(nil), // 9: jumpstarter.v1.AuditStreamRequest - (*GetReportResponse)(nil), // 10: jumpstarter.v1.GetReportResponse - (*DriverCallRequest)(nil), // 11: jumpstarter.v1.DriverCallRequest - (*DriverCallResponse)(nil), // 12: jumpstarter.v1.DriverCallResponse - (*StreamingDriverCallRequest)(nil), // 13: jumpstarter.v1.StreamingDriverCallRequest - (*StreamingDriverCallResponse)(nil), // 14: jumpstarter.v1.StreamingDriverCallResponse - (*LogStreamResponse)(nil), // 15: jumpstarter.v1.LogStreamResponse - (*ListExportersRequest)(nil), // 16: jumpstarter.v1.ListExportersRequest - (*ListExportersResponse)(nil), // 17: jumpstarter.v1.ListExportersResponse - (*GetExporterRequest)(nil), // 18: jumpstarter.v1.GetExporterRequest - (*GetExporterResponse)(nil), // 19: jumpstarter.v1.GetExporterResponse - (*GetLeaseRequest)(nil), // 20: jumpstarter.v1.GetLeaseRequest - (*GetLeaseResponse)(nil), // 21: jumpstarter.v1.GetLeaseResponse - (*RequestLeaseRequest)(nil), // 22: jumpstarter.v1.RequestLeaseRequest - (*RequestLeaseResponse)(nil), // 23: jumpstarter.v1.RequestLeaseResponse - (*ReleaseLeaseRequest)(nil), // 24: jumpstarter.v1.ReleaseLeaseRequest - (*ReleaseLeaseResponse)(nil), // 25: jumpstarter.v1.ReleaseLeaseResponse - nil, // 26: jumpstarter.v1.RegisterRequest.LabelsEntry - nil, // 27: jumpstarter.v1.DriverInstanceReport.LabelsEntry - nil, // 28: jumpstarter.v1.GetReportResponse.LabelsEntry - nil, // 29: jumpstarter.v1.ListExportersRequest.LabelsEntry - (*structpb.Value)(nil), // 30: google.protobuf.Value - (*durationpb.Duration)(nil), // 31: google.protobuf.Duration - (*LabelSelector)(nil), // 32: jumpstarter.v1.LabelSelector - (*timestamppb.Timestamp)(nil), // 33: google.protobuf.Timestamp - (*emptypb.Empty)(nil), // 34: google.protobuf.Empty -} -var file_jumpstarter_v1_jumpstarter_proto_depIdxs = []int32{ - 26, // 0: jumpstarter.v1.RegisterRequest.labels:type_name -> jumpstarter.v1.RegisterRequest.LabelsEntry - 1, // 1: jumpstarter.v1.RegisterRequest.reports:type_name -> jumpstarter.v1.DriverInstanceReport - 27, // 2: jumpstarter.v1.DriverInstanceReport.labels:type_name -> jumpstarter.v1.DriverInstanceReport.LabelsEntry - 28, // 3: jumpstarter.v1.GetReportResponse.labels:type_name -> jumpstarter.v1.GetReportResponse.LabelsEntry - 1, // 4: jumpstarter.v1.GetReportResponse.reports:type_name -> jumpstarter.v1.DriverInstanceReport - 30, // 5: jumpstarter.v1.DriverCallRequest.args:type_name -> google.protobuf.Value - 30, // 6: jumpstarter.v1.DriverCallResponse.result:type_name -> google.protobuf.Value - 30, // 7: jumpstarter.v1.StreamingDriverCallRequest.args:type_name -> google.protobuf.Value - 30, // 8: jumpstarter.v1.StreamingDriverCallResponse.result:type_name -> google.protobuf.Value - 29, // 9: jumpstarter.v1.ListExportersRequest.labels:type_name -> jumpstarter.v1.ListExportersRequest.LabelsEntry - 10, // 10: jumpstarter.v1.ListExportersResponse.exporters:type_name -> jumpstarter.v1.GetReportResponse - 10, // 11: jumpstarter.v1.GetExporterResponse.exporter:type_name -> jumpstarter.v1.GetReportResponse - 31, // 12: jumpstarter.v1.GetLeaseResponse.duration:type_name -> google.protobuf.Duration - 32, // 13: jumpstarter.v1.GetLeaseResponse.selector:type_name -> jumpstarter.v1.LabelSelector - 33, // 14: jumpstarter.v1.GetLeaseResponse.begin_time:type_name -> google.protobuf.Timestamp - 33, // 15: jumpstarter.v1.GetLeaseResponse.end_time:type_name -> google.protobuf.Timestamp - 31, // 16: jumpstarter.v1.RequestLeaseRequest.duration:type_name -> google.protobuf.Duration - 32, // 17: jumpstarter.v1.RequestLeaseRequest.selector:type_name -> jumpstarter.v1.LabelSelector - 0, // 18: jumpstarter.v1.ControllerService.Register:input_type -> jumpstarter.v1.RegisterRequest - 3, // 19: jumpstarter.v1.ControllerService.Unregister:input_type -> jumpstarter.v1.UnregisterRequest - 5, // 20: jumpstarter.v1.ControllerService.Listen:input_type -> jumpstarter.v1.ListenRequest - 7, // 21: jumpstarter.v1.ControllerService.Dial:input_type -> jumpstarter.v1.DialRequest - 9, // 22: jumpstarter.v1.ControllerService.AuditStream:input_type -> jumpstarter.v1.AuditStreamRequest - 16, // 23: jumpstarter.v1.ControllerService.ListExporters:input_type -> jumpstarter.v1.ListExportersRequest - 18, // 24: jumpstarter.v1.ControllerService.GetExporter:input_type -> jumpstarter.v1.GetExporterRequest - 20, // 25: jumpstarter.v1.ControllerService.GetLease:input_type -> jumpstarter.v1.GetLeaseRequest - 22, // 26: jumpstarter.v1.ControllerService.RequestLease:input_type -> jumpstarter.v1.RequestLeaseRequest - 24, // 27: jumpstarter.v1.ControllerService.ReleaseLease:input_type -> jumpstarter.v1.ReleaseLeaseRequest - 34, // 28: jumpstarter.v1.ExporterService.GetReport:input_type -> google.protobuf.Empty - 11, // 29: jumpstarter.v1.ExporterService.DriverCall:input_type -> jumpstarter.v1.DriverCallRequest - 13, // 30: jumpstarter.v1.ExporterService.StreamingDriverCall:input_type -> jumpstarter.v1.StreamingDriverCallRequest - 34, // 31: jumpstarter.v1.ExporterService.LogStream:input_type -> google.protobuf.Empty - 2, // 32: jumpstarter.v1.ControllerService.Register:output_type -> jumpstarter.v1.RegisterResponse - 4, // 33: jumpstarter.v1.ControllerService.Unregister:output_type -> jumpstarter.v1.UnregisterResponse - 6, // 34: jumpstarter.v1.ControllerService.Listen:output_type -> jumpstarter.v1.ListenResponse - 8, // 35: jumpstarter.v1.ControllerService.Dial:output_type -> jumpstarter.v1.DialResponse - 34, // 36: jumpstarter.v1.ControllerService.AuditStream:output_type -> google.protobuf.Empty - 17, // 37: jumpstarter.v1.ControllerService.ListExporters:output_type -> jumpstarter.v1.ListExportersResponse - 19, // 38: jumpstarter.v1.ControllerService.GetExporter:output_type -> jumpstarter.v1.GetExporterResponse - 21, // 39: jumpstarter.v1.ControllerService.GetLease:output_type -> jumpstarter.v1.GetLeaseResponse - 23, // 40: jumpstarter.v1.ControllerService.RequestLease:output_type -> jumpstarter.v1.RequestLeaseResponse - 25, // 41: jumpstarter.v1.ControllerService.ReleaseLease:output_type -> jumpstarter.v1.ReleaseLeaseResponse - 10, // 42: jumpstarter.v1.ExporterService.GetReport:output_type -> jumpstarter.v1.GetReportResponse - 12, // 43: jumpstarter.v1.ExporterService.DriverCall:output_type -> jumpstarter.v1.DriverCallResponse - 14, // 44: jumpstarter.v1.ExporterService.StreamingDriverCall:output_type -> jumpstarter.v1.StreamingDriverCallResponse - 15, // 45: jumpstarter.v1.ExporterService.LogStream:output_type -> jumpstarter.v1.LogStreamResponse - 32, // [32:46] is the sub-list for method output_type - 18, // [18:32] is the sub-list for method input_type - 18, // [18:18] is the sub-list for extension type_name - 18, // [18:18] is the sub-list for extension extendee - 0, // [0:18] is the sub-list for field type_name -} - -func init() { file_jumpstarter_v1_jumpstarter_proto_init() } -func file_jumpstarter_v1_jumpstarter_proto_init() { - if File_jumpstarter_v1_jumpstarter_proto != nil { - return - } - file_jumpstarter_v1_kubernetes_proto_init() - if !protoimpl.UnsafeEnabled { - file_jumpstarter_v1_jumpstarter_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*RegisterRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_jumpstarter_v1_jumpstarter_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*DriverInstanceReport); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_jumpstarter_v1_jumpstarter_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*RegisterResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_jumpstarter_v1_jumpstarter_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*UnregisterRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_jumpstarter_v1_jumpstarter_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*UnregisterResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_jumpstarter_v1_jumpstarter_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*ListenRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_jumpstarter_v1_jumpstarter_proto_msgTypes[6].Exporter = func(v any, i int) any { - switch v := v.(*ListenResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_jumpstarter_v1_jumpstarter_proto_msgTypes[7].Exporter = func(v any, i int) any { - switch v := v.(*DialRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_jumpstarter_v1_jumpstarter_proto_msgTypes[8].Exporter = func(v any, i int) any { - switch v := v.(*DialResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_jumpstarter_v1_jumpstarter_proto_msgTypes[9].Exporter = func(v any, i int) any { - switch v := v.(*AuditStreamRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_jumpstarter_v1_jumpstarter_proto_msgTypes[10].Exporter = func(v any, i int) any { - switch v := v.(*GetReportResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_jumpstarter_v1_jumpstarter_proto_msgTypes[11].Exporter = func(v any, i int) any { - switch v := v.(*DriverCallRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_jumpstarter_v1_jumpstarter_proto_msgTypes[12].Exporter = func(v any, i int) any { - switch v := v.(*DriverCallResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_jumpstarter_v1_jumpstarter_proto_msgTypes[13].Exporter = func(v any, i int) any { - switch v := v.(*StreamingDriverCallRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_jumpstarter_v1_jumpstarter_proto_msgTypes[14].Exporter = func(v any, i int) any { - switch v := v.(*StreamingDriverCallResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_jumpstarter_v1_jumpstarter_proto_msgTypes[15].Exporter = func(v any, i int) any { - switch v := v.(*LogStreamResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_jumpstarter_v1_jumpstarter_proto_msgTypes[16].Exporter = func(v any, i int) any { - switch v := v.(*ListExportersRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_jumpstarter_v1_jumpstarter_proto_msgTypes[17].Exporter = func(v any, i int) any { - switch v := v.(*ListExportersResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_jumpstarter_v1_jumpstarter_proto_msgTypes[18].Exporter = func(v any, i int) any { - switch v := v.(*GetExporterRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_jumpstarter_v1_jumpstarter_proto_msgTypes[19].Exporter = func(v any, i int) any { - switch v := v.(*GetExporterResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_jumpstarter_v1_jumpstarter_proto_msgTypes[20].Exporter = func(v any, i int) any { - switch v := v.(*GetLeaseRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_jumpstarter_v1_jumpstarter_proto_msgTypes[21].Exporter = func(v any, i int) any { - switch v := v.(*GetLeaseResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_jumpstarter_v1_jumpstarter_proto_msgTypes[22].Exporter = func(v any, i int) any { - switch v := v.(*RequestLeaseRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_jumpstarter_v1_jumpstarter_proto_msgTypes[23].Exporter = func(v any, i int) any { - switch v := v.(*RequestLeaseResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_jumpstarter_v1_jumpstarter_proto_msgTypes[24].Exporter = func(v any, i int) any { - switch v := v.(*ReleaseLeaseRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_jumpstarter_v1_jumpstarter_proto_msgTypes[25].Exporter = func(v any, i int) any { - switch v := v.(*ReleaseLeaseResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_jumpstarter_v1_jumpstarter_proto_msgTypes[1].OneofWrappers = []any{} - file_jumpstarter_v1_jumpstarter_proto_msgTypes[21].OneofWrappers = []any{} - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_jumpstarter_v1_jumpstarter_proto_rawDesc, - NumEnums: 0, - NumMessages: 30, - NumExtensions: 0, - NumServices: 2, - }, - GoTypes: file_jumpstarter_v1_jumpstarter_proto_goTypes, - DependencyIndexes: file_jumpstarter_v1_jumpstarter_proto_depIdxs, - MessageInfos: file_jumpstarter_v1_jumpstarter_proto_msgTypes, - }.Build() - File_jumpstarter_v1_jumpstarter_proto = out.File - file_jumpstarter_v1_jumpstarter_proto_rawDesc = nil - file_jumpstarter_v1_jumpstarter_proto_goTypes = nil - file_jumpstarter_v1_jumpstarter_proto_depIdxs = nil -} diff --git a/go/jumpstarter/v1/jumpstarter_grpc.pb.go b/go/jumpstarter/v1/jumpstarter_grpc.pb.go deleted file mode 100644 index 1fb553f..0000000 --- a/go/jumpstarter/v1/jumpstarter_grpc.pb.go +++ /dev/null @@ -1,736 +0,0 @@ -// Copyright 2024 The Jumpstarter Authors - -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.5.1 -// - protoc (unknown) -// source: jumpstarter/v1/jumpstarter.proto - -package jumpstarterv1 - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - emptypb "google.golang.org/protobuf/types/known/emptypb" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.64.0 or later. -const _ = grpc.SupportPackageIsVersion9 - -const ( - ControllerService_Register_FullMethodName = "/jumpstarter.v1.ControllerService/Register" - ControllerService_Unregister_FullMethodName = "/jumpstarter.v1.ControllerService/Unregister" - ControllerService_Listen_FullMethodName = "/jumpstarter.v1.ControllerService/Listen" - ControllerService_Dial_FullMethodName = "/jumpstarter.v1.ControllerService/Dial" - ControllerService_AuditStream_FullMethodName = "/jumpstarter.v1.ControllerService/AuditStream" - ControllerService_ListExporters_FullMethodName = "/jumpstarter.v1.ControllerService/ListExporters" - ControllerService_GetExporter_FullMethodName = "/jumpstarter.v1.ControllerService/GetExporter" - ControllerService_GetLease_FullMethodName = "/jumpstarter.v1.ControllerService/GetLease" - ControllerService_RequestLease_FullMethodName = "/jumpstarter.v1.ControllerService/RequestLease" - ControllerService_ReleaseLease_FullMethodName = "/jumpstarter.v1.ControllerService/ReleaseLease" -) - -// ControllerServiceClient is the client API for ControllerService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -// -// A service where a exporter can connect to make itself available -type ControllerServiceClient interface { - // Exporter registration - Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error) - // Exporter disconnection - // Disconnecting with bye will invalidate any existing router tokens - // we will eventually have a mechanism to tell the router this token - // has been invalidated - Unregister(ctx context.Context, in *UnregisterRequest, opts ...grpc.CallOption) (*UnregisterResponse, error) - // Exporter listening - // Returns stream tokens for accepting incoming client connections - Listen(ctx context.Context, in *ListenRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ListenResponse], error) - // Client connecting - // Returns stream token for connecting to the desired exporter - // Leases are checked before token issuance - Dial(ctx context.Context, in *DialRequest, opts ...grpc.CallOption) (*DialResponse, error) - // Audit events from the exporters - // audit events are used to track the exporter's activity - AuditStream(ctx context.Context, opts ...grpc.CallOption) (grpc.ClientStreamingClient[AuditStreamRequest, emptypb.Empty], error) - // List exporters - // Returns all exporters matching filter - ListExporters(ctx context.Context, in *ListExportersRequest, opts ...grpc.CallOption) (*ListExportersResponse, error) - // Get exporter - // Get information of the exporter of the given uuid - GetExporter(ctx context.Context, in *GetExporterRequest, opts ...grpc.CallOption) (*GetExporterResponse, error) - // Get Lease - GetLease(ctx context.Context, in *GetLeaseRequest, opts ...grpc.CallOption) (*GetLeaseResponse, error) - // Request Lease - RequestLease(ctx context.Context, in *RequestLeaseRequest, opts ...grpc.CallOption) (*RequestLeaseResponse, error) - // Release Lease - ReleaseLease(ctx context.Context, in *ReleaseLeaseRequest, opts ...grpc.CallOption) (*ReleaseLeaseResponse, error) -} - -type controllerServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewControllerServiceClient(cc grpc.ClientConnInterface) ControllerServiceClient { - return &controllerServiceClient{cc} -} - -func (c *controllerServiceClient) Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(RegisterResponse) - err := c.cc.Invoke(ctx, ControllerService_Register_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *controllerServiceClient) Unregister(ctx context.Context, in *UnregisterRequest, opts ...grpc.CallOption) (*UnregisterResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(UnregisterResponse) - err := c.cc.Invoke(ctx, ControllerService_Unregister_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *controllerServiceClient) Listen(ctx context.Context, in *ListenRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ListenResponse], error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - stream, err := c.cc.NewStream(ctx, &ControllerService_ServiceDesc.Streams[0], ControllerService_Listen_FullMethodName, cOpts...) - if err != nil { - return nil, err - } - x := &grpc.GenericClientStream[ListenRequest, ListenResponse]{ClientStream: stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. -type ControllerService_ListenClient = grpc.ServerStreamingClient[ListenResponse] - -func (c *controllerServiceClient) Dial(ctx context.Context, in *DialRequest, opts ...grpc.CallOption) (*DialResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(DialResponse) - err := c.cc.Invoke(ctx, ControllerService_Dial_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *controllerServiceClient) AuditStream(ctx context.Context, opts ...grpc.CallOption) (grpc.ClientStreamingClient[AuditStreamRequest, emptypb.Empty], error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - stream, err := c.cc.NewStream(ctx, &ControllerService_ServiceDesc.Streams[1], ControllerService_AuditStream_FullMethodName, cOpts...) - if err != nil { - return nil, err - } - x := &grpc.GenericClientStream[AuditStreamRequest, emptypb.Empty]{ClientStream: stream} - return x, nil -} - -// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. -type ControllerService_AuditStreamClient = grpc.ClientStreamingClient[AuditStreamRequest, emptypb.Empty] - -func (c *controllerServiceClient) ListExporters(ctx context.Context, in *ListExportersRequest, opts ...grpc.CallOption) (*ListExportersResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(ListExportersResponse) - err := c.cc.Invoke(ctx, ControllerService_ListExporters_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *controllerServiceClient) GetExporter(ctx context.Context, in *GetExporterRequest, opts ...grpc.CallOption) (*GetExporterResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(GetExporterResponse) - err := c.cc.Invoke(ctx, ControllerService_GetExporter_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *controllerServiceClient) GetLease(ctx context.Context, in *GetLeaseRequest, opts ...grpc.CallOption) (*GetLeaseResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(GetLeaseResponse) - err := c.cc.Invoke(ctx, ControllerService_GetLease_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *controllerServiceClient) RequestLease(ctx context.Context, in *RequestLeaseRequest, opts ...grpc.CallOption) (*RequestLeaseResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(RequestLeaseResponse) - err := c.cc.Invoke(ctx, ControllerService_RequestLease_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *controllerServiceClient) ReleaseLease(ctx context.Context, in *ReleaseLeaseRequest, opts ...grpc.CallOption) (*ReleaseLeaseResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(ReleaseLeaseResponse) - err := c.cc.Invoke(ctx, ControllerService_ReleaseLease_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -// ControllerServiceServer is the server API for ControllerService service. -// All implementations must embed UnimplementedControllerServiceServer -// for forward compatibility. -// -// A service where a exporter can connect to make itself available -type ControllerServiceServer interface { - // Exporter registration - Register(context.Context, *RegisterRequest) (*RegisterResponse, error) - // Exporter disconnection - // Disconnecting with bye will invalidate any existing router tokens - // we will eventually have a mechanism to tell the router this token - // has been invalidated - Unregister(context.Context, *UnregisterRequest) (*UnregisterResponse, error) - // Exporter listening - // Returns stream tokens for accepting incoming client connections - Listen(*ListenRequest, grpc.ServerStreamingServer[ListenResponse]) error - // Client connecting - // Returns stream token for connecting to the desired exporter - // Leases are checked before token issuance - Dial(context.Context, *DialRequest) (*DialResponse, error) - // Audit events from the exporters - // audit events are used to track the exporter's activity - AuditStream(grpc.ClientStreamingServer[AuditStreamRequest, emptypb.Empty]) error - // List exporters - // Returns all exporters matching filter - ListExporters(context.Context, *ListExportersRequest) (*ListExportersResponse, error) - // Get exporter - // Get information of the exporter of the given uuid - GetExporter(context.Context, *GetExporterRequest) (*GetExporterResponse, error) - // Get Lease - GetLease(context.Context, *GetLeaseRequest) (*GetLeaseResponse, error) - // Request Lease - RequestLease(context.Context, *RequestLeaseRequest) (*RequestLeaseResponse, error) - // Release Lease - ReleaseLease(context.Context, *ReleaseLeaseRequest) (*ReleaseLeaseResponse, error) - mustEmbedUnimplementedControllerServiceServer() -} - -// UnimplementedControllerServiceServer must be embedded to have -// forward compatible implementations. -// -// NOTE: this should be embedded by value instead of pointer to avoid a nil -// pointer dereference when methods are called. -type UnimplementedControllerServiceServer struct{} - -func (UnimplementedControllerServiceServer) Register(context.Context, *RegisterRequest) (*RegisterResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Register not implemented") -} -func (UnimplementedControllerServiceServer) Unregister(context.Context, *UnregisterRequest) (*UnregisterResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Unregister not implemented") -} -func (UnimplementedControllerServiceServer) Listen(*ListenRequest, grpc.ServerStreamingServer[ListenResponse]) error { - return status.Errorf(codes.Unimplemented, "method Listen not implemented") -} -func (UnimplementedControllerServiceServer) Dial(context.Context, *DialRequest) (*DialResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Dial not implemented") -} -func (UnimplementedControllerServiceServer) AuditStream(grpc.ClientStreamingServer[AuditStreamRequest, emptypb.Empty]) error { - return status.Errorf(codes.Unimplemented, "method AuditStream not implemented") -} -func (UnimplementedControllerServiceServer) ListExporters(context.Context, *ListExportersRequest) (*ListExportersResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListExporters not implemented") -} -func (UnimplementedControllerServiceServer) GetExporter(context.Context, *GetExporterRequest) (*GetExporterResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetExporter not implemented") -} -func (UnimplementedControllerServiceServer) GetLease(context.Context, *GetLeaseRequest) (*GetLeaseResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetLease not implemented") -} -func (UnimplementedControllerServiceServer) RequestLease(context.Context, *RequestLeaseRequest) (*RequestLeaseResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RequestLease not implemented") -} -func (UnimplementedControllerServiceServer) ReleaseLease(context.Context, *ReleaseLeaseRequest) (*ReleaseLeaseResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReleaseLease not implemented") -} -func (UnimplementedControllerServiceServer) mustEmbedUnimplementedControllerServiceServer() {} -func (UnimplementedControllerServiceServer) testEmbeddedByValue() {} - -// UnsafeControllerServiceServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to ControllerServiceServer will -// result in compilation errors. -type UnsafeControllerServiceServer interface { - mustEmbedUnimplementedControllerServiceServer() -} - -func RegisterControllerServiceServer(s grpc.ServiceRegistrar, srv ControllerServiceServer) { - // If the following call pancis, it indicates UnimplementedControllerServiceServer was - // embedded by pointer and is nil. This will cause panics if an - // unimplemented method is ever invoked, so we test this at initialization - // time to prevent it from happening at runtime later due to I/O. - if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { - t.testEmbeddedByValue() - } - s.RegisterService(&ControllerService_ServiceDesc, srv) -} - -func _ControllerService_Register_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RegisterRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ControllerServiceServer).Register(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ControllerService_Register_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ControllerServiceServer).Register(ctx, req.(*RegisterRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ControllerService_Unregister_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UnregisterRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ControllerServiceServer).Unregister(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ControllerService_Unregister_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ControllerServiceServer).Unregister(ctx, req.(*UnregisterRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ControllerService_Listen_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(ListenRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(ControllerServiceServer).Listen(m, &grpc.GenericServerStream[ListenRequest, ListenResponse]{ServerStream: stream}) -} - -// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. -type ControllerService_ListenServer = grpc.ServerStreamingServer[ListenResponse] - -func _ControllerService_Dial_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DialRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ControllerServiceServer).Dial(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ControllerService_Dial_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ControllerServiceServer).Dial(ctx, req.(*DialRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ControllerService_AuditStream_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(ControllerServiceServer).AuditStream(&grpc.GenericServerStream[AuditStreamRequest, emptypb.Empty]{ServerStream: stream}) -} - -// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. -type ControllerService_AuditStreamServer = grpc.ClientStreamingServer[AuditStreamRequest, emptypb.Empty] - -func _ControllerService_ListExporters_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListExportersRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ControllerServiceServer).ListExporters(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ControllerService_ListExporters_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ControllerServiceServer).ListExporters(ctx, req.(*ListExportersRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ControllerService_GetExporter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetExporterRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ControllerServiceServer).GetExporter(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ControllerService_GetExporter_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ControllerServiceServer).GetExporter(ctx, req.(*GetExporterRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ControllerService_GetLease_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetLeaseRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ControllerServiceServer).GetLease(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ControllerService_GetLease_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ControllerServiceServer).GetLease(ctx, req.(*GetLeaseRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ControllerService_RequestLease_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RequestLeaseRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ControllerServiceServer).RequestLease(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ControllerService_RequestLease_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ControllerServiceServer).RequestLease(ctx, req.(*RequestLeaseRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ControllerService_ReleaseLease_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ReleaseLeaseRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ControllerServiceServer).ReleaseLease(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ControllerService_ReleaseLease_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ControllerServiceServer).ReleaseLease(ctx, req.(*ReleaseLeaseRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// ControllerService_ServiceDesc is the grpc.ServiceDesc for ControllerService service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var ControllerService_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "jumpstarter.v1.ControllerService", - HandlerType: (*ControllerServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Register", - Handler: _ControllerService_Register_Handler, - }, - { - MethodName: "Unregister", - Handler: _ControllerService_Unregister_Handler, - }, - { - MethodName: "Dial", - Handler: _ControllerService_Dial_Handler, - }, - { - MethodName: "ListExporters", - Handler: _ControllerService_ListExporters_Handler, - }, - { - MethodName: "GetExporter", - Handler: _ControllerService_GetExporter_Handler, - }, - { - MethodName: "GetLease", - Handler: _ControllerService_GetLease_Handler, - }, - { - MethodName: "RequestLease", - Handler: _ControllerService_RequestLease_Handler, - }, - { - MethodName: "ReleaseLease", - Handler: _ControllerService_ReleaseLease_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "Listen", - Handler: _ControllerService_Listen_Handler, - ServerStreams: true, - }, - { - StreamName: "AuditStream", - Handler: _ControllerService_AuditStream_Handler, - ClientStreams: true, - }, - }, - Metadata: "jumpstarter/v1/jumpstarter.proto", -} - -const ( - ExporterService_GetReport_FullMethodName = "/jumpstarter.v1.ExporterService/GetReport" - ExporterService_DriverCall_FullMethodName = "/jumpstarter.v1.ExporterService/DriverCall" - ExporterService_StreamingDriverCall_FullMethodName = "/jumpstarter.v1.ExporterService/StreamingDriverCall" - ExporterService_LogStream_FullMethodName = "/jumpstarter.v1.ExporterService/LogStream" -) - -// ExporterServiceClient is the client API for ExporterService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -// -// A service a exporter can share locally to be used without a server -// Channel/Call credentials are used to authenticate the client, and routing to the right exporter -type ExporterServiceClient interface { - // Exporter registration - GetReport(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetReportResponse, error) - DriverCall(ctx context.Context, in *DriverCallRequest, opts ...grpc.CallOption) (*DriverCallResponse, error) - StreamingDriverCall(ctx context.Context, in *StreamingDriverCallRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[StreamingDriverCallResponse], error) - LogStream(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (grpc.ServerStreamingClient[LogStreamResponse], error) -} - -type exporterServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewExporterServiceClient(cc grpc.ClientConnInterface) ExporterServiceClient { - return &exporterServiceClient{cc} -} - -func (c *exporterServiceClient) GetReport(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetReportResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(GetReportResponse) - err := c.cc.Invoke(ctx, ExporterService_GetReport_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *exporterServiceClient) DriverCall(ctx context.Context, in *DriverCallRequest, opts ...grpc.CallOption) (*DriverCallResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(DriverCallResponse) - err := c.cc.Invoke(ctx, ExporterService_DriverCall_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *exporterServiceClient) StreamingDriverCall(ctx context.Context, in *StreamingDriverCallRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[StreamingDriverCallResponse], error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - stream, err := c.cc.NewStream(ctx, &ExporterService_ServiceDesc.Streams[0], ExporterService_StreamingDriverCall_FullMethodName, cOpts...) - if err != nil { - return nil, err - } - x := &grpc.GenericClientStream[StreamingDriverCallRequest, StreamingDriverCallResponse]{ClientStream: stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. -type ExporterService_StreamingDriverCallClient = grpc.ServerStreamingClient[StreamingDriverCallResponse] - -func (c *exporterServiceClient) LogStream(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (grpc.ServerStreamingClient[LogStreamResponse], error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - stream, err := c.cc.NewStream(ctx, &ExporterService_ServiceDesc.Streams[1], ExporterService_LogStream_FullMethodName, cOpts...) - if err != nil { - return nil, err - } - x := &grpc.GenericClientStream[emptypb.Empty, LogStreamResponse]{ClientStream: stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. -type ExporterService_LogStreamClient = grpc.ServerStreamingClient[LogStreamResponse] - -// ExporterServiceServer is the server API for ExporterService service. -// All implementations must embed UnimplementedExporterServiceServer -// for forward compatibility. -// -// A service a exporter can share locally to be used without a server -// Channel/Call credentials are used to authenticate the client, and routing to the right exporter -type ExporterServiceServer interface { - // Exporter registration - GetReport(context.Context, *emptypb.Empty) (*GetReportResponse, error) - DriverCall(context.Context, *DriverCallRequest) (*DriverCallResponse, error) - StreamingDriverCall(*StreamingDriverCallRequest, grpc.ServerStreamingServer[StreamingDriverCallResponse]) error - LogStream(*emptypb.Empty, grpc.ServerStreamingServer[LogStreamResponse]) error - mustEmbedUnimplementedExporterServiceServer() -} - -// UnimplementedExporterServiceServer must be embedded to have -// forward compatible implementations. -// -// NOTE: this should be embedded by value instead of pointer to avoid a nil -// pointer dereference when methods are called. -type UnimplementedExporterServiceServer struct{} - -func (UnimplementedExporterServiceServer) GetReport(context.Context, *emptypb.Empty) (*GetReportResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetReport not implemented") -} -func (UnimplementedExporterServiceServer) DriverCall(context.Context, *DriverCallRequest) (*DriverCallResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DriverCall not implemented") -} -func (UnimplementedExporterServiceServer) StreamingDriverCall(*StreamingDriverCallRequest, grpc.ServerStreamingServer[StreamingDriverCallResponse]) error { - return status.Errorf(codes.Unimplemented, "method StreamingDriverCall not implemented") -} -func (UnimplementedExporterServiceServer) LogStream(*emptypb.Empty, grpc.ServerStreamingServer[LogStreamResponse]) error { - return status.Errorf(codes.Unimplemented, "method LogStream not implemented") -} -func (UnimplementedExporterServiceServer) mustEmbedUnimplementedExporterServiceServer() {} -func (UnimplementedExporterServiceServer) testEmbeddedByValue() {} - -// UnsafeExporterServiceServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to ExporterServiceServer will -// result in compilation errors. -type UnsafeExporterServiceServer interface { - mustEmbedUnimplementedExporterServiceServer() -} - -func RegisterExporterServiceServer(s grpc.ServiceRegistrar, srv ExporterServiceServer) { - // If the following call pancis, it indicates UnimplementedExporterServiceServer was - // embedded by pointer and is nil. This will cause panics if an - // unimplemented method is ever invoked, so we test this at initialization - // time to prevent it from happening at runtime later due to I/O. - if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { - t.testEmbeddedByValue() - } - s.RegisterService(&ExporterService_ServiceDesc, srv) -} - -func _ExporterService_GetReport_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(emptypb.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ExporterServiceServer).GetReport(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ExporterService_GetReport_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ExporterServiceServer).GetReport(ctx, req.(*emptypb.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _ExporterService_DriverCall_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DriverCallRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ExporterServiceServer).DriverCall(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ExporterService_DriverCall_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ExporterServiceServer).DriverCall(ctx, req.(*DriverCallRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ExporterService_StreamingDriverCall_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(StreamingDriverCallRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(ExporterServiceServer).StreamingDriverCall(m, &grpc.GenericServerStream[StreamingDriverCallRequest, StreamingDriverCallResponse]{ServerStream: stream}) -} - -// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. -type ExporterService_StreamingDriverCallServer = grpc.ServerStreamingServer[StreamingDriverCallResponse] - -func _ExporterService_LogStream_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(emptypb.Empty) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(ExporterServiceServer).LogStream(m, &grpc.GenericServerStream[emptypb.Empty, LogStreamResponse]{ServerStream: stream}) -} - -// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. -type ExporterService_LogStreamServer = grpc.ServerStreamingServer[LogStreamResponse] - -// ExporterService_ServiceDesc is the grpc.ServiceDesc for ExporterService service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var ExporterService_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "jumpstarter.v1.ExporterService", - HandlerType: (*ExporterServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "GetReport", - Handler: _ExporterService_GetReport_Handler, - }, - { - MethodName: "DriverCall", - Handler: _ExporterService_DriverCall_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "StreamingDriverCall", - Handler: _ExporterService_StreamingDriverCall_Handler, - ServerStreams: true, - }, - { - StreamName: "LogStream", - Handler: _ExporterService_LogStream_Handler, - ServerStreams: true, - }, - }, - Metadata: "jumpstarter/v1/jumpstarter.proto", -} diff --git a/go/jumpstarter/v1/kubernetes.pb.go b/go/jumpstarter/v1/kubernetes.pb.go deleted file mode 100644 index b7c229c..0000000 --- a/go/jumpstarter/v1/kubernetes.pb.go +++ /dev/null @@ -1,265 +0,0 @@ -// Copyright 2024 The Jumpstarter Authors - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.34.2 -// protoc (unknown) -// source: jumpstarter/v1/kubernetes.proto - -package jumpstarterv1 - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type LabelSelectorRequirement struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` - Values []string `protobuf:"bytes,3,rep,name=values,proto3" json:"values,omitempty"` -} - -func (x *LabelSelectorRequirement) Reset() { - *x = LabelSelectorRequirement{} - if protoimpl.UnsafeEnabled { - mi := &file_jumpstarter_v1_kubernetes_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LabelSelectorRequirement) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LabelSelectorRequirement) ProtoMessage() {} - -func (x *LabelSelectorRequirement) ProtoReflect() protoreflect.Message { - mi := &file_jumpstarter_v1_kubernetes_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LabelSelectorRequirement.ProtoReflect.Descriptor instead. -func (*LabelSelectorRequirement) Descriptor() ([]byte, []int) { - return file_jumpstarter_v1_kubernetes_proto_rawDescGZIP(), []int{0} -} - -func (x *LabelSelectorRequirement) GetKey() string { - if x != nil { - return x.Key - } - return "" -} - -func (x *LabelSelectorRequirement) GetOperator() string { - if x != nil { - return x.Operator - } - return "" -} - -func (x *LabelSelectorRequirement) GetValues() []string { - if x != nil { - return x.Values - } - return nil -} - -// Reference: https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/label-selector/ -type LabelSelector struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MatchExpressions []*LabelSelectorRequirement `protobuf:"bytes,1,rep,name=match_expressions,json=matchExpressions,proto3" json:"match_expressions,omitempty"` - MatchLabels map[string]string `protobuf:"bytes,2,rep,name=match_labels,json=matchLabels,proto3" json:"match_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *LabelSelector) Reset() { - *x = LabelSelector{} - if protoimpl.UnsafeEnabled { - mi := &file_jumpstarter_v1_kubernetes_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LabelSelector) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LabelSelector) ProtoMessage() {} - -func (x *LabelSelector) ProtoReflect() protoreflect.Message { - mi := &file_jumpstarter_v1_kubernetes_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LabelSelector.ProtoReflect.Descriptor instead. -func (*LabelSelector) Descriptor() ([]byte, []int) { - return file_jumpstarter_v1_kubernetes_proto_rawDescGZIP(), []int{1} -} - -func (x *LabelSelector) GetMatchExpressions() []*LabelSelectorRequirement { - if x != nil { - return x.MatchExpressions - } - return nil -} - -func (x *LabelSelector) GetMatchLabels() map[string]string { - if x != nil { - return x.MatchLabels - } - return nil -} - -var File_jumpstarter_v1_kubernetes_proto protoreflect.FileDescriptor - -var file_jumpstarter_v1_kubernetes_proto_rawDesc = []byte{ - 0x0a, 0x1f, 0x6a, 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x31, - 0x2f, 0x6b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x12, 0x0e, 0x6a, 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x2e, 0x76, - 0x31, 0x22, 0x60, 0x0a, 0x18, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, - 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x10, 0x0a, - 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, - 0x1a, 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x73, 0x22, 0xf9, 0x01, 0x0a, 0x0d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, - 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x55, 0x0a, 0x11, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x65, - 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x28, 0x2e, 0x6a, 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x2e, 0x76, - 0x31, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, - 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x10, 0x6d, 0x61, 0x74, 0x63, - 0x68, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x51, 0x0a, 0x0c, - 0x6d, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x6a, 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, - 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, - 0x72, 0x2e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, - 0x72, 0x79, 0x52, 0x0b, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x1a, - 0x3e, 0x0a, 0x10, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, - 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, - 0xcc, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x6a, 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, - 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x42, 0x0f, 0x4b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, - 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4c, 0x67, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6a, 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, - 0x72, 0x2d, 0x64, 0x65, 0x76, 0x2f, 0x6a, 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, - 0x72, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x6a, 0x75, 0x6d, 0x70, 0x73, - 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x3b, 0x6a, 0x75, 0x6d, 0x70, 0x73, 0x74, - 0x61, 0x72, 0x74, 0x65, 0x72, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4a, 0x58, 0x58, 0xaa, 0x02, 0x0e, - 0x4a, 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x2e, 0x56, 0x31, 0xca, 0x02, - 0x0e, 0x4a, 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x5c, 0x56, 0x31, 0xe2, - 0x02, 0x1a, 0x4a, 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x5c, 0x56, 0x31, - 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x4a, - 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_jumpstarter_v1_kubernetes_proto_rawDescOnce sync.Once - file_jumpstarter_v1_kubernetes_proto_rawDescData = file_jumpstarter_v1_kubernetes_proto_rawDesc -) - -func file_jumpstarter_v1_kubernetes_proto_rawDescGZIP() []byte { - file_jumpstarter_v1_kubernetes_proto_rawDescOnce.Do(func() { - file_jumpstarter_v1_kubernetes_proto_rawDescData = protoimpl.X.CompressGZIP(file_jumpstarter_v1_kubernetes_proto_rawDescData) - }) - return file_jumpstarter_v1_kubernetes_proto_rawDescData -} - -var file_jumpstarter_v1_kubernetes_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_jumpstarter_v1_kubernetes_proto_goTypes = []any{ - (*LabelSelectorRequirement)(nil), // 0: jumpstarter.v1.LabelSelectorRequirement - (*LabelSelector)(nil), // 1: jumpstarter.v1.LabelSelector - nil, // 2: jumpstarter.v1.LabelSelector.MatchLabelsEntry -} -var file_jumpstarter_v1_kubernetes_proto_depIdxs = []int32{ - 0, // 0: jumpstarter.v1.LabelSelector.match_expressions:type_name -> jumpstarter.v1.LabelSelectorRequirement - 2, // 1: jumpstarter.v1.LabelSelector.match_labels:type_name -> jumpstarter.v1.LabelSelector.MatchLabelsEntry - 2, // [2:2] is the sub-list for method output_type - 2, // [2:2] is the sub-list for method input_type - 2, // [2:2] is the sub-list for extension type_name - 2, // [2:2] is the sub-list for extension extendee - 0, // [0:2] is the sub-list for field type_name -} - -func init() { file_jumpstarter_v1_kubernetes_proto_init() } -func file_jumpstarter_v1_kubernetes_proto_init() { - if File_jumpstarter_v1_kubernetes_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_jumpstarter_v1_kubernetes_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*LabelSelectorRequirement); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_jumpstarter_v1_kubernetes_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*LabelSelector); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_jumpstarter_v1_kubernetes_proto_rawDesc, - NumEnums: 0, - NumMessages: 3, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_jumpstarter_v1_kubernetes_proto_goTypes, - DependencyIndexes: file_jumpstarter_v1_kubernetes_proto_depIdxs, - MessageInfos: file_jumpstarter_v1_kubernetes_proto_msgTypes, - }.Build() - File_jumpstarter_v1_kubernetes_proto = out.File - file_jumpstarter_v1_kubernetes_proto_rawDesc = nil - file_jumpstarter_v1_kubernetes_proto_goTypes = nil - file_jumpstarter_v1_kubernetes_proto_depIdxs = nil -} diff --git a/go/jumpstarter/v1/router.pb.go b/go/jumpstarter/v1/router.pb.go deleted file mode 100644 index 0cc8e05..0000000 --- a/go/jumpstarter/v1/router.pb.go +++ /dev/null @@ -1,315 +0,0 @@ -// Copyright 2024 The Jumpstarter Authors - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.34.2 -// protoc (unknown) -// source: jumpstarter/v1/router.proto - -package jumpstarterv1 - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type FrameType int32 - -const ( - FrameType_FRAME_TYPE_DATA FrameType = 0 - FrameType_FRAME_TYPE_RST_STREAM FrameType = 3 - FrameType_FRAME_TYPE_PING FrameType = 6 - FrameType_FRAME_TYPE_GOAWAY FrameType = 7 -) - -// Enum value maps for FrameType. -var ( - FrameType_name = map[int32]string{ - 0: "FRAME_TYPE_DATA", - 3: "FRAME_TYPE_RST_STREAM", - 6: "FRAME_TYPE_PING", - 7: "FRAME_TYPE_GOAWAY", - } - FrameType_value = map[string]int32{ - "FRAME_TYPE_DATA": 0, - "FRAME_TYPE_RST_STREAM": 3, - "FRAME_TYPE_PING": 6, - "FRAME_TYPE_GOAWAY": 7, - } -) - -func (x FrameType) Enum() *FrameType { - p := new(FrameType) - *p = x - return p -} - -func (x FrameType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (FrameType) Descriptor() protoreflect.EnumDescriptor { - return file_jumpstarter_v1_router_proto_enumTypes[0].Descriptor() -} - -func (FrameType) Type() protoreflect.EnumType { - return &file_jumpstarter_v1_router_proto_enumTypes[0] -} - -func (x FrameType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use FrameType.Descriptor instead. -func (FrameType) EnumDescriptor() ([]byte, []int) { - return file_jumpstarter_v1_router_proto_rawDescGZIP(), []int{0} -} - -type StreamRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` - FrameType FrameType `protobuf:"varint,2,opt,name=frame_type,json=frameType,proto3,enum=jumpstarter.v1.FrameType" json:"frame_type,omitempty"` -} - -func (x *StreamRequest) Reset() { - *x = StreamRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_jumpstarter_v1_router_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StreamRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StreamRequest) ProtoMessage() {} - -func (x *StreamRequest) ProtoReflect() protoreflect.Message { - mi := &file_jumpstarter_v1_router_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StreamRequest.ProtoReflect.Descriptor instead. -func (*StreamRequest) Descriptor() ([]byte, []int) { - return file_jumpstarter_v1_router_proto_rawDescGZIP(), []int{0} -} - -func (x *StreamRequest) GetPayload() []byte { - if x != nil { - return x.Payload - } - return nil -} - -func (x *StreamRequest) GetFrameType() FrameType { - if x != nil { - return x.FrameType - } - return FrameType_FRAME_TYPE_DATA -} - -type StreamResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` - FrameType FrameType `protobuf:"varint,2,opt,name=frame_type,json=frameType,proto3,enum=jumpstarter.v1.FrameType" json:"frame_type,omitempty"` -} - -func (x *StreamResponse) Reset() { - *x = StreamResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_jumpstarter_v1_router_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StreamResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StreamResponse) ProtoMessage() {} - -func (x *StreamResponse) ProtoReflect() protoreflect.Message { - mi := &file_jumpstarter_v1_router_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StreamResponse.ProtoReflect.Descriptor instead. -func (*StreamResponse) Descriptor() ([]byte, []int) { - return file_jumpstarter_v1_router_proto_rawDescGZIP(), []int{1} -} - -func (x *StreamResponse) GetPayload() []byte { - if x != nil { - return x.Payload - } - return nil -} - -func (x *StreamResponse) GetFrameType() FrameType { - if x != nil { - return x.FrameType - } - return FrameType_FRAME_TYPE_DATA -} - -var File_jumpstarter_v1_router_proto protoreflect.FileDescriptor - -var file_jumpstarter_v1_router_proto_rawDesc = []byte{ - 0x0a, 0x1b, 0x6a, 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x31, - 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x6a, - 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x22, 0x63, 0x0a, - 0x0d, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, - 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, - 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x38, 0x0a, 0x0a, 0x66, 0x72, 0x61, 0x6d, - 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x6a, - 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x72, - 0x61, 0x6d, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x54, 0x79, - 0x70, 0x65, 0x22, 0x64, 0x0a, 0x0e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x38, - 0x0a, 0x0a, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x6a, 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, - 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x66, - 0x72, 0x61, 0x6d, 0x65, 0x54, 0x79, 0x70, 0x65, 0x2a, 0x67, 0x0a, 0x09, 0x46, 0x72, 0x61, 0x6d, - 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x13, 0x0a, 0x0f, 0x46, 0x52, 0x41, 0x4d, 0x45, 0x5f, 0x54, - 0x59, 0x50, 0x45, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x46, 0x52, - 0x41, 0x4d, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, 0x53, 0x54, 0x5f, 0x53, 0x54, 0x52, - 0x45, 0x41, 0x4d, 0x10, 0x03, 0x12, 0x13, 0x0a, 0x0f, 0x46, 0x52, 0x41, 0x4d, 0x45, 0x5f, 0x54, - 0x59, 0x50, 0x45, 0x5f, 0x50, 0x49, 0x4e, 0x47, 0x10, 0x06, 0x12, 0x15, 0x0a, 0x11, 0x46, 0x52, - 0x41, 0x4d, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x47, 0x4f, 0x41, 0x57, 0x41, 0x59, 0x10, - 0x07, 0x32, 0x5c, 0x0a, 0x0d, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x12, 0x4b, 0x0a, 0x06, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x1d, 0x2e, 0x6a, - 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, - 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x6a, 0x75, - 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, - 0x65, 0x61, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x28, 0x01, 0x30, 0x01, 0x42, - 0xc8, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x6a, 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, - 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x50, 0x72, - 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x6a, 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x2d, 0x64, 0x65, - 0x76, 0x2f, 0x6a, 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x2d, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x6a, 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, - 0x65, 0x72, 0x2f, 0x76, 0x31, 0x3b, 0x6a, 0x75, 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, - 0x72, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4a, 0x58, 0x58, 0xaa, 0x02, 0x0e, 0x4a, 0x75, 0x6d, 0x70, - 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0e, 0x4a, 0x75, 0x6d, - 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1a, 0x4a, 0x75, - 0x6d, 0x70, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x4a, 0x75, 0x6d, 0x70, 0x73, - 0x74, 0x61, 0x72, 0x74, 0x65, 0x72, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, -} - -var ( - file_jumpstarter_v1_router_proto_rawDescOnce sync.Once - file_jumpstarter_v1_router_proto_rawDescData = file_jumpstarter_v1_router_proto_rawDesc -) - -func file_jumpstarter_v1_router_proto_rawDescGZIP() []byte { - file_jumpstarter_v1_router_proto_rawDescOnce.Do(func() { - file_jumpstarter_v1_router_proto_rawDescData = protoimpl.X.CompressGZIP(file_jumpstarter_v1_router_proto_rawDescData) - }) - return file_jumpstarter_v1_router_proto_rawDescData -} - -var file_jumpstarter_v1_router_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_jumpstarter_v1_router_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_jumpstarter_v1_router_proto_goTypes = []any{ - (FrameType)(0), // 0: jumpstarter.v1.FrameType - (*StreamRequest)(nil), // 1: jumpstarter.v1.StreamRequest - (*StreamResponse)(nil), // 2: jumpstarter.v1.StreamResponse -} -var file_jumpstarter_v1_router_proto_depIdxs = []int32{ - 0, // 0: jumpstarter.v1.StreamRequest.frame_type:type_name -> jumpstarter.v1.FrameType - 0, // 1: jumpstarter.v1.StreamResponse.frame_type:type_name -> jumpstarter.v1.FrameType - 1, // 2: jumpstarter.v1.RouterService.Stream:input_type -> jumpstarter.v1.StreamRequest - 2, // 3: jumpstarter.v1.RouterService.Stream:output_type -> jumpstarter.v1.StreamResponse - 3, // [3:4] is the sub-list for method output_type - 2, // [2:3] is the sub-list for method input_type - 2, // [2:2] is the sub-list for extension type_name - 2, // [2:2] is the sub-list for extension extendee - 0, // [0:2] is the sub-list for field type_name -} - -func init() { file_jumpstarter_v1_router_proto_init() } -func file_jumpstarter_v1_router_proto_init() { - if File_jumpstarter_v1_router_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_jumpstarter_v1_router_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*StreamRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_jumpstarter_v1_router_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*StreamResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_jumpstarter_v1_router_proto_rawDesc, - NumEnums: 1, - NumMessages: 2, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_jumpstarter_v1_router_proto_goTypes, - DependencyIndexes: file_jumpstarter_v1_router_proto_depIdxs, - EnumInfos: file_jumpstarter_v1_router_proto_enumTypes, - MessageInfos: file_jumpstarter_v1_router_proto_msgTypes, - }.Build() - File_jumpstarter_v1_router_proto = out.File - file_jumpstarter_v1_router_proto_rawDesc = nil - file_jumpstarter_v1_router_proto_goTypes = nil - file_jumpstarter_v1_router_proto_depIdxs = nil -} diff --git a/go/jumpstarter/v1/router_grpc.pb.go b/go/jumpstarter/v1/router_grpc.pb.go deleted file mode 100644 index 3bc8ee3..0000000 --- a/go/jumpstarter/v1/router_grpc.pb.go +++ /dev/null @@ -1,133 +0,0 @@ -// Copyright 2024 The Jumpstarter Authors - -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.5.1 -// - protoc (unknown) -// source: jumpstarter/v1/router.proto - -package jumpstarterv1 - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.64.0 or later. -const _ = grpc.SupportPackageIsVersion9 - -const ( - RouterService_Stream_FullMethodName = "/jumpstarter.v1.RouterService/Stream" -) - -// RouterServiceClient is the client API for RouterService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -// -// StreamService -// Claims: -// iss: jumpstarter controller -// aud: jumpstarter router -// sub: jumpstarter client/exporter -// stream: stream id -type RouterServiceClient interface { - // Stream connects caller to another caller of the same stream - Stream(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[StreamRequest, StreamResponse], error) -} - -type routerServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewRouterServiceClient(cc grpc.ClientConnInterface) RouterServiceClient { - return &routerServiceClient{cc} -} - -func (c *routerServiceClient) Stream(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[StreamRequest, StreamResponse], error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - stream, err := c.cc.NewStream(ctx, &RouterService_ServiceDesc.Streams[0], RouterService_Stream_FullMethodName, cOpts...) - if err != nil { - return nil, err - } - x := &grpc.GenericClientStream[StreamRequest, StreamResponse]{ClientStream: stream} - return x, nil -} - -// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. -type RouterService_StreamClient = grpc.BidiStreamingClient[StreamRequest, StreamResponse] - -// RouterServiceServer is the server API for RouterService service. -// All implementations must embed UnimplementedRouterServiceServer -// for forward compatibility. -// -// StreamService -// Claims: -// iss: jumpstarter controller -// aud: jumpstarter router -// sub: jumpstarter client/exporter -// stream: stream id -type RouterServiceServer interface { - // Stream connects caller to another caller of the same stream - Stream(grpc.BidiStreamingServer[StreamRequest, StreamResponse]) error - mustEmbedUnimplementedRouterServiceServer() -} - -// UnimplementedRouterServiceServer must be embedded to have -// forward compatible implementations. -// -// NOTE: this should be embedded by value instead of pointer to avoid a nil -// pointer dereference when methods are called. -type UnimplementedRouterServiceServer struct{} - -func (UnimplementedRouterServiceServer) Stream(grpc.BidiStreamingServer[StreamRequest, StreamResponse]) error { - return status.Errorf(codes.Unimplemented, "method Stream not implemented") -} -func (UnimplementedRouterServiceServer) mustEmbedUnimplementedRouterServiceServer() {} -func (UnimplementedRouterServiceServer) testEmbeddedByValue() {} - -// UnsafeRouterServiceServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to RouterServiceServer will -// result in compilation errors. -type UnsafeRouterServiceServer interface { - mustEmbedUnimplementedRouterServiceServer() -} - -func RegisterRouterServiceServer(s grpc.ServiceRegistrar, srv RouterServiceServer) { - // If the following call pancis, it indicates UnimplementedRouterServiceServer was - // embedded by pointer and is nil. This will cause panics if an - // unimplemented method is ever invoked, so we test this at initialization - // time to prevent it from happening at runtime later due to I/O. - if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { - t.testEmbeddedByValue() - } - s.RegisterService(&RouterService_ServiceDesc, srv) -} - -func _RouterService_Stream_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(RouterServiceServer).Stream(&grpc.GenericServerStream[StreamRequest, StreamResponse]{ServerStream: stream}) -} - -// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. -type RouterService_StreamServer = grpc.BidiStreamingServer[StreamRequest, StreamResponse] - -// RouterService_ServiceDesc is the grpc.ServiceDesc for RouterService service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var RouterService_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "jumpstarter.v1.RouterService", - HandlerType: (*RouterServiceServer)(nil), - Methods: []grpc.MethodDesc{}, - Streams: []grpc.StreamDesc{ - { - StreamName: "Stream", - Handler: _RouterService_Stream_Handler, - ServerStreams: true, - ClientStreams: true, - }, - }, - Metadata: "jumpstarter/v1/router.proto", -} diff --git a/python/.gitignore b/python/.gitignore deleted file mode 100644 index 99db09d..0000000 --- a/python/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -*.pyc - -/dist/* diff --git a/python/README.md b/python/README.md deleted file mode 100644 index e69de29..0000000 diff --git a/python/jumpstarter/v1/jumpstarter_pb2.py b/python/jumpstarter/v1/jumpstarter_pb2.py deleted file mode 100644 index db075c3..0000000 --- a/python/jumpstarter/v1/jumpstarter_pb2.py +++ /dev/null @@ -1,112 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: jumpstarter/v1/jumpstarter.proto -# Protobuf Python Version: 5.27.3 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 3, - '', - 'jumpstarter/v1/jumpstarter.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 -from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 -from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 -from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -from jumpstarter.v1 import kubernetes_pb2 as jumpstarter_dot_v1_dot_kubernetes__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n jumpstarter/v1/jumpstarter.proto\x12\x0ejumpstarter.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1fjumpstarter/v1/kubernetes.proto\"\xd1\x01\n\x0fRegisterRequest\x12\x43\n\x06labels\x18\x01 \x03(\x0b\x32+.jumpstarter.v1.RegisterRequest.LabelsEntryR\x06labels\x12>\n\x07reports\x18\x02 \x03(\x0b\x32$.jumpstarter.v1.DriverInstanceReportR\x07reports\x1a\x39\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\xe5\x01\n\x14\x44riverInstanceReport\x12\x12\n\x04uuid\x18\x01 \x01(\tR\x04uuid\x12$\n\x0bparent_uuid\x18\x02 \x01(\tH\x00R\nparentUuid\x88\x01\x01\x12H\n\x06labels\x18\x03 \x03(\x0b\x32\x30.jumpstarter.v1.DriverInstanceReport.LabelsEntryR\x06labels\x1a\x39\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\x0e\n\x0c_parent_uuid\"&\n\x10RegisterResponse\x12\x12\n\x04uuid\x18\x01 \x01(\tR\x04uuid\"+\n\x11UnregisterRequest\x12\x16\n\x06reason\x18\x02 \x01(\tR\x06reason\"\x14\n\x12UnregisterResponse\"\x0f\n\rListenRequest\"\\\n\x0eListenResponse\x12\'\n\x0frouter_endpoint\x18\x01 \x01(\tR\x0erouterEndpoint\x12!\n\x0crouter_token\x18\x02 \x01(\tR\x0brouterToken\"!\n\x0b\x44ialRequest\x12\x12\n\x04uuid\x18\x01 \x01(\tR\x04uuid\"Z\n\x0c\x44ialResponse\x12\'\n\x0frouter_endpoint\x18\x01 \x01(\tR\x0erouterEndpoint\x12!\n\x0crouter_token\x18\x02 \x01(\tR\x0brouterToken\"\xa1\x01\n\x12\x41uditStreamRequest\x12#\n\rexporter_uuid\x18\x01 \x01(\tR\x0c\x65xporterUuid\x12\x30\n\x14\x64river_instance_uuid\x18\x02 \x01(\tR\x12\x64riverInstanceUuid\x12\x1a\n\x08severity\x18\x03 \x01(\tR\x08severity\x12\x18\n\x07message\x18\x04 \x01(\tR\x07message\"\xe9\x01\n\x11GetReportResponse\x12\x12\n\x04uuid\x18\x01 \x01(\tR\x04uuid\x12\x45\n\x06labels\x18\x02 \x03(\x0b\x32-.jumpstarter.v1.GetReportResponse.LabelsEntryR\x06labels\x12>\n\x07reports\x18\x03 \x03(\x0b\x32$.jumpstarter.v1.DriverInstanceReportR\x07reports\x1a\x39\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"k\n\x11\x44riverCallRequest\x12\x12\n\x04uuid\x18\x01 \x01(\tR\x04uuid\x12\x16\n\x06method\x18\x02 \x01(\tR\x06method\x12*\n\x04\x61rgs\x18\x03 \x03(\x0b\x32\x16.google.protobuf.ValueR\x04\x61rgs\"X\n\x12\x44riverCallResponse\x12\x12\n\x04uuid\x18\x01 \x01(\tR\x04uuid\x12.\n\x06result\x18\x02 \x01(\x0b\x32\x16.google.protobuf.ValueR\x06result\"t\n\x1aStreamingDriverCallRequest\x12\x12\n\x04uuid\x18\x01 \x01(\tR\x04uuid\x12\x16\n\x06method\x18\x02 \x01(\tR\x06method\x12*\n\x04\x61rgs\x18\x03 \x03(\x0b\x32\x16.google.protobuf.ValueR\x04\x61rgs\"a\n\x1bStreamingDriverCallResponse\x12\x12\n\x04uuid\x18\x01 \x01(\tR\x04uuid\x12.\n\x06result\x18\x02 \x01(\x0b\x32\x16.google.protobuf.ValueR\x06result\"]\n\x11LogStreamResponse\x12\x12\n\x04uuid\x18\x01 \x01(\tR\x04uuid\x12\x1a\n\x08severity\x18\x02 \x01(\tR\x08severity\x12\x18\n\x07message\x18\x03 \x01(\tR\x07message\"\x9b\x01\n\x14ListExportersRequest\x12H\n\x06labels\x18\x01 \x03(\x0b\x32\x30.jumpstarter.v1.ListExportersRequest.LabelsEntryR\x06labels\x1a\x39\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"X\n\x15ListExportersResponse\x12?\n\texporters\x18\x01 \x03(\x0b\x32!.jumpstarter.v1.GetReportResponseR\texporters\"(\n\x12GetExporterRequest\x12\x12\n\x04uuid\x18\x01 \x01(\tR\x04uuid\"T\n\x13GetExporterResponse\x12=\n\x08\x65xporter\x18\x01 \x01(\x0b\x32!.jumpstarter.v1.GetReportResponseR\x08\x65xporter\"%\n\x0fGetLeaseRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\"\xd8\x02\n\x10GetLeaseResponse\x12\x35\n\x08\x64uration\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationR\x08\x64uration\x12\x39\n\x08selector\x18\x02 \x01(\x0b\x32\x1d.jumpstarter.v1.LabelSelectorR\x08selector\x12>\n\nbegin_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00R\tbeginTime\x88\x01\x01\x12:\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x01R\x07\x65ndTime\x88\x01\x01\x12(\n\rexporter_uuid\x18\x05 \x01(\tH\x02R\x0c\x65xporterUuid\x88\x01\x01\x42\r\n\x0b_begin_timeB\x0b\n\t_end_timeB\x10\n\x0e_exporter_uuid\"\x87\x01\n\x13RequestLeaseRequest\x12\x35\n\x08\x64uration\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationR\x08\x64uration\x12\x39\n\x08selector\x18\x02 \x01(\x0b\x32\x1d.jumpstarter.v1.LabelSelectorR\x08selector\"*\n\x14RequestLeaseResponse\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\")\n\x13ReleaseLeaseRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\"\x16\n\x14ReleaseLeaseResponse2\xcd\x06\n\x11\x43ontrollerService\x12M\n\x08Register\x12\x1f.jumpstarter.v1.RegisterRequest\x1a .jumpstarter.v1.RegisterResponse\x12S\n\nUnregister\x12!.jumpstarter.v1.UnregisterRequest\x1a\".jumpstarter.v1.UnregisterResponse\x12I\n\x06Listen\x12\x1d.jumpstarter.v1.ListenRequest\x1a\x1e.jumpstarter.v1.ListenResponse0\x01\x12\x41\n\x04\x44ial\x12\x1b.jumpstarter.v1.DialRequest\x1a\x1c.jumpstarter.v1.DialResponse\x12K\n\x0b\x41uditStream\x12\".jumpstarter.v1.AuditStreamRequest\x1a\x16.google.protobuf.Empty(\x01\x12\\\n\rListExporters\x12$.jumpstarter.v1.ListExportersRequest\x1a%.jumpstarter.v1.ListExportersResponse\x12V\n\x0bGetExporter\x12\".jumpstarter.v1.GetExporterRequest\x1a#.jumpstarter.v1.GetExporterResponse\x12M\n\x08GetLease\x12\x1f.jumpstarter.v1.GetLeaseRequest\x1a .jumpstarter.v1.GetLeaseResponse\x12Y\n\x0cRequestLease\x12#.jumpstarter.v1.RequestLeaseRequest\x1a$.jumpstarter.v1.RequestLeaseResponse\x12Y\n\x0cReleaseLease\x12#.jumpstarter.v1.ReleaseLeaseRequest\x1a$.jumpstarter.v1.ReleaseLeaseResponse2\xea\x02\n\x0f\x45xporterService\x12\x46\n\tGetReport\x12\x16.google.protobuf.Empty\x1a!.jumpstarter.v1.GetReportResponse\x12S\n\nDriverCall\x12!.jumpstarter.v1.DriverCallRequest\x1a\".jumpstarter.v1.DriverCallResponse\x12p\n\x13StreamingDriverCall\x12*.jumpstarter.v1.StreamingDriverCallRequest\x1a+.jumpstarter.v1.StreamingDriverCallResponse0\x01\x12H\n\tLogStream\x12\x16.google.protobuf.Empty\x1a!.jumpstarter.v1.LogStreamResponse0\x01\x42\xcd\x01\n\x12\x63om.jumpstarter.v1B\x10JumpstarterProtoP\x01ZLgithub.com/jumpstarter-dev/jumpstarter-protocol/jumpstarter/v1;jumpstarterv1\xa2\x02\x03JXX\xaa\x02\x0eJumpstarter.V1\xca\x02\x0eJumpstarter\\V1\xe2\x02\x1aJumpstarter\\V1\\GPBMetadata\xea\x02\x0fJumpstarter::V1b\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'jumpstarter.v1.jumpstarter_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\022com.jumpstarter.v1B\020JumpstarterProtoP\001ZLgithub.com/jumpstarter-dev/jumpstarter-protocol/jumpstarter/v1;jumpstarterv1\242\002\003JXX\252\002\016Jumpstarter.V1\312\002\016Jumpstarter\\V1\342\002\032Jumpstarter\\V1\\GPBMetadata\352\002\017Jumpstarter::V1' - _globals['_REGISTERREQUEST_LABELSENTRY']._loaded_options = None - _globals['_REGISTERREQUEST_LABELSENTRY']._serialized_options = b'8\001' - _globals['_DRIVERINSTANCEREPORT_LABELSENTRY']._loaded_options = None - _globals['_DRIVERINSTANCEREPORT_LABELSENTRY']._serialized_options = b'8\001' - _globals['_GETREPORTRESPONSE_LABELSENTRY']._loaded_options = None - _globals['_GETREPORTRESPONSE_LABELSENTRY']._serialized_options = b'8\001' - _globals['_LISTEXPORTERSREQUEST_LABELSENTRY']._loaded_options = None - _globals['_LISTEXPORTERSREQUEST_LABELSENTRY']._serialized_options = b'8\001' - _globals['_REGISTERREQUEST']._serialized_start=210 - _globals['_REGISTERREQUEST']._serialized_end=419 - _globals['_REGISTERREQUEST_LABELSENTRY']._serialized_start=362 - _globals['_REGISTERREQUEST_LABELSENTRY']._serialized_end=419 - _globals['_DRIVERINSTANCEREPORT']._serialized_start=422 - _globals['_DRIVERINSTANCEREPORT']._serialized_end=651 - _globals['_DRIVERINSTANCEREPORT_LABELSENTRY']._serialized_start=362 - _globals['_DRIVERINSTANCEREPORT_LABELSENTRY']._serialized_end=419 - _globals['_REGISTERRESPONSE']._serialized_start=653 - _globals['_REGISTERRESPONSE']._serialized_end=691 - _globals['_UNREGISTERREQUEST']._serialized_start=693 - _globals['_UNREGISTERREQUEST']._serialized_end=736 - _globals['_UNREGISTERRESPONSE']._serialized_start=738 - _globals['_UNREGISTERRESPONSE']._serialized_end=758 - _globals['_LISTENREQUEST']._serialized_start=760 - _globals['_LISTENREQUEST']._serialized_end=775 - _globals['_LISTENRESPONSE']._serialized_start=777 - _globals['_LISTENRESPONSE']._serialized_end=869 - _globals['_DIALREQUEST']._serialized_start=871 - _globals['_DIALREQUEST']._serialized_end=904 - _globals['_DIALRESPONSE']._serialized_start=906 - _globals['_DIALRESPONSE']._serialized_end=996 - _globals['_AUDITSTREAMREQUEST']._serialized_start=999 - _globals['_AUDITSTREAMREQUEST']._serialized_end=1160 - _globals['_GETREPORTRESPONSE']._serialized_start=1163 - _globals['_GETREPORTRESPONSE']._serialized_end=1396 - _globals['_GETREPORTRESPONSE_LABELSENTRY']._serialized_start=362 - _globals['_GETREPORTRESPONSE_LABELSENTRY']._serialized_end=419 - _globals['_DRIVERCALLREQUEST']._serialized_start=1398 - _globals['_DRIVERCALLREQUEST']._serialized_end=1505 - _globals['_DRIVERCALLRESPONSE']._serialized_start=1507 - _globals['_DRIVERCALLRESPONSE']._serialized_end=1595 - _globals['_STREAMINGDRIVERCALLREQUEST']._serialized_start=1597 - _globals['_STREAMINGDRIVERCALLREQUEST']._serialized_end=1713 - _globals['_STREAMINGDRIVERCALLRESPONSE']._serialized_start=1715 - _globals['_STREAMINGDRIVERCALLRESPONSE']._serialized_end=1812 - _globals['_LOGSTREAMRESPONSE']._serialized_start=1814 - _globals['_LOGSTREAMRESPONSE']._serialized_end=1907 - _globals['_LISTEXPORTERSREQUEST']._serialized_start=1910 - _globals['_LISTEXPORTERSREQUEST']._serialized_end=2065 - _globals['_LISTEXPORTERSREQUEST_LABELSENTRY']._serialized_start=362 - _globals['_LISTEXPORTERSREQUEST_LABELSENTRY']._serialized_end=419 - _globals['_LISTEXPORTERSRESPONSE']._serialized_start=2067 - _globals['_LISTEXPORTERSRESPONSE']._serialized_end=2155 - _globals['_GETEXPORTERREQUEST']._serialized_start=2157 - _globals['_GETEXPORTERREQUEST']._serialized_end=2197 - _globals['_GETEXPORTERRESPONSE']._serialized_start=2199 - _globals['_GETEXPORTERRESPONSE']._serialized_end=2283 - _globals['_GETLEASEREQUEST']._serialized_start=2285 - _globals['_GETLEASEREQUEST']._serialized_end=2322 - _globals['_GETLEASERESPONSE']._serialized_start=2325 - _globals['_GETLEASERESPONSE']._serialized_end=2669 - _globals['_REQUESTLEASEREQUEST']._serialized_start=2672 - _globals['_REQUESTLEASEREQUEST']._serialized_end=2807 - _globals['_REQUESTLEASERESPONSE']._serialized_start=2809 - _globals['_REQUESTLEASERESPONSE']._serialized_end=2851 - _globals['_RELEASELEASEREQUEST']._serialized_start=2853 - _globals['_RELEASELEASEREQUEST']._serialized_end=2894 - _globals['_RELEASELEASERESPONSE']._serialized_start=2896 - _globals['_RELEASELEASERESPONSE']._serialized_end=2918 - _globals['_CONTROLLERSERVICE']._serialized_start=2921 - _globals['_CONTROLLERSERVICE']._serialized_end=3766 - _globals['_EXPORTERSERVICE']._serialized_start=3769 - _globals['_EXPORTERSERVICE']._serialized_end=4131 -# @@protoc_insertion_point(module_scope) diff --git a/python/jumpstarter/v1/jumpstarter_pb2_grpc.py b/python/jumpstarter/v1/jumpstarter_pb2_grpc.py deleted file mode 100644 index adde45e..0000000 --- a/python/jumpstarter/v1/jumpstarter_pb2_grpc.py +++ /dev/null @@ -1,695 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - -from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 -from jumpstarter.v1 import jumpstarter_pb2 as jumpstarter_dot_v1_dot_jumpstarter__pb2 - - -class ControllerServiceStub(object): - """A service where a exporter can connect to make itself available - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.Register = channel.unary_unary( - '/jumpstarter.v1.ControllerService/Register', - request_serializer=jumpstarter_dot_v1_dot_jumpstarter__pb2.RegisterRequest.SerializeToString, - response_deserializer=jumpstarter_dot_v1_dot_jumpstarter__pb2.RegisterResponse.FromString, - _registered_method=True) - self.Unregister = channel.unary_unary( - '/jumpstarter.v1.ControllerService/Unregister', - request_serializer=jumpstarter_dot_v1_dot_jumpstarter__pb2.UnregisterRequest.SerializeToString, - response_deserializer=jumpstarter_dot_v1_dot_jumpstarter__pb2.UnregisterResponse.FromString, - _registered_method=True) - self.Listen = channel.unary_stream( - '/jumpstarter.v1.ControllerService/Listen', - request_serializer=jumpstarter_dot_v1_dot_jumpstarter__pb2.ListenRequest.SerializeToString, - response_deserializer=jumpstarter_dot_v1_dot_jumpstarter__pb2.ListenResponse.FromString, - _registered_method=True) - self.Dial = channel.unary_unary( - '/jumpstarter.v1.ControllerService/Dial', - request_serializer=jumpstarter_dot_v1_dot_jumpstarter__pb2.DialRequest.SerializeToString, - response_deserializer=jumpstarter_dot_v1_dot_jumpstarter__pb2.DialResponse.FromString, - _registered_method=True) - self.AuditStream = channel.stream_unary( - '/jumpstarter.v1.ControllerService/AuditStream', - request_serializer=jumpstarter_dot_v1_dot_jumpstarter__pb2.AuditStreamRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - _registered_method=True) - self.ListExporters = channel.unary_unary( - '/jumpstarter.v1.ControllerService/ListExporters', - request_serializer=jumpstarter_dot_v1_dot_jumpstarter__pb2.ListExportersRequest.SerializeToString, - response_deserializer=jumpstarter_dot_v1_dot_jumpstarter__pb2.ListExportersResponse.FromString, - _registered_method=True) - self.GetExporter = channel.unary_unary( - '/jumpstarter.v1.ControllerService/GetExporter', - request_serializer=jumpstarter_dot_v1_dot_jumpstarter__pb2.GetExporterRequest.SerializeToString, - response_deserializer=jumpstarter_dot_v1_dot_jumpstarter__pb2.GetExporterResponse.FromString, - _registered_method=True) - self.GetLease = channel.unary_unary( - '/jumpstarter.v1.ControllerService/GetLease', - request_serializer=jumpstarter_dot_v1_dot_jumpstarter__pb2.GetLeaseRequest.SerializeToString, - response_deserializer=jumpstarter_dot_v1_dot_jumpstarter__pb2.GetLeaseResponse.FromString, - _registered_method=True) - self.RequestLease = channel.unary_unary( - '/jumpstarter.v1.ControllerService/RequestLease', - request_serializer=jumpstarter_dot_v1_dot_jumpstarter__pb2.RequestLeaseRequest.SerializeToString, - response_deserializer=jumpstarter_dot_v1_dot_jumpstarter__pb2.RequestLeaseResponse.FromString, - _registered_method=True) - self.ReleaseLease = channel.unary_unary( - '/jumpstarter.v1.ControllerService/ReleaseLease', - request_serializer=jumpstarter_dot_v1_dot_jumpstarter__pb2.ReleaseLeaseRequest.SerializeToString, - response_deserializer=jumpstarter_dot_v1_dot_jumpstarter__pb2.ReleaseLeaseResponse.FromString, - _registered_method=True) - - -class ControllerServiceServicer(object): - """A service where a exporter can connect to make itself available - """ - - def Register(self, request, context): - """Exporter registration - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Unregister(self, request, context): - """Exporter disconnection - Disconnecting with bye will invalidate any existing router tokens - we will eventually have a mechanism to tell the router this token - has been invalidated - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Listen(self, request, context): - """Exporter listening - Returns stream tokens for accepting incoming client connections - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Dial(self, request, context): - """Client connecting - Returns stream token for connecting to the desired exporter - Leases are checked before token issuance - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def AuditStream(self, request_iterator, context): - """Audit events from the exporters - audit events are used to track the exporter's activity - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ListExporters(self, request, context): - """List exporters - Returns all exporters matching filter - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetExporter(self, request, context): - """Get exporter - Get information of the exporter of the given uuid - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetLease(self, request, context): - """Get Lease - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def RequestLease(self, request, context): - """Request Lease - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ReleaseLease(self, request, context): - """Release Lease - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_ControllerServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'Register': grpc.unary_unary_rpc_method_handler( - servicer.Register, - request_deserializer=jumpstarter_dot_v1_dot_jumpstarter__pb2.RegisterRequest.FromString, - response_serializer=jumpstarter_dot_v1_dot_jumpstarter__pb2.RegisterResponse.SerializeToString, - ), - 'Unregister': grpc.unary_unary_rpc_method_handler( - servicer.Unregister, - request_deserializer=jumpstarter_dot_v1_dot_jumpstarter__pb2.UnregisterRequest.FromString, - response_serializer=jumpstarter_dot_v1_dot_jumpstarter__pb2.UnregisterResponse.SerializeToString, - ), - 'Listen': grpc.unary_stream_rpc_method_handler( - servicer.Listen, - request_deserializer=jumpstarter_dot_v1_dot_jumpstarter__pb2.ListenRequest.FromString, - response_serializer=jumpstarter_dot_v1_dot_jumpstarter__pb2.ListenResponse.SerializeToString, - ), - 'Dial': grpc.unary_unary_rpc_method_handler( - servicer.Dial, - request_deserializer=jumpstarter_dot_v1_dot_jumpstarter__pb2.DialRequest.FromString, - response_serializer=jumpstarter_dot_v1_dot_jumpstarter__pb2.DialResponse.SerializeToString, - ), - 'AuditStream': grpc.stream_unary_rpc_method_handler( - servicer.AuditStream, - request_deserializer=jumpstarter_dot_v1_dot_jumpstarter__pb2.AuditStreamRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'ListExporters': grpc.unary_unary_rpc_method_handler( - servicer.ListExporters, - request_deserializer=jumpstarter_dot_v1_dot_jumpstarter__pb2.ListExportersRequest.FromString, - response_serializer=jumpstarter_dot_v1_dot_jumpstarter__pb2.ListExportersResponse.SerializeToString, - ), - 'GetExporter': grpc.unary_unary_rpc_method_handler( - servicer.GetExporter, - request_deserializer=jumpstarter_dot_v1_dot_jumpstarter__pb2.GetExporterRequest.FromString, - response_serializer=jumpstarter_dot_v1_dot_jumpstarter__pb2.GetExporterResponse.SerializeToString, - ), - 'GetLease': grpc.unary_unary_rpc_method_handler( - servicer.GetLease, - request_deserializer=jumpstarter_dot_v1_dot_jumpstarter__pb2.GetLeaseRequest.FromString, - response_serializer=jumpstarter_dot_v1_dot_jumpstarter__pb2.GetLeaseResponse.SerializeToString, - ), - 'RequestLease': grpc.unary_unary_rpc_method_handler( - servicer.RequestLease, - request_deserializer=jumpstarter_dot_v1_dot_jumpstarter__pb2.RequestLeaseRequest.FromString, - response_serializer=jumpstarter_dot_v1_dot_jumpstarter__pb2.RequestLeaseResponse.SerializeToString, - ), - 'ReleaseLease': grpc.unary_unary_rpc_method_handler( - servicer.ReleaseLease, - request_deserializer=jumpstarter_dot_v1_dot_jumpstarter__pb2.ReleaseLeaseRequest.FromString, - response_serializer=jumpstarter_dot_v1_dot_jumpstarter__pb2.ReleaseLeaseResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'jumpstarter.v1.ControllerService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - server.add_registered_method_handlers('jumpstarter.v1.ControllerService', rpc_method_handlers) - - - # This class is part of an EXPERIMENTAL API. -class ControllerService(object): - """A service where a exporter can connect to make itself available - """ - - @staticmethod - def Register(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/jumpstarter.v1.ControllerService/Register', - jumpstarter_dot_v1_dot_jumpstarter__pb2.RegisterRequest.SerializeToString, - jumpstarter_dot_v1_dot_jumpstarter__pb2.RegisterResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def Unregister(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/jumpstarter.v1.ControllerService/Unregister', - jumpstarter_dot_v1_dot_jumpstarter__pb2.UnregisterRequest.SerializeToString, - jumpstarter_dot_v1_dot_jumpstarter__pb2.UnregisterResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def Listen(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_stream( - request, - target, - '/jumpstarter.v1.ControllerService/Listen', - jumpstarter_dot_v1_dot_jumpstarter__pb2.ListenRequest.SerializeToString, - jumpstarter_dot_v1_dot_jumpstarter__pb2.ListenResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def Dial(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/jumpstarter.v1.ControllerService/Dial', - jumpstarter_dot_v1_dot_jumpstarter__pb2.DialRequest.SerializeToString, - jumpstarter_dot_v1_dot_jumpstarter__pb2.DialResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def AuditStream(request_iterator, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.stream_unary( - request_iterator, - target, - '/jumpstarter.v1.ControllerService/AuditStream', - jumpstarter_dot_v1_dot_jumpstarter__pb2.AuditStreamRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def ListExporters(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/jumpstarter.v1.ControllerService/ListExporters', - jumpstarter_dot_v1_dot_jumpstarter__pb2.ListExportersRequest.SerializeToString, - jumpstarter_dot_v1_dot_jumpstarter__pb2.ListExportersResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def GetExporter(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/jumpstarter.v1.ControllerService/GetExporter', - jumpstarter_dot_v1_dot_jumpstarter__pb2.GetExporterRequest.SerializeToString, - jumpstarter_dot_v1_dot_jumpstarter__pb2.GetExporterResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def GetLease(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/jumpstarter.v1.ControllerService/GetLease', - jumpstarter_dot_v1_dot_jumpstarter__pb2.GetLeaseRequest.SerializeToString, - jumpstarter_dot_v1_dot_jumpstarter__pb2.GetLeaseResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def RequestLease(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/jumpstarter.v1.ControllerService/RequestLease', - jumpstarter_dot_v1_dot_jumpstarter__pb2.RequestLeaseRequest.SerializeToString, - jumpstarter_dot_v1_dot_jumpstarter__pb2.RequestLeaseResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def ReleaseLease(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/jumpstarter.v1.ControllerService/ReleaseLease', - jumpstarter_dot_v1_dot_jumpstarter__pb2.ReleaseLeaseRequest.SerializeToString, - jumpstarter_dot_v1_dot_jumpstarter__pb2.ReleaseLeaseResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - -class ExporterServiceStub(object): - """A service a exporter can share locally to be used without a server - Channel/Call credentials are used to authenticate the client, and routing to the right exporter - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetReport = channel.unary_unary( - '/jumpstarter.v1.ExporterService/GetReport', - request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - response_deserializer=jumpstarter_dot_v1_dot_jumpstarter__pb2.GetReportResponse.FromString, - _registered_method=True) - self.DriverCall = channel.unary_unary( - '/jumpstarter.v1.ExporterService/DriverCall', - request_serializer=jumpstarter_dot_v1_dot_jumpstarter__pb2.DriverCallRequest.SerializeToString, - response_deserializer=jumpstarter_dot_v1_dot_jumpstarter__pb2.DriverCallResponse.FromString, - _registered_method=True) - self.StreamingDriverCall = channel.unary_stream( - '/jumpstarter.v1.ExporterService/StreamingDriverCall', - request_serializer=jumpstarter_dot_v1_dot_jumpstarter__pb2.StreamingDriverCallRequest.SerializeToString, - response_deserializer=jumpstarter_dot_v1_dot_jumpstarter__pb2.StreamingDriverCallResponse.FromString, - _registered_method=True) - self.LogStream = channel.unary_stream( - '/jumpstarter.v1.ExporterService/LogStream', - request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - response_deserializer=jumpstarter_dot_v1_dot_jumpstarter__pb2.LogStreamResponse.FromString, - _registered_method=True) - - -class ExporterServiceServicer(object): - """A service a exporter can share locally to be used without a server - Channel/Call credentials are used to authenticate the client, and routing to the right exporter - """ - - def GetReport(self, request, context): - """Exporter registration - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DriverCall(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def StreamingDriverCall(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def LogStream(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_ExporterServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetReport': grpc.unary_unary_rpc_method_handler( - servicer.GetReport, - request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - response_serializer=jumpstarter_dot_v1_dot_jumpstarter__pb2.GetReportResponse.SerializeToString, - ), - 'DriverCall': grpc.unary_unary_rpc_method_handler( - servicer.DriverCall, - request_deserializer=jumpstarter_dot_v1_dot_jumpstarter__pb2.DriverCallRequest.FromString, - response_serializer=jumpstarter_dot_v1_dot_jumpstarter__pb2.DriverCallResponse.SerializeToString, - ), - 'StreamingDriverCall': grpc.unary_stream_rpc_method_handler( - servicer.StreamingDriverCall, - request_deserializer=jumpstarter_dot_v1_dot_jumpstarter__pb2.StreamingDriverCallRequest.FromString, - response_serializer=jumpstarter_dot_v1_dot_jumpstarter__pb2.StreamingDriverCallResponse.SerializeToString, - ), - 'LogStream': grpc.unary_stream_rpc_method_handler( - servicer.LogStream, - request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - response_serializer=jumpstarter_dot_v1_dot_jumpstarter__pb2.LogStreamResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'jumpstarter.v1.ExporterService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - server.add_registered_method_handlers('jumpstarter.v1.ExporterService', rpc_method_handlers) - - - # This class is part of an EXPERIMENTAL API. -class ExporterService(object): - """A service a exporter can share locally to be used without a server - Channel/Call credentials are used to authenticate the client, and routing to the right exporter - """ - - @staticmethod - def GetReport(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/jumpstarter.v1.ExporterService/GetReport', - google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - jumpstarter_dot_v1_dot_jumpstarter__pb2.GetReportResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def DriverCall(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/jumpstarter.v1.ExporterService/DriverCall', - jumpstarter_dot_v1_dot_jumpstarter__pb2.DriverCallRequest.SerializeToString, - jumpstarter_dot_v1_dot_jumpstarter__pb2.DriverCallResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def StreamingDriverCall(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_stream( - request, - target, - '/jumpstarter.v1.ExporterService/StreamingDriverCall', - jumpstarter_dot_v1_dot_jumpstarter__pb2.StreamingDriverCallRequest.SerializeToString, - jumpstarter_dot_v1_dot_jumpstarter__pb2.StreamingDriverCallResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def LogStream(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_stream( - request, - target, - '/jumpstarter.v1.ExporterService/LogStream', - google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - jumpstarter_dot_v1_dot_jumpstarter__pb2.LogStreamResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) diff --git a/python/jumpstarter/v1/kubernetes_pb2.py b/python/jumpstarter/v1/kubernetes_pb2.py deleted file mode 100644 index a3ec35b..0000000 --- a/python/jumpstarter/v1/kubernetes_pb2.py +++ /dev/null @@ -1,43 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: jumpstarter/v1/kubernetes.proto -# Protobuf Python Version: 5.27.3 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 3, - '', - 'jumpstarter/v1/kubernetes.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fjumpstarter/v1/kubernetes.proto\x12\x0ejumpstarter.v1\"`\n\x18LabelSelectorRequirement\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x1a\n\x08operator\x18\x02 \x01(\tR\x08operator\x12\x16\n\x06values\x18\x03 \x03(\tR\x06values\"\xf9\x01\n\rLabelSelector\x12U\n\x11match_expressions\x18\x01 \x03(\x0b\x32(.jumpstarter.v1.LabelSelectorRequirementR\x10matchExpressions\x12Q\n\x0cmatch_labels\x18\x02 \x03(\x0b\x32..jumpstarter.v1.LabelSelector.MatchLabelsEntryR\x0bmatchLabels\x1a>\n\x10MatchLabelsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\xcc\x01\n\x12\x63om.jumpstarter.v1B\x0fKubernetesProtoP\x01ZLgithub.com/jumpstarter-dev/jumpstarter-protocol/jumpstarter/v1;jumpstarterv1\xa2\x02\x03JXX\xaa\x02\x0eJumpstarter.V1\xca\x02\x0eJumpstarter\\V1\xe2\x02\x1aJumpstarter\\V1\\GPBMetadata\xea\x02\x0fJumpstarter::V1b\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'jumpstarter.v1.kubernetes_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\022com.jumpstarter.v1B\017KubernetesProtoP\001ZLgithub.com/jumpstarter-dev/jumpstarter-protocol/jumpstarter/v1;jumpstarterv1\242\002\003JXX\252\002\016Jumpstarter.V1\312\002\016Jumpstarter\\V1\342\002\032Jumpstarter\\V1\\GPBMetadata\352\002\017Jumpstarter::V1' - _globals['_LABELSELECTOR_MATCHLABELSENTRY']._loaded_options = None - _globals['_LABELSELECTOR_MATCHLABELSENTRY']._serialized_options = b'8\001' - _globals['_LABELSELECTORREQUIREMENT']._serialized_start=51 - _globals['_LABELSELECTORREQUIREMENT']._serialized_end=147 - _globals['_LABELSELECTOR']._serialized_start=150 - _globals['_LABELSELECTOR']._serialized_end=399 - _globals['_LABELSELECTOR_MATCHLABELSENTRY']._serialized_start=337 - _globals['_LABELSELECTOR_MATCHLABELSENTRY']._serialized_end=399 -# @@protoc_insertion_point(module_scope) diff --git a/python/jumpstarter/v1/kubernetes_pb2_grpc.py b/python/jumpstarter/v1/kubernetes_pb2_grpc.py deleted file mode 100644 index 2daafff..0000000 --- a/python/jumpstarter/v1/kubernetes_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/python/jumpstarter/v1/router_pb2.py b/python/jumpstarter/v1/router_pb2.py deleted file mode 100644 index 828db49..0000000 --- a/python/jumpstarter/v1/router_pb2.py +++ /dev/null @@ -1,43 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# NO CHECKED-IN PROTOBUF GENCODE -# source: jumpstarter/v1/router.proto -# Protobuf Python Version: 5.27.3 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import runtime_version as _runtime_version -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion( - _runtime_version.Domain.PUBLIC, - 5, - 27, - 3, - '', - 'jumpstarter/v1/router.proto' -) -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1bjumpstarter/v1/router.proto\x12\x0ejumpstarter.v1\"c\n\rStreamRequest\x12\x18\n\x07payload\x18\x01 \x01(\x0cR\x07payload\x12\x38\n\nframe_type\x18\x02 \x01(\x0e\x32\x19.jumpstarter.v1.FrameTypeR\tframeType\"d\n\x0eStreamResponse\x12\x18\n\x07payload\x18\x01 \x01(\x0cR\x07payload\x12\x38\n\nframe_type\x18\x02 \x01(\x0e\x32\x19.jumpstarter.v1.FrameTypeR\tframeType*g\n\tFrameType\x12\x13\n\x0f\x46RAME_TYPE_DATA\x10\x00\x12\x19\n\x15\x46RAME_TYPE_RST_STREAM\x10\x03\x12\x13\n\x0f\x46RAME_TYPE_PING\x10\x06\x12\x15\n\x11\x46RAME_TYPE_GOAWAY\x10\x07\x32\\\n\rRouterService\x12K\n\x06Stream\x12\x1d.jumpstarter.v1.StreamRequest\x1a\x1e.jumpstarter.v1.StreamResponse(\x01\x30\x01\x42\xc8\x01\n\x12\x63om.jumpstarter.v1B\x0bRouterProtoP\x01ZLgithub.com/jumpstarter-dev/jumpstarter-protocol/jumpstarter/v1;jumpstarterv1\xa2\x02\x03JXX\xaa\x02\x0eJumpstarter.V1\xca\x02\x0eJumpstarter\\V1\xe2\x02\x1aJumpstarter\\V1\\GPBMetadata\xea\x02\x0fJumpstarter::V1b\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'jumpstarter.v1.router_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\022com.jumpstarter.v1B\013RouterProtoP\001ZLgithub.com/jumpstarter-dev/jumpstarter-protocol/jumpstarter/v1;jumpstarterv1\242\002\003JXX\252\002\016Jumpstarter.V1\312\002\016Jumpstarter\\V1\342\002\032Jumpstarter\\V1\\GPBMetadata\352\002\017Jumpstarter::V1' - _globals['_FRAMETYPE']._serialized_start=250 - _globals['_FRAMETYPE']._serialized_end=353 - _globals['_STREAMREQUEST']._serialized_start=47 - _globals['_STREAMREQUEST']._serialized_end=146 - _globals['_STREAMRESPONSE']._serialized_start=148 - _globals['_STREAMRESPONSE']._serialized_end=248 - _globals['_ROUTERSERVICE']._serialized_start=355 - _globals['_ROUTERSERVICE']._serialized_end=447 -# @@protoc_insertion_point(module_scope) diff --git a/python/jumpstarter/v1/router_pb2_grpc.py b/python/jumpstarter/v1/router_pb2_grpc.py deleted file mode 100644 index 8f3995c..0000000 --- a/python/jumpstarter/v1/router_pb2_grpc.py +++ /dev/null @@ -1,96 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - -from jumpstarter.v1 import router_pb2 as jumpstarter_dot_v1_dot_router__pb2 - - -class RouterServiceStub(object): - """StreamService - Claims: - iss: jumpstarter controller - aud: jumpstarter router - sub: jumpstarter client/exporter - stream: stream id - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.Stream = channel.stream_stream( - '/jumpstarter.v1.RouterService/Stream', - request_serializer=jumpstarter_dot_v1_dot_router__pb2.StreamRequest.SerializeToString, - response_deserializer=jumpstarter_dot_v1_dot_router__pb2.StreamResponse.FromString, - _registered_method=True) - - -class RouterServiceServicer(object): - """StreamService - Claims: - iss: jumpstarter controller - aud: jumpstarter router - sub: jumpstarter client/exporter - stream: stream id - """ - - def Stream(self, request_iterator, context): - """Stream connects caller to another caller of the same stream - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_RouterServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'Stream': grpc.stream_stream_rpc_method_handler( - servicer.Stream, - request_deserializer=jumpstarter_dot_v1_dot_router__pb2.StreamRequest.FromString, - response_serializer=jumpstarter_dot_v1_dot_router__pb2.StreamResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'jumpstarter.v1.RouterService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - server.add_registered_method_handlers('jumpstarter.v1.RouterService', rpc_method_handlers) - - - # This class is part of an EXPERIMENTAL API. -class RouterService(object): - """StreamService - Claims: - iss: jumpstarter controller - aud: jumpstarter router - sub: jumpstarter client/exporter - stream: stream id - """ - - @staticmethod - def Stream(request_iterator, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.stream_stream( - request_iterator, - target, - '/jumpstarter.v1.RouterService/Stream', - jumpstarter_dot_v1_dot_router__pb2.StreamRequest.SerializeToString, - jumpstarter_dot_v1_dot_router__pb2.StreamResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) diff --git a/python/pyproject.toml b/python/pyproject.toml deleted file mode 100644 index 0831291..0000000 --- a/python/pyproject.toml +++ /dev/null @@ -1,20 +0,0 @@ -[tool.poetry] -name = "jumpstarter-protocol" -version = "0.1.0" -description = "" -authors = ["The Jumpstarter Authors"] -license = "MIT" -readme = "README.md" - -packages = [ - { include = "jumpstarter" }, -] - -[tool.poetry.dependencies] -python = ">=3.8" -protobuf = "^5.27.1" -grpcio = "^1.64.1" - -[build-system] -requires = ["poetry-core"] -build-backend = "poetry.core.masonry.api" From 37725bd886073988bb760d97597d69b759b441f4 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Tue, 1 Oct 2024 13:10:31 -0400 Subject: [PATCH 2/2] Add conditions field to GetLeaseResponse --- buf.yaml | 1 + proto/jumpstarter/v1/jumpstarter.proto | 1 + proto/jumpstarter/v1/kubernetes.proto | 15 +++++++++++++++ 3 files changed, 17 insertions(+) diff --git a/buf.yaml b/buf.yaml index 5d0a9df..110aa15 100644 --- a/buf.yaml +++ b/buf.yaml @@ -6,6 +6,7 @@ lint: - STANDARD except: - ENUM_ZERO_VALUE_SUFFIX + - FIELD_LOWER_SNAKE_CASE rpc_allow_same_request_response: true rpc_allow_google_protobuf_empty_requests: true rpc_allow_google_protobuf_empty_responses: true diff --git a/proto/jumpstarter/v1/jumpstarter.proto b/proto/jumpstarter/v1/jumpstarter.proto index a19e128..3823e87 100644 --- a/proto/jumpstarter/v1/jumpstarter.proto +++ b/proto/jumpstarter/v1/jumpstarter.proto @@ -174,6 +174,7 @@ message GetLeaseResponse { optional google.protobuf.Timestamp begin_time = 3; optional google.protobuf.Timestamp end_time = 4; optional string exporter_uuid = 5; + repeated Condition conditions = 6; } message RequestLeaseRequest { diff --git a/proto/jumpstarter/v1/kubernetes.proto b/proto/jumpstarter/v1/kubernetes.proto index 342a37b..541410e 100644 --- a/proto/jumpstarter/v1/kubernetes.proto +++ b/proto/jumpstarter/v1/kubernetes.proto @@ -15,3 +15,18 @@ message LabelSelector { repeated LabelSelectorRequirement match_expressions = 1; map match_labels = 2; } + +// Reference: https://github.com/kubernetes/kubernetes/blob/v1.31.1/staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto +message Time { + optional int64 seconds = 1; + optional int32 nanos = 2; +} + +message Condition { + optional string type = 1; + optional string status = 2; + optional int64 observedGeneration = 3; + optional Time lastTransitionTime = 4; + optional string reason = 5; + optional string message = 6; +}