modelsmock

package
v2.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package modelsmock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockStorage

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

MockStorage is a mock of Storage interface.

func NewMockStorage

func NewMockStorage(ctrl *gomock.Controller) *MockStorage

NewMockStorage creates a new mock instance.

func (*MockStorage) AddIP

func (m *MockStorage) AddIP(arg0 context.Context, arg1 models.IP) (models.IP, error)

AddIP mocks base method.

func (*MockStorage) EXPECT

func (m *MockStorage) EXPECT() *MockStorageMockRecorder

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

func (*MockStorage) GetCurrentHost

func (m *MockStorage) GetCurrentHost(arg0 context.Context) (models.Host, error)

GetCurrentHost mocks base method.

func (*MockStorage) GetIPHosts

func (m *MockStorage) GetIPHosts(arg0 context.Context, arg1 models.IP) ([]string, error)

GetIPHosts mocks base method.

func (*MockStorage) GetIPs

func (m *MockStorage) GetIPs(arg0 context.Context) ([]models.IP, error)

GetIPs mocks base method.

func (*MockStorage) LinkIPWithCurrentHost

func (m *MockStorage) LinkIPWithCurrentHost(arg0 context.Context, arg1 models.IP) error

LinkIPWithCurrentHost mocks base method.

func (*MockStorage) RemoveIP

func (m *MockStorage) RemoveIP(arg0 context.Context, arg1 string) error

RemoveIP mocks base method.

func (*MockStorage) SaveHost

func (m *MockStorage) SaveHost(arg0 context.Context, arg1 models.Host) error

SaveHost mocks base method.

func (*MockStorage) UnlinkIPFromCurrentHost

func (m *MockStorage) UnlinkIPFromCurrentHost(arg0 context.Context, arg1 models.IP) error

UnlinkIPFromCurrentHost mocks base method.

func (*MockStorage) UpdateIP

func (m *MockStorage) UpdateIP(arg0 context.Context, arg1 models.IP) error

UpdateIP mocks base method.

type MockStorageMockRecorder

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

MockStorageMockRecorder is the mock recorder for MockStorage.

func (*MockStorageMockRecorder) AddIP

func (mr *MockStorageMockRecorder) AddIP(arg0, arg1 interface{}) *gomock.Call

AddIP indicates an expected call of AddIP.

func (*MockStorageMockRecorder) GetCurrentHost

func (mr *MockStorageMockRecorder) GetCurrentHost(arg0 interface{}) *gomock.Call

GetCurrentHost indicates an expected call of GetCurrentHost.

func (*MockStorageMockRecorder) GetIPHosts

func (mr *MockStorageMockRecorder) GetIPHosts(arg0, arg1 interface{}) *gomock.Call

GetIPHosts indicates an expected call of GetIPHosts.

func (*MockStorageMockRecorder) GetIPs

func (mr *MockStorageMockRecorder) GetIPs(arg0 interface{}) *gomock.Call

GetIPs indicates an expected call of GetIPs.

func (*MockStorageMockRecorder) LinkIPWithCurrentHost

func (mr *MockStorageMockRecorder) LinkIPWithCurrentHost(arg0, arg1 interface{}) *gomock.Call

LinkIPWithCurrentHost indicates an expected call of LinkIPWithCurrentHost.

func (*MockStorageMockRecorder) RemoveIP

func (mr *MockStorageMockRecorder) RemoveIP(arg0, arg1 interface{}) *gomock.Call

RemoveIP indicates an expected call of RemoveIP.

func (*MockStorageMockRecorder) SaveHost

func (mr *MockStorageMockRecorder) SaveHost(arg0, arg1 interface{}) *gomock.Call

SaveHost indicates an expected call of SaveHost.

func (*MockStorageMockRecorder) UnlinkIPFromCurrentHost

func (mr *MockStorageMockRecorder) UnlinkIPFromCurrentHost(arg0, arg1 interface{}) *gomock.Call

UnlinkIPFromCurrentHost indicates an expected call of UnlinkIPFromCurrentHost.

func (*MockStorageMockRecorder) UpdateIP

func (mr *MockStorageMockRecorder) UpdateIP(arg0, arg1 interface{}) *gomock.Call

UpdateIP indicates an expected call of UpdateIP.

Jump to

Keyboard shortcuts

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