automock

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

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientInstrumenter

type ClientInstrumenter struct {
	mock.Mock
}

ClientInstrumenter is an autogenerated mock type for the ClientInstrumenter type

func NewClientInstrumenter

func NewClientInstrumenter(t interface {
	mock.TestingT
	Cleanup(func())
}) *ClientInstrumenter

NewClientInstrumenter creates a new instance of ClientInstrumenter. 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 (*ClientInstrumenter) InstrumentClient

func (_m *ClientInstrumenter) InstrumentClient(clientID string, authFlow string, details string)

InstrumentClient provides a mock function with given fields: clientID, authFlow, details

type DirectorClient

type DirectorClient struct {
	mock.Mock
}

DirectorClient is an autogenerated mock type for the DirectorClient type

func NewDirectorClient

func NewDirectorClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *DirectorClient

NewDirectorClient creates a new instance of DirectorClient. 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 (*DirectorClient) GetRootTenantByExternalID

func (_m *DirectorClient) GetRootTenantByExternalID(ctx context.Context, tenantID string) (*graphql.Tenant, error)

GetRootTenantByExternalID provides a mock function with given fields: ctx, tenantID

func (*DirectorClient) GetSystemAuthByID

func (_m *DirectorClient) GetSystemAuthByID(ctx context.Context, authID string) (*model.SystemAuth, error)

GetSystemAuthByID provides a mock function with given fields: ctx, authID

func (*DirectorClient) GetTenantByExternalID

func (_m *DirectorClient) GetTenantByExternalID(ctx context.Context, tenantID string) (*graphql.Tenant, error)

GetTenantByExternalID provides a mock function with given fields: ctx, tenantID

func (*DirectorClient) UpdateSystemAuth

func (_m *DirectorClient) UpdateSystemAuth(ctx context.Context, sysAuth *model.SystemAuth) (director.UpdateAuthResult, error)

UpdateSystemAuth provides a mock function with given fields: ctx, sysAuth

type ObjectContextProvider

type ObjectContextProvider struct {
	mock.Mock
}

ObjectContextProvider is an autogenerated mock type for the ObjectContextProvider type

func NewObjectContextProvider

func NewObjectContextProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *ObjectContextProvider

NewObjectContextProvider creates a new instance of ObjectContextProvider. 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 (*ObjectContextProvider) GetObjectContext

GetObjectContext provides a mock function with given fields: ctx, reqData, authDetails

func (*ObjectContextProvider) Match

Match provides a mock function with given fields: ctx, data

type ReqDataParser

type ReqDataParser struct {
	mock.Mock
}

ReqDataParser is an autogenerated mock type for the ReqDataParser type

func NewReqDataParser

func NewReqDataParser(t interface {
	mock.TestingT
	Cleanup(func())
}) *ReqDataParser

NewReqDataParser creates a new instance of ReqDataParser. 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 (*ReqDataParser) Parse

func (_m *ReqDataParser) Parse(req *http.Request) (oathkeeper.ReqData, error)

Parse provides a mock function with given fields: req

type ScopesGetter

type ScopesGetter struct {
	mock.Mock
}

ScopesGetter is an autogenerated mock type for the ScopesGetter type

func NewScopesGetter

func NewScopesGetter(t interface {
	mock.TestingT
	Cleanup(func())
}) *ScopesGetter

NewScopesGetter creates a new instance of ScopesGetter. 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 (*ScopesGetter) GetRequiredScopes

func (_m *ScopesGetter) GetRequiredScopes(scopesDefinition string) ([]string, error)

GetRequiredScopes provides a mock function with given fields: scopesDefinition

type StaticGroupRepository

type StaticGroupRepository struct {
	mock.Mock
}

StaticGroupRepository is an autogenerated mock type for the StaticGroupRepository type

func NewStaticGroupRepository

func NewStaticGroupRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *StaticGroupRepository

NewStaticGroupRepository creates a new instance of StaticGroupRepository. 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 (*StaticGroupRepository) Get

Get provides a mock function with given fields: ctx, groupnames

Jump to

Keyboard shortcuts

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