provider

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2021 License: Apache-2.0 Imports: 21 Imported by: 2

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 (*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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL