httpfakes

package
v0.21.5 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2021 License: Apache-2.0, BSD-3-Clause, MIT Imports: 4 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeAuthenticator

type FakeAuthenticator struct {
	AuthenticateStub func(*web.Request) (*web.UserContext, http.Decision, error)
	// contains filtered or unexported fields
}

func (*FakeAuthenticator) Authenticate

func (fake *FakeAuthenticator) Authenticate(arg1 *web.Request) (*web.UserContext, http.Decision, error)

func (*FakeAuthenticator) AuthenticateArgsForCall

func (fake *FakeAuthenticator) AuthenticateArgsForCall(i int) *web.Request

func (*FakeAuthenticator) AuthenticateCallCount

func (fake *FakeAuthenticator) AuthenticateCallCount() int

func (*FakeAuthenticator) AuthenticateCalls

func (fake *FakeAuthenticator) AuthenticateCalls(stub func(*web.Request) (*web.UserContext, http.Decision, error))

func (*FakeAuthenticator) AuthenticateReturns

func (fake *FakeAuthenticator) AuthenticateReturns(result1 *web.UserContext, result2 http.Decision, result3 error)

func (*FakeAuthenticator) AuthenticateReturnsOnCall

func (fake *FakeAuthenticator) AuthenticateReturnsOnCall(i int, result1 *web.UserContext, result2 http.Decision, result3 error)

func (*FakeAuthenticator) Invocations

func (fake *FakeAuthenticator) Invocations() map[string][][]interface{}

type FakeAuthorizer

type FakeAuthorizer struct {
	AuthorizeStub func(*web.Request) (http.Decision, web.AccessLevel, error)
	// contains filtered or unexported fields
}

func (*FakeAuthorizer) Authorize

func (fake *FakeAuthorizer) Authorize(arg1 *web.Request) (http.Decision, web.AccessLevel, error)

func (*FakeAuthorizer) AuthorizeArgsForCall

func (fake *FakeAuthorizer) AuthorizeArgsForCall(i int) *web.Request

func (*FakeAuthorizer) AuthorizeCallCount

func (fake *FakeAuthorizer) AuthorizeCallCount() int

func (*FakeAuthorizer) AuthorizeCalls

func (fake *FakeAuthorizer) AuthorizeCalls(stub func(*web.Request) (http.Decision, web.AccessLevel, error))

func (*FakeAuthorizer) AuthorizeReturns

func (fake *FakeAuthorizer) AuthorizeReturns(result1 http.Decision, result2 web.AccessLevel, result3 error)

func (*FakeAuthorizer) AuthorizeReturnsOnCall

func (fake *FakeAuthorizer) AuthorizeReturnsOnCall(i int, result1 http.Decision, result2 web.AccessLevel, result3 error)

func (*FakeAuthorizer) Invocations

func (fake *FakeAuthorizer) Invocations() map[string][][]interface{}

type FakeTokenData

type FakeTokenData struct {
	ClaimsStub func(interface{}) error
	// contains filtered or unexported fields
}

func (*FakeTokenData) Claims

func (fake *FakeTokenData) Claims(arg1 interface{}) error

func (*FakeTokenData) ClaimsArgsForCall

func (fake *FakeTokenData) ClaimsArgsForCall(i int) interface{}

func (*FakeTokenData) ClaimsCallCount

func (fake *FakeTokenData) ClaimsCallCount() int

func (*FakeTokenData) ClaimsCalls

func (fake *FakeTokenData) ClaimsCalls(stub func(interface{}) error)

func (*FakeTokenData) ClaimsReturns

func (fake *FakeTokenData) ClaimsReturns(result1 error)

func (*FakeTokenData) ClaimsReturnsOnCall

func (fake *FakeTokenData) ClaimsReturnsOnCall(i int, result1 error)

func (*FakeTokenData) Invocations

func (fake *FakeTokenData) Invocations() map[string][][]interface{}

type FakeTokenVerifier

type FakeTokenVerifier struct {
	VerifyStub func(context.Context, string) (http.TokenData, error)
	// contains filtered or unexported fields
}

func (*FakeTokenVerifier) Invocations

func (fake *FakeTokenVerifier) Invocations() map[string][][]interface{}

func (*FakeTokenVerifier) Verify

func (fake *FakeTokenVerifier) Verify(arg1 context.Context, arg2 string) (http.TokenData, error)

func (*FakeTokenVerifier) VerifyArgsForCall

func (fake *FakeTokenVerifier) VerifyArgsForCall(i int) (context.Context, string)

func (*FakeTokenVerifier) VerifyCallCount

func (fake *FakeTokenVerifier) VerifyCallCount() int

func (*FakeTokenVerifier) VerifyCalls

func (fake *FakeTokenVerifier) VerifyCalls(stub func(context.Context, string) (http.TokenData, error))

func (*FakeTokenVerifier) VerifyReturns

func (fake *FakeTokenVerifier) VerifyReturns(result1 http.TokenData, result2 error)

func (*FakeTokenVerifier) VerifyReturnsOnCall

func (fake *FakeTokenVerifier) VerifyReturnsOnCall(i int, result1 http.TokenData, result2 error)

Jump to

Keyboard shortcuts

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