mocks

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

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

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

func (*MockArtifact) TryMakeRequest

func (m *MockArtifact) TryMakeRequest(host string, 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(host, 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

func (m *MockAuth) GetTokenIfExists(w http.ResponseWriter, r *http.Request) (string, error)

GetTokenIfExists mocks base method

func (*MockAuth) IsAuthSupported

func (m *MockAuth) IsAuthSupported() bool

IsAuthSupported mocks base method

func (*MockAuth) RequireAuth

func (m *MockAuth) RequireAuth(w http.ResponseWriter, r *http.Request) bool

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

Jump to

Keyboard shortcuts

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