test

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package test provides a mock type for IPAM module

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockIpam

type MockIpam struct {
	LocalRemappedPodCIDR  string
	RemoteRemappedPodCIDR string
}

MockIpam mocks the IPAM module.

func (*MockIpam) GetHomePodIP

GetHomePodIP mocks the corresponding func in IPAM.

func (*MockIpam) MapEndpointIP

func (mock *MockIpam) MapEndpointIP(
	ctx context.Context,
	in *liqonetIpam.MapRequest,
	opts ...grpc.CallOption) (*liqonetIpam.MapResponse, error)

MapEndpointIP mocks the corresponding func in IPAM.

func (*MockIpam) UnmapEndpointIP

func (mock *MockIpam) UnmapEndpointIP(
	ctx context.Context,
	in *liqonetIpam.UnmapRequest,
	opts ...grpc.CallOption) (*liqonetIpam.UnmapResponse, error)

UnmapEndpointIP mocks the corresponding func in IPAM.

Jump to

Keyboard shortcuts

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