Documentation
¶
Index ¶
- type DummyPF
- func (s *DummyPF) AddPodContainer(_ policyfilter.PodID, _, _, _ string, _ labels.Labels, _ string, ...) error
- func (s *DummyPF) AddPolicy(_ policyfilter.PolicyID, _ string, _ *slimv1.LabelSelector, ...) error
- func (s *DummyPF) Close() error
- func (s *DummyPF) DelPod(_ policyfilter.PodID) error
- func (s *DummyPF) DelPodContainer(_ policyfilter.PodID, _ string) error
- func (s *DummyPF) DelPolicy(_ policyfilter.PolicyID) error
- func (s *DummyPF) GetIdNs(_ policyfilter.NSID) (policyfilter.StateID, bool)
- func (s *DummyPF) GetNsId(_ policyfilter.StateID) (*policyfilter.NSID, bool)
- func (s *DummyPF) RegisterPodHandlers(_ cache.SharedIndexInformer)
- func (s *DummyPF) UpdatePod(_ policyfilter.PodID, _, _, _ string, _ labels.Labels, _ []string, _ []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DummyPF ¶
type DummyPF struct{}
DummyPF implements policyfilter.State. It's very similar to the disabled state, with the difference that it doesn't return an error on AddPolicy and DelPolicy. It can be used in tests where a namespaced policy must be loaded, but the policyfilter doesn't matter.
func (*DummyPF) AddPodContainer ¶
func (*DummyPF) AddPolicy ¶
func (s *DummyPF) AddPolicy(_ policyfilter.PolicyID, _ string, _ *slimv1.LabelSelector, _ *slimv1.LabelSelector) error
func (*DummyPF) DelPodContainer ¶
func (s *DummyPF) DelPodContainer(_ policyfilter.PodID, _ string) error
func (*DummyPF) GetIdNs ¶
func (s *DummyPF) GetIdNs(_ policyfilter.NSID) (policyfilter.StateID, bool)
func (*DummyPF) GetNsId ¶
func (s *DummyPF) GetNsId(_ policyfilter.StateID) (*policyfilter.NSID, bool)
func (*DummyPF) RegisterPodHandlers ¶
func (s *DummyPF) RegisterPodHandlers(_ cache.SharedIndexInformer)
Click to show internal directories.
Click to hide internal directories.