Documentation ¶
Overview ¶
Package common is a generated GoMock package.
Index ¶
- Variables
- type Fetcher
- type IPFetcher
- type MockParallelResolver
- type MockParallelResolverMockRecorder
- type MockStorage
- type MockStorageMockRecorder
- type MockUnzipper
- type MockUnzipperMockRecorder
- type MockWarner
- type MockWarnerMockRecorder
- type ParallelResolver
- type Storage
- type Unzipper
- type Warner
Constants ¶
This section is empty.
Variables ¶
var ( ErrNotEnoughServers = errors.New("not enough servers found") ErrHTTPStatusCodeNotOK = errors.New("HTTP status code not OK") ErrIPFetcherUnsupported = errors.New("IP fetcher not supported") )
var ErrPortForwardNotSupported = errors.New("port forwarding not supported")
Functions ¶
This section is empty.
Types ¶
type MockParallelResolver ¶
type MockParallelResolver struct {
// contains filtered or unexported fields
}
MockParallelResolver is a mock of ParallelResolver interface.
func NewMockParallelResolver ¶
func NewMockParallelResolver(ctrl *gomock.Controller) *MockParallelResolver
NewMockParallelResolver creates a new mock instance.
func (*MockParallelResolver) EXPECT ¶
func (m *MockParallelResolver) EXPECT() *MockParallelResolverMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockParallelResolverMockRecorder ¶
type MockParallelResolverMockRecorder struct {
// contains filtered or unexported fields
}
MockParallelResolverMockRecorder is the mock recorder for MockParallelResolver.
func (*MockParallelResolverMockRecorder) Resolve ¶
func (mr *MockParallelResolverMockRecorder) Resolve(arg0, arg1 interface{}) *gomock.Call
Resolve indicates an expected call of Resolve.
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) EXPECT ¶
func (m *MockStorage) EXPECT() *MockStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStorage) FilterServers ¶
func (m *MockStorage) FilterServers(arg0 string, arg1 settings.ServerSelection) ([]models.Server, error)
FilterServers mocks base method.
type MockStorageMockRecorder ¶
type MockStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockStorageMockRecorder is the mock recorder for MockStorage.
func (*MockStorageMockRecorder) FilterServers ¶
func (mr *MockStorageMockRecorder) FilterServers(arg0, arg1 interface{}) *gomock.Call
FilterServers indicates an expected call of FilterServers.
type MockUnzipper ¶
type MockUnzipper struct {
// contains filtered or unexported fields
}
MockUnzipper is a mock of Unzipper interface.
func NewMockUnzipper ¶
func NewMockUnzipper(ctrl *gomock.Controller) *MockUnzipper
NewMockUnzipper creates a new mock instance.
func (*MockUnzipper) EXPECT ¶
func (m *MockUnzipper) EXPECT() *MockUnzipperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUnzipper) FetchAndExtract ¶
func (m *MockUnzipper) FetchAndExtract(arg0 context.Context, arg1 string) (map[string][]byte, error)
FetchAndExtract mocks base method.
type MockUnzipperMockRecorder ¶
type MockUnzipperMockRecorder struct {
// contains filtered or unexported fields
}
MockUnzipperMockRecorder is the mock recorder for MockUnzipper.
func (*MockUnzipperMockRecorder) FetchAndExtract ¶
func (mr *MockUnzipperMockRecorder) FetchAndExtract(arg0, arg1 interface{}) *gomock.Call
FetchAndExtract indicates an expected call of FetchAndExtract.
type MockWarner ¶
type MockWarner struct {
// contains filtered or unexported fields
}
MockWarner is a mock of Warner interface.
func NewMockWarner ¶
func NewMockWarner(ctrl *gomock.Controller) *MockWarner
NewMockWarner creates a new mock instance.
func (*MockWarner) EXPECT ¶
func (m *MockWarner) EXPECT() *MockWarnerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockWarnerMockRecorder ¶
type MockWarnerMockRecorder struct {
// contains filtered or unexported fields
}
MockWarnerMockRecorder is the mock recorder for MockWarner.
func (*MockWarnerMockRecorder) Warn ¶
func (mr *MockWarnerMockRecorder) Warn(arg0 interface{}) *gomock.Call
Warn indicates an expected call of Warn.