Documentation ¶
Overview ¶
Package server is the package that contains server functions.
Index ¶
- Constants
- type Options
- type Server
- func (s *Server) AllSynced() bool
- func (s *Server) OnNamespaceAdd(ns *v1.Namespace)
- func (s *Server) OnNamespaceDelete(ns *v1.Namespace)
- func (s *Server) OnNamespaceSynced()
- func (s *Server) OnNamespaceUpdate(oldNamespace, ns *v1.Namespace)
- func (s *Server) OnNetDefAdd(net *netdefv1.NetworkAttachmentDefinition)
- func (s *Server) OnNetDefDelete(net *netdefv1.NetworkAttachmentDefinition)
- func (s *Server) OnNetDefSynced()
- func (s *Server) OnNetDefUpdate(oldNet, net *netdefv1.NetworkAttachmentDefinition)
- 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) OnPolicyAdd(policy *multiv1beta1.MultiNetworkPolicy)
- func (s *Server) OnPolicyDelete(policy *multiv1beta1.MultiNetworkPolicy)
- func (s *Server) OnPolicySynced()
- func (s *Server) OnPolicyUpdate(oldPolicy, policy *multiv1beta1.MultiNetworkPolicy)
- func (s *Server) Run(_ string, stopCh chan struct{})
- func (s *Server) RunPodConfig()
- func (s *Server) Sync()
- func (s *Server) SyncLoop()
Constants ¶
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 NetworkPolicyClient multiclient.Interface NetDefClient netdefclient.Interface 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) OnNamespaceAdd ¶
OnNamespaceAdd ...
func (*Server) OnNamespaceDelete ¶
OnNamespaceDelete ...
func (*Server) OnNamespaceUpdate ¶
OnNamespaceUpdate ...
func (*Server) OnNetDefAdd ¶
func (s *Server) OnNetDefAdd(net *netdefv1.NetworkAttachmentDefinition)
OnNetDefAdd ...
func (*Server) OnNetDefDelete ¶
func (s *Server) OnNetDefDelete(net *netdefv1.NetworkAttachmentDefinition)
OnNetDefDelete ...
func (*Server) OnNetDefUpdate ¶
func (s *Server) OnNetDefUpdate(oldNet, net *netdefv1.NetworkAttachmentDefinition)
OnNetDefUpdate ...
func (*Server) OnPolicyAdd ¶
func (s *Server) OnPolicyAdd(policy *multiv1beta1.MultiNetworkPolicy)
OnPolicyAdd ...
func (*Server) OnPolicyDelete ¶
func (s *Server) OnPolicyDelete(policy *multiv1beta1.MultiNetworkPolicy)
OnPolicyDelete ...
func (*Server) OnPolicyUpdate ¶
func (s *Server) OnPolicyUpdate(oldPolicy, policy *multiv1beta1.MultiNetworkPolicy)
OnPolicyUpdate ...
Click to show internal directories.
Click to hide internal directories.