Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockClient
- func (m *MockClient) Authorize(callback func(error)) (*globalping.AuthorizeResponse, error)
- func (m *MockClient) CreateMeasurement(measurement *globalping.MeasurementCreate) (*globalping.MeasurementCreateResponse, error)
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) GetMeasurement(id string) (*globalping.Measurement, error)
- func (m *MockClient) GetMeasurementRaw(id string) ([]byte, error)
- func (m *MockClient) Limits() (*globalping.LimitsResponse, error)
- func (m *MockClient) Logout() error
- func (m *MockClient) RevokeToken(token string) error
- func (m *MockClient) TokenIntrospection(token string) (*globalping.IntrospectionResponse, error)
- type MockClientMockRecorder
- func (mr *MockClientMockRecorder) Authorize(callback any) *gomock.Call
- func (mr *MockClientMockRecorder) CreateMeasurement(measurement any) *gomock.Call
- func (mr *MockClientMockRecorder) GetMeasurement(id any) *gomock.Call
- func (mr *MockClientMockRecorder) GetMeasurementRaw(id any) *gomock.Call
- func (mr *MockClientMockRecorder) Limits() *gomock.Call
- func (mr *MockClientMockRecorder) Logout() *gomock.Call
- func (mr *MockClientMockRecorder) RevokeToken(token any) *gomock.Call
- func (mr *MockClientMockRecorder) TokenIntrospection(token any) *gomock.Call
- type MockProbe
- type MockProbeMockRecorder
- type MockUtils
- type MockUtilsMockRecorder
- type MockViewer
- type MockViewerMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶ added in v1.2.1
type MockClient struct {
// contains filtered or unexported fields
}
MockClient is a mock of Client interface.
func NewMockClient ¶ added in v1.2.1
func NewMockClient(ctrl *gomock.Controller) *MockClient
NewMockClient creates a new mock instance.
func (*MockClient) Authorize ¶ added in v1.4.0
func (m *MockClient) Authorize(callback func(error)) (*globalping.AuthorizeResponse, error)
Authorize mocks base method.
func (*MockClient) CreateMeasurement ¶ added in v1.2.1
func (m *MockClient) CreateMeasurement(measurement *globalping.MeasurementCreate) (*globalping.MeasurementCreateResponse, error)
CreateMeasurement mocks base method.
func (*MockClient) EXPECT ¶ added in v1.2.1
func (m *MockClient) EXPECT() *MockClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClient) GetMeasurement ¶ added in v1.2.1
func (m *MockClient) GetMeasurement(id string) (*globalping.Measurement, error)
GetMeasurement mocks base method.
func (*MockClient) GetMeasurementRaw ¶ added in v1.2.1
func (m *MockClient) GetMeasurementRaw(id string) ([]byte, error)
GetMeasurementRaw mocks base method.
func (*MockClient) Limits ¶ added in v1.4.0
func (m *MockClient) Limits() (*globalping.LimitsResponse, error)
Limits mocks base method.
func (*MockClient) Logout ¶ added in v1.4.0
func (m *MockClient) Logout() error
Logout mocks base method.
func (*MockClient) RevokeToken ¶ added in v1.4.0
func (m *MockClient) RevokeToken(token string) error
RevokeToken mocks base method.
func (*MockClient) TokenIntrospection ¶ added in v1.4.0
func (m *MockClient) TokenIntrospection(token string) (*globalping.IntrospectionResponse, error)
TokenIntrospection mocks base method.
type MockClientMockRecorder ¶ added in v1.2.1
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient.
func (*MockClientMockRecorder) Authorize ¶ added in v1.4.0
func (mr *MockClientMockRecorder) Authorize(callback any) *gomock.Call
Authorize indicates an expected call of Authorize.
func (*MockClientMockRecorder) CreateMeasurement ¶ added in v1.2.1
func (mr *MockClientMockRecorder) CreateMeasurement(measurement any) *gomock.Call
CreateMeasurement indicates an expected call of CreateMeasurement.
func (*MockClientMockRecorder) GetMeasurement ¶ added in v1.2.1
func (mr *MockClientMockRecorder) GetMeasurement(id any) *gomock.Call
GetMeasurement indicates an expected call of GetMeasurement.
func (*MockClientMockRecorder) GetMeasurementRaw ¶ added in v1.2.1
func (mr *MockClientMockRecorder) GetMeasurementRaw(id any) *gomock.Call
GetMeasurementRaw indicates an expected call of GetMeasurementRaw.
func (*MockClientMockRecorder) Limits ¶ added in v1.4.0
func (mr *MockClientMockRecorder) Limits() *gomock.Call
Limits indicates an expected call of Limits.
func (*MockClientMockRecorder) Logout ¶ added in v1.4.0
func (mr *MockClientMockRecorder) Logout() *gomock.Call
Logout indicates an expected call of Logout.
func (*MockClientMockRecorder) RevokeToken ¶ added in v1.4.0
func (mr *MockClientMockRecorder) RevokeToken(token any) *gomock.Call
RevokeToken indicates an expected call of RevokeToken.
func (*MockClientMockRecorder) TokenIntrospection ¶ added in v1.4.0
func (mr *MockClientMockRecorder) TokenIntrospection(token any) *gomock.Call
TokenIntrospection indicates an expected call of TokenIntrospection.
type MockProbe ¶ added in v1.2.1
type MockProbe struct {
// contains filtered or unexported fields
}
MockProbe is a mock of Probe interface.
func NewMockProbe ¶ added in v1.2.1
func NewMockProbe(ctrl *gomock.Controller) *MockProbe
NewMockProbe creates a new mock instance.
func (*MockProbe) DetectContainerEngine ¶ added in v1.2.1
func (m *MockProbe) DetectContainerEngine() (probe.ContainerEngine, error)
DetectContainerEngine mocks base method.
func (*MockProbe) EXPECT ¶ added in v1.2.1
func (m *MockProbe) EXPECT() *MockProbeMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockProbe) InspectContainer ¶ added in v1.2.1
func (m *MockProbe) InspectContainer(containerEngine probe.ContainerEngine) error
InspectContainer mocks base method.
func (*MockProbe) RunContainer ¶ added in v1.2.1
func (m *MockProbe) RunContainer(containerEngine probe.ContainerEngine) error
RunContainer mocks base method.
type MockProbeMockRecorder ¶ added in v1.2.1
type MockProbeMockRecorder struct {
// contains filtered or unexported fields
}
MockProbeMockRecorder is the mock recorder for MockProbe.
func (*MockProbeMockRecorder) DetectContainerEngine ¶ added in v1.2.1
func (mr *MockProbeMockRecorder) DetectContainerEngine() *gomock.Call
DetectContainerEngine indicates an expected call of DetectContainerEngine.
func (*MockProbeMockRecorder) InspectContainer ¶ added in v1.2.1
func (mr *MockProbeMockRecorder) InspectContainer(containerEngine any) *gomock.Call
InspectContainer indicates an expected call of InspectContainer.
func (*MockProbeMockRecorder) RunContainer ¶ added in v1.2.1
func (mr *MockProbeMockRecorder) RunContainer(containerEngine any) *gomock.Call
RunContainer indicates an expected call of RunContainer.
type MockUtils ¶ added in v1.4.0
type MockUtils struct {
// contains filtered or unexported fields
}
MockUtils is a mock of Utils interface.
func NewMockUtils ¶ added in v1.4.0
func NewMockUtils(ctrl *gomock.Controller) *MockUtils
NewMockUtils creates a new mock instance.
func (*MockUtils) EXPECT ¶ added in v1.4.0
func (m *MockUtils) EXPECT() *MockUtilsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUtils) OpenBrowser ¶ added in v1.4.0
OpenBrowser mocks base method.
type MockUtilsMockRecorder ¶ added in v1.4.0
type MockUtilsMockRecorder struct {
// contains filtered or unexported fields
}
MockUtilsMockRecorder is the mock recorder for MockUtils.
func (*MockUtilsMockRecorder) Now ¶ added in v1.4.0
func (mr *MockUtilsMockRecorder) Now() *gomock.Call
Now indicates an expected call of Now.
func (*MockUtilsMockRecorder) OpenBrowser ¶ added in v1.4.0
func (mr *MockUtilsMockRecorder) OpenBrowser(url any) *gomock.Call
OpenBrowser indicates an expected call of OpenBrowser.
type MockViewer ¶ added in v1.2.1
type MockViewer struct {
// contains filtered or unexported fields
}
MockViewer is a mock of Viewer interface.
func NewMockViewer ¶ added in v1.2.1
func NewMockViewer(ctrl *gomock.Controller) *MockViewer
NewMockViewer creates a new mock instance.
func (*MockViewer) EXPECT ¶ added in v1.2.1
func (m *MockViewer) EXPECT() *MockViewerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockViewer) Output ¶ added in v1.2.1
func (m_2 *MockViewer) Output(id string, m *globalping.MeasurementCreate) error
Output mocks base method.
func (*MockViewer) OutputInfinite ¶ added in v1.2.1
func (m_2 *MockViewer) OutputInfinite(m *globalping.Measurement) error
OutputInfinite mocks base method.
func (*MockViewer) OutputShare ¶ added in v1.4.0
func (m *MockViewer) OutputShare()
OutputShare mocks base method.
func (*MockViewer) OutputSummary ¶ added in v1.2.1
func (m *MockViewer) OutputSummary()
OutputSummary mocks base method.
type MockViewerMockRecorder ¶ added in v1.2.1
type MockViewerMockRecorder struct {
// contains filtered or unexported fields
}
MockViewerMockRecorder is the mock recorder for MockViewer.
func (*MockViewerMockRecorder) Output ¶ added in v1.2.1
func (mr *MockViewerMockRecorder) Output(id, m any) *gomock.Call
Output indicates an expected call of Output.
func (*MockViewerMockRecorder) OutputInfinite ¶ added in v1.2.1
func (mr *MockViewerMockRecorder) OutputInfinite(m any) *gomock.Call
OutputInfinite indicates an expected call of OutputInfinite.
func (*MockViewerMockRecorder) OutputShare ¶ added in v1.4.0
func (mr *MockViewerMockRecorder) OutputShare() *gomock.Call
OutputShare indicates an expected call of OutputShare.
func (*MockViewerMockRecorder) OutputSummary ¶ added in v1.2.1
func (mr *MockViewerMockRecorder) OutputSummary() *gomock.Call
OutputSummary indicates an expected call of OutputSummary.