Documentation ¶
Index ¶
- func ModelStringMatchToStringMatch(stringMatch *StringMatch) *mesh_proto.StringMatch
- type AdminMetadata
- type AffinityAware
- type AppDashboardReq
- type Application
- type ApplicationDetail
- type ApplicationDetailReq
- type ApplicationDetailResp
- type ApplicationSearch
- type ApplicationSearchReq
- type ApplicationSearchResp
- type ApplicationServiceForm
- type ApplicationServiceFormReq
- type ApplicationServiceFormResp
- type ApplicationServiceReq
- type ApplicationServiceResp
- type ApplicationTabInstanceInfoReq
- type ApplicationTabInstanceInfoResp
- type ByAppName
- type ByAppServiceFormName
- type ByApplicationInstanceName
- type ByServiceInstanceName
- type ByServiceName
- type CommonResp
- type Condition
- type ConditionRuleResp
- type ConditionRuleSearchResp
- type ConditionRuleSearchResp_Data
- type ConditionRuleV3X1
- type Condition_From
- type Condition_To
- type ConfigItem
- type ConfiguratorResp
- type ConfiguratorSearchResp
- type ConfiguratorSearchResp_Data
- type DashboardReq
- type DashboardResp
- type Destination
- type DestinationCondition
- type FlowWeightSet
- type GraySet
- type Instance
- type InstanceDashboardReq
- type InstanceDetail
- type InstanceDetailReq
- type InstanceDetailResp
- type LivenessProbe
- type MethodDescribe
- type MethodDetail
- type Metric
- type MetricsCategory
- type MetricsReq
- type MetricsResp
- type OverviewResp
- type PageData
- type PageReq
- type ParamMatch
- type ProbeStruct
- type ReadinessProbe
- type RespAddress
- type RespAddressMatch
- type RespConditionRuleData
- type RespConfigurator
- type RespListStringMatch
- type RespMatch
- type RespTagData
- type RespTagElement
- type RouteCondition
- type SearchInstanceReq
- type SearchInstanceResp
- type SearchPaginationResult
- type SearchReq
- type SearchRes
- type Service
- type ServiceArgument
- type ServiceArgumentRoute
- type ServiceDashboardReq
- type ServiceSearch
- type ServiceSearchReq
- type ServiceSearchResp
- type ServiceTabDistribution
- type ServiceTabDistributionReq
- type ServiceTabDistributionResp
- func (r *ServiceTabDistributionResp) FromServiceDataplaneResource(dataplane *core_mesh.DataplaneResource, metadata *core_mesh.MetaDataResource, ...) *ServiceTabDistributionResp
- func (r *ServiceTabDistributionResp) FromServiceDistribution(distribution *ServiceTabDistribution) *ServiceTabDistributionResp
- type Set
- type StartupProbe
- type State
- type StringMatch
- type TagRuleResp
- type TagRuleSearchResp
- type TagRuleSearchResp_Datum
- type VersionGroup
- type Workload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ModelStringMatchToStringMatch ¶
func ModelStringMatchToStringMatch(stringMatch *StringMatch) *mesh_proto.StringMatch
Types ¶
type AdminMetadata ¶
type AdminMetadata struct { Registry string `json:"registry"` Metadata string `json:"metadata"` Config string `json:"config"` Prometheus string `json:"prometheus"` Grafana string `json:"grafana"` Tracing string `json:"tracing"` }
func NewAdminMetadata ¶
func NewAdminMetadata() *AdminMetadata
type AffinityAware ¶
type AppDashboardReq ¶
type AppDashboardReq struct {
Application string `form:"application"`
}
func (*AppDashboardReq) GetKeyVariable ¶
func (req *AppDashboardReq) GetKeyVariable() string
type ApplicationDetail ¶
type ApplicationDetail struct { AppTypes Set DeployClusters Set DubboPorts Set DubboVersions Set Images Set RegisterClusters Set RegisterModes Set RPCProtocols Set SerialProtocols Set Workloads Set }
func NewApplicationDetail ¶
func NewApplicationDetail() *ApplicationDetail
func (*ApplicationDetail) GetRegistry ¶
func (a *ApplicationDetail) GetRegistry(rt core_runtime.Runtime)
func (*ApplicationDetail) MergeDatapalne ¶
func (a *ApplicationDetail) MergeDatapalne(dataplane *mesh.DataplaneResource)
func (*ApplicationDetail) MergeMetaData ¶
func (a *ApplicationDetail) MergeMetaData(metadata *mesh.MetaDataResource)
type ApplicationDetailReq ¶
type ApplicationDetailReq struct {
AppName string `form:"appName"`
}
Todo Application Detail
type ApplicationDetailResp ¶
type ApplicationDetailResp struct { AppName string `json:"appName"` AppTypes []string `json:"appTypes"` DeployClusters []string `json:"deployClusters"` DubboPorts []string `json:"dubboPorts"` DubboVersions []string `json:"dubboVersions"` Images []string `json:"images"` RegisterClusters []string `json:"registerClusters"` RegisterModes []string `json:"registerModes"` RPCProtocols []string `json:"rpcProtocols"` SerialProtocols []string `json:"serialProtocols"` Workloads []string `json:"workloads"` }
func (*ApplicationDetailResp) FromApplicationDetail ¶
func (r *ApplicationDetailResp) FromApplicationDetail(ad *ApplicationDetail) *ApplicationDetailResp
type ApplicationSearch ¶
type ApplicationSearch struct { AppName string DeployClusters Set InstanceCount int64 RegistryClusters Set }
func NewApplicationSearch ¶
func NewApplicationSearch(appName string) *ApplicationSearch
func (*ApplicationSearch) GetRegistry ¶
func (a *ApplicationSearch) GetRegistry(rt core_runtime.Runtime)
func (*ApplicationSearch) MergeDataplane ¶
func (a *ApplicationSearch) MergeDataplane(dataplane *mesh.DataplaneResource)
type ApplicationSearchReq ¶
type ApplicationSearchReq struct { AppName string `form:"appName" json:"appName"` Keywords string `form:"keywords" json:"keywords"` PageReq }
func NewApplicationSearchReq ¶
func NewApplicationSearchReq() *ApplicationSearchReq
type ApplicationSearchResp ¶
type ApplicationSearchResp struct { AppName string `json:"appName"` DeployClusters []string `json:"deployClusters"` InstanceCount int64 `json:"instanceCount"` RegistryClusters []string `json:"registryClusters"` }
func (*ApplicationSearchResp) FromApplicationSearch ¶
func (a *ApplicationSearchResp) FromApplicationSearch(applicationSearch *ApplicationSearch) *ApplicationSearchResp
type ApplicationServiceForm ¶
func NewApplicationServiceForm ¶
func NewApplicationServiceForm(serviceName string) *ApplicationServiceForm
func (*ApplicationServiceForm) FromServiceInfo ¶
func (a *ApplicationServiceForm) FromServiceInfo(serviceInfo *v1alpha1.ServiceInfo) error
type ApplicationServiceFormReq ¶
type ApplicationServiceFormReq struct { AppName string `form:"appName"` Side string `form:"side"` PageReq }
func NewApplicationServiceFormReq ¶
func NewApplicationServiceFormReq() *ApplicationServiceFormReq
type ApplicationServiceFormResp ¶
type ApplicationServiceFormResp struct { ServiceName string `json:"serviceName"` VersionGroups []versionGroup `json:"versionGroups"` }
func NewApplicationServiceFormResp ¶
func NewApplicationServiceFormResp() *ApplicationServiceFormResp
func (*ApplicationServiceFormResp) FromApplicationServiceForm ¶
func (a *ApplicationServiceFormResp) FromApplicationServiceForm(form *ApplicationServiceForm) error
type ApplicationServiceReq ¶
type ApplicationServiceReq struct {
AppName string `json:"appName"`
}
type ApplicationServiceResp ¶
type ApplicationTabInstanceInfoReq ¶
func NewApplicationTabInstanceInfoReq ¶
func NewApplicationTabInstanceInfoReq() *ApplicationTabInstanceInfoReq
type ApplicationTabInstanceInfoResp ¶
type ApplicationTabInstanceInfoResp struct { AppName string `json:"appName"` CreateTime string `json:"createTime"` DeployState string `json:"deployState"` DeployClusters string `json:"deployClusters"` IP string `json:"ip"` Labels map[string]string `json:"labels"` Name string `json:"name"` RegisterCluster string `json:"registerCluster"` RegisterState string `json:"registerState"` RegisterTime string `json:"registerTime"` WorkloadName string `json:"workloadName"` }
func (*ApplicationTabInstanceInfoResp) FromDataplaneResource ¶
func (a *ApplicationTabInstanceInfoResp) FromDataplaneResource(dataplane *mesh.DataplaneResource) *ApplicationTabInstanceInfoResp
func (*ApplicationTabInstanceInfoResp) GetRegistry ¶
func (a *ApplicationTabInstanceInfoResp) GetRegistry(rt core_runtime.Runtime)
type ByAppName ¶
type ByAppName []*ApplicationSearchResp
type ByAppServiceFormName ¶
type ByAppServiceFormName []*ApplicationServiceFormResp
func (ByAppServiceFormName) Len ¶
func (a ByAppServiceFormName) Len() int
func (ByAppServiceFormName) Less ¶
func (a ByAppServiceFormName) Less(i, j int) bool
func (ByAppServiceFormName) Swap ¶
func (a ByAppServiceFormName) Swap(i, j int)
type ByApplicationInstanceName ¶
type ByApplicationInstanceName []*ApplicationTabInstanceInfoResp
func (ByApplicationInstanceName) Len ¶
func (a ByApplicationInstanceName) Len() int
func (ByApplicationInstanceName) Less ¶
func (a ByApplicationInstanceName) Less(i, j int) bool
func (ByApplicationInstanceName) Swap ¶
func (a ByApplicationInstanceName) Swap(i, j int)
type ByServiceInstanceName ¶
type ByServiceInstanceName []*ServiceTabDistributionResp
func (ByServiceInstanceName) Len ¶
func (a ByServiceInstanceName) Len() int
func (ByServiceInstanceName) Less ¶
func (a ByServiceInstanceName) Less(i, j int) bool
func (ByServiceInstanceName) Swap ¶
func (a ByServiceInstanceName) Swap(i, j int)
type ByServiceName ¶
type ByServiceName []*ServiceSearchResp
func (ByServiceName) Len ¶
func (a ByServiceName) Len() int
func (ByServiceName) Less ¶
func (a ByServiceName) Less(i, j int) bool
func (ByServiceName) Swap ¶
func (a ByServiceName) Swap(i, j int)
type CommonResp ¶
func NewErrorResp ¶
func NewErrorResp(msg string) *CommonResp
func NewSuccessResp ¶
func NewSuccessResp(data any) *CommonResp
func (*CommonResp) WithCode ¶
func (r *CommonResp) WithCode(code int) *CommonResp
func (*CommonResp) WithData ¶
func (r *CommonResp) WithData(data any) *CommonResp
func (*CommonResp) WithMsg ¶
func (r *CommonResp) WithMsg(msg string) *CommonResp
type Condition ¶
type Condition struct { From Condition_From `json:"from"` To []Condition_To `json:"to"` }
type ConditionRuleResp ¶
type ConditionRuleResp struct { Code int `json:"code"` Message string `json:"message"` Data interface{} `json:"data"` }
func GenConditionRuleToResp ¶
func GenConditionRuleToResp(code int, message string, data *mesh_proto.ConditionRoute) *ConditionRuleResp
type ConditionRuleSearchResp ¶
type ConditionRuleSearchResp struct { Code int64 `json:"code"` Data []ConditionRuleSearchResp_Data `json:"data"` Message string `json:"message"` }
type ConditionRuleV3X1 ¶
type Condition_From ¶
type Condition_From struct {
Match string `json:"match"`
}
type Condition_To ¶
type ConfigItem ¶
type ConfiguratorResp ¶
type ConfiguratorResp struct { Code int `json:"code"` Message string `json:"message"` Data RespConfigurator `json:"data"` }
func GenDynamicConfigToResp ¶
func GenDynamicConfigToResp(code int, message string, pb *mesh_proto.DynamicConfig) (res *ConfiguratorResp)
type ConfiguratorSearchResp ¶
type ConfiguratorSearchResp struct { Code int `json:"code"` Message string `json:"message"` Data []ConfiguratorSearchResp_Data `json:"data"` }
type DashboardReq ¶
type DashboardReq interface {
GetKeyVariable() string
}
type DashboardResp ¶
type DashboardResp struct {
BaseURL string `json:"baseURL"`
}
DashboardResp TODO add dynamic variables
type Destination ¶
type Destination struct { Conditions []DestinationCondition `json:"conditions"` Weight int32 `json:"weight"` }
type DestinationCondition ¶
type FlowWeightSet ¶
type FlowWeightSet struct { Weight int32 `json:"weight,omitempty"` Scope ParamMatch `json:"scope,omitempty"` }
type GraySet ¶
type GraySet struct { EnvName string `json:"name,omitempty"` Scope ParamMatch `json:"scope,omitempty"` }
type InstanceDashboardReq ¶
type InstanceDashboardReq struct {
Instance string `form:"instance"`
}
func (*InstanceDashboardReq) GetKeyVariable ¶
func (req *InstanceDashboardReq) GetKeyVariable() string
type InstanceDetail ¶
type InstanceDetail struct { RpcPort int Ip string AppName string WorkloadName string Labels map[string]string CreateTime string ReadyTime string RegisterTime string RegisterState string RegisterClusters Set DeployCluster string DeployState string Node string Image string Tags map[string]string Probes ProbeStruct }
func NewInstanceDetail ¶
func NewInstanceDetail() *InstanceDetail
func (*InstanceDetail) Merge ¶
func (a *InstanceDetail) Merge(dataplane *mesh.DataplaneResource)
type InstanceDetailReq ¶
type InstanceDetailReq struct {
InstanceName string `form:"instanceName"`
}
type InstanceDetailResp ¶
type InstanceDetailResp struct { RpcPort int `json:"rpcPort"` Ip string `json:"ip"` AppName string `json:"appName"` WorkloadName string `json:"workloadName"` Labels map[string]string `json:"labels"` CreateTime string `json:"createTime"` ReadyTime string `json:"readyTime"` RegisterTime string `json:"registerTime"` RegisterClusters []string `json:"registerClusters"` DeployCluster string `json:"deployCluster"` DeployState string `json:"deployState"` RegisterState string `json:"registerState"` Node string `json:"node"` Image string `json:"image"` Probes ProbeStruct `json:"probes"` Tags map[string]string `json:"tags"` }
func (*InstanceDetailResp) FromInstanceDetail ¶
func (r *InstanceDetailResp) FromInstanceDetail(id *InstanceDetail) *InstanceDetailResp
type LivenessProbe ¶
type MethodDescribe ¶
type MethodDetail ¶
type MethodDetail struct { InputT []interface{} `json:"parameterTypes"` ReturnType string `json:"returnType"` }
type Metric ¶
type Metric struct { Name string `json:"name"` Labels map[string]string `json:"labels"` Value float64 `json:"value"` }
Metric represents a single metric with its name, labels, and value.
type MetricsCategory ¶
type MetricsCategory int
const ( RT MetricsCategory = iota QPS REQUESTS APPLICATION CONFIGCENTER REGISTRY METADATA THREAD_POOL )
type MetricsReq ¶
type MetricsReq struct {
InstanceName string `form:"instanceName"`
}
type MetricsResp ¶
type OverviewResp ¶
type OverviewResp struct { AppCount int `json:"appCount"` ServiceCount int `json:"serviceCount"` InsCount int `json:"insCount"` Protocols map[string]int `json:"protocols"` Releases map[string]int `json:"releases"` Discoveries map[string]int `json:"discoveries"` }
func NewOverviewResp ¶
func NewOverviewResp() *OverviewResp
type PageData ¶
type PageData struct { Total int `json:"total"` CurPage int `json:"curPage"` PageSize int `json:"pageSize"` Data any `json:"data"` }
func NewPageData ¶
func NewPageData() *PageData
func (*PageData) WithCurPage ¶
func (*PageData) WithPageSize ¶
type ParamMatch ¶
type ParamMatch struct { Key *string `json:"key,omitempty"` Value *StringMatch `json:"value,omitempty"` }
type ProbeStruct ¶
type ProbeStruct struct { StartupProbe StartupProbe `json:"startupProbe"` ReadinessProbe ReadinessProbe `json:"readinessProbe"` LivenessProbe LivenessProbe `json:"livenessProbe"` }
type ReadinessProbe ¶
type RespAddress ¶
type RespAddressMatch ¶
type RespConditionRuleData ¶
type RespConfigurator ¶
type RespConfigurator struct { Configs []ConfigItem `json:"configs"` ConfigVersion string `json:"configVersion"` Enabled bool `json:"enabled"` Key string `json:"key"` Scope string `json:"scope"` }
type RespListStringMatch ¶
type RespListStringMatch struct {
Oneof []StringMatch `json:"oneof,omitempty"`
}
type RespMatch ¶
type RespMatch struct { Address *RespAddress `json:"address,omitempty"` App *RespListStringMatch `json:"app,omitempty"` Param []ParamMatch `json:"param,omitempty"` ProviderAddress *RespAddressMatch `json:"providerAddress,omitempty"` Service *RespListStringMatch `json:"service,omitempty"` }
type RespTagData ¶
type RespTagElement ¶
type RespTagElement struct { Addresses []string `json:"addresses,omitempty"` Match []ParamMatch `json:"match,omitempty"` Name string `json:"name"` }
type RouteCondition ¶
type SearchInstanceReq ¶
type SearchInstanceReq struct { AppName string `form:"appName"` Keywords string `form:"keywords"` PageReq }
func NewSearchInstanceReq ¶
func NewSearchInstanceReq() *SearchInstanceReq
type SearchInstanceResp ¶
type SearchInstanceResp struct { Ip string `json:"ip"` Name string `json:"name"` WorkloadName string `json:"workloadName"` AppName string `json:"appName"` DeployState string `json:"deployState"` DeployCluster string `json:"deployCluster"` RegisterState string `json:"registerState"` RegisterClustersSet *gxset.HashSet `json:"-"` RegisterClusters []string `json:"registerClusters"` CreateTime string `json:"createTime"` RegisterTime string `json:"registerTime"` // TODO: not converted Labels map[string]string `json:"labels"` }
func NewSearchInstanceResp ¶
func NewSearchInstanceResp() *SearchInstanceResp
func (*SearchInstanceResp) FromDataplaneResource ¶
func (r *SearchInstanceResp) FromDataplaneResource(dr *mesh.DataplaneResource) *SearchInstanceResp
type SearchPaginationResult ¶
type SearchPaginationResult struct { List any `json:"list"` PageInfo *model.Pagination `json:"pageInfo"` }
func NewSearchPaginationResult ¶
func NewSearchPaginationResult() *SearchPaginationResult
type SearchReq ¶
type SearchReq struct { SearchType string `form:"searchType"` Keywords string `form:"keywords"` PageReq }
func NewSearchReq ¶
func NewSearchReq() *SearchReq
type ServiceArgument ¶
type ServiceArgument struct { Conditions []RouteCondition `json:"conditions"` Destinations []Destination `json:"destinations"` Method string `json:"method"` }
type ServiceArgumentRoute ¶
type ServiceArgumentRoute struct {
Routes []ServiceArgument `json:"routes"`
}
func ConditionV3x1ToServiceArgumentRoute ¶
func ConditionV3x1ToServiceArgumentRoute(mesh []*mesh_proto.ConditionRule) *ServiceArgumentRoute
func (*ServiceArgumentRoute) ToConditionV3x1Condition ¶
func (s *ServiceArgumentRoute) ToConditionV3x1Condition() []*mesh_proto.ConditionRule
type ServiceDashboardReq ¶
type ServiceDashboardReq struct {
Service string `form:"service"`
}
func (*ServiceDashboardReq) GetKeyVariable ¶
func (req *ServiceDashboardReq) GetKeyVariable() string
type ServiceSearch ¶
func NewServiceSearch ¶
func NewServiceSearch(serviceName string) *ServiceSearch
func (*ServiceSearch) FromServiceInfo ¶
func (s *ServiceSearch) FromServiceInfo(info *v1alpha1.ServiceInfo)
type ServiceSearchReq ¶
type ServiceSearchReq struct { ServiceName string `form:"serviceName" json:"serviceName"` Keywords string `form:"keywords" json:"keywords"` PageReq }
func NewServiceSearchReq ¶
func NewServiceSearchReq() *ServiceSearchReq
type ServiceSearchResp ¶
type ServiceSearchResp struct { ServiceName string `json:"serviceName"` VersionGroups []VersionGroup `json:"versionGroups"` }
func NewServiceSearchResp ¶
func NewServiceSearchResp() *ServiceSearchResp
func (*ServiceSearchResp) FromServiceSearch ¶
func (s *ServiceSearchResp) FromServiceSearch(search *ServiceSearch)
type ServiceTabDistribution ¶
type ServiceTabDistribution struct { AppName string InstanceName string Endpoint string TimeOut string Retries string }
func NewServiceDistribution ¶
func NewServiceDistribution() *ServiceTabDistribution
type ServiceTabDistributionResp ¶
type ServiceTabDistributionResp struct { AppName string `json:"appName"` InstanceName string `json:"instanceName"` Endpoint string `json:"endpoint"` TimeOut string `json:"timeOut"` Retries string `json:"retries"` Params map[string]string `json:"params"` }
func NewServiceDistributionResp ¶
func NewServiceDistributionResp() *ServiceTabDistributionResp
func (*ServiceTabDistributionResp) FromServiceDataplaneResource ¶
func (r *ServiceTabDistributionResp) FromServiceDataplaneResource(dataplane *core_mesh.DataplaneResource, metadata *core_mesh.MetaDataResource, name string, req *ServiceTabDistributionReq) *ServiceTabDistributionResp
func (*ServiceTabDistributionResp) FromServiceDistribution ¶
func (r *ServiceTabDistributionResp) FromServiceDistribution(distribution *ServiceTabDistribution) *ServiceTabDistributionResp
type StartupProbe ¶
type StringMatch ¶
type StringMatch struct { Empty *string `json:"empty,omitempty"` Exact *string `json:"exact,omitempty"` Noempty *string `json:"noempty,omitempty"` Prefix *string `json:"prefix,omitempty"` Regex *string `json:"regex,omitempty"` Wildcard *string `json:"wildcard,omitempty"` }
func StringMatchToModelStringMatch ¶
func StringMatchToModelStringMatch(stringMatch *mesh_proto.StringMatch) *StringMatch
type TagRuleResp ¶
type TagRuleResp struct { Code int `json:"code"` Message string `json:"message"` Data *RespTagData `json:"data"` }
func GenTagRouteResp ¶
func GenTagRouteResp(code int, message string, pb *mesh_proto.TagRoute) *TagRuleResp
type TagRuleSearchResp ¶
type TagRuleSearchResp struct { Code int64 `json:"code"` Data []TagRuleSearchResp_Datum `json:"data"` Message string `json:"message"` }
type TagRuleSearchResp_Datum ¶
type VersionGroup ¶
Click to show internal directories.
Click to hide internal directories.