Documentation ¶
Index ¶
- Constants
- func NewProxier(ipFamily v1.IPFamily, dummy netlink.Link, ipsetInterface util.Interface, ...) *proxier
- type Backend
- func (s *Backend) AddIP(svc *localv1.Service, ip string, ipKind serviceevents.IPKind)
- func (s *Backend) AddIPPort(svc *localv1.Service, ip string, IPKind serviceevents.IPKind, ...)
- func (s *Backend) BindFlags(flags *pflag.FlagSet)
- func (s *Backend) DeleteEndpoint(namespace, serviceName, key string)
- func (s *Backend) DeleteIP(svc *localv1.Service, ip string, ipKind serviceevents.IPKind)
- func (s *Backend) DeleteIPPort(svc *localv1.Service, ip string, IPKind serviceevents.IPKind, ...)
- func (s *Backend) DeleteService(namespace, name string)
- func (s *Backend) DisableSessionAffinity(svc *localv1.Service)
- func (s *Backend) DisableTrafficPolicy(svc *localv1.Service, policyKind serviceevents.TrafficPolicyKind)
- func (s *Backend) EnableSessionAffinity(svc *localv1.Service, sessionAffinity serviceevents.SessionAffinity)
- func (s *Backend) EnableTrafficPolicy(svc *localv1.Service, policyKind serviceevents.TrafficPolicyKind)
- func (s *Backend) Reset()
- func (s *Backend) ServeProxyMode(errCh chan error)
- func (s *Backend) SetEndpoint(namespace, serviceName, key string, endpoint *localv1.Endpoint)
- func (s *Backend) SetService(svc *localv1.Service)
- func (s *Backend) SetUpHttpListen() error
- func (s *Backend) Setup()
- func (s *Backend) Sink() localsink.Sink
- func (s *Backend) Sync()
- func (s *Backend) WaitRequest() (nodeName string, err error)
- type BaseServicePortInfo
- func (b *BaseServicePortInfo) GetVirtualServer() ipvsLB
- func (b *BaseServicePortInfo) Port() int32
- func (b *BaseServicePortInfo) Protocol() localv1.Protocol
- func (b *BaseServicePortInfo) ResetSessionAffinity()
- func (b *BaseServicePortInfo) ServiceIP() string
- func (b *BaseServicePortInfo) SetSessionAffinity(sa serviceevents.SessionAffinity)
- func (b *BaseServicePortInfo) TargetPort() int32
- func (b *BaseServicePortInfo) TargetPortName() string
- type IPSet
- type Operation
Constants ¶
View Source
const ( ClusterIPService = "ClusterIP" NodePortService = "NodePort" LoadBalancerService = "LoadBalancer" )
View Source
const ( // FlagPersistent specify IPVS service session affinity FlagPersistent = 0x1 // FlagHashed specify IPVS service hash flag FlagHashed = 0x2 )
View Source
const ( // KubeFireWallChain is the kubernetes firewall chain. KubeFireWallChain util.Chain = "KUBE-FIREWALL" // KubeMarkMasqChain is the mark-for-masquerade chain KubeMarkMasqChain util.Chain = "KUBE-MARK-MASQ" // KubeNodePortChain is the kubernetes node port chain KubeNodePortChain util.Chain = "KUBE-NODE-PORT" // KubeMarkDropChain is the mark-for-drop chain KubeMarkDropChain util.Chain = "KUBE-MARK-DROP" // KubeForwardChain is the kubernetes forward chain KubeForwardChain util.Chain = "KUBE-FORWARD" // KubeLoadBalancerChain is the kubernetes chain for loadbalancer type service KubeLoadBalancerChain util.Chain = "KUBE-LOAD-BALANCER" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Backend ¶
func (*Backend) AddIPPort ¶
func (s *Backend) AddIPPort(svc *localv1.Service, ip string, IPKind serviceevents.IPKind, port *localv1.PortMapping)
func (*Backend) DeleteEndpoint ¶
func (*Backend) DeleteIPPort ¶
func (s *Backend) DeleteIPPort(svc *localv1.Service, ip string, IPKind serviceevents.IPKind, port *localv1.PortMapping)
func (*Backend) DeleteService ¶
func (*Backend) DisableSessionAffinity ¶
func (*Backend) DisableTrafficPolicy ¶
func (s *Backend) DisableTrafficPolicy(svc *localv1.Service, policyKind serviceevents.TrafficPolicyKind)
func (*Backend) EnableSessionAffinity ¶
func (s *Backend) EnableSessionAffinity(svc *localv1.Service, sessionAffinity serviceevents.SessionAffinity)
func (*Backend) EnableTrafficPolicy ¶
func (s *Backend) EnableTrafficPolicy(svc *localv1.Service, policyKind serviceevents.TrafficPolicyKind)
func (*Backend) ServeProxyMode ¶
func (*Backend) SetEndpoint ¶
func (*Backend) SetService ¶
SetService ------------------------------------------------------ Service
func (*Backend) SetUpHttpListen ¶
func (*Backend) WaitRequest ¶
WaitRequest see localsink.Sink#WaitRequest
type BaseServicePortInfo ¶
type BaseServicePortInfo struct {
// contains filtered or unexported fields
}
func NewBaseServicePortInfo ¶
func NewBaseServicePortInfo(svc *localv1.Service, port *localv1.PortMapping, serviceIP, serviceType, schedulingMethod string, weight int32) *BaseServicePortInfo
func (*BaseServicePortInfo) GetVirtualServer ¶
func (b *BaseServicePortInfo) GetVirtualServer() ipvsLB
func (*BaseServicePortInfo) Port ¶
func (b *BaseServicePortInfo) Port() int32
func (*BaseServicePortInfo) Protocol ¶
func (b *BaseServicePortInfo) Protocol() localv1.Protocol
func (*BaseServicePortInfo) ResetSessionAffinity ¶
func (b *BaseServicePortInfo) ResetSessionAffinity()
func (*BaseServicePortInfo) ServiceIP ¶
func (b *BaseServicePortInfo) ServiceIP() string
func (*BaseServicePortInfo) SetSessionAffinity ¶
func (b *BaseServicePortInfo) SetSessionAffinity(sa serviceevents.SessionAffinity)
func (*BaseServicePortInfo) TargetPort ¶
func (b *BaseServicePortInfo) TargetPort() int32
func (*BaseServicePortInfo) TargetPortName ¶
func (b *BaseServicePortInfo) TargetPortName() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.