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 OAuthClient

type OAuthClient struct {
	mock.Mock
}

OAuthClient is an autogenerated mock type for the OAuthClient type

func NewOAuthClient

func NewOAuthClient(t mockConstructorTestingTNewOAuthClient) *OAuthClient

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

func (*OAuthClient) GetToken

func (_m *OAuthClient) GetToken(clientID string, clientSecret string, authURL string, headers *map[string][]string, queryParameters *map[string][]string, skipTLSVerification bool) (string, apperrors.AppError)

GetToken provides a mock function with given fields: clientID, clientSecret, authURL, headers, queryParameters, skipTLSVerification

func (*OAuthClient) GetTokenMTLS

func (_m *OAuthClient) GetTokenMTLS(clientID string, authURL string, certificate []byte, privateKey []byte, headers *map[string][]string, queryParameters *map[string][]string, skipVerify bool) (string, apperrors.AppError)

GetTokenMTLS provides a mock function with given fields: clientID, authURL, certificate, privateKey, headers, queryParameters, skipVerify

func (*OAuthClient) InvalidateTokenCache

func (_m *OAuthClient) InvalidateTokenCache(clientID string, clientSecret string, authURL string)

InvalidateTokenCache provides a mock function with given fields: clientID, clientSecret, authURL

func (*OAuthClient) InvalidateTokenCacheMTLS

func (_m *OAuthClient) InvalidateTokenCacheMTLS(clientID string, authURL string, certificate []byte, privateKey []byte)

InvalidateTokenCacheMTLS provides a mock function with given fields: clientID, authURL, certificate, privateKey

type Strategy

type Strategy struct {
	mock.Mock
}

Strategy is an autogenerated mock type for the Strategy type

func NewStrategy

func NewStrategy(t mockConstructorTestingTNewStrategy) *Strategy

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

func (*Strategy) AddAuthorization

func (_m *Strategy) AddAuthorization(r *http.Request, setter clientcert.SetClientCertificateFunc, skipTLSVerification bool) apperrors.AppError

AddAuthorization provides a mock function with given fields: r, setter, skipTLSVerification

func (*Strategy) Invalidate

func (_m *Strategy) Invalidate()

Invalidate provides a mock function with given fields:

type StrategyFactory

type StrategyFactory struct {
	mock.Mock
}

StrategyFactory is an autogenerated mock type for the StrategyFactory type

func NewStrategyFactory

func NewStrategyFactory(t mockConstructorTestingTNewStrategyFactory) *StrategyFactory

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

func (*StrategyFactory) Create

Create provides a mock function with given fields: credentials

Jump to

Keyboard shortcuts

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