Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
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 ¶
InvalidateTokenCache provides a mock function with given fields: csrfEndpointURL
type TokenStrategy ¶
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 ¶
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