mocks

package
v2.1.2+incompatible Latest Latest
Warning

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

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

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