Documentation ¶
Overview ¶
Package server provides server function for multus-proxy.
Index ¶
- Constants
- type Options
- type Server
- func (s *Server) OnEndpointSliceAdd(endpointSlice *discovery.EndpointSlice)
- func (s *Server) OnEndpointSliceDelete(endpointSlice *discovery.EndpointSlice)
- func (s *Server) OnEndpointSliceSynced()
- func (s *Server) OnEndpointSliceUpdate(oldEndpointSlice, endpointSlice *discovery.EndpointSlice)
- func (s *Server) OnPodAdd(pod *v1.Pod)
- func (s *Server) OnPodDelete(pod *v1.Pod)
- func (s *Server) OnPodSynced()
- func (s *Server) OnPodUpdate(oldPod, pod *v1.Pod)
- func (s *Server) OnServiceAdd(service *v1.Service)
- func (s *Server) OnServiceDelete(service *v1.Service)
- func (s *Server) OnServiceSynced()
- func (s *Server) OnServiceUpdate(oldService, service *v1.Service)
- func (s *Server) Run(hostname string, stopCh chan struct{}) error
- func (s *Server) Sync()
- func (s *Server) SyncLoop()
Constants ¶
View Source
const LabelServiceProxyName = "service.kubernetes.io/service-proxy-name"
LabelServiceProxyName specifies Kubernetes label for service proxy
View Source
const PolicyNetworkAnnotation = "k8s.v1.cni.cncf.io/policy-for"
PolicyNetworkAnnotation is annotation for multiNetworkPolicy, to specify which networks(i.e. net-attach-def) are the targets of the policy
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { // kubeconfig is the path to a KubeConfig file. Kubeconfig string // contains filtered or unexported fields }
Options stores option for the command
type Server ¶
type Server struct { Client clientset.Interface Hostname string Broadcaster record.EventBroadcaster Recorder record.EventRecorder Options *Options ConfigSyncPeriod time.Duration NodeRef *v1.ObjectReference // contains filtered or unexported fields }
Server structure defines data for server
func (*Server) OnEndpointSliceAdd ¶
func (s *Server) OnEndpointSliceAdd(endpointSlice *discovery.EndpointSlice)
OnEndpointSliceAdd ...
func (*Server) OnEndpointSliceDelete ¶
func (s *Server) OnEndpointSliceDelete(endpointSlice *discovery.EndpointSlice)
OnEndpointSliceDelete ...
func (*Server) OnEndpointSliceSynced ¶
func (s *Server) OnEndpointSliceSynced()
OnEndpointSliceSynced ...
func (*Server) OnEndpointSliceUpdate ¶
func (s *Server) OnEndpointSliceUpdate(oldEndpointSlice, endpointSlice *discovery.EndpointSlice)
OnEndpointSliceUpdate ...
func (*Server) OnServiceDelete ¶
OnServiceDelete ...
func (*Server) OnServiceUpdate ¶
OnServiceUpdate ...
Click to show internal directories.
Click to hide internal directories.