func (mpc *MockPolicyCache) Resync(kubeStateData controller.KubeStateData) error {
	return nil
}
Resync is not implemented by the mock.
package policycache
import (
	controller "github.com/contiv/vpp/plugins/controller/api"
	nsmodel "github.com/contiv/vpp/plugins/ksr/model/namespace"
	podmodel "github.com/contiv/vpp/plugins/ksr/model/pod"
	policymodel "github.com/contiv/vpp/plugins/ksr/model/policy"
	"github.com/contiv/vpp/plugins/policy/cache"
)
type MockPolicyCache struct {
	pods map[podmodel.ID]*podmodel.Pod
}
func NewMockPolicyCache() *MockPolicyCache {
	return &MockPolicyCache{
		pods: make(map[podmodel.ID]*podmodel.Pod),
	}
}
func (mpc *MockPolicyCache) AddPodConfig(id podmodel.ID, ipAddr string, labels ...*podmodel.Pod_Label) {
	pod := &podmodel.Pod{
		Name:      id.Name,
		Namespace: id.Namespace,
		IpAddress: ipAddr,
	}
	for _, label := range labels {
		pod.Label = append(pod.Label, label)
	}
	mpc.pods[id] = pod
}
func (mpc *MockPolicyCache) Update(kubeStateChange *controller.KubeStateChange) error {
	return nil
}