mocks

package
v0.0.0-...-6cc5b44 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient

func NewClient(t mockConstructorTestingTNewClient) *Client

NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Client) GetTokenEndpointResponse

func (_m *Client) GetTokenEndpointResponse(csrfEndpointURL string, strategy authorization.Strategy, skipTLSVerify bool) (*csrf.Response, apperrors.AppError)

GetTokenEndpointResponse provides a mock function with given fields: csrfEndpointURL, strategy, skipTLSVerify

func (*Client) InvalidateTokenCache

func (_m *Client) InvalidateTokenCache(csrfEndpointURL string)

InvalidateTokenCache provides a mock function with given fields: csrfEndpointURL

type TokenStrategy

type TokenStrategy struct {
	mock.Mock
}

TokenStrategy is an autogenerated mock type for the TokenStrategy type

func NewTokenStrategy

func NewTokenStrategy(t mockConstructorTestingTNewTokenStrategy) *TokenStrategy

NewTokenStrategy creates a new instance of TokenStrategy. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*TokenStrategy) AddCSRFToken

func (_m *TokenStrategy) AddCSRFToken(apiRequest *http.Request, skipTLSVerify bool) apperrors.AppError

AddCSRFToken provides a mock function with given fields: apiRequest, skipTLSVerify

func (*TokenStrategy) Invalidate

func (_m *TokenStrategy) Invalidate()

Invalidate provides a mock function with given fields:

type TokenStrategyFactory

type TokenStrategyFactory struct {
	mock.Mock
}

TokenStrategyFactory is an autogenerated mock type for the TokenStrategyFactory type

func NewTokenStrategyFactory

func NewTokenStrategyFactory(t mockConstructorTestingTNewTokenStrategyFactory) *TokenStrategyFactory

NewTokenStrategyFactory creates a new instance of TokenStrategyFactory. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*TokenStrategyFactory) Create

func (_m *TokenStrategyFactory) Create(authorizationStrategy authorization.Strategy, csrfTokenEndpointURL string) csrf.TokenStrategy

Create provides a mock function with given fields: authorizationStrategy, csrfTokenEndpointURL

Jump to

Keyboard shortcuts

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