mocknetnswrapper

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package mocknetnswrapper is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockInterface

type MockInterface struct {
	// contains filtered or unexported fields
}

MockInterface is a mock of Interface interface.

func NewMockInterface

func NewMockInterface(ctrl *gomock.Controller) *MockInterface

NewMockInterface creates a new mock instance.

func (*MockInterface) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockInterface) GetNS

func (m *MockInterface) GetNS(nsName string) (ns.NetNS, error)

GetNS mocks base method.

func (*MockInterface) GetNSByPath

func (m *MockInterface) GetNSByPath(nsPath string) (ns.NetNS, error)

GetNSByPath mocks base method.

func (*MockInterface) ListNS

func (m *MockInterface) ListNS() ([]string, error)

ListNS mocks base method.

func (*MockInterface) NewNS

func (m *MockInterface) NewNS(nsName string) (ns.NetNS, error)

NewNS mocks base method.

func (*MockInterface) UnmountNS

func (m *MockInterface) UnmountNS(nsName string) error

UnmountNS mocks base method.

type MockInterfaceMockRecorder

type MockInterfaceMockRecorder struct {
	// contains filtered or unexported fields
}

MockInterfaceMockRecorder is the mock recorder for MockInterface.

func (*MockInterfaceMockRecorder) GetNS

func (mr *MockInterfaceMockRecorder) GetNS(nsName interface{}) *gomock.Call

GetNS indicates an expected call of GetNS.

func (*MockInterfaceMockRecorder) GetNSByPath

func (mr *MockInterfaceMockRecorder) GetNSByPath(nsPath interface{}) *gomock.Call

GetNSByPath indicates an expected call of GetNSByPath.

func (*MockInterfaceMockRecorder) ListNS

func (mr *MockInterfaceMockRecorder) ListNS() *gomock.Call

ListNS indicates an expected call of ListNS.

func (*MockInterfaceMockRecorder) NewNS

func (mr *MockInterfaceMockRecorder) NewNS(nsName interface{}) *gomock.Call

NewNS indicates an expected call of NewNS.

func (*MockInterfaceMockRecorder) UnmountNS

func (mr *MockInterfaceMockRecorder) UnmountNS(nsName interface{}) *gomock.Call

UnmountNS indicates an expected call of UnmountNS.

type MockNetNS

type MockNetNS struct {
	Name string
}

MockNetNS: implements ns.NetNS interface

func (*MockNetNS) Close

func (*MockNetNS) Close() error

func (*MockNetNS) Do

func (ns *MockNetNS) Do(toRun func(ns.NetNS) error) error

func (*MockNetNS) Fd

func (*MockNetNS) Fd() uintptr

func (*MockNetNS) Path

func (*MockNetNS) Path() string

func (*MockNetNS) Set

func (*MockNetNS) Set() error

Jump to

Keyboard shortcuts

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