From e9f13c42703dc3efdba022be2c389ab79609fef8 Mon Sep 17 00:00:00 2001 From: gamoutatsumi Date: Thu, 7 Nov 2024 14:25:20 +0900 Subject: [PATCH] add os_version in protobuf --- proto.go/shoes-lxd-multi.pb.go | 95 +++++++++++++---------- proto.go/shoes-lxd-multi_grpc.pb.go | 2 +- proto/shoeslxdmulti/shoes-lxd-multi.proto | 3 +- 3 files changed, 57 insertions(+), 43 deletions(-) diff --git a/proto.go/shoes-lxd-multi.pb.go b/proto.go/shoes-lxd-multi.pb.go index e55f0aa..183baaf 100644 --- a/proto.go/shoes-lxd-multi.pb.go +++ b/proto.go/shoes-lxd-multi.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.29.0 -// protoc v3.21.12 +// protoc-gen-go v1.34.1 +// protoc v4.24.4 // source: shoeslxdmulti/shoes-lxd-multi.proto package shoeslxdmulti @@ -32,7 +32,9 @@ type AddInstanceRequest struct { ResourceType proto_go.ResourceType `protobuf:"varint,3,opt,name=resource_type,json=resourceType,proto3,enum=whywaita.myshoes.ResourceType" json:"resource_type,omitempty"` Labels []string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty"` TargetHosts []string `protobuf:"bytes,4,rep,name=target_hosts,json=targetHosts,proto3" json:"target_hosts,omitempty"` - ImageAlias string `protobuf:"bytes,5,opt,name=image_alias,json=imageAlias,proto3" json:"image_alias,omitempty"` + // Deprecated: Marked as deprecated in shoeslxdmulti/shoes-lxd-multi.proto. + ImageAlias string `protobuf:"bytes,5,opt,name=image_alias,json=imageAlias,proto3" json:"image_alias,omitempty"` + OsVersion string `protobuf:"bytes,7,opt,name=os_version,json=osVersion,proto3" json:"os_version,omitempty"` } func (x *AddInstanceRequest) Reset() { @@ -102,6 +104,7 @@ func (x *AddInstanceRequest) GetTargetHosts() []string { return nil } +// Deprecated: Marked as deprecated in shoeslxdmulti/shoes-lxd-multi.proto. func (x *AddInstanceRequest) GetImageAlias() string { if x != nil { return x.ImageAlias @@ -109,6 +112,13 @@ func (x *AddInstanceRequest) GetImageAlias() string { return "" } +func (x *AddInstanceRequest) GetOsVersion() string { + if x != nil { + return x.OsVersion + } + return "" +} + type AddInstanceResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -280,7 +290,7 @@ var file_shoeslxdmulti_shoes_lxd_multi_proto_rawDesc = []byte{ 0x73, 0x68, 0x6f, 0x65, 0x73, 0x2d, 0x6c, 0x78, 0x64, 0x2d, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x73, 0x68, 0x6f, 0x65, 0x73, 0x6c, 0x78, 0x64, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x1a, 0x16, 0x77, 0x68, 0x79, 0x77, 0x61, 0x69, 0x74, 0x61, 0x2f, 0x6d, - 0x79, 0x73, 0x68, 0x6f, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf9, 0x01, 0x0a, + 0x79, 0x73, 0x68, 0x6f, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9c, 0x02, 0x0a, 0x12, 0x41, 0x64, 0x64, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x75, 0x6e, 0x6e, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x75, 0x6e, 0x6e, 0x65, 0x72, @@ -294,44 +304,47 @@ var file_shoeslxdmulti_shoes_lxd_multi_proto_rawDesc = []byte{ 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x74, 0x61, 0x72, 0x67, - 0x65, 0x74, 0x48, 0x6f, 0x73, 0x74, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x6d, 0x61, 0x67, 0x65, - 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x6d, - 0x61, 0x67, 0x65, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x22, 0xb3, 0x01, 0x0a, 0x13, 0x41, 0x64, 0x64, - 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x19, 0x0a, 0x08, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x73, - 0x68, 0x6f, 0x65, 0x73, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x09, 0x73, 0x68, 0x6f, 0x65, 0x73, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x70, - 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, - 0x69, 0x70, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x43, 0x0a, 0x0d, 0x72, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x1e, 0x2e, 0x77, 0x68, 0x79, 0x77, 0x61, 0x69, 0x74, 0x61, 0x2e, 0x6d, 0x79, 0x73, 0x68, - 0x6f, 0x65, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, - 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x22, 0x55, - 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x6c, 0x6f, 0x75, 0x64, - 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6c, 0x6f, 0x75, 0x64, - 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x68, 0x6f, 0x73, - 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, - 0x48, 0x6f, 0x73, 0x74, 0x73, 0x22, 0x18, 0x0a, 0x16, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, - 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, - 0xc8, 0x01, 0x0a, 0x0d, 0x53, 0x68, 0x6f, 0x65, 0x73, 0x4c, 0x58, 0x44, 0x4d, 0x75, 0x6c, 0x74, - 0x69, 0x12, 0x56, 0x0a, 0x0b, 0x41, 0x64, 0x64, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, - 0x12, 0x21, 0x2e, 0x73, 0x68, 0x6f, 0x65, 0x73, 0x6c, 0x78, 0x64, 0x6d, 0x75, 0x6c, 0x74, 0x69, - 0x2e, 0x41, 0x64, 0x64, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x73, 0x68, 0x6f, 0x65, 0x73, 0x6c, 0x78, 0x64, 0x6d, 0x75, + 0x65, 0x74, 0x48, 0x6f, 0x73, 0x74, 0x73, 0x12, 0x23, 0x0a, 0x0b, 0x69, 0x6d, 0x61, 0x67, 0x65, + 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, + 0x52, 0x0a, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x1d, 0x0a, 0x0a, + 0x6f, 0x73, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x6f, 0x73, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xb3, 0x01, 0x0a, 0x13, + 0x41, 0x64, 0x64, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x49, 0x64, 0x12, 0x1d, + 0x0a, 0x0a, 0x73, 0x68, 0x6f, 0x65, 0x73, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x73, 0x68, 0x6f, 0x65, 0x73, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, + 0x0a, 0x69, 0x70, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x69, 0x70, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x43, 0x0a, 0x0d, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x77, 0x68, 0x79, 0x77, 0x61, 0x69, 0x74, 0x61, 0x2e, 0x6d, + 0x79, 0x73, 0x68, 0x6f, 0x65, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, + 0x79, 0x70, 0x65, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, + 0x65, 0x22, 0x55, 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, + 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x6c, + 0x6f, 0x75, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6c, + 0x6f, 0x75, 0x64, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, + 0x68, 0x6f, 0x73, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x74, 0x61, 0x72, + 0x67, 0x65, 0x74, 0x48, 0x6f, 0x73, 0x74, 0x73, 0x22, 0x18, 0x0a, 0x16, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x32, 0xc8, 0x01, 0x0a, 0x0d, 0x53, 0x68, 0x6f, 0x65, 0x73, 0x4c, 0x58, 0x44, 0x4d, + 0x75, 0x6c, 0x74, 0x69, 0x12, 0x56, 0x0a, 0x0b, 0x41, 0x64, 0x64, 0x49, 0x6e, 0x73, 0x74, 0x61, + 0x6e, 0x63, 0x65, 0x12, 0x21, 0x2e, 0x73, 0x68, 0x6f, 0x65, 0x73, 0x6c, 0x78, 0x64, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x2e, 0x41, 0x64, 0x64, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5f, 0x0a, 0x0e, 0x44, 0x65, 0x6c, - 0x65, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x24, 0x2e, 0x73, 0x68, - 0x6f, 0x65, 0x73, 0x6c, 0x78, 0x64, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x2e, 0x44, 0x65, 0x6c, 0x65, - 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x25, 0x2e, 0x73, 0x68, 0x6f, 0x65, 0x73, 0x6c, 0x78, 0x64, 0x6d, 0x75, 0x6c, 0x74, - 0x69, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x3c, 0x5a, 0x3a, 0x67, 0x69, - 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x77, 0x68, 0x79, 0x77, 0x61, 0x69, 0x74, - 0x61, 0x2f, 0x73, 0x68, 0x6f, 0x65, 0x73, 0x2d, 0x6c, 0x78, 0x64, 0x2d, 0x6d, 0x75, 0x6c, 0x74, - 0x69, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x67, 0x6f, 0x2f, 0x73, 0x68, 0x6f, 0x65, 0x73, - 0x6c, 0x78, 0x64, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x73, 0x68, 0x6f, 0x65, 0x73, 0x6c, 0x78, + 0x64, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x2e, 0x41, 0x64, 0x64, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, + 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5f, 0x0a, 0x0e, + 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x24, + 0x2e, 0x73, 0x68, 0x6f, 0x65, 0x73, 0x6c, 0x78, 0x64, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x2e, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x73, 0x68, 0x6f, 0x65, 0x73, 0x6c, 0x78, 0x64, 0x6d, + 0x75, 0x6c, 0x74, 0x69, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, + 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x3c, 0x5a, + 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x77, 0x68, 0x79, 0x77, + 0x61, 0x69, 0x74, 0x61, 0x2f, 0x73, 0x68, 0x6f, 0x65, 0x73, 0x2d, 0x6c, 0x78, 0x64, 0x2d, 0x6d, + 0x75, 0x6c, 0x74, 0x69, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x67, 0x6f, 0x2f, 0x73, 0x68, + 0x6f, 0x65, 0x73, 0x6c, 0x78, 0x64, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, } var ( diff --git a/proto.go/shoes-lxd-multi_grpc.pb.go b/proto.go/shoes-lxd-multi_grpc.pb.go index f7909a7..3863986 100644 --- a/proto.go/shoes-lxd-multi_grpc.pb.go +++ b/proto.go/shoes-lxd-multi_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 -// - protoc v3.21.12 +// - protoc v4.24.4 // source: shoeslxdmulti/shoes-lxd-multi.proto package shoeslxdmulti diff --git a/proto/shoeslxdmulti/shoes-lxd-multi.proto b/proto/shoeslxdmulti/shoes-lxd-multi.proto index 2633499..c5d05bb 100644 --- a/proto/shoeslxdmulti/shoes-lxd-multi.proto +++ b/proto/shoeslxdmulti/shoes-lxd-multi.proto @@ -18,7 +18,8 @@ message AddInstanceRequest { repeated string labels = 6; repeated string target_hosts = 4; - string image_alias = 5; + string image_alias = 5 [deprecated = true]; + string os_version = 7; } message AddInstanceResponse {