Documentation ¶
Index ¶
- type ClientInstrumenter
- type DirectorClient
- func (_m *DirectorClient) GetRootTenantByExternalID(ctx context.Context, tenantID string) (*graphql.Tenant, error)
- func (_m *DirectorClient) GetSystemAuthByID(ctx context.Context, authID string) (*model.SystemAuth, error)
- func (_m *DirectorClient) GetTenantByExternalID(ctx context.Context, tenantID string) (*graphql.Tenant, error)
- func (_m *DirectorClient) UpdateSystemAuth(ctx context.Context, sysAuth *model.SystemAuth) (director.UpdateAuthResult, error)
- type ObjectContextProvider
- type ReqDataParser
- type ScopesGetter
- type StaticGroupRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientInstrumenter ¶
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 ¶
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 ¶
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 ¶
func (_m *ObjectContextProvider) GetObjectContext(ctx context.Context, reqData oathkeeper.ReqData, authDetails oathkeeper.AuthDetails) (tenantmapping.ObjectContext, error)
GetObjectContext provides a mock function with given fields: ctx, reqData, authDetails
func (*ObjectContextProvider) Match ¶
func (_m *ObjectContextProvider) Match(ctx context.Context, data oathkeeper.ReqData) (bool, *oathkeeper.AuthDetails, error)
Match provides a mock function with given fields: ctx, data
type ReqDataParser ¶
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 ¶
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 ¶
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 ¶
func (_m *StaticGroupRepository) Get(ctx context.Context, groupnames []string) tenantmapping.StaticGroups
Get provides a mock function with given fields: ctx, groupnames