mocks

package
v2.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: May 27, 2019 License: Apache-2.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DNATProvider

type DNATProvider struct {
	mock.Mock
}

DNATProvider is an autogenerated mock type for the DNATProvider type

func (*DNATProvider) DeleteDNAT

func (_m *DNATProvider) DeleteDNAT(externalIP net.IP, _a1 *v1alpha1.Mapping) error

DeleteDNAT provides a mock function with given fields: externalIP, _a1

func (*DNATProvider) SetupDNAT

func (_m *DNATProvider) SetupDNAT(externalIP net.IP, _a1 *v1alpha1.Mapping, svc *v1.Service, eps *v1.Endpoints, setupMasquerade bool) error

SetupDNAT provides a mock function with given fields: externalIP, _a1, svc, eps, setupMasquerade

type IPRouteSmartNatHelper

type IPRouteSmartNatHelper struct {
	mock.Mock
}

IPRouteSmartNatHelper is an autogenerated mock type for the IPRouteSmartNatHelper type

func (*IPRouteSmartNatHelper) EnsureOnlyOneIPRuleExistsForFwMark

func (_m *IPRouteSmartNatHelper) EnsureOnlyOneIPRuleExistsForFwMark(rule nettools.IPRule) ([]nettools.IPRule, time.Duration, error)

EnsureOnlyOneIPRuleExistsForFwMark provides a mock function with given fields: rule

func (*IPRouteSmartNatHelper) GetRefreshCount

func (_m *IPRouteSmartNatHelper) GetRefreshCount() int

GetRefreshCount provides a mock function with given fields:

func (*IPRouteSmartNatHelper) IsRefreshing

func (_m *IPRouteSmartNatHelper) IsRefreshing() bool

IsRefreshing provides a mock function with given fields:

func (*IPRouteSmartNatHelper) StartRefreshing

func (_m *IPRouteSmartNatHelper) StartRefreshing()

StartRefreshing provides a mock function with given fields:

func (*IPRouteSmartNatHelper) StopRefreshing

func (_m *IPRouteSmartNatHelper) StopRefreshing()

StopRefreshing provides a mock function with given fields:

type IPTablesHelper

type IPTablesHelper struct {
	mock.Mock
}

IPTablesHelper is an autogenerated mock type for the IPTablesHelper type

func (*IPTablesHelper) DeleteDNAT

func (_m *IPTablesHelper) DeleteDNAT(externalIP net.IP, _a1 *v1alpha1.Mapping) error

DeleteDNAT provides a mock function with given fields: externalIP, _a1

func (*IPTablesHelper) DeleteMark

func (_m *IPTablesHelper) DeleteMark(externalIP net.IP, _a1 *v1alpha1.Mapping) error

DeleteMark provides a mock function with given fields: externalIP, _a1

func (*IPTablesHelper) DeleteSNAT

func (_m *IPTablesHelper) DeleteSNAT(externalIP net.IP, _a1 *v1alpha1.Mapping) error

DeleteSNAT provides a mock function with given fields: externalIP, _a1

func (*IPTablesHelper) SetupDNAT

func (_m *IPTablesHelper) SetupDNAT(externalIP net.IP, _a1 *v1alpha1.Mapping, svc *v1.Service, eps *v1.Endpoints, setupMasquerade bool) error

SetupDNAT provides a mock function with given fields: externalIP, _a1, svc, eps, setupMasquerade

func (*IPTablesHelper) SetupMark

func (_m *IPTablesHelper) SetupMark(externalIP net.IP, _a1 *v1alpha1.Mapping) error

SetupMark provides a mock function with given fields: externalIP, _a1

func (*IPTablesHelper) SetupSNAT

func (_m *IPTablesHelper) SetupSNAT(externalIP net.IP, _a1 *v1alpha1.Mapping, svc *v1.Service, eps *v1.Endpoints) error

SetupSNAT provides a mock function with given fields: externalIP, _a1, svc, eps

type Namer

type Namer struct {
	mock.Mock
}

Namer is an autogenerated mock type for the Namer type

func (*Namer) Name

func (_m *Namer) Name(objectMeta v1.ObjectMeta) string

Name provides a mock function with given fields: objectMeta

type Scrubber

type Scrubber struct {
	mock.Mock
}

Scrubber is an autogenerated mock type for the Scrubber type

func (*Scrubber) ScrubMapping

func (_m *Scrubber) ScrubMapping(sn *v1alpha1.Mapping, others []v1alpha1.Mapping) (bool, bool, string, *net.IP)

ScrubMapping provides a mock function with given fields: sn, others

func (*Scrubber) ValidateEndpoints

func (_m *Scrubber) ValidateEndpoints(_a0 *v1alpha1.Mapping, endpoints *v1.Endpoints) error

ValidateEndpoints provides a mock function with given fields: _a0, endpoints

type Syncer

type Syncer struct {
	mock.Mock
}

Syncer is an autogenerated mock type for the Syncer type

func (*Syncer) DeleteMapping

func (_m *Syncer) DeleteMapping(sn *v1alpha1.Mapping, externalIP net.IP) (bool, error)

DeleteMapping provides a mock function with given fields: sn, externalIP

func (*Syncer) SyncMapping

func (_m *Syncer) SyncMapping(sn *v1alpha1.Mapping, svc *v1.Service, eps *v1.Endpoints) (bool, error)

SyncMapping provides a mock function with given fields: sn, svc, eps

Jump to

Keyboard shortcuts

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