diff --git a/Makefile b/Makefile index ab089d8f..0c3e3d8b 100644 --- a/Makefile +++ b/Makefile @@ -7,10 +7,15 @@ CLIMON_APP_NAME := climon BUILD := 0.1.1 gen-protoc: + mkdir -p server/pkg/pb/serverpb mkdir -p capten/agent/pkg/agentpb mkdir -p server/pkg/pb/agentpb mkdir -p server/pkg/pb/climonpb + cd proto && protoc --go_out=../server/pkg/pb/serverpb/ --go_opt=paths=source_relative \ + --go-grpc_out=../server/pkg/pb/serverpb --go-grpc_opt=paths=source_relative \ + ./server.proto + cd proto && protoc --go_out=../capten/agent/pkg/agentpb/ --go_opt=paths=source_relative \ --go-grpc_out=../capten/agent/pkg/agentpb/ --go-grpc_opt=paths=source_relative \ ./agent.proto diff --git a/capten/agent/pkg/agentpb/agent.pb.go b/capten/agent/pkg/agentpb/agent.pb.go index e337e5e8..0db4ef48 100644 --- a/capten/agent/pkg/agentpb/agent.pb.go +++ b/capten/agent/pkg/agentpb/agent.pb.go @@ -1,15 +1,15 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 -// protoc v3.15.6 +// protoc-gen-go v1.30.0 +// protoc v3.12.4 // source: agent.proto package agentpb import ( + any1 "github.com/golang/protobuf/ptypes/any" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - anypb "google.golang.org/protobuf/types/known/anypb" reflect "reflect" sync "sync" ) @@ -909,8 +909,8 @@ type JobRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Operation string `protobuf:"bytes,1,opt,name=operation,proto3" json:"operation,omitempty"` - Payload *anypb.Any `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` + Operation string `protobuf:"bytes,1,opt,name=operation,proto3" json:"operation,omitempty"` + Payload *any1.Any `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` } func (x *JobRequest) Reset() { @@ -952,7 +952,7 @@ func (x *JobRequest) GetOperation() string { return "" } -func (x *JobRequest) GetPayload() *anypb.Any { +func (x *JobRequest) GetPayload() *any1.Any { if x != nil { return x.Payload } @@ -1236,7 +1236,7 @@ var file_agent_proto_goTypes = []interface{}{ (*ProjectDeleteRequest)(nil), // 12: agentpb.ProjectDeleteRequest (*JobRequest)(nil), // 13: agentpb.JobRequest (*JobResponse)(nil), // 14: agentpb.JobResponse - (*anypb.Any)(nil), // 15: google.protobuf.Any + (*any1.Any)(nil), // 15: google.protobuf.Any } var file_agent_proto_depIdxs = []int32{ 15, // 0: agentpb.JobRequest.payload:type_name -> google.protobuf.Any diff --git a/capten/agent/pkg/agentpb/agent_grpc.pb.go b/capten/agent/pkg/agentpb/agent_grpc.pb.go index b00258b2..193551df 100644 --- a/capten/agent/pkg/agentpb/agent_grpc.pb.go +++ b/capten/agent/pkg/agentpb/agent_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 -// - protoc v3.15.6 +// - protoc-gen-go-grpc v1.3.0 +// - protoc v3.12.4 // source: agent.proto package agentpb @@ -18,6 +18,22 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + Agent_SubmitJob_FullMethodName = "/agentpb.Agent/SubmitJob" + Agent_StoreCred_FullMethodName = "/agentpb.Agent/StoreCred" + Agent_Sync_FullMethodName = "/agentpb.Agent/Sync" + Agent_ClimonAppInstall_FullMethodName = "/agentpb.Agent/ClimonAppInstall" + Agent_ClimonAppDelete_FullMethodName = "/agentpb.Agent/ClimonAppDelete" + Agent_DeployerAppInstall_FullMethodName = "/agentpb.Agent/DeployerAppInstall" + Agent_DeployerAppDelete_FullMethodName = "/agentpb.Agent/DeployerAppDelete" + Agent_ClusterAdd_FullMethodName = "/agentpb.Agent/ClusterAdd" + Agent_ClusterDelete_FullMethodName = "/agentpb.Agent/ClusterDelete" + Agent_RepositoryAdd_FullMethodName = "/agentpb.Agent/RepositoryAdd" + Agent_RepositoryDelete_FullMethodName = "/agentpb.Agent/RepositoryDelete" + Agent_ProjectAdd_FullMethodName = "/agentpb.Agent/ProjectAdd" + Agent_ProjectDelete_FullMethodName = "/agentpb.Agent/ProjectDelete" +) + // AgentClient is the client API for Agent 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. @@ -47,7 +63,7 @@ func NewAgentClient(cc grpc.ClientConnInterface) AgentClient { func (c *agentClient) SubmitJob(ctx context.Context, in *JobRequest, opts ...grpc.CallOption) (*JobResponse, error) { out := new(JobResponse) - err := c.cc.Invoke(ctx, "/agentpb.Agent/SubmitJob", in, out, opts...) + err := c.cc.Invoke(ctx, Agent_SubmitJob_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -56,7 +72,7 @@ func (c *agentClient) SubmitJob(ctx context.Context, in *JobRequest, opts ...grp func (c *agentClient) StoreCred(ctx context.Context, in *StoreCredRequest, opts ...grpc.CallOption) (*StoreCredResponse, error) { out := new(StoreCredResponse) - err := c.cc.Invoke(ctx, "/agentpb.Agent/StoreCred", in, out, opts...) + err := c.cc.Invoke(ctx, Agent_StoreCred_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -65,7 +81,7 @@ func (c *agentClient) StoreCred(ctx context.Context, in *StoreCredRequest, opts func (c *agentClient) Sync(ctx context.Context, in *SyncRequest, opts ...grpc.CallOption) (*SyncResponse, error) { out := new(SyncResponse) - err := c.cc.Invoke(ctx, "/agentpb.Agent/Sync", in, out, opts...) + err := c.cc.Invoke(ctx, Agent_Sync_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -74,7 +90,7 @@ func (c *agentClient) Sync(ctx context.Context, in *SyncRequest, opts ...grpc.Ca func (c *agentClient) ClimonAppInstall(ctx context.Context, in *ClimonInstallRequest, opts ...grpc.CallOption) (*JobResponse, error) { out := new(JobResponse) - err := c.cc.Invoke(ctx, "/agentpb.Agent/ClimonAppInstall", in, out, opts...) + err := c.cc.Invoke(ctx, Agent_ClimonAppInstall_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -83,7 +99,7 @@ func (c *agentClient) ClimonAppInstall(ctx context.Context, in *ClimonInstallReq func (c *agentClient) ClimonAppDelete(ctx context.Context, in *ClimonDeleteRequest, opts ...grpc.CallOption) (*JobResponse, error) { out := new(JobResponse) - err := c.cc.Invoke(ctx, "/agentpb.Agent/ClimonAppDelete", in, out, opts...) + err := c.cc.Invoke(ctx, Agent_ClimonAppDelete_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -92,7 +108,7 @@ func (c *agentClient) ClimonAppDelete(ctx context.Context, in *ClimonDeleteReque func (c *agentClient) DeployerAppInstall(ctx context.Context, in *ApplicationInstallRequest, opts ...grpc.CallOption) (*JobResponse, error) { out := new(JobResponse) - err := c.cc.Invoke(ctx, "/agentpb.Agent/DeployerAppInstall", in, out, opts...) + err := c.cc.Invoke(ctx, Agent_DeployerAppInstall_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -101,7 +117,7 @@ func (c *agentClient) DeployerAppInstall(ctx context.Context, in *ApplicationIns func (c *agentClient) DeployerAppDelete(ctx context.Context, in *ApplicationDeleteRequest, opts ...grpc.CallOption) (*JobResponse, error) { out := new(JobResponse) - err := c.cc.Invoke(ctx, "/agentpb.Agent/DeployerAppDelete", in, out, opts...) + err := c.cc.Invoke(ctx, Agent_DeployerAppDelete_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -110,7 +126,7 @@ func (c *agentClient) DeployerAppDelete(ctx context.Context, in *ApplicationDele func (c *agentClient) ClusterAdd(ctx context.Context, in *ClusterRequest, opts ...grpc.CallOption) (*JobResponse, error) { out := new(JobResponse) - err := c.cc.Invoke(ctx, "/agentpb.Agent/ClusterAdd", in, out, opts...) + err := c.cc.Invoke(ctx, Agent_ClusterAdd_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -119,7 +135,7 @@ func (c *agentClient) ClusterAdd(ctx context.Context, in *ClusterRequest, opts . func (c *agentClient) ClusterDelete(ctx context.Context, in *ClusterRequest, opts ...grpc.CallOption) (*JobResponse, error) { out := new(JobResponse) - err := c.cc.Invoke(ctx, "/agentpb.Agent/ClusterDelete", in, out, opts...) + err := c.cc.Invoke(ctx, Agent_ClusterDelete_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -128,7 +144,7 @@ func (c *agentClient) ClusterDelete(ctx context.Context, in *ClusterRequest, opt func (c *agentClient) RepositoryAdd(ctx context.Context, in *RepositoryAddRequest, opts ...grpc.CallOption) (*JobResponse, error) { out := new(JobResponse) - err := c.cc.Invoke(ctx, "/agentpb.Agent/RepositoryAdd", in, out, opts...) + err := c.cc.Invoke(ctx, Agent_RepositoryAdd_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -137,7 +153,7 @@ func (c *agentClient) RepositoryAdd(ctx context.Context, in *RepositoryAddReques func (c *agentClient) RepositoryDelete(ctx context.Context, in *RepositoryDeleteRequest, opts ...grpc.CallOption) (*JobResponse, error) { out := new(JobResponse) - err := c.cc.Invoke(ctx, "/agentpb.Agent/RepositoryDelete", in, out, opts...) + err := c.cc.Invoke(ctx, Agent_RepositoryDelete_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -146,7 +162,7 @@ func (c *agentClient) RepositoryDelete(ctx context.Context, in *RepositoryDelete func (c *agentClient) ProjectAdd(ctx context.Context, in *ProjectAddRequest, opts ...grpc.CallOption) (*JobResponse, error) { out := new(JobResponse) - err := c.cc.Invoke(ctx, "/agentpb.Agent/ProjectAdd", in, out, opts...) + err := c.cc.Invoke(ctx, Agent_ProjectAdd_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -155,7 +171,7 @@ func (c *agentClient) ProjectAdd(ctx context.Context, in *ProjectAddRequest, opt func (c *agentClient) ProjectDelete(ctx context.Context, in *ProjectDeleteRequest, opts ...grpc.CallOption) (*JobResponse, error) { out := new(JobResponse) - err := c.cc.Invoke(ctx, "/agentpb.Agent/ProjectDelete", in, out, opts...) + err := c.cc.Invoke(ctx, Agent_ProjectDelete_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -248,7 +264,7 @@ func _Agent_SubmitJob_Handler(srv interface{}, ctx context.Context, dec func(int } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/agentpb.Agent/SubmitJob", + FullMethod: Agent_SubmitJob_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AgentServer).SubmitJob(ctx, req.(*JobRequest)) @@ -266,7 +282,7 @@ func _Agent_StoreCred_Handler(srv interface{}, ctx context.Context, dec func(int } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/agentpb.Agent/StoreCred", + FullMethod: Agent_StoreCred_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AgentServer).StoreCred(ctx, req.(*StoreCredRequest)) @@ -284,7 +300,7 @@ func _Agent_Sync_Handler(srv interface{}, ctx context.Context, dec func(interfac } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/agentpb.Agent/Sync", + FullMethod: Agent_Sync_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AgentServer).Sync(ctx, req.(*SyncRequest)) @@ -302,7 +318,7 @@ func _Agent_ClimonAppInstall_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/agentpb.Agent/ClimonAppInstall", + FullMethod: Agent_ClimonAppInstall_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AgentServer).ClimonAppInstall(ctx, req.(*ClimonInstallRequest)) @@ -320,7 +336,7 @@ func _Agent_ClimonAppDelete_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/agentpb.Agent/ClimonAppDelete", + FullMethod: Agent_ClimonAppDelete_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AgentServer).ClimonAppDelete(ctx, req.(*ClimonDeleteRequest)) @@ -338,7 +354,7 @@ func _Agent_DeployerAppInstall_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/agentpb.Agent/DeployerAppInstall", + FullMethod: Agent_DeployerAppInstall_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AgentServer).DeployerAppInstall(ctx, req.(*ApplicationInstallRequest)) @@ -356,7 +372,7 @@ func _Agent_DeployerAppDelete_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/agentpb.Agent/DeployerAppDelete", + FullMethod: Agent_DeployerAppDelete_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AgentServer).DeployerAppDelete(ctx, req.(*ApplicationDeleteRequest)) @@ -374,7 +390,7 @@ func _Agent_ClusterAdd_Handler(srv interface{}, ctx context.Context, dec func(in } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/agentpb.Agent/ClusterAdd", + FullMethod: Agent_ClusterAdd_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AgentServer).ClusterAdd(ctx, req.(*ClusterRequest)) @@ -392,7 +408,7 @@ func _Agent_ClusterDelete_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/agentpb.Agent/ClusterDelete", + FullMethod: Agent_ClusterDelete_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AgentServer).ClusterDelete(ctx, req.(*ClusterRequest)) @@ -410,7 +426,7 @@ func _Agent_RepositoryAdd_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/agentpb.Agent/RepositoryAdd", + FullMethod: Agent_RepositoryAdd_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AgentServer).RepositoryAdd(ctx, req.(*RepositoryAddRequest)) @@ -428,7 +444,7 @@ func _Agent_RepositoryDelete_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/agentpb.Agent/RepositoryDelete", + FullMethod: Agent_RepositoryDelete_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AgentServer).RepositoryDelete(ctx, req.(*RepositoryDeleteRequest)) @@ -446,7 +462,7 @@ func _Agent_ProjectAdd_Handler(srv interface{}, ctx context.Context, dec func(in } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/agentpb.Agent/ProjectAdd", + FullMethod: Agent_ProjectAdd_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AgentServer).ProjectAdd(ctx, req.(*ProjectAddRequest)) @@ -464,7 +480,7 @@ func _Agent_ProjectDelete_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/agentpb.Agent/ProjectDelete", + FullMethod: Agent_ProjectDelete_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AgentServer).ProjectDelete(ctx, req.(*ProjectDeleteRequest)) diff --git a/capten/capten-sdk/agentpb/agent.pb.go b/capten/capten-sdk/agentpb/agent.pb.go index e337e5e8..0db4ef48 100644 --- a/capten/capten-sdk/agentpb/agent.pb.go +++ b/capten/capten-sdk/agentpb/agent.pb.go @@ -1,15 +1,15 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 -// protoc v3.15.6 +// protoc-gen-go v1.30.0 +// protoc v3.12.4 // source: agent.proto package agentpb import ( + any1 "github.com/golang/protobuf/ptypes/any" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - anypb "google.golang.org/protobuf/types/known/anypb" reflect "reflect" sync "sync" ) @@ -909,8 +909,8 @@ type JobRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Operation string `protobuf:"bytes,1,opt,name=operation,proto3" json:"operation,omitempty"` - Payload *anypb.Any `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` + Operation string `protobuf:"bytes,1,opt,name=operation,proto3" json:"operation,omitempty"` + Payload *any1.Any `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` } func (x *JobRequest) Reset() { @@ -952,7 +952,7 @@ func (x *JobRequest) GetOperation() string { return "" } -func (x *JobRequest) GetPayload() *anypb.Any { +func (x *JobRequest) GetPayload() *any1.Any { if x != nil { return x.Payload } @@ -1236,7 +1236,7 @@ var file_agent_proto_goTypes = []interface{}{ (*ProjectDeleteRequest)(nil), // 12: agentpb.ProjectDeleteRequest (*JobRequest)(nil), // 13: agentpb.JobRequest (*JobResponse)(nil), // 14: agentpb.JobResponse - (*anypb.Any)(nil), // 15: google.protobuf.Any + (*any1.Any)(nil), // 15: google.protobuf.Any } var file_agent_proto_depIdxs = []int32{ 15, // 0: agentpb.JobRequest.payload:type_name -> google.protobuf.Any diff --git a/capten/capten-sdk/agentpb/agent_grpc.pb.go b/capten/capten-sdk/agentpb/agent_grpc.pb.go index b00258b2..193551df 100644 --- a/capten/capten-sdk/agentpb/agent_grpc.pb.go +++ b/capten/capten-sdk/agentpb/agent_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 -// - protoc v3.15.6 +// - protoc-gen-go-grpc v1.3.0 +// - protoc v3.12.4 // source: agent.proto package agentpb @@ -18,6 +18,22 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + Agent_SubmitJob_FullMethodName = "/agentpb.Agent/SubmitJob" + Agent_StoreCred_FullMethodName = "/agentpb.Agent/StoreCred" + Agent_Sync_FullMethodName = "/agentpb.Agent/Sync" + Agent_ClimonAppInstall_FullMethodName = "/agentpb.Agent/ClimonAppInstall" + Agent_ClimonAppDelete_FullMethodName = "/agentpb.Agent/ClimonAppDelete" + Agent_DeployerAppInstall_FullMethodName = "/agentpb.Agent/DeployerAppInstall" + Agent_DeployerAppDelete_FullMethodName = "/agentpb.Agent/DeployerAppDelete" + Agent_ClusterAdd_FullMethodName = "/agentpb.Agent/ClusterAdd" + Agent_ClusterDelete_FullMethodName = "/agentpb.Agent/ClusterDelete" + Agent_RepositoryAdd_FullMethodName = "/agentpb.Agent/RepositoryAdd" + Agent_RepositoryDelete_FullMethodName = "/agentpb.Agent/RepositoryDelete" + Agent_ProjectAdd_FullMethodName = "/agentpb.Agent/ProjectAdd" + Agent_ProjectDelete_FullMethodName = "/agentpb.Agent/ProjectDelete" +) + // AgentClient is the client API for Agent 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. @@ -47,7 +63,7 @@ func NewAgentClient(cc grpc.ClientConnInterface) AgentClient { func (c *agentClient) SubmitJob(ctx context.Context, in *JobRequest, opts ...grpc.CallOption) (*JobResponse, error) { out := new(JobResponse) - err := c.cc.Invoke(ctx, "/agentpb.Agent/SubmitJob", in, out, opts...) + err := c.cc.Invoke(ctx, Agent_SubmitJob_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -56,7 +72,7 @@ func (c *agentClient) SubmitJob(ctx context.Context, in *JobRequest, opts ...grp func (c *agentClient) StoreCred(ctx context.Context, in *StoreCredRequest, opts ...grpc.CallOption) (*StoreCredResponse, error) { out := new(StoreCredResponse) - err := c.cc.Invoke(ctx, "/agentpb.Agent/StoreCred", in, out, opts...) + err := c.cc.Invoke(ctx, Agent_StoreCred_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -65,7 +81,7 @@ func (c *agentClient) StoreCred(ctx context.Context, in *StoreCredRequest, opts func (c *agentClient) Sync(ctx context.Context, in *SyncRequest, opts ...grpc.CallOption) (*SyncResponse, error) { out := new(SyncResponse) - err := c.cc.Invoke(ctx, "/agentpb.Agent/Sync", in, out, opts...) + err := c.cc.Invoke(ctx, Agent_Sync_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -74,7 +90,7 @@ func (c *agentClient) Sync(ctx context.Context, in *SyncRequest, opts ...grpc.Ca func (c *agentClient) ClimonAppInstall(ctx context.Context, in *ClimonInstallRequest, opts ...grpc.CallOption) (*JobResponse, error) { out := new(JobResponse) - err := c.cc.Invoke(ctx, "/agentpb.Agent/ClimonAppInstall", in, out, opts...) + err := c.cc.Invoke(ctx, Agent_ClimonAppInstall_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -83,7 +99,7 @@ func (c *agentClient) ClimonAppInstall(ctx context.Context, in *ClimonInstallReq func (c *agentClient) ClimonAppDelete(ctx context.Context, in *ClimonDeleteRequest, opts ...grpc.CallOption) (*JobResponse, error) { out := new(JobResponse) - err := c.cc.Invoke(ctx, "/agentpb.Agent/ClimonAppDelete", in, out, opts...) + err := c.cc.Invoke(ctx, Agent_ClimonAppDelete_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -92,7 +108,7 @@ func (c *agentClient) ClimonAppDelete(ctx context.Context, in *ClimonDeleteReque func (c *agentClient) DeployerAppInstall(ctx context.Context, in *ApplicationInstallRequest, opts ...grpc.CallOption) (*JobResponse, error) { out := new(JobResponse) - err := c.cc.Invoke(ctx, "/agentpb.Agent/DeployerAppInstall", in, out, opts...) + err := c.cc.Invoke(ctx, Agent_DeployerAppInstall_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -101,7 +117,7 @@ func (c *agentClient) DeployerAppInstall(ctx context.Context, in *ApplicationIns func (c *agentClient) DeployerAppDelete(ctx context.Context, in *ApplicationDeleteRequest, opts ...grpc.CallOption) (*JobResponse, error) { out := new(JobResponse) - err := c.cc.Invoke(ctx, "/agentpb.Agent/DeployerAppDelete", in, out, opts...) + err := c.cc.Invoke(ctx, Agent_DeployerAppDelete_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -110,7 +126,7 @@ func (c *agentClient) DeployerAppDelete(ctx context.Context, in *ApplicationDele func (c *agentClient) ClusterAdd(ctx context.Context, in *ClusterRequest, opts ...grpc.CallOption) (*JobResponse, error) { out := new(JobResponse) - err := c.cc.Invoke(ctx, "/agentpb.Agent/ClusterAdd", in, out, opts...) + err := c.cc.Invoke(ctx, Agent_ClusterAdd_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -119,7 +135,7 @@ func (c *agentClient) ClusterAdd(ctx context.Context, in *ClusterRequest, opts . func (c *agentClient) ClusterDelete(ctx context.Context, in *ClusterRequest, opts ...grpc.CallOption) (*JobResponse, error) { out := new(JobResponse) - err := c.cc.Invoke(ctx, "/agentpb.Agent/ClusterDelete", in, out, opts...) + err := c.cc.Invoke(ctx, Agent_ClusterDelete_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -128,7 +144,7 @@ func (c *agentClient) ClusterDelete(ctx context.Context, in *ClusterRequest, opt func (c *agentClient) RepositoryAdd(ctx context.Context, in *RepositoryAddRequest, opts ...grpc.CallOption) (*JobResponse, error) { out := new(JobResponse) - err := c.cc.Invoke(ctx, "/agentpb.Agent/RepositoryAdd", in, out, opts...) + err := c.cc.Invoke(ctx, Agent_RepositoryAdd_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -137,7 +153,7 @@ func (c *agentClient) RepositoryAdd(ctx context.Context, in *RepositoryAddReques func (c *agentClient) RepositoryDelete(ctx context.Context, in *RepositoryDeleteRequest, opts ...grpc.CallOption) (*JobResponse, error) { out := new(JobResponse) - err := c.cc.Invoke(ctx, "/agentpb.Agent/RepositoryDelete", in, out, opts...) + err := c.cc.Invoke(ctx, Agent_RepositoryDelete_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -146,7 +162,7 @@ func (c *agentClient) RepositoryDelete(ctx context.Context, in *RepositoryDelete func (c *agentClient) ProjectAdd(ctx context.Context, in *ProjectAddRequest, opts ...grpc.CallOption) (*JobResponse, error) { out := new(JobResponse) - err := c.cc.Invoke(ctx, "/agentpb.Agent/ProjectAdd", in, out, opts...) + err := c.cc.Invoke(ctx, Agent_ProjectAdd_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -155,7 +171,7 @@ func (c *agentClient) ProjectAdd(ctx context.Context, in *ProjectAddRequest, opt func (c *agentClient) ProjectDelete(ctx context.Context, in *ProjectDeleteRequest, opts ...grpc.CallOption) (*JobResponse, error) { out := new(JobResponse) - err := c.cc.Invoke(ctx, "/agentpb.Agent/ProjectDelete", in, out, opts...) + err := c.cc.Invoke(ctx, Agent_ProjectDelete_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -248,7 +264,7 @@ func _Agent_SubmitJob_Handler(srv interface{}, ctx context.Context, dec func(int } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/agentpb.Agent/SubmitJob", + FullMethod: Agent_SubmitJob_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AgentServer).SubmitJob(ctx, req.(*JobRequest)) @@ -266,7 +282,7 @@ func _Agent_StoreCred_Handler(srv interface{}, ctx context.Context, dec func(int } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/agentpb.Agent/StoreCred", + FullMethod: Agent_StoreCred_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AgentServer).StoreCred(ctx, req.(*StoreCredRequest)) @@ -284,7 +300,7 @@ func _Agent_Sync_Handler(srv interface{}, ctx context.Context, dec func(interfac } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/agentpb.Agent/Sync", + FullMethod: Agent_Sync_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AgentServer).Sync(ctx, req.(*SyncRequest)) @@ -302,7 +318,7 @@ func _Agent_ClimonAppInstall_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/agentpb.Agent/ClimonAppInstall", + FullMethod: Agent_ClimonAppInstall_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AgentServer).ClimonAppInstall(ctx, req.(*ClimonInstallRequest)) @@ -320,7 +336,7 @@ func _Agent_ClimonAppDelete_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/agentpb.Agent/ClimonAppDelete", + FullMethod: Agent_ClimonAppDelete_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AgentServer).ClimonAppDelete(ctx, req.(*ClimonDeleteRequest)) @@ -338,7 +354,7 @@ func _Agent_DeployerAppInstall_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/agentpb.Agent/DeployerAppInstall", + FullMethod: Agent_DeployerAppInstall_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AgentServer).DeployerAppInstall(ctx, req.(*ApplicationInstallRequest)) @@ -356,7 +372,7 @@ func _Agent_DeployerAppDelete_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/agentpb.Agent/DeployerAppDelete", + FullMethod: Agent_DeployerAppDelete_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AgentServer).DeployerAppDelete(ctx, req.(*ApplicationDeleteRequest)) @@ -374,7 +390,7 @@ func _Agent_ClusterAdd_Handler(srv interface{}, ctx context.Context, dec func(in } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/agentpb.Agent/ClusterAdd", + FullMethod: Agent_ClusterAdd_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AgentServer).ClusterAdd(ctx, req.(*ClusterRequest)) @@ -392,7 +408,7 @@ func _Agent_ClusterDelete_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/agentpb.Agent/ClusterDelete", + FullMethod: Agent_ClusterDelete_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AgentServer).ClusterDelete(ctx, req.(*ClusterRequest)) @@ -410,7 +426,7 @@ func _Agent_RepositoryAdd_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/agentpb.Agent/RepositoryAdd", + FullMethod: Agent_RepositoryAdd_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AgentServer).RepositoryAdd(ctx, req.(*RepositoryAddRequest)) @@ -428,7 +444,7 @@ func _Agent_RepositoryDelete_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/agentpb.Agent/RepositoryDelete", + FullMethod: Agent_RepositoryDelete_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AgentServer).RepositoryDelete(ctx, req.(*RepositoryDeleteRequest)) @@ -446,7 +462,7 @@ func _Agent_ProjectAdd_Handler(srv interface{}, ctx context.Context, dec func(in } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/agentpb.Agent/ProjectAdd", + FullMethod: Agent_ProjectAdd_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AgentServer).ProjectAdd(ctx, req.(*ProjectAddRequest)) @@ -464,7 +480,7 @@ func _Agent_ProjectDelete_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/agentpb.Agent/ProjectDelete", + FullMethod: Agent_ProjectDelete_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AgentServer).ProjectDelete(ctx, req.(*ProjectDeleteRequest)) diff --git a/charts/kad/templates/agent-deployment.yaml b/charts/kad/templates/agent-deployment.yaml index ed6fc6ac..f42142de 100644 --- a/charts/kad/templates/agent-deployment.yaml +++ b/charts/kad/templates/agent-deployment.yaml @@ -29,6 +29,7 @@ spec: {{- end }} securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} + serviceAccountName: {{ include "kad.serviceAccountName" . }} containers: - name: {{ .Chart.Name }}-agent securityContext: diff --git a/proto/server.proto b/proto/server.proto new file mode 100644 index 00000000..558de153 --- /dev/null +++ b/proto/server.proto @@ -0,0 +1,129 @@ + +syntax = "proto3"; + +option go_package = "/serverpb"; + +package serverpb; + +service Server { + rpc NewClusterRegistration (NewClusterRegistrationRequest) returns (NewClusterRegistrationResponse) {} + rpc UpdateClusterRegistration (UpdateClusterRegistrationRequest) returns (UpdateClusterRegistrationResponse) {} + rpc DeleteClusterRegistration (DeleteClusterRegistrationRequest) returns (DeleteClusterRegistrationResponse) {} + + rpc GetClusters (GetClustersRequest) returns (GetClustersResponse) {} + + rpc GetClusterApps (GetClusterAppsRequest) returns (GetClusterAppsResponse) {} + rpc GetClusterAppConfig (GetClusterAppConfigRequest) returns (GetClusterAppConfigResponse) {} +} + +message NewClusterRegistrationRequest { + string clusterName = 1; + string agentEndpoint = 2; + string clientKeyData = 3; + string clientCertData = 4; + string clientCAChainData = 5; +} + +message NewClusterRegistrationResponse { + StatusCode status = 1; + string statusMessage = 2; +} + +message UpdateClusterRegistrationRequest { + string clusterName = 1; + string agentEndpoint = 2; + string clientKeyData = 3; + string clientCertData = 4; + string clientCAChainData = 5; +} + +message UpdateClusterRegistrationResponse { + StatusCode status = 1; + string statusMessage = 2; +} + +message DeleteClusterRegistrationRequest { + string clusterName = 1; +} + +message DeleteClusterRegistrationResponse { + StatusCode status = 1; + string statusMessage = 2; +} + +message GetClustersRequest { +} + +message GetClustersResponse { + StatusCode status = 1; + string statusMessage = 2; + repeated ClusterInfo data = 3; +} + +message GetClusterAppsRequest { + string clusterName = 1; +} + +message GetClusterAppsResponse { + StatusCode status = 1; + string statusMessage = 2; + repeated ClusterApps clusterApps = 3; +} + +message GetClusterAppConfigRequest { + string clusterName = 1; + string appInstanceName = 2; +} + +message GetClusterAppConfigResponse { + StatusCode status = 1; + string statusMessage = 2; + string appConfig = 3; +} + +message ClusterInfo { + string clusterName = 1; + string agentEndpoint = 2; + repeated ClusterAttribute attributes = 3; + repeated AppLaunchData appLaunches = 4; +} + +message AppLaunchData { + string appInstanceName = 1; + string appName = 2; + string appDescription = 3; + string appType = 4; + bytes appIcon = 5; + string launchEndpoint = 6; +} + +message ClusterAttribute { + string key = 1; + string value = 2; +} + +message ClusterApps { + string clusterName = 1; + string agentEndpoint = 2; + repeated InstalledAppData installedApps = 3; +} + +message InstalledAppData { + string instanceName = 1; + string name = 2; + string description = 3; + string type = 4; + string icon = 5; + string launchEndpoint = 6; + string appVersion = 7; + bool defaultApp = 8; + string installStatus = 9; + string runtimeStatus = 10; +} + +enum StatusCode { + OK = 0; + INTERNRAL_ERROR = 1; + INVALID_ARGUMENT = 2; + NOT_FOUND = 3; +} \ No newline at end of file diff --git a/server/pkg/pb/agentpb/agent.pb.go b/server/pkg/pb/agentpb/agent.pb.go index e337e5e8..0db4ef48 100644 --- a/server/pkg/pb/agentpb/agent.pb.go +++ b/server/pkg/pb/agentpb/agent.pb.go @@ -1,15 +1,15 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 -// protoc v3.15.6 +// protoc-gen-go v1.30.0 +// protoc v3.12.4 // source: agent.proto package agentpb import ( + any1 "github.com/golang/protobuf/ptypes/any" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - anypb "google.golang.org/protobuf/types/known/anypb" reflect "reflect" sync "sync" ) @@ -909,8 +909,8 @@ type JobRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Operation string `protobuf:"bytes,1,opt,name=operation,proto3" json:"operation,omitempty"` - Payload *anypb.Any `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` + Operation string `protobuf:"bytes,1,opt,name=operation,proto3" json:"operation,omitempty"` + Payload *any1.Any `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` } func (x *JobRequest) Reset() { @@ -952,7 +952,7 @@ func (x *JobRequest) GetOperation() string { return "" } -func (x *JobRequest) GetPayload() *anypb.Any { +func (x *JobRequest) GetPayload() *any1.Any { if x != nil { return x.Payload } @@ -1236,7 +1236,7 @@ var file_agent_proto_goTypes = []interface{}{ (*ProjectDeleteRequest)(nil), // 12: agentpb.ProjectDeleteRequest (*JobRequest)(nil), // 13: agentpb.JobRequest (*JobResponse)(nil), // 14: agentpb.JobResponse - (*anypb.Any)(nil), // 15: google.protobuf.Any + (*any1.Any)(nil), // 15: google.protobuf.Any } var file_agent_proto_depIdxs = []int32{ 15, // 0: agentpb.JobRequest.payload:type_name -> google.protobuf.Any diff --git a/server/pkg/pb/agentpb/agent_grpc.pb.go b/server/pkg/pb/agentpb/agent_grpc.pb.go index b00258b2..193551df 100644 --- a/server/pkg/pb/agentpb/agent_grpc.pb.go +++ b/server/pkg/pb/agentpb/agent_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 -// - protoc v3.15.6 +// - protoc-gen-go-grpc v1.3.0 +// - protoc v3.12.4 // source: agent.proto package agentpb @@ -18,6 +18,22 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + Agent_SubmitJob_FullMethodName = "/agentpb.Agent/SubmitJob" + Agent_StoreCred_FullMethodName = "/agentpb.Agent/StoreCred" + Agent_Sync_FullMethodName = "/agentpb.Agent/Sync" + Agent_ClimonAppInstall_FullMethodName = "/agentpb.Agent/ClimonAppInstall" + Agent_ClimonAppDelete_FullMethodName = "/agentpb.Agent/ClimonAppDelete" + Agent_DeployerAppInstall_FullMethodName = "/agentpb.Agent/DeployerAppInstall" + Agent_DeployerAppDelete_FullMethodName = "/agentpb.Agent/DeployerAppDelete" + Agent_ClusterAdd_FullMethodName = "/agentpb.Agent/ClusterAdd" + Agent_ClusterDelete_FullMethodName = "/agentpb.Agent/ClusterDelete" + Agent_RepositoryAdd_FullMethodName = "/agentpb.Agent/RepositoryAdd" + Agent_RepositoryDelete_FullMethodName = "/agentpb.Agent/RepositoryDelete" + Agent_ProjectAdd_FullMethodName = "/agentpb.Agent/ProjectAdd" + Agent_ProjectDelete_FullMethodName = "/agentpb.Agent/ProjectDelete" +) + // AgentClient is the client API for Agent 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. @@ -47,7 +63,7 @@ func NewAgentClient(cc grpc.ClientConnInterface) AgentClient { func (c *agentClient) SubmitJob(ctx context.Context, in *JobRequest, opts ...grpc.CallOption) (*JobResponse, error) { out := new(JobResponse) - err := c.cc.Invoke(ctx, "/agentpb.Agent/SubmitJob", in, out, opts...) + err := c.cc.Invoke(ctx, Agent_SubmitJob_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -56,7 +72,7 @@ func (c *agentClient) SubmitJob(ctx context.Context, in *JobRequest, opts ...grp func (c *agentClient) StoreCred(ctx context.Context, in *StoreCredRequest, opts ...grpc.CallOption) (*StoreCredResponse, error) { out := new(StoreCredResponse) - err := c.cc.Invoke(ctx, "/agentpb.Agent/StoreCred", in, out, opts...) + err := c.cc.Invoke(ctx, Agent_StoreCred_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -65,7 +81,7 @@ func (c *agentClient) StoreCred(ctx context.Context, in *StoreCredRequest, opts func (c *agentClient) Sync(ctx context.Context, in *SyncRequest, opts ...grpc.CallOption) (*SyncResponse, error) { out := new(SyncResponse) - err := c.cc.Invoke(ctx, "/agentpb.Agent/Sync", in, out, opts...) + err := c.cc.Invoke(ctx, Agent_Sync_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -74,7 +90,7 @@ func (c *agentClient) Sync(ctx context.Context, in *SyncRequest, opts ...grpc.Ca func (c *agentClient) ClimonAppInstall(ctx context.Context, in *ClimonInstallRequest, opts ...grpc.CallOption) (*JobResponse, error) { out := new(JobResponse) - err := c.cc.Invoke(ctx, "/agentpb.Agent/ClimonAppInstall", in, out, opts...) + err := c.cc.Invoke(ctx, Agent_ClimonAppInstall_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -83,7 +99,7 @@ func (c *agentClient) ClimonAppInstall(ctx context.Context, in *ClimonInstallReq func (c *agentClient) ClimonAppDelete(ctx context.Context, in *ClimonDeleteRequest, opts ...grpc.CallOption) (*JobResponse, error) { out := new(JobResponse) - err := c.cc.Invoke(ctx, "/agentpb.Agent/ClimonAppDelete", in, out, opts...) + err := c.cc.Invoke(ctx, Agent_ClimonAppDelete_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -92,7 +108,7 @@ func (c *agentClient) ClimonAppDelete(ctx context.Context, in *ClimonDeleteReque func (c *agentClient) DeployerAppInstall(ctx context.Context, in *ApplicationInstallRequest, opts ...grpc.CallOption) (*JobResponse, error) { out := new(JobResponse) - err := c.cc.Invoke(ctx, "/agentpb.Agent/DeployerAppInstall", in, out, opts...) + err := c.cc.Invoke(ctx, Agent_DeployerAppInstall_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -101,7 +117,7 @@ func (c *agentClient) DeployerAppInstall(ctx context.Context, in *ApplicationIns func (c *agentClient) DeployerAppDelete(ctx context.Context, in *ApplicationDeleteRequest, opts ...grpc.CallOption) (*JobResponse, error) { out := new(JobResponse) - err := c.cc.Invoke(ctx, "/agentpb.Agent/DeployerAppDelete", in, out, opts...) + err := c.cc.Invoke(ctx, Agent_DeployerAppDelete_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -110,7 +126,7 @@ func (c *agentClient) DeployerAppDelete(ctx context.Context, in *ApplicationDele func (c *agentClient) ClusterAdd(ctx context.Context, in *ClusterRequest, opts ...grpc.CallOption) (*JobResponse, error) { out := new(JobResponse) - err := c.cc.Invoke(ctx, "/agentpb.Agent/ClusterAdd", in, out, opts...) + err := c.cc.Invoke(ctx, Agent_ClusterAdd_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -119,7 +135,7 @@ func (c *agentClient) ClusterAdd(ctx context.Context, in *ClusterRequest, opts . func (c *agentClient) ClusterDelete(ctx context.Context, in *ClusterRequest, opts ...grpc.CallOption) (*JobResponse, error) { out := new(JobResponse) - err := c.cc.Invoke(ctx, "/agentpb.Agent/ClusterDelete", in, out, opts...) + err := c.cc.Invoke(ctx, Agent_ClusterDelete_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -128,7 +144,7 @@ func (c *agentClient) ClusterDelete(ctx context.Context, in *ClusterRequest, opt func (c *agentClient) RepositoryAdd(ctx context.Context, in *RepositoryAddRequest, opts ...grpc.CallOption) (*JobResponse, error) { out := new(JobResponse) - err := c.cc.Invoke(ctx, "/agentpb.Agent/RepositoryAdd", in, out, opts...) + err := c.cc.Invoke(ctx, Agent_RepositoryAdd_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -137,7 +153,7 @@ func (c *agentClient) RepositoryAdd(ctx context.Context, in *RepositoryAddReques func (c *agentClient) RepositoryDelete(ctx context.Context, in *RepositoryDeleteRequest, opts ...grpc.CallOption) (*JobResponse, error) { out := new(JobResponse) - err := c.cc.Invoke(ctx, "/agentpb.Agent/RepositoryDelete", in, out, opts...) + err := c.cc.Invoke(ctx, Agent_RepositoryDelete_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -146,7 +162,7 @@ func (c *agentClient) RepositoryDelete(ctx context.Context, in *RepositoryDelete func (c *agentClient) ProjectAdd(ctx context.Context, in *ProjectAddRequest, opts ...grpc.CallOption) (*JobResponse, error) { out := new(JobResponse) - err := c.cc.Invoke(ctx, "/agentpb.Agent/ProjectAdd", in, out, opts...) + err := c.cc.Invoke(ctx, Agent_ProjectAdd_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -155,7 +171,7 @@ func (c *agentClient) ProjectAdd(ctx context.Context, in *ProjectAddRequest, opt func (c *agentClient) ProjectDelete(ctx context.Context, in *ProjectDeleteRequest, opts ...grpc.CallOption) (*JobResponse, error) { out := new(JobResponse) - err := c.cc.Invoke(ctx, "/agentpb.Agent/ProjectDelete", in, out, opts...) + err := c.cc.Invoke(ctx, Agent_ProjectDelete_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -248,7 +264,7 @@ func _Agent_SubmitJob_Handler(srv interface{}, ctx context.Context, dec func(int } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/agentpb.Agent/SubmitJob", + FullMethod: Agent_SubmitJob_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AgentServer).SubmitJob(ctx, req.(*JobRequest)) @@ -266,7 +282,7 @@ func _Agent_StoreCred_Handler(srv interface{}, ctx context.Context, dec func(int } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/agentpb.Agent/StoreCred", + FullMethod: Agent_StoreCred_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AgentServer).StoreCred(ctx, req.(*StoreCredRequest)) @@ -284,7 +300,7 @@ func _Agent_Sync_Handler(srv interface{}, ctx context.Context, dec func(interfac } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/agentpb.Agent/Sync", + FullMethod: Agent_Sync_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AgentServer).Sync(ctx, req.(*SyncRequest)) @@ -302,7 +318,7 @@ func _Agent_ClimonAppInstall_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/agentpb.Agent/ClimonAppInstall", + FullMethod: Agent_ClimonAppInstall_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AgentServer).ClimonAppInstall(ctx, req.(*ClimonInstallRequest)) @@ -320,7 +336,7 @@ func _Agent_ClimonAppDelete_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/agentpb.Agent/ClimonAppDelete", + FullMethod: Agent_ClimonAppDelete_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AgentServer).ClimonAppDelete(ctx, req.(*ClimonDeleteRequest)) @@ -338,7 +354,7 @@ func _Agent_DeployerAppInstall_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/agentpb.Agent/DeployerAppInstall", + FullMethod: Agent_DeployerAppInstall_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AgentServer).DeployerAppInstall(ctx, req.(*ApplicationInstallRequest)) @@ -356,7 +372,7 @@ func _Agent_DeployerAppDelete_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/agentpb.Agent/DeployerAppDelete", + FullMethod: Agent_DeployerAppDelete_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AgentServer).DeployerAppDelete(ctx, req.(*ApplicationDeleteRequest)) @@ -374,7 +390,7 @@ func _Agent_ClusterAdd_Handler(srv interface{}, ctx context.Context, dec func(in } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/agentpb.Agent/ClusterAdd", + FullMethod: Agent_ClusterAdd_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AgentServer).ClusterAdd(ctx, req.(*ClusterRequest)) @@ -392,7 +408,7 @@ func _Agent_ClusterDelete_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/agentpb.Agent/ClusterDelete", + FullMethod: Agent_ClusterDelete_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AgentServer).ClusterDelete(ctx, req.(*ClusterRequest)) @@ -410,7 +426,7 @@ func _Agent_RepositoryAdd_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/agentpb.Agent/RepositoryAdd", + FullMethod: Agent_RepositoryAdd_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AgentServer).RepositoryAdd(ctx, req.(*RepositoryAddRequest)) @@ -428,7 +444,7 @@ func _Agent_RepositoryDelete_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/agentpb.Agent/RepositoryDelete", + FullMethod: Agent_RepositoryDelete_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AgentServer).RepositoryDelete(ctx, req.(*RepositoryDeleteRequest)) @@ -446,7 +462,7 @@ func _Agent_ProjectAdd_Handler(srv interface{}, ctx context.Context, dec func(in } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/agentpb.Agent/ProjectAdd", + FullMethod: Agent_ProjectAdd_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AgentServer).ProjectAdd(ctx, req.(*ProjectAddRequest)) @@ -464,7 +480,7 @@ func _Agent_ProjectDelete_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/agentpb.Agent/ProjectDelete", + FullMethod: Agent_ProjectDelete_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AgentServer).ProjectDelete(ctx, req.(*ProjectDeleteRequest)) diff --git a/server/pkg/pb/climonpb/climon.pb.go b/server/pkg/pb/climonpb/climon.pb.go index 26b1608c..7b376028 100644 --- a/server/pkg/pb/climonpb/climon.pb.go +++ b/server/pkg/pb/climonpb/climon.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 -// protoc v3.15.6 +// protoc-gen-go v1.30.0 +// protoc v3.12.4 // source: climon.proto package climonpb diff --git a/server/pkg/pb/serverpb/server.pb.go b/server/pkg/pb/serverpb/server.pb.go new file mode 100644 index 00000000..ac2a5c98 --- /dev/null +++ b/server/pkg/pb/serverpb/server.pb.go @@ -0,0 +1,1674 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc v3.12.4 +// source: server.proto + +package serverpb + +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 StatusCode int32 + +const ( + StatusCode_OK StatusCode = 0 + StatusCode_INTERNRAL_ERROR StatusCode = 1 + StatusCode_INVALID_ARGUMENT StatusCode = 2 + StatusCode_NOT_FOUND StatusCode = 3 +) + +// Enum value maps for StatusCode. +var ( + StatusCode_name = map[int32]string{ + 0: "OK", + 1: "INTERNRAL_ERROR", + 2: "INVALID_ARGUMENT", + 3: "NOT_FOUND", + } + StatusCode_value = map[string]int32{ + "OK": 0, + "INTERNRAL_ERROR": 1, + "INVALID_ARGUMENT": 2, + "NOT_FOUND": 3, + } +) + +func (x StatusCode) Enum() *StatusCode { + p := new(StatusCode) + *p = x + return p +} + +func (x StatusCode) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (StatusCode) Descriptor() protoreflect.EnumDescriptor { + return file_server_proto_enumTypes[0].Descriptor() +} + +func (StatusCode) Type() protoreflect.EnumType { + return &file_server_proto_enumTypes[0] +} + +func (x StatusCode) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use StatusCode.Descriptor instead. +func (StatusCode) EnumDescriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{0} +} + +type NewClusterRegistrationRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` + AgentEndpoint string `protobuf:"bytes,2,opt,name=agentEndpoint,proto3" json:"agentEndpoint,omitempty"` + ClientKeyData string `protobuf:"bytes,3,opt,name=clientKeyData,proto3" json:"clientKeyData,omitempty"` + ClientCertData string `protobuf:"bytes,4,opt,name=clientCertData,proto3" json:"clientCertData,omitempty"` + ClientCAChainData string `protobuf:"bytes,5,opt,name=clientCAChainData,proto3" json:"clientCAChainData,omitempty"` +} + +func (x *NewClusterRegistrationRequest) Reset() { + *x = NewClusterRegistrationRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NewClusterRegistrationRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NewClusterRegistrationRequest) ProtoMessage() {} + +func (x *NewClusterRegistrationRequest) ProtoReflect() protoreflect.Message { + mi := &file_server_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 NewClusterRegistrationRequest.ProtoReflect.Descriptor instead. +func (*NewClusterRegistrationRequest) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{0} +} + +func (x *NewClusterRegistrationRequest) GetClusterName() string { + if x != nil { + return x.ClusterName + } + return "" +} + +func (x *NewClusterRegistrationRequest) GetAgentEndpoint() string { + if x != nil { + return x.AgentEndpoint + } + return "" +} + +func (x *NewClusterRegistrationRequest) GetClientKeyData() string { + if x != nil { + return x.ClientKeyData + } + return "" +} + +func (x *NewClusterRegistrationRequest) GetClientCertData() string { + if x != nil { + return x.ClientCertData + } + return "" +} + +func (x *NewClusterRegistrationRequest) GetClientCAChainData() string { + if x != nil { + return x.ClientCAChainData + } + return "" +} + +type NewClusterRegistrationResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Status StatusCode `protobuf:"varint,1,opt,name=status,proto3,enum=serverpb.StatusCode" json:"status,omitempty"` + StatusMessage string `protobuf:"bytes,2,opt,name=statusMessage,proto3" json:"statusMessage,omitempty"` +} + +func (x *NewClusterRegistrationResponse) Reset() { + *x = NewClusterRegistrationResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NewClusterRegistrationResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NewClusterRegistrationResponse) ProtoMessage() {} + +func (x *NewClusterRegistrationResponse) ProtoReflect() protoreflect.Message { + mi := &file_server_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 NewClusterRegistrationResponse.ProtoReflect.Descriptor instead. +func (*NewClusterRegistrationResponse) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{1} +} + +func (x *NewClusterRegistrationResponse) GetStatus() StatusCode { + if x != nil { + return x.Status + } + return StatusCode_OK +} + +func (x *NewClusterRegistrationResponse) GetStatusMessage() string { + if x != nil { + return x.StatusMessage + } + return "" +} + +type UpdateClusterRegistrationRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` + AgentEndpoint string `protobuf:"bytes,2,opt,name=agentEndpoint,proto3" json:"agentEndpoint,omitempty"` + ClientKeyData string `protobuf:"bytes,3,opt,name=clientKeyData,proto3" json:"clientKeyData,omitempty"` + ClientCertData string `protobuf:"bytes,4,opt,name=clientCertData,proto3" json:"clientCertData,omitempty"` + ClientCAChainData string `protobuf:"bytes,5,opt,name=clientCAChainData,proto3" json:"clientCAChainData,omitempty"` +} + +func (x *UpdateClusterRegistrationRequest) Reset() { + *x = UpdateClusterRegistrationRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateClusterRegistrationRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateClusterRegistrationRequest) ProtoMessage() {} + +func (x *UpdateClusterRegistrationRequest) ProtoReflect() protoreflect.Message { + mi := &file_server_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 UpdateClusterRegistrationRequest.ProtoReflect.Descriptor instead. +func (*UpdateClusterRegistrationRequest) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{2} +} + +func (x *UpdateClusterRegistrationRequest) GetClusterName() string { + if x != nil { + return x.ClusterName + } + return "" +} + +func (x *UpdateClusterRegistrationRequest) GetAgentEndpoint() string { + if x != nil { + return x.AgentEndpoint + } + return "" +} + +func (x *UpdateClusterRegistrationRequest) GetClientKeyData() string { + if x != nil { + return x.ClientKeyData + } + return "" +} + +func (x *UpdateClusterRegistrationRequest) GetClientCertData() string { + if x != nil { + return x.ClientCertData + } + return "" +} + +func (x *UpdateClusterRegistrationRequest) GetClientCAChainData() string { + if x != nil { + return x.ClientCAChainData + } + return "" +} + +type UpdateClusterRegistrationResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Status StatusCode `protobuf:"varint,1,opt,name=status,proto3,enum=serverpb.StatusCode" json:"status,omitempty"` + StatusMessage string `protobuf:"bytes,2,opt,name=statusMessage,proto3" json:"statusMessage,omitempty"` +} + +func (x *UpdateClusterRegistrationResponse) Reset() { + *x = UpdateClusterRegistrationResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateClusterRegistrationResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateClusterRegistrationResponse) ProtoMessage() {} + +func (x *UpdateClusterRegistrationResponse) ProtoReflect() protoreflect.Message { + mi := &file_server_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 UpdateClusterRegistrationResponse.ProtoReflect.Descriptor instead. +func (*UpdateClusterRegistrationResponse) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{3} +} + +func (x *UpdateClusterRegistrationResponse) GetStatus() StatusCode { + if x != nil { + return x.Status + } + return StatusCode_OK +} + +func (x *UpdateClusterRegistrationResponse) GetStatusMessage() string { + if x != nil { + return x.StatusMessage + } + return "" +} + +type DeleteClusterRegistrationRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` +} + +func (x *DeleteClusterRegistrationRequest) Reset() { + *x = DeleteClusterRegistrationRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteClusterRegistrationRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteClusterRegistrationRequest) ProtoMessage() {} + +func (x *DeleteClusterRegistrationRequest) ProtoReflect() protoreflect.Message { + mi := &file_server_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 DeleteClusterRegistrationRequest.ProtoReflect.Descriptor instead. +func (*DeleteClusterRegistrationRequest) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{4} +} + +func (x *DeleteClusterRegistrationRequest) GetClusterName() string { + if x != nil { + return x.ClusterName + } + return "" +} + +type DeleteClusterRegistrationResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Status StatusCode `protobuf:"varint,1,opt,name=status,proto3,enum=serverpb.StatusCode" json:"status,omitempty"` + StatusMessage string `protobuf:"bytes,2,opt,name=statusMessage,proto3" json:"statusMessage,omitempty"` +} + +func (x *DeleteClusterRegistrationResponse) Reset() { + *x = DeleteClusterRegistrationResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteClusterRegistrationResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteClusterRegistrationResponse) ProtoMessage() {} + +func (x *DeleteClusterRegistrationResponse) ProtoReflect() protoreflect.Message { + mi := &file_server_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 DeleteClusterRegistrationResponse.ProtoReflect.Descriptor instead. +func (*DeleteClusterRegistrationResponse) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{5} +} + +func (x *DeleteClusterRegistrationResponse) GetStatus() StatusCode { + if x != nil { + return x.Status + } + return StatusCode_OK +} + +func (x *DeleteClusterRegistrationResponse) GetStatusMessage() string { + if x != nil { + return x.StatusMessage + } + return "" +} + +type GetClustersRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *GetClustersRequest) Reset() { + *x = GetClustersRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetClustersRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetClustersRequest) ProtoMessage() {} + +func (x *GetClustersRequest) ProtoReflect() protoreflect.Message { + mi := &file_server_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 GetClustersRequest.ProtoReflect.Descriptor instead. +func (*GetClustersRequest) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{6} +} + +type GetClustersResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Status StatusCode `protobuf:"varint,1,opt,name=status,proto3,enum=serverpb.StatusCode" json:"status,omitempty"` + StatusMessage string `protobuf:"bytes,2,opt,name=statusMessage,proto3" json:"statusMessage,omitempty"` + Data []*ClusterInfo `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` +} + +func (x *GetClustersResponse) Reset() { + *x = GetClustersResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetClustersResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetClustersResponse) ProtoMessage() {} + +func (x *GetClustersResponse) ProtoReflect() protoreflect.Message { + mi := &file_server_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 GetClustersResponse.ProtoReflect.Descriptor instead. +func (*GetClustersResponse) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{7} +} + +func (x *GetClustersResponse) GetStatus() StatusCode { + if x != nil { + return x.Status + } + return StatusCode_OK +} + +func (x *GetClustersResponse) GetStatusMessage() string { + if x != nil { + return x.StatusMessage + } + return "" +} + +func (x *GetClustersResponse) GetData() []*ClusterInfo { + if x != nil { + return x.Data + } + return nil +} + +type GetClusterAppsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` +} + +func (x *GetClusterAppsRequest) Reset() { + *x = GetClusterAppsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetClusterAppsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetClusterAppsRequest) ProtoMessage() {} + +func (x *GetClusterAppsRequest) ProtoReflect() protoreflect.Message { + mi := &file_server_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 GetClusterAppsRequest.ProtoReflect.Descriptor instead. +func (*GetClusterAppsRequest) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{8} +} + +func (x *GetClusterAppsRequest) GetClusterName() string { + if x != nil { + return x.ClusterName + } + return "" +} + +type GetClusterAppsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Status StatusCode `protobuf:"varint,1,opt,name=status,proto3,enum=serverpb.StatusCode" json:"status,omitempty"` + StatusMessage string `protobuf:"bytes,2,opt,name=statusMessage,proto3" json:"statusMessage,omitempty"` + ClusterApps []*ClusterApps `protobuf:"bytes,3,rep,name=clusterApps,proto3" json:"clusterApps,omitempty"` +} + +func (x *GetClusterAppsResponse) Reset() { + *x = GetClusterAppsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetClusterAppsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetClusterAppsResponse) ProtoMessage() {} + +func (x *GetClusterAppsResponse) ProtoReflect() protoreflect.Message { + mi := &file_server_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 GetClusterAppsResponse.ProtoReflect.Descriptor instead. +func (*GetClusterAppsResponse) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{9} +} + +func (x *GetClusterAppsResponse) GetStatus() StatusCode { + if x != nil { + return x.Status + } + return StatusCode_OK +} + +func (x *GetClusterAppsResponse) GetStatusMessage() string { + if x != nil { + return x.StatusMessage + } + return "" +} + +func (x *GetClusterAppsResponse) GetClusterApps() []*ClusterApps { + if x != nil { + return x.ClusterApps + } + return nil +} + +type GetClusterAppConfigRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` + AppInstanceName string `protobuf:"bytes,2,opt,name=appInstanceName,proto3" json:"appInstanceName,omitempty"` +} + +func (x *GetClusterAppConfigRequest) Reset() { + *x = GetClusterAppConfigRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetClusterAppConfigRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetClusterAppConfigRequest) ProtoMessage() {} + +func (x *GetClusterAppConfigRequest) ProtoReflect() protoreflect.Message { + mi := &file_server_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 GetClusterAppConfigRequest.ProtoReflect.Descriptor instead. +func (*GetClusterAppConfigRequest) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{10} +} + +func (x *GetClusterAppConfigRequest) GetClusterName() string { + if x != nil { + return x.ClusterName + } + return "" +} + +func (x *GetClusterAppConfigRequest) GetAppInstanceName() string { + if x != nil { + return x.AppInstanceName + } + return "" +} + +type GetClusterAppConfigResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Status StatusCode `protobuf:"varint,1,opt,name=status,proto3,enum=serverpb.StatusCode" json:"status,omitempty"` + StatusMessage string `protobuf:"bytes,2,opt,name=statusMessage,proto3" json:"statusMessage,omitempty"` + AppConfig string `protobuf:"bytes,3,opt,name=appConfig,proto3" json:"appConfig,omitempty"` +} + +func (x *GetClusterAppConfigResponse) Reset() { + *x = GetClusterAppConfigResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetClusterAppConfigResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetClusterAppConfigResponse) ProtoMessage() {} + +func (x *GetClusterAppConfigResponse) ProtoReflect() protoreflect.Message { + mi := &file_server_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 GetClusterAppConfigResponse.ProtoReflect.Descriptor instead. +func (*GetClusterAppConfigResponse) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{11} +} + +func (x *GetClusterAppConfigResponse) GetStatus() StatusCode { + if x != nil { + return x.Status + } + return StatusCode_OK +} + +func (x *GetClusterAppConfigResponse) GetStatusMessage() string { + if x != nil { + return x.StatusMessage + } + return "" +} + +func (x *GetClusterAppConfigResponse) GetAppConfig() string { + if x != nil { + return x.AppConfig + } + return "" +} + +type ClusterInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` + AgentEndpoint string `protobuf:"bytes,2,opt,name=agentEndpoint,proto3" json:"agentEndpoint,omitempty"` + Attributes []*ClusterAttribute `protobuf:"bytes,3,rep,name=attributes,proto3" json:"attributes,omitempty"` + AppLaunches []*AppLaunchData `protobuf:"bytes,4,rep,name=appLaunches,proto3" json:"appLaunches,omitempty"` +} + +func (x *ClusterInfo) Reset() { + *x = ClusterInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ClusterInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ClusterInfo) ProtoMessage() {} + +func (x *ClusterInfo) ProtoReflect() protoreflect.Message { + mi := &file_server_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 ClusterInfo.ProtoReflect.Descriptor instead. +func (*ClusterInfo) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{12} +} + +func (x *ClusterInfo) GetClusterName() string { + if x != nil { + return x.ClusterName + } + return "" +} + +func (x *ClusterInfo) GetAgentEndpoint() string { + if x != nil { + return x.AgentEndpoint + } + return "" +} + +func (x *ClusterInfo) GetAttributes() []*ClusterAttribute { + if x != nil { + return x.Attributes + } + return nil +} + +func (x *ClusterInfo) GetAppLaunches() []*AppLaunchData { + if x != nil { + return x.AppLaunches + } + return nil +} + +type AppLaunchData struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AppInstanceName string `protobuf:"bytes,1,opt,name=appInstanceName,proto3" json:"appInstanceName,omitempty"` + AppName string `protobuf:"bytes,2,opt,name=appName,proto3" json:"appName,omitempty"` + AppDescription string `protobuf:"bytes,3,opt,name=appDescription,proto3" json:"appDescription,omitempty"` + AppType string `protobuf:"bytes,4,opt,name=appType,proto3" json:"appType,omitempty"` + AppIcon []byte `protobuf:"bytes,5,opt,name=appIcon,proto3" json:"appIcon,omitempty"` + LaunchEndpoint string `protobuf:"bytes,6,opt,name=launchEndpoint,proto3" json:"launchEndpoint,omitempty"` +} + +func (x *AppLaunchData) Reset() { + *x = AppLaunchData{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AppLaunchData) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AppLaunchData) ProtoMessage() {} + +func (x *AppLaunchData) ProtoReflect() protoreflect.Message { + mi := &file_server_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 AppLaunchData.ProtoReflect.Descriptor instead. +func (*AppLaunchData) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{13} +} + +func (x *AppLaunchData) GetAppInstanceName() string { + if x != nil { + return x.AppInstanceName + } + return "" +} + +func (x *AppLaunchData) GetAppName() string { + if x != nil { + return x.AppName + } + return "" +} + +func (x *AppLaunchData) GetAppDescription() string { + if x != nil { + return x.AppDescription + } + return "" +} + +func (x *AppLaunchData) GetAppType() string { + if x != nil { + return x.AppType + } + return "" +} + +func (x *AppLaunchData) GetAppIcon() []byte { + if x != nil { + return x.AppIcon + } + return nil +} + +func (x *AppLaunchData) GetLaunchEndpoint() string { + if x != nil { + return x.LaunchEndpoint + } + return "" +} + +type ClusterAttribute struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *ClusterAttribute) Reset() { + *x = ClusterAttribute{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ClusterAttribute) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ClusterAttribute) ProtoMessage() {} + +func (x *ClusterAttribute) ProtoReflect() protoreflect.Message { + mi := &file_server_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 ClusterAttribute.ProtoReflect.Descriptor instead. +func (*ClusterAttribute) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{14} +} + +func (x *ClusterAttribute) GetKey() string { + if x != nil { + return x.Key + } + return "" +} + +func (x *ClusterAttribute) GetValue() string { + if x != nil { + return x.Value + } + return "" +} + +type ClusterApps struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` + AgentEndpoint string `protobuf:"bytes,2,opt,name=agentEndpoint,proto3" json:"agentEndpoint,omitempty"` + InstalledApps []*InstalledAppData `protobuf:"bytes,3,rep,name=installedApps,proto3" json:"installedApps,omitempty"` +} + +func (x *ClusterApps) Reset() { + *x = ClusterApps{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ClusterApps) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ClusterApps) ProtoMessage() {} + +func (x *ClusterApps) ProtoReflect() protoreflect.Message { + mi := &file_server_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 ClusterApps.ProtoReflect.Descriptor instead. +func (*ClusterApps) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{15} +} + +func (x *ClusterApps) GetClusterName() string { + if x != nil { + return x.ClusterName + } + return "" +} + +func (x *ClusterApps) GetAgentEndpoint() string { + if x != nil { + return x.AgentEndpoint + } + return "" +} + +func (x *ClusterApps) GetInstalledApps() []*InstalledAppData { + if x != nil { + return x.InstalledApps + } + return nil +} + +type InstalledAppData struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + InstanceName string `protobuf:"bytes,1,opt,name=instanceName,proto3" json:"instanceName,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` + Icon string `protobuf:"bytes,5,opt,name=icon,proto3" json:"icon,omitempty"` + LaunchEndpoint string `protobuf:"bytes,6,opt,name=launchEndpoint,proto3" json:"launchEndpoint,omitempty"` + AppVersion string `protobuf:"bytes,7,opt,name=appVersion,proto3" json:"appVersion,omitempty"` + DefaultApp bool `protobuf:"varint,8,opt,name=defaultApp,proto3" json:"defaultApp,omitempty"` + InstallStatus string `protobuf:"bytes,9,opt,name=installStatus,proto3" json:"installStatus,omitempty"` + RuntimeStatus string `protobuf:"bytes,10,opt,name=runtimeStatus,proto3" json:"runtimeStatus,omitempty"` +} + +func (x *InstalledAppData) Reset() { + *x = InstalledAppData{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *InstalledAppData) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InstalledAppData) ProtoMessage() {} + +func (x *InstalledAppData) ProtoReflect() protoreflect.Message { + mi := &file_server_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 InstalledAppData.ProtoReflect.Descriptor instead. +func (*InstalledAppData) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{16} +} + +func (x *InstalledAppData) GetInstanceName() string { + if x != nil { + return x.InstanceName + } + return "" +} + +func (x *InstalledAppData) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *InstalledAppData) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *InstalledAppData) GetType() string { + if x != nil { + return x.Type + } + return "" +} + +func (x *InstalledAppData) GetIcon() string { + if x != nil { + return x.Icon + } + return "" +} + +func (x *InstalledAppData) GetLaunchEndpoint() string { + if x != nil { + return x.LaunchEndpoint + } + return "" +} + +func (x *InstalledAppData) GetAppVersion() string { + if x != nil { + return x.AppVersion + } + return "" +} + +func (x *InstalledAppData) GetDefaultApp() bool { + if x != nil { + return x.DefaultApp + } + return false +} + +func (x *InstalledAppData) GetInstallStatus() string { + if x != nil { + return x.InstallStatus + } + return "" +} + +func (x *InstalledAppData) GetRuntimeStatus() string { + if x != nil { + return x.RuntimeStatus + } + return "" +} + +var File_server_proto protoreflect.FileDescriptor + +var file_server_proto_rawDesc = []byte{ + 0x0a, 0x0c, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, + 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x70, 0x62, 0x22, 0xe3, 0x01, 0x0a, 0x1d, 0x4e, 0x65, 0x77, + 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0d, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, + 0x6e, 0x74, 0x12, 0x24, 0x0a, 0x0d, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x4b, 0x65, 0x79, 0x44, + 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x6c, 0x69, 0x65, 0x6e, + 0x74, 0x4b, 0x65, 0x79, 0x44, 0x61, 0x74, 0x61, 0x12, 0x26, 0x0a, 0x0e, 0x63, 0x6c, 0x69, 0x65, + 0x6e, 0x74, 0x43, 0x65, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0e, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x65, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, + 0x12, 0x2c, 0x0a, 0x11, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x41, 0x43, 0x68, 0x61, 0x69, + 0x6e, 0x44, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x63, 0x6c, 0x69, + 0x65, 0x6e, 0x74, 0x43, 0x41, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x22, 0x74, + 0x0a, 0x1e, 0x4e, 0x65, 0x77, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x2c, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x14, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x70, 0x62, 0x2e, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x24, + 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x22, 0xe6, 0x01, 0x0a, 0x20, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6c, 0x75, + 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, + 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, + 0x74, 0x12, 0x24, 0x0a, 0x0d, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x4b, 0x65, 0x79, 0x44, 0x61, + 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, + 0x4b, 0x65, 0x79, 0x44, 0x61, 0x74, 0x61, 0x12, 0x26, 0x0a, 0x0e, 0x63, 0x6c, 0x69, 0x65, 0x6e, + 0x74, 0x43, 0x65, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0e, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x65, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, + 0x2c, 0x0a, 0x11, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x41, 0x43, 0x68, 0x61, 0x69, 0x6e, + 0x44, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x63, 0x6c, 0x69, 0x65, + 0x6e, 0x74, 0x43, 0x41, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x22, 0x77, 0x0a, + 0x21, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x70, 0x62, 0x2e, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x12, 0x24, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x4d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x44, 0x0a, 0x20, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x77, 0x0a, 0x21, + 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x2c, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x14, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x70, 0x62, 0x2e, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, + 0x24, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x4d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x14, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x94, 0x01, 0x0a, 0x13, + 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x70, 0x62, 0x2e, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x12, 0x24, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x4d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x29, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, + 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x70, 0x62, + 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x64, 0x61, + 0x74, 0x61, 0x22, 0x39, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x41, 0x70, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x63, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xa5, 0x01, + 0x0a, 0x16, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x41, 0x70, 0x70, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, + 0x72, 0x70, 0x62, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x06, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x24, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x37, 0x0a, 0x0b, + 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x41, 0x70, 0x70, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x15, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x70, 0x62, 0x2e, 0x43, 0x6c, 0x75, + 0x73, 0x74, 0x65, 0x72, 0x41, 0x70, 0x70, 0x73, 0x52, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x41, 0x70, 0x70, 0x73, 0x22, 0x68, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x41, 0x70, 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x0f, 0x61, 0x70, 0x70, 0x49, 0x6e, 0x73, 0x74, + 0x61, 0x6e, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, + 0x61, 0x70, 0x70, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, + 0x8f, 0x01, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x41, 0x70, + 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x2c, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x14, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x70, 0x62, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x24, 0x0a, + 0x0d, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x4d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x70, 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x70, 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x22, 0xcc, 0x01, 0x0a, 0x0b, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x66, + 0x6f, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, + 0x61, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x45, 0x6e, 0x64, 0x70, + 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x3a, 0x0a, 0x0a, 0x61, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x70, 0x62, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x39, 0x0a, 0x0b, 0x61, 0x70, 0x70, 0x4c, 0x61, 0x75, 0x6e, + 0x63, 0x68, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x73, 0x65, 0x72, + 0x76, 0x65, 0x72, 0x70, 0x62, 0x2e, 0x41, 0x70, 0x70, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x44, + 0x61, 0x74, 0x61, 0x52, 0x0b, 0x61, 0x70, 0x70, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x65, 0x73, + 0x22, 0xd7, 0x01, 0x0a, 0x0d, 0x41, 0x70, 0x70, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x44, 0x61, + 0x74, 0x61, 0x12, 0x28, 0x0a, 0x0f, 0x61, 0x70, 0x70, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, + 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x70, 0x70, + 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, + 0x61, 0x70, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, + 0x70, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x26, 0x0a, 0x0e, 0x61, 0x70, 0x70, 0x44, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, + 0x61, 0x70, 0x70, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, + 0x0a, 0x07, 0x61, 0x70, 0x70, 0x54, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x61, 0x70, 0x70, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x70, 0x70, 0x49, + 0x63, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x70, 0x70, 0x49, 0x63, + 0x6f, 0x6e, 0x12, 0x26, 0x0a, 0x0e, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x45, 0x6e, 0x64, 0x70, + 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6c, 0x61, 0x75, 0x6e, + 0x63, 0x68, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x22, 0x3a, 0x0a, 0x10, 0x43, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 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, 0x22, 0x97, 0x01, 0x0a, 0x0b, 0x43, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x41, 0x70, 0x70, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6c, 0x75, + 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x40, + 0x0a, 0x0d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x64, 0x41, 0x70, 0x70, 0x73, 0x18, + 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x70, 0x62, + 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x64, 0x41, 0x70, 0x70, 0x44, 0x61, 0x74, + 0x61, 0x52, 0x0d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x64, 0x41, 0x70, 0x70, 0x73, + 0x22, 0xc8, 0x02, 0x0a, 0x10, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x64, 0x41, 0x70, + 0x70, 0x44, 0x61, 0x74, 0x61, 0x12, 0x22, 0x0a, 0x0c, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, + 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x69, 0x6e, 0x73, + 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, + 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, + 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x63, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x69, 0x63, 0x6f, 0x6e, 0x12, 0x26, 0x0a, 0x0e, 0x6c, 0x61, 0x75, 0x6e, 0x63, + 0x68, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0e, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, + 0x1e, 0x0a, 0x0a, 0x61, 0x70, 0x70, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x70, 0x70, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, + 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x41, 0x70, 0x70, 0x18, 0x08, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x0a, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x41, 0x70, 0x70, 0x12, + 0x24, 0x0a, 0x0d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x24, 0x0a, 0x0d, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x75, + 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2a, 0x4e, 0x0a, 0x0a, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x06, 0x0a, 0x02, 0x4f, 0x4b, 0x10, + 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x4e, 0x52, 0x41, 0x4c, 0x5f, 0x45, + 0x52, 0x52, 0x4f, 0x52, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, + 0x44, 0x5f, 0x41, 0x52, 0x47, 0x55, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, + 0x4e, 0x4f, 0x54, 0x5f, 0x46, 0x4f, 0x55, 0x4e, 0x44, 0x10, 0x03, 0x32, 0xf2, 0x04, 0x0a, 0x06, + 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x6d, 0x0a, 0x16, 0x4e, 0x65, 0x77, 0x43, 0x6c, 0x75, + 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x27, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x70, 0x62, 0x2e, 0x4e, 0x65, 0x77, 0x43, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x73, 0x65, 0x72, 0x76, + 0x65, 0x72, 0x70, 0x62, 0x2e, 0x4e, 0x65, 0x77, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x76, 0x0a, 0x19, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x2a, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x70, 0x62, 0x2e, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, + 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x76, 0x0a, + 0x19, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2a, 0x2e, 0x73, 0x65, 0x72, + 0x76, 0x65, 0x72, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x70, + 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4c, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x73, 0x12, 0x1c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x70, 0x62, 0x2e, + 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x70, 0x62, 0x2e, 0x47, 0x65, + 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x12, 0x55, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x41, 0x70, 0x70, 0x73, 0x12, 0x1f, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x70, 0x62, + 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x41, 0x70, 0x70, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x70, + 0x62, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x41, 0x70, 0x70, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x64, 0x0a, 0x13, 0x47, 0x65, + 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x41, 0x70, 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x12, 0x24, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, + 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x41, 0x70, 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, + 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x41, 0x70, 0x70, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x42, 0x0b, 0x5a, 0x09, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x70, 0x62, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_server_proto_rawDescOnce sync.Once + file_server_proto_rawDescData = file_server_proto_rawDesc +) + +func file_server_proto_rawDescGZIP() []byte { + file_server_proto_rawDescOnce.Do(func() { + file_server_proto_rawDescData = protoimpl.X.CompressGZIP(file_server_proto_rawDescData) + }) + return file_server_proto_rawDescData +} + +var file_server_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_server_proto_msgTypes = make([]protoimpl.MessageInfo, 17) +var file_server_proto_goTypes = []interface{}{ + (StatusCode)(0), // 0: serverpb.StatusCode + (*NewClusterRegistrationRequest)(nil), // 1: serverpb.NewClusterRegistrationRequest + (*NewClusterRegistrationResponse)(nil), // 2: serverpb.NewClusterRegistrationResponse + (*UpdateClusterRegistrationRequest)(nil), // 3: serverpb.UpdateClusterRegistrationRequest + (*UpdateClusterRegistrationResponse)(nil), // 4: serverpb.UpdateClusterRegistrationResponse + (*DeleteClusterRegistrationRequest)(nil), // 5: serverpb.DeleteClusterRegistrationRequest + (*DeleteClusterRegistrationResponse)(nil), // 6: serverpb.DeleteClusterRegistrationResponse + (*GetClustersRequest)(nil), // 7: serverpb.GetClustersRequest + (*GetClustersResponse)(nil), // 8: serverpb.GetClustersResponse + (*GetClusterAppsRequest)(nil), // 9: serverpb.GetClusterAppsRequest + (*GetClusterAppsResponse)(nil), // 10: serverpb.GetClusterAppsResponse + (*GetClusterAppConfigRequest)(nil), // 11: serverpb.GetClusterAppConfigRequest + (*GetClusterAppConfigResponse)(nil), // 12: serverpb.GetClusterAppConfigResponse + (*ClusterInfo)(nil), // 13: serverpb.ClusterInfo + (*AppLaunchData)(nil), // 14: serverpb.AppLaunchData + (*ClusterAttribute)(nil), // 15: serverpb.ClusterAttribute + (*ClusterApps)(nil), // 16: serverpb.ClusterApps + (*InstalledAppData)(nil), // 17: serverpb.InstalledAppData +} +var file_server_proto_depIdxs = []int32{ + 0, // 0: serverpb.NewClusterRegistrationResponse.status:type_name -> serverpb.StatusCode + 0, // 1: serverpb.UpdateClusterRegistrationResponse.status:type_name -> serverpb.StatusCode + 0, // 2: serverpb.DeleteClusterRegistrationResponse.status:type_name -> serverpb.StatusCode + 0, // 3: serverpb.GetClustersResponse.status:type_name -> serverpb.StatusCode + 13, // 4: serverpb.GetClustersResponse.data:type_name -> serverpb.ClusterInfo + 0, // 5: serverpb.GetClusterAppsResponse.status:type_name -> serverpb.StatusCode + 16, // 6: serverpb.GetClusterAppsResponse.clusterApps:type_name -> serverpb.ClusterApps + 0, // 7: serverpb.GetClusterAppConfigResponse.status:type_name -> serverpb.StatusCode + 15, // 8: serverpb.ClusterInfo.attributes:type_name -> serverpb.ClusterAttribute + 14, // 9: serverpb.ClusterInfo.appLaunches:type_name -> serverpb.AppLaunchData + 17, // 10: serverpb.ClusterApps.installedApps:type_name -> serverpb.InstalledAppData + 1, // 11: serverpb.Server.NewClusterRegistration:input_type -> serverpb.NewClusterRegistrationRequest + 3, // 12: serverpb.Server.UpdateClusterRegistration:input_type -> serverpb.UpdateClusterRegistrationRequest + 5, // 13: serverpb.Server.DeleteClusterRegistration:input_type -> serverpb.DeleteClusterRegistrationRequest + 7, // 14: serverpb.Server.GetClusters:input_type -> serverpb.GetClustersRequest + 9, // 15: serverpb.Server.GetClusterApps:input_type -> serverpb.GetClusterAppsRequest + 11, // 16: serverpb.Server.GetClusterAppConfig:input_type -> serverpb.GetClusterAppConfigRequest + 2, // 17: serverpb.Server.NewClusterRegistration:output_type -> serverpb.NewClusterRegistrationResponse + 4, // 18: serverpb.Server.UpdateClusterRegistration:output_type -> serverpb.UpdateClusterRegistrationResponse + 6, // 19: serverpb.Server.DeleteClusterRegistration:output_type -> serverpb.DeleteClusterRegistrationResponse + 8, // 20: serverpb.Server.GetClusters:output_type -> serverpb.GetClustersResponse + 10, // 21: serverpb.Server.GetClusterApps:output_type -> serverpb.GetClusterAppsResponse + 12, // 22: serverpb.Server.GetClusterAppConfig:output_type -> serverpb.GetClusterAppConfigResponse + 17, // [17:23] is the sub-list for method output_type + 11, // [11:17] is the sub-list for method input_type + 11, // [11:11] is the sub-list for extension type_name + 11, // [11:11] is the sub-list for extension extendee + 0, // [0:11] is the sub-list for field type_name +} + +func init() { file_server_proto_init() } +func file_server_proto_init() { + if File_server_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_server_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NewClusterRegistrationRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NewClusterRegistrationResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateClusterRegistrationRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateClusterRegistrationResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteClusterRegistrationRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteClusterRegistrationResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetClustersRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetClustersResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetClusterAppsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetClusterAppsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetClusterAppConfigRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetClusterAppConfigResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ClusterInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AppLaunchData); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ClusterAttribute); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ClusterApps); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InstalledAppData); 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_server_proto_rawDesc, + NumEnums: 1, + NumMessages: 17, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_server_proto_goTypes, + DependencyIndexes: file_server_proto_depIdxs, + EnumInfos: file_server_proto_enumTypes, + MessageInfos: file_server_proto_msgTypes, + }.Build() + File_server_proto = out.File + file_server_proto_rawDesc = nil + file_server_proto_goTypes = nil + file_server_proto_depIdxs = nil +} diff --git a/server/pkg/pb/serverpb/server_grpc.pb.go b/server/pkg/pb/serverpb/server_grpc.pb.go new file mode 100644 index 00000000..aed7518d --- /dev/null +++ b/server/pkg/pb/serverpb/server_grpc.pb.go @@ -0,0 +1,294 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.3.0 +// - protoc v3.12.4 +// source: server.proto + +package serverpb + +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.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +const ( + Server_NewClusterRegistration_FullMethodName = "/serverpb.Server/NewClusterRegistration" + Server_UpdateClusterRegistration_FullMethodName = "/serverpb.Server/UpdateClusterRegistration" + Server_DeleteClusterRegistration_FullMethodName = "/serverpb.Server/DeleteClusterRegistration" + Server_GetClusters_FullMethodName = "/serverpb.Server/GetClusters" + Server_GetClusterApps_FullMethodName = "/serverpb.Server/GetClusterApps" + Server_GetClusterAppConfig_FullMethodName = "/serverpb.Server/GetClusterAppConfig" +) + +// ServerClient is the client API for Server 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. +type ServerClient interface { + NewClusterRegistration(ctx context.Context, in *NewClusterRegistrationRequest, opts ...grpc.CallOption) (*NewClusterRegistrationResponse, error) + UpdateClusterRegistration(ctx context.Context, in *UpdateClusterRegistrationRequest, opts ...grpc.CallOption) (*UpdateClusterRegistrationResponse, error) + DeleteClusterRegistration(ctx context.Context, in *DeleteClusterRegistrationRequest, opts ...grpc.CallOption) (*DeleteClusterRegistrationResponse, error) + GetClusters(ctx context.Context, in *GetClustersRequest, opts ...grpc.CallOption) (*GetClustersResponse, error) + GetClusterApps(ctx context.Context, in *GetClusterAppsRequest, opts ...grpc.CallOption) (*GetClusterAppsResponse, error) + GetClusterAppConfig(ctx context.Context, in *GetClusterAppConfigRequest, opts ...grpc.CallOption) (*GetClusterAppConfigResponse, error) +} + +type serverClient struct { + cc grpc.ClientConnInterface +} + +func NewServerClient(cc grpc.ClientConnInterface) ServerClient { + return &serverClient{cc} +} + +func (c *serverClient) NewClusterRegistration(ctx context.Context, in *NewClusterRegistrationRequest, opts ...grpc.CallOption) (*NewClusterRegistrationResponse, error) { + out := new(NewClusterRegistrationResponse) + err := c.cc.Invoke(ctx, Server_NewClusterRegistration_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *serverClient) UpdateClusterRegistration(ctx context.Context, in *UpdateClusterRegistrationRequest, opts ...grpc.CallOption) (*UpdateClusterRegistrationResponse, error) { + out := new(UpdateClusterRegistrationResponse) + err := c.cc.Invoke(ctx, Server_UpdateClusterRegistration_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *serverClient) DeleteClusterRegistration(ctx context.Context, in *DeleteClusterRegistrationRequest, opts ...grpc.CallOption) (*DeleteClusterRegistrationResponse, error) { + out := new(DeleteClusterRegistrationResponse) + err := c.cc.Invoke(ctx, Server_DeleteClusterRegistration_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *serverClient) GetClusters(ctx context.Context, in *GetClustersRequest, opts ...grpc.CallOption) (*GetClustersResponse, error) { + out := new(GetClustersResponse) + err := c.cc.Invoke(ctx, Server_GetClusters_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *serverClient) GetClusterApps(ctx context.Context, in *GetClusterAppsRequest, opts ...grpc.CallOption) (*GetClusterAppsResponse, error) { + out := new(GetClusterAppsResponse) + err := c.cc.Invoke(ctx, Server_GetClusterApps_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *serverClient) GetClusterAppConfig(ctx context.Context, in *GetClusterAppConfigRequest, opts ...grpc.CallOption) (*GetClusterAppConfigResponse, error) { + out := new(GetClusterAppConfigResponse) + err := c.cc.Invoke(ctx, Server_GetClusterAppConfig_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ServerServer is the server API for Server service. +// All implementations must embed UnimplementedServerServer +// for forward compatibility +type ServerServer interface { + NewClusterRegistration(context.Context, *NewClusterRegistrationRequest) (*NewClusterRegistrationResponse, error) + UpdateClusterRegistration(context.Context, *UpdateClusterRegistrationRequest) (*UpdateClusterRegistrationResponse, error) + DeleteClusterRegistration(context.Context, *DeleteClusterRegistrationRequest) (*DeleteClusterRegistrationResponse, error) + GetClusters(context.Context, *GetClustersRequest) (*GetClustersResponse, error) + GetClusterApps(context.Context, *GetClusterAppsRequest) (*GetClusterAppsResponse, error) + GetClusterAppConfig(context.Context, *GetClusterAppConfigRequest) (*GetClusterAppConfigResponse, error) + mustEmbedUnimplementedServerServer() +} + +// UnimplementedServerServer must be embedded to have forward compatible implementations. +type UnimplementedServerServer struct { +} + +func (UnimplementedServerServer) NewClusterRegistration(context.Context, *NewClusterRegistrationRequest) (*NewClusterRegistrationResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method NewClusterRegistration not implemented") +} +func (UnimplementedServerServer) UpdateClusterRegistration(context.Context, *UpdateClusterRegistrationRequest) (*UpdateClusterRegistrationResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateClusterRegistration not implemented") +} +func (UnimplementedServerServer) DeleteClusterRegistration(context.Context, *DeleteClusterRegistrationRequest) (*DeleteClusterRegistrationResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteClusterRegistration not implemented") +} +func (UnimplementedServerServer) GetClusters(context.Context, *GetClustersRequest) (*GetClustersResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetClusters not implemented") +} +func (UnimplementedServerServer) GetClusterApps(context.Context, *GetClusterAppsRequest) (*GetClusterAppsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetClusterApps not implemented") +} +func (UnimplementedServerServer) GetClusterAppConfig(context.Context, *GetClusterAppConfigRequest) (*GetClusterAppConfigResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetClusterAppConfig not implemented") +} +func (UnimplementedServerServer) mustEmbedUnimplementedServerServer() {} + +// UnsafeServerServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to ServerServer will +// result in compilation errors. +type UnsafeServerServer interface { + mustEmbedUnimplementedServerServer() +} + +func RegisterServerServer(s grpc.ServiceRegistrar, srv ServerServer) { + s.RegisterService(&Server_ServiceDesc, srv) +} + +func _Server_NewClusterRegistration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(NewClusterRegistrationRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ServerServer).NewClusterRegistration(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Server_NewClusterRegistration_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ServerServer).NewClusterRegistration(ctx, req.(*NewClusterRegistrationRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Server_UpdateClusterRegistration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateClusterRegistrationRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ServerServer).UpdateClusterRegistration(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Server_UpdateClusterRegistration_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ServerServer).UpdateClusterRegistration(ctx, req.(*UpdateClusterRegistrationRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Server_DeleteClusterRegistration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteClusterRegistrationRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ServerServer).DeleteClusterRegistration(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Server_DeleteClusterRegistration_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ServerServer).DeleteClusterRegistration(ctx, req.(*DeleteClusterRegistrationRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Server_GetClusters_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetClustersRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ServerServer).GetClusters(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Server_GetClusters_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ServerServer).GetClusters(ctx, req.(*GetClustersRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Server_GetClusterApps_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetClusterAppsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ServerServer).GetClusterApps(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Server_GetClusterApps_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ServerServer).GetClusterApps(ctx, req.(*GetClusterAppsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Server_GetClusterAppConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetClusterAppConfigRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ServerServer).GetClusterAppConfig(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Server_GetClusterAppConfig_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ServerServer).GetClusterAppConfig(ctx, req.(*GetClusterAppConfigRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// Server_ServiceDesc is the grpc.ServiceDesc for Server service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var Server_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "serverpb.Server", + HandlerType: (*ServerServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "NewClusterRegistration", + Handler: _Server_NewClusterRegistration_Handler, + }, + { + MethodName: "UpdateClusterRegistration", + Handler: _Server_UpdateClusterRegistration_Handler, + }, + { + MethodName: "DeleteClusterRegistration", + Handler: _Server_DeleteClusterRegistration_Handler, + }, + { + MethodName: "GetClusters", + Handler: _Server_GetClusters_Handler, + }, + { + MethodName: "GetClusterApps", + Handler: _Server_GetClusterApps_Handler, + }, + { + MethodName: "GetClusterAppConfig", + Handler: _Server_GetClusterAppConfig_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "server.proto", +}