Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeNetworkProvider ¶
type FakeNetworkProvider struct { NSNPData map[string]*api.NetworkPolicy // contains filtered or unexported fields }
func NewFakeNetworkProvider ¶
func NewFakeNetworkProvider() *FakeNetworkProvider
func (*FakeNetworkProvider) Delete ¶
func (f *FakeNetworkProvider) Delete(key string)
func (*FakeNetworkProvider) GetKey ¶
func (f *FakeNetworkProvider) GetKey(name, nsname string) string
func (*FakeNetworkProvider) Set ¶
func (f *FakeNetworkProvider) Set(np *v1.NetworkPolicy) error
func (*FakeNetworkProvider) Start ¶
func (f *FakeNetworkProvider) Start(stopCh <-chan struct{})
type NsNetworkPolicyProvider ¶
type NsNetworkPolicyProvider interface { Delete(key string) Set(policy *netv1.NetworkPolicy) error Start(stopCh <-chan struct{}) GetKey(name, nsname string) string }
NsNetworkPolicyProvider is a interface to let different cnis to implement our api
func NewNsNetworkPolicyProvider ¶
func NewNsNetworkPolicyProvider(client kubernetes.Interface, npInformer informerv1.NetworkPolicyInformer) (NsNetworkPolicyProvider, error)
NewNsNetworkPolicyProvider sync k8s NetworkPolicy
Click to show internal directories.
Click to hide internal directories.