Documentation ¶
Index ¶
Constants ¶
View Source
const ( // HTTPS https protocol name HTTPS = "https" // HTTP http protocol name HTTP = "http" // Mysql mysql protocol name Mysql = "mysql" // Redis redis protocol name Redis = "redis" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Endpoint ¶
type Endpoint struct { // The protocol for this endpoint. Supports "TCP", "UDP", and "SCTP". // Default is TCP. // +default="TCP" // +optional Protocol corev1.Protocol `json:"protocol,omitempty"` // The protocol for this endpoint. // Un-prefixed names are reserved for IANA standard service names (as per // RFC-6335 and http://www.iana.org/assignments/service-names). // +optional AppProtocol *string `json:"appProtocol,omitempty"` // the host for the endpoint, it could be IP or domain Host string `json:"host"` // the port for the endpoint // Default is 80. Port int `json:"port"` // the path for the endpoint Path string `json:"path,omitempty"` }
Endpoint create by ingress or service
type ServiceEndpoint ¶
type ServiceEndpoint struct { Endpoint Endpoint `json:"endpoint"` Ref corev1.ObjectReference `json:"ref"` Cluster string `json:"cluster"` }
ServiceEndpoint record the access endpoints of the application services
func (*ServiceEndpoint) String ¶
func (s *ServiceEndpoint) String() string
String return endpoint URL
Click to show internal directories.
Click to hide internal directories.