Add kubeconfig to account api
This commit is contained in:
		@@ -11,7 +11,6 @@ package accounts
 | 
				
			|||||||
import (
 | 
					import (
 | 
				
			||||||
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
 | 
						protoreflect "google.golang.org/protobuf/reflect/protoreflect"
 | 
				
			||||||
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
 | 
						protoimpl "google.golang.org/protobuf/runtime/protoimpl"
 | 
				
			||||||
	emptypb "google.golang.org/protobuf/types/known/emptypb"
 | 
					 | 
				
			||||||
	reflect "reflect"
 | 
						reflect "reflect"
 | 
				
			||||||
	sync "sync"
 | 
						sync "sync"
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
@@ -284,17 +283,18 @@ func (x *AccountFull) GetData() *AccountData {
 | 
				
			|||||||
	return nil
 | 
						return nil
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
type AccountWithKubeConfig struct {
 | 
					type AccountFullWithKubeConfig struct {
 | 
				
			||||||
	state         protoimpl.MessageState
 | 
						state         protoimpl.MessageState
 | 
				
			||||||
	sizeCache     protoimpl.SizeCache
 | 
						sizeCache     protoimpl.SizeCache
 | 
				
			||||||
	unknownFields protoimpl.UnknownFields
 | 
						unknownFields protoimpl.UnknownFields
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	Data       *AccountData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
 | 
						Id         *AccountId   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
 | 
				
			||||||
	Kubeconfig string       `protobuf:"bytes,2,opt,name=kubeconfig,proto3" json:"kubeconfig,omitempty"`
 | 
						Data       *AccountData `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
 | 
				
			||||||
 | 
						Kubeconfig string       `protobuf:"bytes,3,opt,name=kubeconfig,proto3" json:"kubeconfig,omitempty"`
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func (x *AccountWithKubeConfig) Reset() {
 | 
					func (x *AccountFullWithKubeConfig) Reset() {
 | 
				
			||||||
	*x = AccountWithKubeConfig{}
 | 
						*x = AccountFullWithKubeConfig{}
 | 
				
			||||||
	if protoimpl.UnsafeEnabled {
 | 
						if protoimpl.UnsafeEnabled {
 | 
				
			||||||
		mi := &file_accounts_accounts_v1_proto_msgTypes[5]
 | 
							mi := &file_accounts_accounts_v1_proto_msgTypes[5]
 | 
				
			||||||
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
							ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
				
			||||||
@@ -302,13 +302,13 @@ func (x *AccountWithKubeConfig) Reset() {
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func (x *AccountWithKubeConfig) String() string {
 | 
					func (x *AccountFullWithKubeConfig) String() string {
 | 
				
			||||||
	return protoimpl.X.MessageStringOf(x)
 | 
						return protoimpl.X.MessageStringOf(x)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func (*AccountWithKubeConfig) ProtoMessage() {}
 | 
					func (*AccountFullWithKubeConfig) ProtoMessage() {}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func (x *AccountWithKubeConfig) ProtoReflect() protoreflect.Message {
 | 
					func (x *AccountFullWithKubeConfig) ProtoReflect() protoreflect.Message {
 | 
				
			||||||
	mi := &file_accounts_accounts_v1_proto_msgTypes[5]
 | 
						mi := &file_accounts_accounts_v1_proto_msgTypes[5]
 | 
				
			||||||
	if protoimpl.UnsafeEnabled && x != nil {
 | 
						if protoimpl.UnsafeEnabled && x != nil {
 | 
				
			||||||
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
							ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
				
			||||||
@@ -320,19 +320,26 @@ func (x *AccountWithKubeConfig) ProtoReflect() protoreflect.Message {
 | 
				
			|||||||
	return mi.MessageOf(x)
 | 
						return mi.MessageOf(x)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Deprecated: Use AccountWithKubeConfig.ProtoReflect.Descriptor instead.
 | 
					// Deprecated: Use AccountFullWithKubeConfig.ProtoReflect.Descriptor instead.
 | 
				
			||||||
func (*AccountWithKubeConfig) Descriptor() ([]byte, []int) {
 | 
					func (*AccountFullWithKubeConfig) Descriptor() ([]byte, []int) {
 | 
				
			||||||
	return file_accounts_accounts_v1_proto_rawDescGZIP(), []int{5}
 | 
						return file_accounts_accounts_v1_proto_rawDescGZIP(), []int{5}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func (x *AccountWithKubeConfig) GetData() *AccountData {
 | 
					func (x *AccountFullWithKubeConfig) GetId() *AccountId {
 | 
				
			||||||
 | 
						if x != nil {
 | 
				
			||||||
 | 
							return x.Id
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (x *AccountFullWithKubeConfig) GetData() *AccountData {
 | 
				
			||||||
	if x != nil {
 | 
						if x != nil {
 | 
				
			||||||
		return x.Data
 | 
							return x.Data
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	return nil
 | 
						return nil
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func (x *AccountWithKubeConfig) GetKubeconfig() string {
 | 
					func (x *AccountFullWithKubeConfig) GetKubeconfig() string {
 | 
				
			||||||
	if x != nil {
 | 
						if x != nil {
 | 
				
			||||||
		return x.Kubeconfig
 | 
							return x.Kubeconfig
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
@@ -344,52 +351,54 @@ var File_accounts_accounts_v1_proto protoreflect.FileDescriptor
 | 
				
			|||||||
var file_accounts_accounts_v1_proto_rawDesc = []byte{
 | 
					var file_accounts_accounts_v1_proto_rawDesc = []byte{
 | 
				
			||||||
	0x0a, 0x1a, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75,
 | 
						0x0a, 0x1a, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75,
 | 
				
			||||||
	0x6e, 0x74, 0x73, 0x5f, 0x76, 0x31, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x61, 0x63,
 | 
						0x6e, 0x74, 0x73, 0x5f, 0x76, 0x31, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x61, 0x63,
 | 
				
			||||||
	0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70,
 | 
						0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x22, 0x1b, 0x0a, 0x09, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e,
 | 
				
			||||||
	0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72,
 | 
						0x74, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
 | 
				
			||||||
	0x6f, 0x74, 0x6f, 0x22, 0x1b, 0x0a, 0x09, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64,
 | 
						0x02, 0x69, 0x64, 0x22, 0x2d, 0x0a, 0x0f, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x61,
 | 
				
			||||||
	0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64,
 | 
						0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f,
 | 
				
			||||||
	0x22, 0x2d, 0x0a, 0x0f, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77,
 | 
						0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f,
 | 
				
			||||||
	0x6f, 0x72, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18,
 | 
						0x72, 0x64, 0x22, 0x37, 0x0a, 0x0b, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x44, 0x61, 0x74,
 | 
				
			||||||
	0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22,
 | 
						0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
 | 
				
			||||||
	0x37, 0x0a, 0x0b, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x12,
 | 
						0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x02,
 | 
				
			||||||
	0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61,
 | 
						0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x22, 0x85, 0x01, 0x0a, 0x13,
 | 
				
			||||||
	0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28,
 | 
						0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x57, 0x69, 0x74, 0x68, 0x50, 0x61, 0x73, 0x73, 0x77,
 | 
				
			||||||
	0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x22, 0x85, 0x01, 0x0a, 0x13, 0x41, 0x63, 0x63,
 | 
						0x6f, 0x72, 0x64, 0x12, 0x29, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28,
 | 
				
			||||||
	0x6f, 0x75, 0x6e, 0x74, 0x57, 0x69, 0x74, 0x68, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64,
 | 
						0x0b, 0x32, 0x15, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x41, 0x63, 0x63,
 | 
				
			||||||
	0x12, 0x29, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15,
 | 
						0x6f, 0x75, 0x6e, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x43,
 | 
				
			||||||
 | 
						0x0a, 0x0f, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72,
 | 
				
			||||||
 | 
						0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e,
 | 
				
			||||||
 | 
						0x74, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f,
 | 
				
			||||||
 | 
						0x72, 0x64, 0x52, 0x0f, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77,
 | 
				
			||||||
 | 
						0x6f, 0x72, 0x64, 0x22, 0x5d, 0x0a, 0x0b, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x46, 0x75,
 | 
				
			||||||
 | 
						0x6c, 0x6c, 0x12, 0x23, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13,
 | 
				
			||||||
	0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e,
 | 
						0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e,
 | 
				
			||||||
	0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x43, 0x0a, 0x0f, 0x41,
 | 
						0x74, 0x49, 0x64, 0x52, 0x02, 0x69, 0x64, 0x12, 0x29, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18,
 | 
				
			||||||
	0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02,
 | 
						0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73,
 | 
				
			||||||
	0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e,
 | 
						0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x64, 0x61,
 | 
				
			||||||
	0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52,
 | 
						0x74, 0x61, 0x22, 0x8b, 0x01, 0x0a, 0x19, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x46, 0x75,
 | 
				
			||||||
	0x0f, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64,
 | 
						0x6c, 0x6c, 0x57, 0x69, 0x74, 0x68, 0x4b, 0x75, 0x62, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
 | 
				
			||||||
	0x22, 0x5d, 0x0a, 0x0b, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x46, 0x75, 0x6c, 0x6c, 0x12,
 | 
						0x12, 0x23, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x61,
 | 
				
			||||||
	0x23, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x61, 0x63,
 | 
						0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49,
 | 
				
			||||||
	0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64,
 | 
						0x64, 0x52, 0x02, 0x69, 0x64, 0x12, 0x29, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20,
 | 
				
			||||||
	0x52, 0x02, 0x69, 0x64, 0x12, 0x29, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01,
 | 
						0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x41,
 | 
				
			||||||
	0x28, 0x0b, 0x32, 0x15, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x41, 0x63,
 | 
						0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61,
 | 
				
			||||||
	0x63, 0x6f, 0x75, 0x6e, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22,
 | 
						0x12, 0x1e, 0x0a, 0x0a, 0x6b, 0x75, 0x62, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x03,
 | 
				
			||||||
	0x62, 0x0a, 0x15, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x57, 0x69, 0x74, 0x68, 0x4b, 0x75,
 | 
						0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6b, 0x75, 0x62, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
 | 
				
			||||||
	0x62, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x29, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61,
 | 
						0x32, 0xaa, 0x01, 0x0a, 0x08, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0x4e, 0x0a,
 | 
				
			||||||
	0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
 | 
						0x06, 0x53, 0x69, 0x67, 0x6e, 0x55, 0x70, 0x12, 0x1d, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e,
 | 
				
			||||||
	0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x64,
 | 
						0x74, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x57, 0x69, 0x74, 0x68, 0x50, 0x61,
 | 
				
			||||||
	0x61, 0x74, 0x61, 0x12, 0x1e, 0x0a, 0x0a, 0x6b, 0x75, 0x62, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69,
 | 
						0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x1a, 0x23, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
 | 
				
			||||||
	0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6b, 0x75, 0x62, 0x65, 0x63, 0x6f, 0x6e,
 | 
						0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x46, 0x75, 0x6c, 0x6c, 0x57, 0x69, 0x74,
 | 
				
			||||||
	0x66, 0x69, 0x67, 0x32, 0x8f, 0x01, 0x0a, 0x08, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73,
 | 
						0x68, 0x4b, 0x75, 0x62, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x00, 0x12, 0x4e, 0x0a,
 | 
				
			||||||
	0x12, 0x40, 0x0a, 0x06, 0x53, 0x69, 0x67, 0x6e, 0x55, 0x70, 0x12, 0x1d, 0x2e, 0x61, 0x63, 0x63,
 | 
						0x06, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x12, 0x1d, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e,
 | 
				
			||||||
	0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x57, 0x69, 0x74,
 | 
						0x74, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x57, 0x69, 0x74, 0x68, 0x50, 0x61,
 | 
				
			||||||
	0x68, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x1a, 0x15, 0x2e, 0x61, 0x63, 0x63, 0x6f,
 | 
						0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x1a, 0x23, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
 | 
				
			||||||
	0x75, 0x6e, 0x74, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x46, 0x75, 0x6c, 0x6c,
 | 
						0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x46, 0x75, 0x6c, 0x6c, 0x57, 0x69, 0x74,
 | 
				
			||||||
	0x22, 0x00, 0x12, 0x41, 0x0a, 0x06, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x12, 0x1d, 0x2e, 0x61,
 | 
						0x68, 0x4b, 0x75, 0x62, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x00, 0x42, 0x44, 0x5a,
 | 
				
			||||||
	0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x57,
 | 
						0x42, 0x67, 0x69, 0x74, 0x2e, 0x62, 0x61, 0x64, 0x68, 0x6f, 0x75, 0x73, 0x65, 0x70, 0x6c, 0x61,
 | 
				
			||||||
	0x69, 0x74, 0x68, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x1a, 0x16, 0x2e, 0x67, 0x6f,
 | 
						0x6e, 0x74, 0x73, 0x2e, 0x6e, 0x65, 0x74, 0x2f, 0x73, 0x6f, 0x66, 0x74, 0x70, 0x6c, 0x61, 0x79,
 | 
				
			||||||
	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d,
 | 
						0x65, 0x72, 0x2f, 0x73, 0x6f, 0x66, 0x74, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2d, 0x67, 0x6f,
 | 
				
			||||||
	0x70, 0x74, 0x79, 0x22, 0x00, 0x42, 0x44, 0x5a, 0x42, 0x67, 0x69, 0x74, 0x2e, 0x62, 0x61, 0x64,
 | 
						0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75,
 | 
				
			||||||
	0x68, 0x6f, 0x75, 0x73, 0x65, 0x70, 0x6c, 0x61, 0x6e, 0x74, 0x73, 0x2e, 0x6e, 0x65, 0x74, 0x2f,
 | 
						0x6e, 0x74, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
 | 
				
			||||||
	0x73, 0x6f, 0x66, 0x74, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, 0x73, 0x6f, 0x66, 0x74, 0x70,
 | 
					 | 
				
			||||||
	0x6c, 0x61, 0x79, 0x65, 0x72, 0x2d, 0x67, 0x6f, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70,
 | 
					 | 
				
			||||||
	0x6b, 0x67, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f,
 | 
					 | 
				
			||||||
	0x74, 0x6f, 0x33,
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
var (
 | 
					var (
 | 
				
			||||||
@@ -406,29 +415,29 @@ func file_accounts_accounts_v1_proto_rawDescGZIP() []byte {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
var file_accounts_accounts_v1_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
 | 
					var file_accounts_accounts_v1_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
 | 
				
			||||||
var file_accounts_accounts_v1_proto_goTypes = []interface{}{
 | 
					var file_accounts_accounts_v1_proto_goTypes = []interface{}{
 | 
				
			||||||
	(*AccountId)(nil),             // 0: accounts.AccountId
 | 
						(*AccountId)(nil),                 // 0: accounts.AccountId
 | 
				
			||||||
	(*AccountPassword)(nil),       // 1: accounts.AccountPassword
 | 
						(*AccountPassword)(nil),           // 1: accounts.AccountPassword
 | 
				
			||||||
	(*AccountData)(nil),           // 2: accounts.AccountData
 | 
						(*AccountData)(nil),               // 2: accounts.AccountData
 | 
				
			||||||
	(*AccountWithPassword)(nil),   // 3: accounts.AccountWithPassword
 | 
						(*AccountWithPassword)(nil),       // 3: accounts.AccountWithPassword
 | 
				
			||||||
	(*AccountFull)(nil),           // 4: accounts.AccountFull
 | 
						(*AccountFull)(nil),               // 4: accounts.AccountFull
 | 
				
			||||||
	(*AccountWithKubeConfig)(nil), // 5: accounts.AccountWithKubeConfig
 | 
						(*AccountFullWithKubeConfig)(nil), // 5: accounts.AccountFullWithKubeConfig
 | 
				
			||||||
	(*emptypb.Empty)(nil),         // 6: google.protobuf.Empty
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
var file_accounts_accounts_v1_proto_depIdxs = []int32{
 | 
					var file_accounts_accounts_v1_proto_depIdxs = []int32{
 | 
				
			||||||
	2, // 0: accounts.AccountWithPassword.data:type_name -> accounts.AccountData
 | 
						2, // 0: accounts.AccountWithPassword.data:type_name -> accounts.AccountData
 | 
				
			||||||
	1, // 1: accounts.AccountWithPassword.AccountPassword:type_name -> accounts.AccountPassword
 | 
						1, // 1: accounts.AccountWithPassword.AccountPassword:type_name -> accounts.AccountPassword
 | 
				
			||||||
	0, // 2: accounts.AccountFull.id:type_name -> accounts.AccountId
 | 
						0, // 2: accounts.AccountFull.id:type_name -> accounts.AccountId
 | 
				
			||||||
	2, // 3: accounts.AccountFull.data:type_name -> accounts.AccountData
 | 
						2, // 3: accounts.AccountFull.data:type_name -> accounts.AccountData
 | 
				
			||||||
	2, // 4: accounts.AccountWithKubeConfig.data:type_name -> accounts.AccountData
 | 
						0, // 4: accounts.AccountFullWithKubeConfig.id:type_name -> accounts.AccountId
 | 
				
			||||||
	3, // 5: accounts.Accounts.SignUp:input_type -> accounts.AccountWithPassword
 | 
						2, // 5: accounts.AccountFullWithKubeConfig.data:type_name -> accounts.AccountData
 | 
				
			||||||
	3, // 6: accounts.Accounts.SignIn:input_type -> accounts.AccountWithPassword
 | 
						3, // 6: accounts.Accounts.SignUp:input_type -> accounts.AccountWithPassword
 | 
				
			||||||
	4, // 7: accounts.Accounts.SignUp:output_type -> accounts.AccountFull
 | 
						3, // 7: accounts.Accounts.SignIn:input_type -> accounts.AccountWithPassword
 | 
				
			||||||
	6, // 8: accounts.Accounts.SignIn:output_type -> google.protobuf.Empty
 | 
						5, // 8: accounts.Accounts.SignUp:output_type -> accounts.AccountFullWithKubeConfig
 | 
				
			||||||
	7, // [7:9] is the sub-list for method output_type
 | 
						5, // 9: accounts.Accounts.SignIn:output_type -> accounts.AccountFullWithKubeConfig
 | 
				
			||||||
	5, // [5:7] is the sub-list for method input_type
 | 
						8, // [8:10] is the sub-list for method output_type
 | 
				
			||||||
	5, // [5:5] is the sub-list for extension type_name
 | 
						6, // [6:8] is the sub-list for method input_type
 | 
				
			||||||
	5, // [5:5] is the sub-list for extension extendee
 | 
						6, // [6:6] is the sub-list for extension type_name
 | 
				
			||||||
	0, // [0:5] is the sub-list for field type_name
 | 
						6, // [6:6] is the sub-list for extension extendee
 | 
				
			||||||
 | 
						0, // [0:6] is the sub-list for field type_name
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func init() { file_accounts_accounts_v1_proto_init() }
 | 
					func init() { file_accounts_accounts_v1_proto_init() }
 | 
				
			||||||
@@ -498,7 +507,7 @@ func file_accounts_accounts_v1_proto_init() {
 | 
				
			|||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		file_accounts_accounts_v1_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
 | 
							file_accounts_accounts_v1_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
 | 
				
			||||||
			switch v := v.(*AccountWithKubeConfig); i {
 | 
								switch v := v.(*AccountFullWithKubeConfig); i {
 | 
				
			||||||
			case 0:
 | 
								case 0:
 | 
				
			||||||
				return &v.state
 | 
									return &v.state
 | 
				
			||||||
			case 1:
 | 
								case 1:
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -7,7 +7,6 @@ import (
 | 
				
			|||||||
	grpc "google.golang.org/grpc"
 | 
						grpc "google.golang.org/grpc"
 | 
				
			||||||
	codes "google.golang.org/grpc/codes"
 | 
						codes "google.golang.org/grpc/codes"
 | 
				
			||||||
	status "google.golang.org/grpc/status"
 | 
						status "google.golang.org/grpc/status"
 | 
				
			||||||
	emptypb "google.golang.org/protobuf/types/known/emptypb"
 | 
					 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// This is a compile-time assertion to ensure that this generated file
 | 
					// This is a compile-time assertion to ensure that this generated file
 | 
				
			||||||
@@ -19,8 +18,8 @@ const _ = grpc.SupportPackageIsVersion7
 | 
				
			|||||||
//
 | 
					//
 | 
				
			||||||
// 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.
 | 
					// 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 AccountsClient interface {
 | 
					type AccountsClient interface {
 | 
				
			||||||
	SignUp(ctx context.Context, in *AccountWithPassword, opts ...grpc.CallOption) (*AccountFull, error)
 | 
						SignUp(ctx context.Context, in *AccountWithPassword, opts ...grpc.CallOption) (*AccountFullWithKubeConfig, error)
 | 
				
			||||||
	SignIn(ctx context.Context, in *AccountWithPassword, opts ...grpc.CallOption) (*emptypb.Empty, error)
 | 
						SignIn(ctx context.Context, in *AccountWithPassword, opts ...grpc.CallOption) (*AccountFullWithKubeConfig, error)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
type accountsClient struct {
 | 
					type accountsClient struct {
 | 
				
			||||||
@@ -31,8 +30,8 @@ func NewAccountsClient(cc grpc.ClientConnInterface) AccountsClient {
 | 
				
			|||||||
	return &accountsClient{cc}
 | 
						return &accountsClient{cc}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func (c *accountsClient) SignUp(ctx context.Context, in *AccountWithPassword, opts ...grpc.CallOption) (*AccountFull, error) {
 | 
					func (c *accountsClient) SignUp(ctx context.Context, in *AccountWithPassword, opts ...grpc.CallOption) (*AccountFullWithKubeConfig, error) {
 | 
				
			||||||
	out := new(AccountFull)
 | 
						out := new(AccountFullWithKubeConfig)
 | 
				
			||||||
	err := c.cc.Invoke(ctx, "/accounts.Accounts/SignUp", in, out, opts...)
 | 
						err := c.cc.Invoke(ctx, "/accounts.Accounts/SignUp", in, out, opts...)
 | 
				
			||||||
	if err != nil {
 | 
						if err != nil {
 | 
				
			||||||
		return nil, err
 | 
							return nil, err
 | 
				
			||||||
@@ -40,8 +39,8 @@ func (c *accountsClient) SignUp(ctx context.Context, in *AccountWithPassword, op
 | 
				
			|||||||
	return out, nil
 | 
						return out, nil
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func (c *accountsClient) SignIn(ctx context.Context, in *AccountWithPassword, opts ...grpc.CallOption) (*emptypb.Empty, error) {
 | 
					func (c *accountsClient) SignIn(ctx context.Context, in *AccountWithPassword, opts ...grpc.CallOption) (*AccountFullWithKubeConfig, error) {
 | 
				
			||||||
	out := new(emptypb.Empty)
 | 
						out := new(AccountFullWithKubeConfig)
 | 
				
			||||||
	err := c.cc.Invoke(ctx, "/accounts.Accounts/SignIn", in, out, opts...)
 | 
						err := c.cc.Invoke(ctx, "/accounts.Accounts/SignIn", in, out, opts...)
 | 
				
			||||||
	if err != nil {
 | 
						if err != nil {
 | 
				
			||||||
		return nil, err
 | 
							return nil, err
 | 
				
			||||||
@@ -53,8 +52,8 @@ func (c *accountsClient) SignIn(ctx context.Context, in *AccountWithPassword, op
 | 
				
			|||||||
// All implementations must embed UnimplementedAccountsServer
 | 
					// All implementations must embed UnimplementedAccountsServer
 | 
				
			||||||
// for forward compatibility
 | 
					// for forward compatibility
 | 
				
			||||||
type AccountsServer interface {
 | 
					type AccountsServer interface {
 | 
				
			||||||
	SignUp(context.Context, *AccountWithPassword) (*AccountFull, error)
 | 
						SignUp(context.Context, *AccountWithPassword) (*AccountFullWithKubeConfig, error)
 | 
				
			||||||
	SignIn(context.Context, *AccountWithPassword) (*emptypb.Empty, error)
 | 
						SignIn(context.Context, *AccountWithPassword) (*AccountFullWithKubeConfig, error)
 | 
				
			||||||
	mustEmbedUnimplementedAccountsServer()
 | 
						mustEmbedUnimplementedAccountsServer()
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -62,10 +61,10 @@ type AccountsServer interface {
 | 
				
			|||||||
type UnimplementedAccountsServer struct {
 | 
					type UnimplementedAccountsServer struct {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func (UnimplementedAccountsServer) SignUp(context.Context, *AccountWithPassword) (*AccountFull, error) {
 | 
					func (UnimplementedAccountsServer) SignUp(context.Context, *AccountWithPassword) (*AccountFullWithKubeConfig, error) {
 | 
				
			||||||
	return nil, status.Errorf(codes.Unimplemented, "method SignUp not implemented")
 | 
						return nil, status.Errorf(codes.Unimplemented, "method SignUp not implemented")
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
func (UnimplementedAccountsServer) SignIn(context.Context, *AccountWithPassword) (*emptypb.Empty, error) {
 | 
					func (UnimplementedAccountsServer) SignIn(context.Context, *AccountWithPassword) (*AccountFullWithKubeConfig, error) {
 | 
				
			||||||
	return nil, status.Errorf(codes.Unimplemented, "method SignIn not implemented")
 | 
						return nil, status.Errorf(codes.Unimplemented, "method SignIn not implemented")
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
func (UnimplementedAccountsServer) mustEmbedUnimplementedAccountsServer() {}
 | 
					func (UnimplementedAccountsServer) mustEmbedUnimplementedAccountsServer() {}
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										2
									
								
								proto
									
									
									
									
									
								
							
							
								
								
								
								
								
							
						
						
									
										2
									
								
								proto
									
									
									
									
									
								
							 Submodule proto updated: e68fa987be...6ecafa3cc8
									
								
							
		Reference in New Issue
	
	Block a user