Documentation
¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockArtifact
- type MockArtifactMockRecorder
- type MockAuth
- func (m *MockAuth) CheckResponseForInvalidToken(w http.ResponseWriter, r *http.Request, resp *http.Response) bool
- func (m *MockAuth) EXPECT() *MockAuthMockRecorder
- func (m *MockAuth) GetTokenIfExists(w http.ResponseWriter, r *http.Request) (string, error)
- func (m *MockAuth) IsAuthSupported() bool
- func (m *MockAuth) RequireAuth(w http.ResponseWriter, r *http.Request) bool
- type MockAuthMockRecorder
- func (mr *MockAuthMockRecorder) CheckResponseForInvalidToken(w, r, resp interface{}) *gomock.Call
- func (mr *MockAuthMockRecorder) GetTokenIfExists(w, r interface{}) *gomock.Call
- func (mr *MockAuthMockRecorder) IsAuthSupported() *gomock.Call
- func (mr *MockAuthMockRecorder) RequireAuth(w, r interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockArtifact ¶
type MockArtifact struct {
// contains filtered or unexported fields
}
MockArtifact is a mock of Artifact interface.
func NewMockArtifact ¶
func NewMockArtifact(ctrl *gomock.Controller) *MockArtifact
NewMockArtifact creates a new mock instance.
func (*MockArtifact) EXPECT ¶
func (m *MockArtifact) EXPECT() *MockArtifactMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockArtifact) TryMakeRequest ¶
func (m *MockArtifact) TryMakeRequest(w http.ResponseWriter, r *http.Request, token string, responseHandler func(*http.Response) bool) bool
TryMakeRequest mocks base method.
type MockArtifactMockRecorder ¶
type MockArtifactMockRecorder struct {
// contains filtered or unexported fields
}
MockArtifactMockRecorder is the mock recorder for MockArtifact.
func (*MockArtifactMockRecorder) TryMakeRequest ¶
func (mr *MockArtifactMockRecorder) TryMakeRequest(w, r, token, responseHandler interface{}) *gomock.Call
TryMakeRequest indicates an expected call of TryMakeRequest.
type MockAuth ¶
type MockAuth struct {
// contains filtered or unexported fields
}
MockAuth is a mock of Auth interface.
func NewMockAuth ¶
func NewMockAuth(ctrl *gomock.Controller) *MockAuth
NewMockAuth creates a new mock instance.
func (*MockAuth) CheckResponseForInvalidToken ¶
func (m *MockAuth) CheckResponseForInvalidToken(w http.ResponseWriter, r *http.Request, resp *http.Response) bool
CheckResponseForInvalidToken mocks base method.
func (*MockAuth) EXPECT ¶
func (m *MockAuth) EXPECT() *MockAuthMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAuth) GetTokenIfExists ¶
GetTokenIfExists mocks base method.
func (*MockAuth) IsAuthSupported ¶
IsAuthSupported mocks base method.
func (*MockAuth) RequireAuth ¶
RequireAuth mocks base method.
type MockAuthMockRecorder ¶
type MockAuthMockRecorder struct {
// contains filtered or unexported fields
}
MockAuthMockRecorder is the mock recorder for MockAuth.
func (*MockAuthMockRecorder) CheckResponseForInvalidToken ¶
func (mr *MockAuthMockRecorder) CheckResponseForInvalidToken(w, r, resp interface{}) *gomock.Call
CheckResponseForInvalidToken indicates an expected call of CheckResponseForInvalidToken.
func (*MockAuthMockRecorder) GetTokenIfExists ¶
func (mr *MockAuthMockRecorder) GetTokenIfExists(w, r interface{}) *gomock.Call
GetTokenIfExists indicates an expected call of GetTokenIfExists.
func (*MockAuthMockRecorder) IsAuthSupported ¶
func (mr *MockAuthMockRecorder) IsAuthSupported() *gomock.Call
IsAuthSupported indicates an expected call of IsAuthSupported.
func (*MockAuthMockRecorder) RequireAuth ¶
func (mr *MockAuthMockRecorder) RequireAuth(w, r interface{}) *gomock.Call
RequireAuth indicates an expected call of RequireAuth.