Documentation ¶
Index ¶
- func MockFixedWorkloadEndpoint() *networkingv1alpha1.WorkloadEndpoint
- func MockIPPool() *networkingv1alpha1.IPPool
- func MockNode(name, mtype, id string) *corev1.Node
- func MockPodSubnetTopologySpread(namespace, name, subnet string, label labels.Set) *networkingv1alpha1.PodSubnetTopologySpread
- func MockPodSubnetTopologySpreadWithSubnet(namespace, name string, subnet *networkingv1alpha1.Subnet, label labels.Set) *networkingv1alpha1.PodSubnetTopologySpread
- func MockSubnet(namespace, name, cidr string) *networkingv1alpha1.Subnet
- func NewMockEnv(ctrl *gomock.Controller) (kubernetes.Interface, informers.SharedInformerFactory, versioned.Interface, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MockFixedWorkloadEndpoint ¶
func MockFixedWorkloadEndpoint() *networkingv1alpha1.WorkloadEndpoint
func MockIPPool ¶
func MockIPPool() *networkingv1alpha1.IPPool
func MockPodSubnetTopologySpread ¶
func MockPodSubnetTopologySpread(namespace, name, subnet string, label labels.Set) *networkingv1alpha1.PodSubnetTopologySpread
mock a PodSubnetTopologySpread
func MockPodSubnetTopologySpreadWithSubnet ¶ added in v1.6.12
func MockPodSubnetTopologySpreadWithSubnet(namespace, name string, subnet *networkingv1alpha1.Subnet, label labels.Set) *networkingv1alpha1.PodSubnetTopologySpread
func MockSubnet ¶
func MockSubnet(namespace, name, cidr string) *networkingv1alpha1.Subnet
new available subnet
func NewMockEnv ¶
func NewMockEnv(ctrl *gomock.Controller) ( kubernetes.Interface, informers.SharedInformerFactory, versioned.Interface, crdinformers.SharedInformerFactory, *mockcloud.MockInterface, record.EventBroadcaster, record.EventRecorder, )
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.