From 25d683dd038be58e59ad1149f9f842f5e01d6188 Mon Sep 17 00:00:00 2001 From: johnlanni Date: Mon, 17 Jul 2023 15:38:53 +0800 Subject: [PATCH] add generate api code --- .../customresourcedefinitions.gen.yaml | 9 + api/networking/v1/mcp_bridge.pb.go | 283 +++++++++++++++--- 2 files changed, 248 insertions(+), 44 deletions(-) diff --git a/api/kubernetes/customresourcedefinitions.gen.yaml b/api/kubernetes/customresourcedefinitions.gen.yaml index 616a6d4ad3..dc4c705248 100644 --- a/api/kubernetes/customresourcedefinitions.gen.yaml +++ b/api/kubernetes/customresourcedefinitions.gen.yaml @@ -213,8 +213,17 @@ spec: registries: items: properties: + consulAuthToken: + type: string + consulDatacenter: + type: string consulNamespace: type: string + consulRefreshInterval: + format: int64 + type: integer + consulServiceTag: + type: string domain: type: string nacosAccessKey: diff --git a/api/networking/v1/mcp_bridge.pb.go b/api/networking/v1/mcp_bridge.pb.go index 5f8c5f3769..8bf3d7b0d8 100644 --- a/api/networking/v1/mcp_bridge.pb.go +++ b/api/networking/v1/mcp_bridge.pb.go @@ -88,22 +88,26 @@ func (m *McpBridge) GetRegistries() []*RegistryConfig { } type RegistryConfig struct { - Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Domain string `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty"` - Port uint32 `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"` - NacosAddressServer string `protobuf:"bytes,5,opt,name=nacosAddressServer,proto3" json:"nacosAddressServer,omitempty"` - NacosAccessKey string `protobuf:"bytes,6,opt,name=nacosAccessKey,proto3" json:"nacosAccessKey,omitempty"` - NacosSecretKey string `protobuf:"bytes,7,opt,name=nacosSecretKey,proto3" json:"nacosSecretKey,omitempty"` - NacosNamespaceId string `protobuf:"bytes,8,opt,name=nacosNamespaceId,proto3" json:"nacosNamespaceId,omitempty"` - NacosNamespace string `protobuf:"bytes,9,opt,name=nacosNamespace,proto3" json:"nacosNamespace,omitempty"` - NacosGroups []string `protobuf:"bytes,10,rep,name=nacosGroups,proto3" json:"nacosGroups,omitempty"` - NacosRefreshInterval int64 `protobuf:"varint,11,opt,name=nacosRefreshInterval,proto3" json:"nacosRefreshInterval,omitempty"` - ConsulNamespace string `protobuf:"bytes,12,opt,name=consulNamespace,proto3" json:"consulNamespace,omitempty"` - ZkServicesPath []string `protobuf:"bytes,13,rep,name=zkServicesPath,proto3" json:"zkServicesPath,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Domain string `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty"` + Port uint32 `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"` + NacosAddressServer string `protobuf:"bytes,5,opt,name=nacosAddressServer,proto3" json:"nacosAddressServer,omitempty"` + NacosAccessKey string `protobuf:"bytes,6,opt,name=nacosAccessKey,proto3" json:"nacosAccessKey,omitempty"` + NacosSecretKey string `protobuf:"bytes,7,opt,name=nacosSecretKey,proto3" json:"nacosSecretKey,omitempty"` + NacosNamespaceId string `protobuf:"bytes,8,opt,name=nacosNamespaceId,proto3" json:"nacosNamespaceId,omitempty"` + NacosNamespace string `protobuf:"bytes,9,opt,name=nacosNamespace,proto3" json:"nacosNamespace,omitempty"` + NacosGroups []string `protobuf:"bytes,10,rep,name=nacosGroups,proto3" json:"nacosGroups,omitempty"` + NacosRefreshInterval int64 `protobuf:"varint,11,opt,name=nacosRefreshInterval,proto3" json:"nacosRefreshInterval,omitempty"` + ConsulNamespace string `protobuf:"bytes,12,opt,name=consulNamespace,proto3" json:"consulNamespace,omitempty"` + ZkServicesPath []string `protobuf:"bytes,13,rep,name=zkServicesPath,proto3" json:"zkServicesPath,omitempty"` + ConsulDatacenter string `protobuf:"bytes,14,opt,name=consulDatacenter,proto3" json:"consulDatacenter,omitempty"` + ConsulAuthToken string `protobuf:"bytes,15,opt,name=consulAuthToken,proto3" json:"consulAuthToken,omitempty"` + ConsulServiceTag string `protobuf:"bytes,16,opt,name=consulServiceTag,proto3" json:"consulServiceTag,omitempty"` + ConsulRefreshInterval int64 `protobuf:"varint,17,opt,name=consulRefreshInterval,proto3" json:"consulRefreshInterval,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *RegistryConfig) Reset() { *m = RegistryConfig{} } @@ -230,6 +234,34 @@ func (m *RegistryConfig) GetZkServicesPath() []string { return nil } +func (m *RegistryConfig) GetConsulDatacenter() string { + if m != nil { + return m.ConsulDatacenter + } + return "" +} + +func (m *RegistryConfig) GetConsulAuthToken() string { + if m != nil { + return m.ConsulAuthToken + } + return "" +} + +func (m *RegistryConfig) GetConsulServiceTag() string { + if m != nil { + return m.ConsulServiceTag + } + return "" +} + +func (m *RegistryConfig) GetConsulRefreshInterval() int64 { + if m != nil { + return m.ConsulRefreshInterval + } + return 0 +} + func init() { proto.RegisterType((*McpBridge)(nil), "higress.networking.v1.McpBridge") proto.RegisterType((*RegistryConfig)(nil), "higress.networking.v1.RegistryConfig") @@ -238,34 +270,37 @@ func init() { func init() { proto.RegisterFile("networking/v1/mcp_bridge.proto", fileDescriptor_3fcc59a15c34642d) } var fileDescriptor_3fcc59a15c34642d = []byte{ - // 421 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x92, 0xd1, 0x8a, 0xd4, 0x30, - 0x14, 0x86, 0xc9, 0x76, 0x1c, 0x9d, 0x8c, 0xbb, 0x4a, 0x50, 0x08, 0x22, 0x63, 0x59, 0x50, 0x8a, - 0x48, 0xcb, 0xae, 0x77, 0xde, 0xed, 0x88, 0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xa6, 0xa1, 0x8b, 0x6f, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0xb9, 0x6f, 0xf7, - 0xf0, 0xe5, 0x02, 0x00, 0x00, + // 478 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x93, 0xd1, 0x8a, 0xd3, 0x40, + 0x14, 0x86, 0xc9, 0xb6, 0x5b, 0xed, 0xd4, 0xed, 0xae, 0x83, 0x0b, 0x83, 0x48, 0x0d, 0x0b, 0x4a, + 0x10, 0x49, 0xd8, 0xd5, 0x2b, 0xef, 0x5a, 0x15, 0x59, 0x44, 0x91, 0xec, 0x5e, 0x79, 0xb3, 0x4c, + 0x26, 0xa7, 0xc9, 0xd0, 0x24, 0x13, 0x66, 0xa6, 0x91, 0xfa, 0x48, 0x3e, 0x89, 0x97, 0x3e, 0x82, + 0xf4, 0x49, 0x64, 0x26, 0x35, 0x49, 0xb3, 0xbd, 0x6b, 0xbf, 0xf3, 0x9f, 0xff, 0x3f, 0x73, 0xc8, + 0x41, 0xb3, 0x02, 0xf4, 0x0f, 0x21, 0x57, 0xbc, 0x48, 0x82, 0xea, 0x32, 0xc8, 0x59, 0x79, 0x17, + 0x49, 0x1e, 0x27, 0xe0, 0x97, 0x52, 0x68, 0x81, 0xcf, 0x53, 0x9e, 0x48, 0x50, 0xca, 0x6f, 0x75, + 0x7e, 0x75, 0xf9, 0xf4, 0x79, 0x22, 0x44, 0x92, 0x41, 0x40, 0x4b, 0x1e, 0x2c, 0x39, 0x64, 0xf1, + 0x5d, 0x04, 0x29, 0xad, 0xb8, 0x90, 0x75, 0xdf, 0x45, 0x88, 0xc6, 0x5f, 0x58, 0xb9, 0xb0, 0x56, + 0xf8, 0x23, 0x42, 0x12, 0x12, 0xae, 0xb4, 0xe4, 0xa0, 0x88, 0xe3, 0x0e, 0xbc, 0xc9, 0xd5, 0x0b, + 0xff, 0xa0, 0xb3, 0x1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xa8, 0x75, 0xd6, 0xc6, 0x3f, + 0xb2, 0xf1, 0x7d, 0x6c, 0xe6, 0xfc, 0xb9, 0x32, 0xfb, 0xe2, 0x0c, 0xd4, 0x37, 0xaa, 0x53, 0x72, + 0x62, 0x47, 0xe8, 0x51, 0xf3, 0xf6, 0xba, 0xf5, 0x03, 0xd5, 0x94, 0x81, 0x09, 0x22, 0xd3, 0xfa, + 0xed, 0x7d, 0xde, 0xa6, 0xcf, 0xd7, 0x3a, 0xbd, 0x15, 0x2b, 0x28, 0xc8, 0x69, 0x37, 0xbd, 0xc1, + 0xad, 0xeb, 0x2e, 0xeb, 0x96, 0x26, 0xe4, 0xac, 0xeb, 0xda, 0x72, 0xfc, 0x16, 0x9d, 0xd7, 0xac, + 0xbf, 0x88, 0xc7, 0x76, 0x11, 0x87, 0x8b, 0x8b, 0x77, 0xbf, 0xb7, 0x33, 0xe7, 0xcf, 0x76, 0xe6, + 0xfc, 0xdd, 0xce, 0x9c, 0xef, 0xaf, 0x13, 0xae, 0xd3, 0x75, 0xe4, 0x33, 0x91, 0x07, 0x34, 0xe3, + 0x11, 0x8d, 0x68, 0xb0, 0xfb, 0xfe, 0xed, 0x0d, 0xed, 0x5d, 0x61, 0x34, 0xb2, 0x37, 0xf4, 0xe6, + 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xa3, 0xc9, 0xb4, 0x8b, 0x9d, 0x03, 0x00, 0x00, } func (m *McpBridge) Marshal() (dAtA []byte, err error) { @@ -333,6 +368,36 @@ func (m *RegistryConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { i -= len(m.XXX_unrecognized) copy(dAtA[i:], m.XXX_unrecognized) } + if m.ConsulRefreshInterval != 0 { + i = encodeVarintMcpBridge(dAtA, i, uint64(m.ConsulRefreshInterval)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x88 + } + if len(m.ConsulServiceTag) > 0 { + i -= len(m.ConsulServiceTag) + copy(dAtA[i:], m.ConsulServiceTag) + i = encodeVarintMcpBridge(dAtA, i, uint64(len(m.ConsulServiceTag))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x82 + } + if len(m.ConsulAuthToken) > 0 { + i -= len(m.ConsulAuthToken) + copy(dAtA[i:], m.ConsulAuthToken) + i = encodeVarintMcpBridge(dAtA, i, uint64(len(m.ConsulAuthToken))) + i-- + dAtA[i] = 0x7a + } + if len(m.ConsulDatacenter) > 0 { + i -= len(m.ConsulDatacenter) + copy(dAtA[i:], m.ConsulDatacenter) + i = encodeVarintMcpBridge(dAtA, i, uint64(len(m.ConsulDatacenter))) + i-- + dAtA[i] = 0x72 + } if len(m.ZkServicesPath) > 0 { for iNdEx := len(m.ZkServicesPath) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.ZkServicesPath[iNdEx]) @@ -516,6 +581,21 @@ func (m *RegistryConfig) Size() (n int) { n += 1 + l + sovMcpBridge(uint64(l)) } } + l = len(m.ConsulDatacenter) + if l > 0 { + n += 1 + l + sovMcpBridge(uint64(l)) + } + l = len(m.ConsulAuthToken) + if l > 0 { + n += 1 + l + sovMcpBridge(uint64(l)) + } + l = len(m.ConsulServiceTag) + if l > 0 { + n += 2 + l + sovMcpBridge(uint64(l)) + } + if m.ConsulRefreshInterval != 0 { + n += 2 + sovMcpBridge(uint64(m.ConsulRefreshInterval)) + } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } @@ -1032,6 +1112,121 @@ func (m *RegistryConfig) Unmarshal(dAtA []byte) error { } m.ZkServicesPath = append(m.ZkServicesPath, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex + case 14: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ConsulDatacenter", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMcpBridge + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMcpBridge + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMcpBridge + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ConsulDatacenter = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 15: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ConsulAuthToken", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMcpBridge + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMcpBridge + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMcpBridge + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ConsulAuthToken = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 16: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ConsulServiceTag", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMcpBridge + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMcpBridge + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMcpBridge + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ConsulServiceTag = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 17: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ConsulRefreshInterval", wireType) + } + m.ConsulRefreshInterval = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMcpBridge + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ConsulRefreshInterval |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipMcpBridge(dAtA[iNdEx:])