Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Svc ¶
type Svc struct { ID int64 `gorm:"primary_key;not_null;auto_increment"` //服务名称 SvcName string `gorm:"unique_index;not_null" json:"svc_name"` //服务名称命名空间 SvcNamespace string `gorm:"not_null" json:"svc_name_space"` //绑定的POD名称 SvcPodSpace string `gorm:"not_null" json:"svc_pod_name"` //ClusterIp,NodePort,LoadBalancer,ExternalName SvcType string `json:"svc_pod_name"` //type类型为:ExternalName时候启用该字段 SvcExternalName string `json:"svc_external_name"` //业务测团队id SvcTeamId string `json:"svc_team_id"` //服务上的端口设置 SvcPort []SvcPort `gorm:"ForeignKey:SvcID" json:"svc_port"` }
type SvcPort ¶
type SvcPort struct { ID int64 `gorm:"primary_key;not_null;auto_increment"` SvcID int64 `json:"svc_id"` //服务的port SvcPort int32 `json:"svc_port"` //pod中需要映射的port地址 SvcTargetPort int32 `json:"svc_target_port"` //开启NodePort的模式下进行设置 SvcNodePort int32 `json:"svc_node_port"` //端口协议 SvcPortProtocol string `json:"svc_port_protocol"` }
Click to show internal directories.
Click to hide internal directories.