automock

package
v0.0.0-...-d6d012e Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OAuthService

type OAuthService struct {
	mock.Mock
}

OAuthService is an autogenerated mock type for the OAuthService type

func NewOAuthService

func NewOAuthService(t interface {
	mock.TestingT
	Cleanup(func())
}) *OAuthService

NewOAuthService creates a new instance of OAuthService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*OAuthService) GetClientDetails

func (_m *OAuthService) GetClientDetails(objType model.SystemAuthReferenceObjectType) (*oauth20.ClientDetails, error)

GetClientDetails provides a mock function with given fields: objType

func (*OAuthService) ListClients

func (_m *OAuthService) ListClients() ([]client.OAuth2Client, error)

ListClients provides a mock function with given fields:

func (*OAuthService) UpdateClient

func (_m *OAuthService) UpdateClient(ctx context.Context, clientID string, objectType model.SystemAuthReferenceObjectType) error

UpdateClient provides a mock function with given fields: ctx, clientID, objectType

type SystemAuthRepo

type SystemAuthRepo struct {
	mock.Mock
}

SystemAuthRepo is an autogenerated mock type for the SystemAuthRepo type

func NewSystemAuthRepo

func NewSystemAuthRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *SystemAuthRepo

NewSystemAuthRepo creates a new instance of SystemAuthRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*SystemAuthRepo) ListGlobalWithConditions

func (_m *SystemAuthRepo) ListGlobalWithConditions(ctx context.Context, conditions repo.Conditions) ([]model.SystemAuth, error)

ListGlobalWithConditions provides a mock function with given fields: ctx, conditions

Jump to

Keyboard shortcuts

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