mocks

package
v1.53.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2022 License: MIT Imports: 7 Imported by: 0

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

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.

type MockClientStub added in v1.52.0

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

MockClientStub is a mock of ClientStub interface.

func NewMockClientStub added in v1.52.0

func NewMockClientStub(ctrl *gomock.Controller) *MockClientStub

NewMockClientStub creates a new mock instance.

func (*MockClientStub) EXPECT added in v1.52.0

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

func (*MockClientStub) GetLookup added in v1.52.0

func (m *MockClientStub) GetLookup(ctx context.Context, domain string) api.Lookup

GetLookup mocks base method.

func (*MockClientStub) Resolve added in v1.52.0

func (m *MockClientStub) Resolve(ctx context.Context, domain string) *api.Lookup

Resolve mocks base method.

type MockClientStubMockRecorder added in v1.52.0

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

MockClientStubMockRecorder is the mock recorder for MockClientStub.

func (*MockClientStubMockRecorder) GetLookup added in v1.52.0

func (mr *MockClientStubMockRecorder) GetLookup(ctx, domain interface{}) *gomock.Call

GetLookup indicates an expected call of GetLookup.

func (*MockClientStubMockRecorder) Resolve added in v1.52.0

func (mr *MockClientStubMockRecorder) Resolve(ctx, domain interface{}) *gomock.Call

Resolve indicates an expected call of Resolve.

type MockResolver added in v1.52.0

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

MockResolver is a mock of Resolver interface.

func NewMockResolver added in v1.52.0

func NewMockResolver(ctrl *gomock.Controller) *MockResolver

NewMockResolver creates a new mock instance.

func (*MockResolver) EXPECT added in v1.52.0

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

func (*MockResolver) Resolve added in v1.52.0

func (m *MockResolver) Resolve(arg0 *http.Request) (*serving.Request, error)

Resolve mocks base method.

type MockResolverMockRecorder added in v1.52.0

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

MockResolverMockRecorder is the mock recorder for MockResolver.

func (*MockResolverMockRecorder) Resolve added in v1.52.0

func (mr *MockResolverMockRecorder) Resolve(arg0 interface{}) *gomock.Call

Resolve indicates an expected call of Resolve.

type MockSource added in v1.46.0

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

MockSource is a mock of Source interface.

func NewMockSource added in v1.46.0

func NewMockSource(ctrl *gomock.Controller) *MockSource

NewMockSource creates a new mock instance.

func (*MockSource) EXPECT added in v1.46.0

func (m *MockSource) EXPECT() *MockSourceMockRecorder

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

func (*MockSource) GetDomain added in v1.46.0

func (m *MockSource) GetDomain(arg0 context.Context, arg1 string) (*domain.Domain, error)

GetDomain mocks base method.

type MockSourceMockRecorder added in v1.46.0

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

MockSourceMockRecorder is the mock recorder for MockSource.

func (*MockSourceMockRecorder) GetDomain added in v1.46.0

func (mr *MockSourceMockRecorder) GetDomain(arg0, arg1 interface{}) *gomock.Call

GetDomain indicates an expected call of GetDomain.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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