Documentation ¶
Index ¶
- Constants
- func GetFirstUID(uid string) string
- func GetNodePort(service *v1.Service, port int32, protocol v1.Protocol) (nodePort int32, found bool)
- func GetPortsOfService(service *v1.Service) ([]int, []int)
- func IntIndex(vs []int, t int) int
- func StringIndex(vs []string, t string) int
- func TwoArrayEqual(a []int, b []int) bool
Constants ¶
View Source
const ( //service定义时使用 ServiceAnnotationInternalSlbId = "service.beta.kubernetes.io/inspur-load-balancer-slbid" //Listener forwardRule ServiceAnnotationLBForwardRule = "loadbalancer.inspur.com/forward-rule" //Listener isHealthCheck ServiceAnnotationLBHealthCheck = "loadbalancer.inspur.com/is-healthcheck" //Listener typeHealthCheck ServiceAnnotationLBtypeHealthCheck = "loadbalancer.inspur.com/healthcheck-type" //Listener portHealthCheck ServiceAnnotationLBportHealthCheck = "loadbalancer.inspur.com/healthcheck-port" //Listener periodHealthCheck ServiceAnnotationLBperiodHealthCheck = "loadbalancer.inspur.com/healthcheck-period" //Listener timeoutHealthCheck ServiceAnnotationLBtimeoutHealthCheck = "loadbalancer.inspur.com/healthcheck-timeout" //Listener maxHealthCheck ServiceAnnotationLBmaxHealthCheck = "loadbalancer.inspur.com/healthcheck-max" //Listener domainHealthCheck ServiceAnnotationLBdomainHealthCheck = "loadbalancer.inspur.com/healthcheck-domain" //Listener pathHealthCheck ServiceAnnotationLBpathHealthCheck = "loadbalancer.inspur.com/healthcheck-path" NodeAnnotationInstanceID = "node.beta.kubernetes.io/instance-id" )
Variables ¶
This section is empty.
Functions ¶
func GetFirstUID ¶
func GetNodePort ¶
func GetPortsOfService ¶
GetPortsOfService return service ports and nodeports
func StringIndex ¶
func TwoArrayEqual ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.