Documentation ¶
Overview ¶
Package fake implements fake IPAM grpc interfaces for testing purposes.
Index ¶
- type IPAMClient
- func (mock *IPAMClient) GetHomePodIP(_ context.Context, req *ipam.GetHomePodIPRequest, _ ...grpc.CallOption) (*ipam.GetHomePodIPResponse, error)
- func (mock *IPAMClient) IsEndpointTranslated(ip string) bool
- func (mock *IPAMClient) MapEndpointIP(_ context.Context, req *ipam.MapRequest, _ ...grpc.CallOption) (*ipam.MapResponse, error)
- func (mock *IPAMClient) UnmapEndpointIP(_ context.Context, req *ipam.UnmapRequest, _ ...grpc.CallOption) (*ipam.UnmapResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPAMClient ¶
type IPAMClient struct {
// contains filtered or unexported fields
}
IPAMClient provides a mock implementation of the IPAMClient interface for testing purposes.
func NewIPAMClient ¶
func NewIPAMClient(localRemappedPodCIDR, remoteRemappedPodCIDR string, enforceSingleRequest bool) *IPAMClient
NewIPAMClient returns a new fake IPAMClient.
func (*IPAMClient) GetHomePodIP ¶
func (mock *IPAMClient) GetHomePodIP(_ context.Context, req *ipam.GetHomePodIPRequest, _ ...grpc.CallOption) (*ipam.GetHomePodIPResponse, error)
GetHomePodIP mocks the corresponding IPAMClient function.
func (*IPAMClient) IsEndpointTranslated ¶
func (mock *IPAMClient) IsEndpointTranslated(ip string) bool
IsEndpointTranslated returns whether the given endpoint has a valid translation.
func (*IPAMClient) MapEndpointIP ¶
func (mock *IPAMClient) MapEndpointIP(_ context.Context, req *ipam.MapRequest, _ ...grpc.CallOption) (*ipam.MapResponse, error)
MapEndpointIP mocks the corresponding IPAMClient function.
func (*IPAMClient) UnmapEndpointIP ¶
func (mock *IPAMClient) UnmapEndpointIP(_ context.Context, req *ipam.UnmapRequest, _ ...grpc.CallOption) (*ipam.UnmapResponse, error)
UnmapEndpointIP mocks the corresponding IPAMClient function.
Click to show internal directories.
Click to hide internal directories.