mirror of
https://github.com/alibaba/higress.git
synced 2026-06-07 03:37:28 +08:00
Supports MCP service configuration protocol and SNI, along with various other fixes. (#1369)
This commit is contained in:
@@ -18,27 +18,37 @@ import (
|
||||
"time"
|
||||
|
||||
"istio.io/api/networking/v1alpha3"
|
||||
|
||||
"github.com/alibaba/higress/pkg/ingress/kube/common"
|
||||
)
|
||||
|
||||
type ServiceEntryWrapper struct {
|
||||
ServiceName string
|
||||
ServiceEntry *v1alpha3.ServiceEntry
|
||||
Suffix string
|
||||
RegistryType string
|
||||
createTime time.Time
|
||||
type ServiceWrapper struct {
|
||||
ServiceName string
|
||||
ServiceEntry *v1alpha3.ServiceEntry
|
||||
DestinationRuleWrapper *common.WrapperDestinationRule
|
||||
Suffix string
|
||||
RegistryType string
|
||||
RegistryName string
|
||||
createTime time.Time
|
||||
}
|
||||
|
||||
func (sew *ServiceEntryWrapper) DeepCopy() *ServiceEntryWrapper {
|
||||
return &ServiceEntryWrapper{
|
||||
ServiceEntry: sew.ServiceEntry.DeepCopy(),
|
||||
createTime: sew.GetCreateTime(),
|
||||
func (sew *ServiceWrapper) DeepCopy() *ServiceWrapper {
|
||||
res := &ServiceWrapper{}
|
||||
res = sew
|
||||
res.ServiceEntry = sew.ServiceEntry.DeepCopy()
|
||||
res.createTime = sew.GetCreateTime()
|
||||
|
||||
if sew.DestinationRuleWrapper != nil {
|
||||
res.DestinationRuleWrapper = sew.DestinationRuleWrapper
|
||||
res.DestinationRuleWrapper.DestinationRule = sew.DestinationRuleWrapper.DestinationRule.DeepCopy()
|
||||
}
|
||||
return res
|
||||
}
|
||||
|
||||
func (sew *ServiceEntryWrapper) SetCreateTime(createTime time.Time) {
|
||||
func (sew *ServiceWrapper) SetCreateTime(createTime time.Time) {
|
||||
sew.createTime = createTime
|
||||
}
|
||||
|
||||
func (sew *ServiceEntryWrapper) GetCreateTime() time.Time {
|
||||
func (sew *ServiceWrapper) GetCreateTime() time.Time {
|
||||
return sew.createTime
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user