From c5b63da7bee0e7c5804fc2b20349e33d8d4418ff Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Mon, 7 Mar 2022 14:38:24 +0000 Subject: [PATCH] accept env vars in update --- app/handler/google.go | 14 ++ app/proto/app.pb.go | 406 ++++++++++++++++-------------------------- app/proto/app.proto | 2 + 3 files changed, 165 insertions(+), 257 deletions(-) diff --git a/app/handler/google.go b/app/handler/google.go index aa6d3c1..97240bc 100644 --- a/app/handler/google.go +++ b/app/handler/google.go @@ -464,6 +464,20 @@ func (e *GoogleApp) Update(ctx context.Context, req *pb.UpdateRequest, rsp *pb.U var envVars []string for k, v := range srv.EnvVars { + // don't add anything we're updating + if _, ok := req.EnvVars[k]; ok { + continue + } + // add the value + envVars = append(envVars, k+"="+v) + } + + // add the updated env vars + for k, v := range req.EnvVars { + // skip zero vals + if len(v) == 0 { + continue + } envVars = append(envVars, k+"="+v) } diff --git a/app/proto/app.pb.go b/app/proto/app.pb.go index af7f0dd..4903cd0 100644 --- a/app/proto/app.pb.go +++ b/app/proto/app.pb.go @@ -341,7 +341,7 @@ func (x *ListResponse) GetServices() []*Service { return nil } -// Run an app +// Run an app from source type RunRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -357,7 +357,7 @@ type RunRequest struct { Region string `protobuf:"bytes,4,opt,name=region,proto3" json:"region,omitempty"` // port to run on Port int32 `protobuf:"varint,5,opt,name=port,proto3" json:"port,omitempty"` - // associatede env vars to pass in + // associated env vars to pass in EnvVars map[string]string `protobuf:"bytes,6,rep,name=env_vars,json=envVars,proto3" json:"env_vars,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } @@ -483,7 +483,7 @@ func (x *RunResponse) GetService() *Service { return nil } -// Update the app +// Update the app. The latest source code will be downloaded, built and deployed. type UpdateRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -491,6 +491,8 @@ type UpdateRequest struct { // name of the app Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Additional env vars to update + EnvVars map[string]string `protobuf:"bytes,2,rep,name=env_vars,json=envVars,proto3" json:"env_vars,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } func (x *UpdateRequest) Reset() { @@ -532,6 +534,13 @@ func (x *UpdateRequest) GetName() string { return "" } +func (x *UpdateRequest) GetEnvVars() map[string]string { + if x != nil { + return x.EnvVars + } + return nil +} + type UpdateResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -656,103 +665,7 @@ func (x *RegionsResponse) GetRegions() []string { return nil } -// Vote to have the App api launched faster! -type VoteRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // optional message - Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` -} - -func (x *VoteRequest) Reset() { - *x = VoteRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_app_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *VoteRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*VoteRequest) ProtoMessage() {} - -func (x *VoteRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_app_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 VoteRequest.ProtoReflect.Descriptor instead. -func (*VoteRequest) Descriptor() ([]byte, []int) { - return file_proto_app_proto_rawDescGZIP(), []int{11} -} - -func (x *VoteRequest) GetMessage() string { - if x != nil { - return x.Message - } - return "" -} - -type VoteResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // response message - Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` -} - -func (x *VoteResponse) Reset() { - *x = VoteResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_proto_app_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *VoteResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*VoteResponse) ProtoMessage() {} - -func (x *VoteResponse) ProtoReflect() protoreflect.Message { - mi := &file_proto_app_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 VoteResponse.ProtoReflect.Descriptor instead. -func (*VoteResponse) Descriptor() ([]byte, []int) { - return file_proto_app_proto_rawDescGZIP(), []int{12} -} - -func (x *VoteResponse) GetMessage() string { - if x != nil { - return x.Message - } - return "" -} - +// Reservation represents a reserved app instance type Reservation struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -773,7 +686,7 @@ type Reservation struct { func (x *Reservation) Reset() { *x = Reservation{} if protoimpl.UnsafeEnabled { - mi := &file_proto_app_proto_msgTypes[13] + mi := &file_proto_app_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -786,7 +699,7 @@ func (x *Reservation) String() string { func (*Reservation) ProtoMessage() {} func (x *Reservation) ProtoReflect() protoreflect.Message { - mi := &file_proto_app_proto_msgTypes[13] + mi := &file_proto_app_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -799,7 +712,7 @@ func (x *Reservation) ProtoReflect() protoreflect.Message { // Deprecated: Use Reservation.ProtoReflect.Descriptor instead. func (*Reservation) Descriptor() ([]byte, []int) { - return file_proto_app_proto_rawDescGZIP(), []int{13} + return file_proto_app_proto_rawDescGZIP(), []int{11} } func (x *Reservation) GetName() string { @@ -850,7 +763,7 @@ type ReserveRequest struct { func (x *ReserveRequest) Reset() { *x = ReserveRequest{} if protoimpl.UnsafeEnabled { - mi := &file_proto_app_proto_msgTypes[14] + mi := &file_proto_app_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -863,7 +776,7 @@ func (x *ReserveRequest) String() string { func (*ReserveRequest) ProtoMessage() {} func (x *ReserveRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_app_proto_msgTypes[14] + mi := &file_proto_app_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -876,7 +789,7 @@ func (x *ReserveRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ReserveRequest.ProtoReflect.Descriptor instead. func (*ReserveRequest) Descriptor() ([]byte, []int) { - return file_proto_app_proto_rawDescGZIP(), []int{14} + return file_proto_app_proto_rawDescGZIP(), []int{12} } func (x *ReserveRequest) GetName() string { @@ -898,7 +811,7 @@ type ReserveResponse struct { func (x *ReserveResponse) Reset() { *x = ReserveResponse{} if protoimpl.UnsafeEnabled { - mi := &file_proto_app_proto_msgTypes[15] + mi := &file_proto_app_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -911,7 +824,7 @@ func (x *ReserveResponse) String() string { func (*ReserveResponse) ProtoMessage() {} func (x *ReserveResponse) ProtoReflect() protoreflect.Message { - mi := &file_proto_app_proto_msgTypes[15] + mi := &file_proto_app_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -924,7 +837,7 @@ func (x *ReserveResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ReserveResponse.ProtoReflect.Descriptor instead. func (*ReserveResponse) Descriptor() ([]byte, []int) { - return file_proto_app_proto_rawDescGZIP(), []int{15} + return file_proto_app_proto_rawDescGZIP(), []int{13} } func (x *ReserveResponse) GetReservation() *Reservation { @@ -947,7 +860,7 @@ type StatusRequest struct { func (x *StatusRequest) Reset() { *x = StatusRequest{} if protoimpl.UnsafeEnabled { - mi := &file_proto_app_proto_msgTypes[16] + mi := &file_proto_app_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -960,7 +873,7 @@ func (x *StatusRequest) String() string { func (*StatusRequest) ProtoMessage() {} func (x *StatusRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_app_proto_msgTypes[16] + mi := &file_proto_app_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -973,7 +886,7 @@ func (x *StatusRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use StatusRequest.ProtoReflect.Descriptor instead. func (*StatusRequest) Descriptor() ([]byte, []int) { - return file_proto_app_proto_rawDescGZIP(), []int{16} + return file_proto_app_proto_rawDescGZIP(), []int{14} } func (x *StatusRequest) GetName() string { @@ -995,7 +908,7 @@ type StatusResponse struct { func (x *StatusResponse) Reset() { *x = StatusResponse{} if protoimpl.UnsafeEnabled { - mi := &file_proto_app_proto_msgTypes[17] + mi := &file_proto_app_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1008,7 +921,7 @@ func (x *StatusResponse) String() string { func (*StatusResponse) ProtoMessage() {} func (x *StatusResponse) ProtoReflect() protoreflect.Message { - mi := &file_proto_app_proto_msgTypes[17] + mi := &file_proto_app_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1021,7 +934,7 @@ func (x *StatusResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use StatusResponse.ProtoReflect.Descriptor instead. func (*StatusResponse) Descriptor() ([]byte, []int) { - return file_proto_app_proto_rawDescGZIP(), []int{17} + return file_proto_app_proto_rawDescGZIP(), []int{15} } func (x *StatusResponse) GetService() *Service { @@ -1031,7 +944,7 @@ func (x *StatusResponse) GetService() *Service { return nil } -// Resolve an app id to its url +// Resolve an app by id to its raw backend endpoint type ResolveRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1044,7 +957,7 @@ type ResolveRequest struct { func (x *ResolveRequest) Reset() { *x = ResolveRequest{} if protoimpl.UnsafeEnabled { - mi := &file_proto_app_proto_msgTypes[18] + mi := &file_proto_app_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1057,7 +970,7 @@ func (x *ResolveRequest) String() string { func (*ResolveRequest) ProtoMessage() {} func (x *ResolveRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_app_proto_msgTypes[18] + mi := &file_proto_app_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1070,7 +983,7 @@ func (x *ResolveRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ResolveRequest.ProtoReflect.Descriptor instead. func (*ResolveRequest) Descriptor() ([]byte, []int) { - return file_proto_app_proto_rawDescGZIP(), []int{18} + return file_proto_app_proto_rawDescGZIP(), []int{16} } func (x *ResolveRequest) GetId() string { @@ -1085,14 +998,14 @@ type ResolveResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // the url + // the end provider url Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` } func (x *ResolveResponse) Reset() { *x = ResolveResponse{} if protoimpl.UnsafeEnabled { - mi := &file_proto_app_proto_msgTypes[19] + mi := &file_proto_app_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1105,7 +1018,7 @@ func (x *ResolveResponse) String() string { func (*ResolveResponse) ProtoMessage() {} func (x *ResolveResponse) ProtoReflect() protoreflect.Message { - mi := &file_proto_app_proto_msgTypes[19] + mi := &file_proto_app_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1118,7 +1031,7 @@ func (x *ResolveResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ResolveResponse.ProtoReflect.Descriptor instead. func (*ResolveResponse) Descriptor() ([]byte, []int) { - return file_proto_app_proto_rawDescGZIP(), []int{19} + return file_proto_app_proto_rawDescGZIP(), []int{17} } func (x *ResolveResponse) GetUrl() string { @@ -1182,73 +1095,76 @@ var file_proto_app_proto_rawDesc = []byte{ 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x35, 0x0a, 0x0b, 0x52, 0x75, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x26, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x53, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x23, 0x0a, 0x0d, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, + 0x69, 0x63, 0x65, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x9b, 0x01, 0x0a, + 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, + 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x12, 0x3a, 0x0a, 0x08, 0x65, 0x6e, 0x76, 0x5f, 0x76, 0x61, 0x72, 0x73, 0x18, 0x02, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x45, 0x6e, 0x76, 0x56, 0x61, 0x72, 0x73, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x65, 0x6e, 0x76, 0x56, 0x61, 0x72, 0x73, 0x1a, 0x3a, + 0x0a, 0x0c, 0x45, 0x6e, 0x76, 0x56, 0x61, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, + 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, + 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x10, 0x0a, 0x0e, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x10, 0x0a, 0x0e, + 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x2b, + 0x0a, 0x0f, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x81, 0x01, 0x0a, 0x0b, + 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, + 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x22, + 0x24, 0x0a, 0x0e, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x45, 0x0a, 0x0f, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x32, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x65, + 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, + 0x61, 0x70, 0x70, 0x2e, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x0b, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x23, 0x0a, 0x0d, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x22, 0x10, 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x10, 0x0a, 0x0e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x2b, 0x0a, 0x0f, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x67, 0x69, - 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x67, 0x69, 0x6f, - 0x6e, 0x73, 0x22, 0x27, 0x0a, 0x0b, 0x56, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x28, 0x0a, 0x0c, 0x56, - 0x6f, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, - 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x81, 0x01, 0x0a, 0x0b, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, - 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, - 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, - 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, - 0x18, 0x0a, 0x07, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x22, 0x24, 0x0a, 0x0e, 0x52, 0x65, 0x73, - 0x65, 0x72, 0x76, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, - 0x45, 0x0a, 0x0f, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x32, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x52, 0x65, - 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0b, 0x72, 0x65, 0x73, 0x65, 0x72, - 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x23, 0x0a, 0x0d, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x38, 0x0a, 0x0e, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x26, 0x0a, - 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, - 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x07, 0x73, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x20, 0x0a, 0x0e, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x23, 0x0a, 0x0f, 0x52, 0x65, 0x73, 0x6f, 0x6c, - 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, - 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x32, 0xa7, 0x03, 0x0a, - 0x03, 0x41, 0x70, 0x70, 0x12, 0x36, 0x0a, 0x07, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x12, - 0x13, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x52, 0x65, 0x73, 0x65, 0x72, - 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x36, 0x0a, 0x07, - 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x13, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x52, 0x65, - 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x61, - 0x70, 0x70, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x12, 0x2a, 0x0a, 0x03, 0x52, 0x75, 0x6e, 0x12, 0x0f, 0x2e, 0x61, 0x70, - 0x70, 0x2e, 0x52, 0x75, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x10, 0x2e, 0x61, - 0x70, 0x70, 0x2e, 0x52, 0x75, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, - 0x12, 0x33, 0x0a, 0x06, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x12, 0x2e, 0x61, 0x70, 0x70, - 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, - 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x33, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, - 0x12, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x33, 0x0a, 0x06, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x12, 0x12, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, - 0x2d, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x10, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x4c, 0x69, - 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x61, 0x70, 0x70, 0x2e, - 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x36, - 0x0a, 0x07, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x12, 0x13, 0x2e, 0x61, 0x70, 0x70, 0x2e, - 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, - 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x3b, 0x61, 0x70, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x65, 0x22, 0x38, 0x0a, 0x0e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x26, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x20, 0x0a, 0x0e, 0x52, + 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, + 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x23, 0x0a, + 0x0f, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, + 0x72, 0x6c, 0x32, 0xa7, 0x03, 0x0a, 0x03, 0x41, 0x70, 0x70, 0x12, 0x36, 0x0a, 0x07, 0x52, 0x65, + 0x73, 0x65, 0x72, 0x76, 0x65, 0x12, 0x13, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x52, 0x65, 0x73, 0x65, + 0x72, 0x76, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x61, 0x70, 0x70, + 0x2e, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x12, 0x36, 0x0a, 0x07, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x13, 0x2e, + 0x61, 0x70, 0x70, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x2a, 0x0a, 0x03, 0x52, 0x75, + 0x6e, 0x12, 0x0f, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x52, 0x75, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x10, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x52, 0x75, 0x6e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x33, 0x0a, 0x06, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x12, 0x12, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x33, 0x0a, 0x06, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x12, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x61, 0x70, 0x70, 0x2e, + 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x12, 0x33, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x12, 0x2e, 0x61, 0x70, 0x70, + 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, + 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x2d, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x10, 0x2e, + 0x61, 0x70, 0x70, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x11, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x12, 0x36, 0x0a, 0x07, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x12, + 0x13, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x6c, + 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x0d, 0x5a, 0x0b, + 0x2e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x3b, 0x61, 0x70, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, } var ( @@ -1263,7 +1179,7 @@ func file_proto_app_proto_rawDescGZIP() []byte { return file_proto_app_proto_rawDescData } -var file_proto_app_proto_msgTypes = make([]protoimpl.MessageInfo, 22) +var file_proto_app_proto_msgTypes = make([]protoimpl.MessageInfo, 21) var file_proto_app_proto_goTypes = []interface{}{ (*Service)(nil), // 0: app.Service (*DeleteRequest)(nil), // 1: app.DeleteRequest @@ -1276,46 +1192,46 @@ var file_proto_app_proto_goTypes = []interface{}{ (*UpdateResponse)(nil), // 8: app.UpdateResponse (*RegionsRequest)(nil), // 9: app.RegionsRequest (*RegionsResponse)(nil), // 10: app.RegionsResponse - (*VoteRequest)(nil), // 11: app.VoteRequest - (*VoteResponse)(nil), // 12: app.VoteResponse - (*Reservation)(nil), // 13: app.Reservation - (*ReserveRequest)(nil), // 14: app.ReserveRequest - (*ReserveResponse)(nil), // 15: app.ReserveResponse - (*StatusRequest)(nil), // 16: app.StatusRequest - (*StatusResponse)(nil), // 17: app.StatusResponse - (*ResolveRequest)(nil), // 18: app.ResolveRequest - (*ResolveResponse)(nil), // 19: app.ResolveResponse - nil, // 20: app.Service.EnvVarsEntry - nil, // 21: app.RunRequest.EnvVarsEntry + (*Reservation)(nil), // 11: app.Reservation + (*ReserveRequest)(nil), // 12: app.ReserveRequest + (*ReserveResponse)(nil), // 13: app.ReserveResponse + (*StatusRequest)(nil), // 14: app.StatusRequest + (*StatusResponse)(nil), // 15: app.StatusResponse + (*ResolveRequest)(nil), // 16: app.ResolveRequest + (*ResolveResponse)(nil), // 17: app.ResolveResponse + nil, // 18: app.Service.EnvVarsEntry + nil, // 19: app.RunRequest.EnvVarsEntry + nil, // 20: app.UpdateRequest.EnvVarsEntry } var file_proto_app_proto_depIdxs = []int32{ - 20, // 0: app.Service.env_vars:type_name -> app.Service.EnvVarsEntry + 18, // 0: app.Service.env_vars:type_name -> app.Service.EnvVarsEntry 0, // 1: app.ListResponse.services:type_name -> app.Service - 21, // 2: app.RunRequest.env_vars:type_name -> app.RunRequest.EnvVarsEntry + 19, // 2: app.RunRequest.env_vars:type_name -> app.RunRequest.EnvVarsEntry 0, // 3: app.RunResponse.service:type_name -> app.Service - 13, // 4: app.ReserveResponse.reservation:type_name -> app.Reservation - 0, // 5: app.StatusResponse.service:type_name -> app.Service - 14, // 6: app.App.Reserve:input_type -> app.ReserveRequest - 9, // 7: app.App.Regions:input_type -> app.RegionsRequest - 5, // 8: app.App.Run:input_type -> app.RunRequest - 7, // 9: app.App.Update:input_type -> app.UpdateRequest - 1, // 10: app.App.Delete:input_type -> app.DeleteRequest - 16, // 11: app.App.Status:input_type -> app.StatusRequest - 3, // 12: app.App.List:input_type -> app.ListRequest - 18, // 13: app.App.Resolve:input_type -> app.ResolveRequest - 15, // 14: app.App.Reserve:output_type -> app.ReserveResponse - 10, // 15: app.App.Regions:output_type -> app.RegionsResponse - 6, // 16: app.App.Run:output_type -> app.RunResponse - 8, // 17: app.App.Update:output_type -> app.UpdateResponse - 2, // 18: app.App.Delete:output_type -> app.DeleteResponse - 17, // 19: app.App.Status:output_type -> app.StatusResponse - 4, // 20: app.App.List:output_type -> app.ListResponse - 19, // 21: app.App.Resolve:output_type -> app.ResolveResponse - 14, // [14:22] is the sub-list for method output_type - 6, // [6:14] is the sub-list for method input_type - 6, // [6:6] is the sub-list for extension type_name - 6, // [6:6] is the sub-list for extension extendee - 0, // [0:6] is the sub-list for field type_name + 20, // 4: app.UpdateRequest.env_vars:type_name -> app.UpdateRequest.EnvVarsEntry + 11, // 5: app.ReserveResponse.reservation:type_name -> app.Reservation + 0, // 6: app.StatusResponse.service:type_name -> app.Service + 12, // 7: app.App.Reserve:input_type -> app.ReserveRequest + 9, // 8: app.App.Regions:input_type -> app.RegionsRequest + 5, // 9: app.App.Run:input_type -> app.RunRequest + 7, // 10: app.App.Update:input_type -> app.UpdateRequest + 1, // 11: app.App.Delete:input_type -> app.DeleteRequest + 14, // 12: app.App.Status:input_type -> app.StatusRequest + 3, // 13: app.App.List:input_type -> app.ListRequest + 16, // 14: app.App.Resolve:input_type -> app.ResolveRequest + 13, // 15: app.App.Reserve:output_type -> app.ReserveResponse + 10, // 16: app.App.Regions:output_type -> app.RegionsResponse + 6, // 17: app.App.Run:output_type -> app.RunResponse + 8, // 18: app.App.Update:output_type -> app.UpdateResponse + 2, // 19: app.App.Delete:output_type -> app.DeleteResponse + 15, // 20: app.App.Status:output_type -> app.StatusResponse + 4, // 21: app.App.List:output_type -> app.ListResponse + 17, // 22: app.App.Resolve:output_type -> app.ResolveResponse + 15, // [15:23] is the sub-list for method output_type + 7, // [7:15] is the sub-list for method input_type + 7, // [7:7] is the sub-list for extension type_name + 7, // [7:7] is the sub-list for extension extendee + 0, // [0:7] is the sub-list for field type_name } func init() { file_proto_app_proto_init() } @@ -1457,30 +1373,6 @@ func file_proto_app_proto_init() { } } file_proto_app_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VoteRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_app_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VoteResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_proto_app_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Reservation); i { case 0: return &v.state @@ -1492,7 +1384,7 @@ func file_proto_app_proto_init() { return nil } } - file_proto_app_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + file_proto_app_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ReserveRequest); i { case 0: return &v.state @@ -1504,7 +1396,7 @@ func file_proto_app_proto_init() { return nil } } - file_proto_app_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + file_proto_app_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ReserveResponse); i { case 0: return &v.state @@ -1516,7 +1408,7 @@ func file_proto_app_proto_init() { return nil } } - file_proto_app_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + file_proto_app_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*StatusRequest); i { case 0: return &v.state @@ -1528,7 +1420,7 @@ func file_proto_app_proto_init() { return nil } } - file_proto_app_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + file_proto_app_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*StatusResponse); i { case 0: return &v.state @@ -1540,7 +1432,7 @@ func file_proto_app_proto_init() { return nil } } - file_proto_app_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + file_proto_app_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ResolveRequest); i { case 0: return &v.state @@ -1552,7 +1444,7 @@ func file_proto_app_proto_init() { return nil } } - file_proto_app_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + file_proto_app_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ResolveResponse); i { case 0: return &v.state @@ -1571,7 +1463,7 @@ func file_proto_app_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_proto_app_proto_rawDesc, NumEnums: 0, - NumMessages: 22, + NumMessages: 21, NumExtensions: 0, NumServices: 1, }, diff --git a/app/proto/app.proto b/app/proto/app.proto index c3398c1..c5a1318 100644 --- a/app/proto/app.proto +++ b/app/proto/app.proto @@ -84,6 +84,8 @@ message RunResponse { message UpdateRequest { // name of the app string name = 1; + // Additional env vars to update + map env_vars = 2; } message UpdateResponse {