Documentation
¶
Index ¶
- type Authz
- type Authz_Authorize_Call
- type Authz_Expecter
- type Cache
- func (_mock *Cache) CheckScope(ctx context.Context, userID string, patID string, optionalDomainID string, ...) bool
- func (_m *Cache) EXPECT() *Cache_Expecter
- func (_mock *Cache) Remove(ctx context.Context, userID string, scopesID []string) error
- func (_mock *Cache) RemoveAllScope(ctx context.Context, userID string, patID string) error
- func (_mock *Cache) RemoveUserAllScope(ctx context.Context, userID string) error
- func (_mock *Cache) Save(ctx context.Context, userID string, scopes []auth.Scope) error
- type Cache_CheckScope_Call
- type Cache_Expecter
- func (_e *Cache_Expecter) CheckScope(ctx interface{}, userID interface{}, patID interface{}, ...) *Cache_CheckScope_Call
- func (_e *Cache_Expecter) Remove(ctx interface{}, userID interface{}, scopesID interface{}) *Cache_Remove_Call
- func (_e *Cache_Expecter) RemoveAllScope(ctx interface{}, userID interface{}, patID interface{}) *Cache_RemoveAllScope_Call
- func (_e *Cache_Expecter) RemoveUserAllScope(ctx interface{}, userID interface{}) *Cache_RemoveUserAllScope_Call
- func (_e *Cache_Expecter) Save(ctx interface{}, userID interface{}, scopes interface{}) *Cache_Save_Call
- type Cache_RemoveAllScope_Call
- func (_c *Cache_RemoveAllScope_Call) Return(err error) *Cache_RemoveAllScope_Call
- func (_c *Cache_RemoveAllScope_Call) Run(run func(ctx context.Context, userID string, patID string)) *Cache_RemoveAllScope_Call
- func (_c *Cache_RemoveAllScope_Call) RunAndReturn(run func(ctx context.Context, userID string, patID string) error) *Cache_RemoveAllScope_Call
- type Cache_RemoveUserAllScope_Call
- func (_c *Cache_RemoveUserAllScope_Call) Return(err error) *Cache_RemoveUserAllScope_Call
- func (_c *Cache_RemoveUserAllScope_Call) Run(run func(ctx context.Context, userID string)) *Cache_RemoveUserAllScope_Call
- func (_c *Cache_RemoveUserAllScope_Call) RunAndReturn(run func(ctx context.Context, userID string) error) *Cache_RemoveUserAllScope_Call
- type Cache_Remove_Call
- func (_c *Cache_Remove_Call) Return(err error) *Cache_Remove_Call
- func (_c *Cache_Remove_Call) Run(run func(ctx context.Context, userID string, scopesID []string)) *Cache_Remove_Call
- func (_c *Cache_Remove_Call) RunAndReturn(run func(ctx context.Context, userID string, scopesID []string) error) *Cache_Remove_Call
- type Cache_Save_Call
- func (_c *Cache_Save_Call) Return(err error) *Cache_Save_Call
- func (_c *Cache_Save_Call) Run(run func(ctx context.Context, userID string, scopes []auth.Scope)) *Cache_Save_Call
- func (_c *Cache_Save_Call) RunAndReturn(run func(ctx context.Context, userID string, scopes []auth.Scope) error) *Cache_Save_Call
- type Hasher
- type Hasher_Compare_Call
- type Hasher_Expecter
- type Hasher_Hash_Call
- type KeyRepository
- func (_m *KeyRepository) EXPECT() *KeyRepository_Expecter
- func (_mock *KeyRepository) Remove(ctx context.Context, issuer string, id string) error
- func (_mock *KeyRepository) Retrieve(ctx context.Context, issuer string, id string) (auth.Key, error)
- func (_mock *KeyRepository) Save(ctx context.Context, key auth.Key) (string, error)
- type KeyRepository_Expecter
- func (_e *KeyRepository_Expecter) Remove(ctx interface{}, issuer interface{}, id interface{}) *KeyRepository_Remove_Call
- func (_e *KeyRepository_Expecter) Retrieve(ctx interface{}, issuer interface{}, id interface{}) *KeyRepository_Retrieve_Call
- func (_e *KeyRepository_Expecter) Save(ctx interface{}, key interface{}) *KeyRepository_Save_Call
- type KeyRepository_Remove_Call
- func (_c *KeyRepository_Remove_Call) Return(err error) *KeyRepository_Remove_Call
- func (_c *KeyRepository_Remove_Call) Run(run func(ctx context.Context, issuer string, id string)) *KeyRepository_Remove_Call
- func (_c *KeyRepository_Remove_Call) RunAndReturn(run func(ctx context.Context, issuer string, id string) error) *KeyRepository_Remove_Call
- type KeyRepository_Retrieve_Call
- func (_c *KeyRepository_Retrieve_Call) Return(key auth.Key, err error) *KeyRepository_Retrieve_Call
- func (_c *KeyRepository_Retrieve_Call) Run(run func(ctx context.Context, issuer string, id string)) *KeyRepository_Retrieve_Call
- func (_c *KeyRepository_Retrieve_Call) RunAndReturn(run func(ctx context.Context, issuer string, id string) (auth.Key, error)) *KeyRepository_Retrieve_Call
- type KeyRepository_Save_Call
- func (_c *KeyRepository_Save_Call) Return(id string, err error) *KeyRepository_Save_Call
- func (_c *KeyRepository_Save_Call) Run(run func(ctx context.Context, key auth.Key)) *KeyRepository_Save_Call
- func (_c *KeyRepository_Save_Call) RunAndReturn(run func(ctx context.Context, key auth.Key) (string, error)) *KeyRepository_Save_Call
- type PATS
- func (_mock *PATS) AddScope(ctx context.Context, token string, patID string, scopes []auth.Scope) error
- func (_mock *PATS) AuthorizePAT(ctx context.Context, userID string, patID string, entityType auth.EntityType, ...) error
- func (_mock *PATS) CreatePAT(ctx context.Context, token string, name string, description string, ...) (auth.PAT, error)
- func (_mock *PATS) DeletePAT(ctx context.Context, token string, patID string) error
- func (_m *PATS) EXPECT() *PATS_Expecter
- func (_mock *PATS) IdentifyPAT(ctx context.Context, paToken string) (auth.PAT, error)
- func (_mock *PATS) ListPATS(ctx context.Context, token string, pm auth.PATSPageMeta) (auth.PATSPage, error)
- func (_mock *PATS) ListScopes(ctx context.Context, token string, pm auth.ScopesPageMeta) (auth.ScopesPage, error)
- func (_mock *PATS) RemoveAllPAT(ctx context.Context, token string) error
- func (_mock *PATS) RemovePATAllScope(ctx context.Context, token string, patID string) error
- func (_mock *PATS) RemoveScope(ctx context.Context, token string, patID string, scopeIDs ...string) error
- func (_mock *PATS) ResetPATSecret(ctx context.Context, token string, patID string, duration time.Duration) (auth.PAT, error)
- func (_mock *PATS) RetrievePAT(ctx context.Context, userID string, patID string) (auth.PAT, error)
- func (_mock *PATS) RevokePATSecret(ctx context.Context, token string, patID string) error
- func (_mock *PATS) UpdatePATDescription(ctx context.Context, token string, patID string, description string) (auth.PAT, error)
- func (_mock *PATS) UpdatePATName(ctx context.Context, token string, patID string, name string) (auth.PAT, error)
- type PATSRepository
- func (_mock *PATSRepository) AddScope(ctx context.Context, userID string, scopes []auth.Scope) error
- func (_mock *PATSRepository) CheckScope(ctx context.Context, userID string, patID string, entityType auth.EntityType, ...) error
- func (_m *PATSRepository) EXPECT() *PATSRepository_Expecter
- func (_mock *PATSRepository) Reactivate(ctx context.Context, userID string, patID string) error
- func (_mock *PATSRepository) Remove(ctx context.Context, userID string, patID string) error
- func (_mock *PATSRepository) RemoveAllPAT(ctx context.Context, userID string) error
- func (_mock *PATSRepository) RemoveAllScope(ctx context.Context, patID string) error
- func (_mock *PATSRepository) RemoveScope(ctx context.Context, userID string, scopesIDs ...string) error
- func (_mock *PATSRepository) Retrieve(ctx context.Context, userID string, patID string) (auth.PAT, error)
- func (_mock *PATSRepository) RetrieveAll(ctx context.Context, userID string, pm auth.PATSPageMeta) (auth.PATSPage, error)
- func (_mock *PATSRepository) RetrieveScope(ctx context.Context, pm auth.ScopesPageMeta) (auth.ScopesPage, error)
- func (_mock *PATSRepository) RetrieveSecretAndRevokeStatus(ctx context.Context, userID string, patID string) (string, bool, bool, error)
- func (_mock *PATSRepository) Revoke(ctx context.Context, userID string, patID string) error
- func (_mock *PATSRepository) Save(ctx context.Context, pat auth.PAT) error
- func (_mock *PATSRepository) UpdateDescription(ctx context.Context, userID string, patID string, description string) (auth.PAT, error)
- func (_mock *PATSRepository) UpdateName(ctx context.Context, userID string, patID string, name string) (auth.PAT, error)
- func (_mock *PATSRepository) UpdateTokenHash(ctx context.Context, userID string, patID string, tokenHash string, ...) (auth.PAT, error)
- type PATSRepository_AddScope_Call
- func (_c *PATSRepository_AddScope_Call) Return(err error) *PATSRepository_AddScope_Call
- func (_c *PATSRepository_AddScope_Call) Run(run func(ctx context.Context, userID string, scopes []auth.Scope)) *PATSRepository_AddScope_Call
- func (_c *PATSRepository_AddScope_Call) RunAndReturn(run func(ctx context.Context, userID string, scopes []auth.Scope) error) *PATSRepository_AddScope_Call
- type PATSRepository_CheckScope_Call
- type PATSRepository_Expecter
- func (_e *PATSRepository_Expecter) AddScope(ctx interface{}, userID interface{}, scopes interface{}) *PATSRepository_AddScope_Call
- func (_e *PATSRepository_Expecter) CheckScope(ctx interface{}, userID interface{}, patID interface{}, entityType interface{}, ...) *PATSRepository_CheckScope_Call
- func (_e *PATSRepository_Expecter) Reactivate(ctx interface{}, userID interface{}, patID interface{}) *PATSRepository_Reactivate_Call
- func (_e *PATSRepository_Expecter) Remove(ctx interface{}, userID interface{}, patID interface{}) *PATSRepository_Remove_Call
- func (_e *PATSRepository_Expecter) RemoveAllPAT(ctx interface{}, userID interface{}) *PATSRepository_RemoveAllPAT_Call
- func (_e *PATSRepository_Expecter) RemoveAllScope(ctx interface{}, patID interface{}) *PATSRepository_RemoveAllScope_Call
- func (_e *PATSRepository_Expecter) RemoveScope(ctx interface{}, userID interface{}, scopesIDs ...interface{}) *PATSRepository_RemoveScope_Call
- func (_e *PATSRepository_Expecter) Retrieve(ctx interface{}, userID interface{}, patID interface{}) *PATSRepository_Retrieve_Call
- func (_e *PATSRepository_Expecter) RetrieveAll(ctx interface{}, userID interface{}, pm interface{}) *PATSRepository_RetrieveAll_Call
- func (_e *PATSRepository_Expecter) RetrieveScope(ctx interface{}, pm interface{}) *PATSRepository_RetrieveScope_Call
- func (_e *PATSRepository_Expecter) RetrieveSecretAndRevokeStatus(ctx interface{}, userID interface{}, patID interface{}) *PATSRepository_RetrieveSecretAndRevokeStatus_Call
- func (_e *PATSRepository_Expecter) Revoke(ctx interface{}, userID interface{}, patID interface{}) *PATSRepository_Revoke_Call
- func (_e *PATSRepository_Expecter) Save(ctx interface{}, pat interface{}) *PATSRepository_Save_Call
- func (_e *PATSRepository_Expecter) UpdateDescription(ctx interface{}, userID interface{}, patID interface{}, ...) *PATSRepository_UpdateDescription_Call
- func (_e *PATSRepository_Expecter) UpdateName(ctx interface{}, userID interface{}, patID interface{}, name interface{}) *PATSRepository_UpdateName_Call
- func (_e *PATSRepository_Expecter) UpdateTokenHash(ctx interface{}, userID interface{}, patID interface{}, tokenHash interface{}, ...) *PATSRepository_UpdateTokenHash_Call
- type PATSRepository_Reactivate_Call
- func (_c *PATSRepository_Reactivate_Call) Return(err error) *PATSRepository_Reactivate_Call
- func (_c *PATSRepository_Reactivate_Call) Run(run func(ctx context.Context, userID string, patID string)) *PATSRepository_Reactivate_Call
- func (_c *PATSRepository_Reactivate_Call) RunAndReturn(run func(ctx context.Context, userID string, patID string) error) *PATSRepository_Reactivate_Call
- type PATSRepository_RemoveAllPAT_Call
- func (_c *PATSRepository_RemoveAllPAT_Call) Return(err error) *PATSRepository_RemoveAllPAT_Call
- func (_c *PATSRepository_RemoveAllPAT_Call) Run(run func(ctx context.Context, userID string)) *PATSRepository_RemoveAllPAT_Call
- func (_c *PATSRepository_RemoveAllPAT_Call) RunAndReturn(run func(ctx context.Context, userID string) error) *PATSRepository_RemoveAllPAT_Call
- type PATSRepository_RemoveAllScope_Call
- func (_c *PATSRepository_RemoveAllScope_Call) Return(err error) *PATSRepository_RemoveAllScope_Call
- func (_c *PATSRepository_RemoveAllScope_Call) Run(run func(ctx context.Context, patID string)) *PATSRepository_RemoveAllScope_Call
- func (_c *PATSRepository_RemoveAllScope_Call) RunAndReturn(run func(ctx context.Context, patID string) error) *PATSRepository_RemoveAllScope_Call
- type PATSRepository_RemoveScope_Call
- func (_c *PATSRepository_RemoveScope_Call) Return(err error) *PATSRepository_RemoveScope_Call
- func (_c *PATSRepository_RemoveScope_Call) Run(run func(ctx context.Context, userID string, scopesIDs ...string)) *PATSRepository_RemoveScope_Call
- func (_c *PATSRepository_RemoveScope_Call) RunAndReturn(run func(ctx context.Context, userID string, scopesIDs ...string) error) *PATSRepository_RemoveScope_Call
- type PATSRepository_Remove_Call
- func (_c *PATSRepository_Remove_Call) Return(err error) *PATSRepository_Remove_Call
- func (_c *PATSRepository_Remove_Call) Run(run func(ctx context.Context, userID string, patID string)) *PATSRepository_Remove_Call
- func (_c *PATSRepository_Remove_Call) RunAndReturn(run func(ctx context.Context, userID string, patID string) error) *PATSRepository_Remove_Call
- type PATSRepository_RetrieveAll_Call
- func (_c *PATSRepository_RetrieveAll_Call) Return(pats auth.PATSPage, err error) *PATSRepository_RetrieveAll_Call
- func (_c *PATSRepository_RetrieveAll_Call) Run(run func(ctx context.Context, userID string, pm auth.PATSPageMeta)) *PATSRepository_RetrieveAll_Call
- func (_c *PATSRepository_RetrieveAll_Call) RunAndReturn(...) *PATSRepository_RetrieveAll_Call
- type PATSRepository_RetrieveScope_Call
- func (_c *PATSRepository_RetrieveScope_Call) Return(scopes auth.ScopesPage, err error) *PATSRepository_RetrieveScope_Call
- func (_c *PATSRepository_RetrieveScope_Call) Run(run func(ctx context.Context, pm auth.ScopesPageMeta)) *PATSRepository_RetrieveScope_Call
- func (_c *PATSRepository_RetrieveScope_Call) RunAndReturn(run func(ctx context.Context, pm auth.ScopesPageMeta) (auth.ScopesPage, error)) *PATSRepository_RetrieveScope_Call
- type PATSRepository_RetrieveSecretAndRevokeStatus_Call
- func (_c *PATSRepository_RetrieveSecretAndRevokeStatus_Call) Return(s string, b bool, b1 bool, err error) *PATSRepository_RetrieveSecretAndRevokeStatus_Call
- func (_c *PATSRepository_RetrieveSecretAndRevokeStatus_Call) Run(run func(ctx context.Context, userID string, patID string)) *PATSRepository_RetrieveSecretAndRevokeStatus_Call
- func (_c *PATSRepository_RetrieveSecretAndRevokeStatus_Call) RunAndReturn(...) *PATSRepository_RetrieveSecretAndRevokeStatus_Call
- type PATSRepository_Retrieve_Call
- func (_c *PATSRepository_Retrieve_Call) Return(pat auth.PAT, err error) *PATSRepository_Retrieve_Call
- func (_c *PATSRepository_Retrieve_Call) Run(run func(ctx context.Context, userID string, patID string)) *PATSRepository_Retrieve_Call
- func (_c *PATSRepository_Retrieve_Call) RunAndReturn(run func(ctx context.Context, userID string, patID string) (auth.PAT, error)) *PATSRepository_Retrieve_Call
- type PATSRepository_Revoke_Call
- func (_c *PATSRepository_Revoke_Call) Return(err error) *PATSRepository_Revoke_Call
- func (_c *PATSRepository_Revoke_Call) Run(run func(ctx context.Context, userID string, patID string)) *PATSRepository_Revoke_Call
- func (_c *PATSRepository_Revoke_Call) RunAndReturn(run func(ctx context.Context, userID string, patID string) error) *PATSRepository_Revoke_Call
- type PATSRepository_Save_Call
- func (_c *PATSRepository_Save_Call) Return(err error) *PATSRepository_Save_Call
- func (_c *PATSRepository_Save_Call) Run(run func(ctx context.Context, pat auth.PAT)) *PATSRepository_Save_Call
- func (_c *PATSRepository_Save_Call) RunAndReturn(run func(ctx context.Context, pat auth.PAT) error) *PATSRepository_Save_Call
- type PATSRepository_UpdateDescription_Call
- func (_c *PATSRepository_UpdateDescription_Call) Return(pAT auth.PAT, err error) *PATSRepository_UpdateDescription_Call
- func (_c *PATSRepository_UpdateDescription_Call) Run(run func(ctx context.Context, userID string, patID string, description string)) *PATSRepository_UpdateDescription_Call
- func (_c *PATSRepository_UpdateDescription_Call) RunAndReturn(...) *PATSRepository_UpdateDescription_Call
- type PATSRepository_UpdateName_Call
- func (_c *PATSRepository_UpdateName_Call) Return(pAT auth.PAT, err error) *PATSRepository_UpdateName_Call
- func (_c *PATSRepository_UpdateName_Call) Run(run func(ctx context.Context, userID string, patID string, name string)) *PATSRepository_UpdateName_Call
- func (_c *PATSRepository_UpdateName_Call) RunAndReturn(...) *PATSRepository_UpdateName_Call
- type PATSRepository_UpdateTokenHash_Call
- func (_c *PATSRepository_UpdateTokenHash_Call) Return(pAT auth.PAT, err error) *PATSRepository_UpdateTokenHash_Call
- func (_c *PATSRepository_UpdateTokenHash_Call) Run(...) *PATSRepository_UpdateTokenHash_Call
- func (_c *PATSRepository_UpdateTokenHash_Call) RunAndReturn(...) *PATSRepository_UpdateTokenHash_Call
- type PATS_AddScope_Call
- type PATS_AuthorizePAT_Call
- type PATS_CreatePAT_Call
- type PATS_DeletePAT_Call
- func (_c *PATS_DeletePAT_Call) Return(err error) *PATS_DeletePAT_Call
- func (_c *PATS_DeletePAT_Call) Run(run func(ctx context.Context, token string, patID string)) *PATS_DeletePAT_Call
- func (_c *PATS_DeletePAT_Call) RunAndReturn(run func(ctx context.Context, token string, patID string) error) *PATS_DeletePAT_Call
- type PATS_Expecter
- func (_e *PATS_Expecter) AddScope(ctx interface{}, token interface{}, patID interface{}, scopes interface{}) *PATS_AddScope_Call
- func (_e *PATS_Expecter) AuthorizePAT(ctx interface{}, userID interface{}, patID interface{}, entityType interface{}, ...) *PATS_AuthorizePAT_Call
- func (_e *PATS_Expecter) CreatePAT(ctx interface{}, token interface{}, name interface{}, description interface{}, ...) *PATS_CreatePAT_Call
- func (_e *PATS_Expecter) DeletePAT(ctx interface{}, token interface{}, patID interface{}) *PATS_DeletePAT_Call
- func (_e *PATS_Expecter) IdentifyPAT(ctx interface{}, paToken interface{}) *PATS_IdentifyPAT_Call
- func (_e *PATS_Expecter) ListPATS(ctx interface{}, token interface{}, pm interface{}) *PATS_ListPATS_Call
- func (_e *PATS_Expecter) ListScopes(ctx interface{}, token interface{}, pm interface{}) *PATS_ListScopes_Call
- func (_e *PATS_Expecter) RemoveAllPAT(ctx interface{}, token interface{}) *PATS_RemoveAllPAT_Call
- func (_e *PATS_Expecter) RemovePATAllScope(ctx interface{}, token interface{}, patID interface{}) *PATS_RemovePATAllScope_Call
- func (_e *PATS_Expecter) RemoveScope(ctx interface{}, token interface{}, patID interface{}, scopeIDs ...interface{}) *PATS_RemoveScope_Call
- func (_e *PATS_Expecter) ResetPATSecret(ctx interface{}, token interface{}, patID interface{}, duration interface{}) *PATS_ResetPATSecret_Call
- func (_e *PATS_Expecter) RetrievePAT(ctx interface{}, userID interface{}, patID interface{}) *PATS_RetrievePAT_Call
- func (_e *PATS_Expecter) RevokePATSecret(ctx interface{}, token interface{}, patID interface{}) *PATS_RevokePATSecret_Call
- func (_e *PATS_Expecter) UpdatePATDescription(ctx interface{}, token interface{}, patID interface{}, description interface{}) *PATS_UpdatePATDescription_Call
- func (_e *PATS_Expecter) UpdatePATName(ctx interface{}, token interface{}, patID interface{}, name interface{}) *PATS_UpdatePATName_Call
- type PATS_IdentifyPAT_Call
- func (_c *PATS_IdentifyPAT_Call) Return(pAT auth.PAT, err error) *PATS_IdentifyPAT_Call
- func (_c *PATS_IdentifyPAT_Call) Run(run func(ctx context.Context, paToken string)) *PATS_IdentifyPAT_Call
- func (_c *PATS_IdentifyPAT_Call) RunAndReturn(run func(ctx context.Context, paToken string) (auth.PAT, error)) *PATS_IdentifyPAT_Call
- type PATS_ListPATS_Call
- type PATS_ListScopes_Call
- type PATS_RemoveAllPAT_Call
- func (_c *PATS_RemoveAllPAT_Call) Return(err error) *PATS_RemoveAllPAT_Call
- func (_c *PATS_RemoveAllPAT_Call) Run(run func(ctx context.Context, token string)) *PATS_RemoveAllPAT_Call
- func (_c *PATS_RemoveAllPAT_Call) RunAndReturn(run func(ctx context.Context, token string) error) *PATS_RemoveAllPAT_Call
- type PATS_RemovePATAllScope_Call
- func (_c *PATS_RemovePATAllScope_Call) Return(err error) *PATS_RemovePATAllScope_Call
- func (_c *PATS_RemovePATAllScope_Call) Run(run func(ctx context.Context, token string, patID string)) *PATS_RemovePATAllScope_Call
- func (_c *PATS_RemovePATAllScope_Call) RunAndReturn(run func(ctx context.Context, token string, patID string) error) *PATS_RemovePATAllScope_Call
- type PATS_RemoveScope_Call
- type PATS_ResetPATSecret_Call
- type PATS_RetrievePAT_Call
- func (_c *PATS_RetrievePAT_Call) Return(pAT auth.PAT, err error) *PATS_RetrievePAT_Call
- func (_c *PATS_RetrievePAT_Call) Run(run func(ctx context.Context, userID string, patID string)) *PATS_RetrievePAT_Call
- func (_c *PATS_RetrievePAT_Call) RunAndReturn(run func(ctx context.Context, userID string, patID string) (auth.PAT, error)) *PATS_RetrievePAT_Call
- type PATS_RevokePATSecret_Call
- func (_c *PATS_RevokePATSecret_Call) Return(err error) *PATS_RevokePATSecret_Call
- func (_c *PATS_RevokePATSecret_Call) Run(run func(ctx context.Context, token string, patID string)) *PATS_RevokePATSecret_Call
- func (_c *PATS_RevokePATSecret_Call) RunAndReturn(run func(ctx context.Context, token string, patID string) error) *PATS_RevokePATSecret_Call
- type PATS_UpdatePATDescription_Call
- func (_c *PATS_UpdatePATDescription_Call) Return(pAT auth.PAT, err error) *PATS_UpdatePATDescription_Call
- func (_c *PATS_UpdatePATDescription_Call) Run(run func(ctx context.Context, token string, patID string, description string)) *PATS_UpdatePATDescription_Call
- func (_c *PATS_UpdatePATDescription_Call) RunAndReturn(...) *PATS_UpdatePATDescription_Call
- type PATS_UpdatePATName_Call
- func (_c *PATS_UpdatePATName_Call) Return(pAT auth.PAT, err error) *PATS_UpdatePATName_Call
- func (_c *PATS_UpdatePATName_Call) Run(run func(ctx context.Context, token string, patID string, name string)) *PATS_UpdatePATName_Call
- func (_c *PATS_UpdatePATName_Call) RunAndReturn(...) *PATS_UpdatePATName_Call
- type Service
- func (_mock *Service) AddScope(ctx context.Context, token string, patID string, scopes []auth.Scope) error
- func (_mock *Service) Authorize(ctx context.Context, pr policies.Policy, patAuthz *auth.PATAuthz) error
- func (_mock *Service) AuthorizePAT(ctx context.Context, userID string, patID string, entityType auth.EntityType, ...) error
- func (_mock *Service) CreatePAT(ctx context.Context, token string, name string, description string, ...) (auth.PAT, error)
- func (_mock *Service) DeletePAT(ctx context.Context, token string, patID string) error
- func (_m *Service) EXPECT() *Service_Expecter
- func (_mock *Service) Identify(ctx context.Context, token string) (auth.Key, error)
- func (_mock *Service) IdentifyPAT(ctx context.Context, paToken string) (auth.PAT, error)
- func (_mock *Service) Issue(ctx context.Context, token string, key auth.Key) (auth.Token, error)
- func (_mock *Service) ListPATS(ctx context.Context, token string, pm auth.PATSPageMeta) (auth.PATSPage, error)
- func (_mock *Service) ListScopes(ctx context.Context, token string, pm auth.ScopesPageMeta) (auth.ScopesPage, error)
- func (_mock *Service) ListUserRefreshTokens(ctx context.Context, userID string) ([]auth.TokenInfo, error)
- func (_mock *Service) RemoveAllPAT(ctx context.Context, token string) error
- func (_mock *Service) RemovePATAllScope(ctx context.Context, token string, patID string) error
- func (_mock *Service) RemoveScope(ctx context.Context, token string, patID string, scopeIDs ...string) error
- func (_mock *Service) ResetPATSecret(ctx context.Context, token string, patID string, duration time.Duration) (auth.PAT, error)
- func (_mock *Service) RetrieveJWKS() []auth.PublicKeyInfo
- func (_mock *Service) RetrieveKey(ctx context.Context, token string, id string) (auth.Key, error)
- func (_mock *Service) RetrievePAT(ctx context.Context, userID string, patID string) (auth.PAT, error)
- func (_mock *Service) Revoke(ctx context.Context, token string, id string) error
- func (_mock *Service) RevokePATSecret(ctx context.Context, token string, patID string) error
- func (_mock *Service) RevokeToken(ctx context.Context, userID string, tokenID string) error
- func (_mock *Service) UpdatePATDescription(ctx context.Context, token string, patID string, description string) (auth.PAT, error)
- func (_mock *Service) UpdatePATName(ctx context.Context, token string, patID string, name string) (auth.PAT, error)
- type Service_AddScope_Call
- type Service_AuthorizePAT_Call
- type Service_Authorize_Call
- type Service_CreatePAT_Call
- type Service_DeletePAT_Call
- func (_c *Service_DeletePAT_Call) Return(err error) *Service_DeletePAT_Call
- func (_c *Service_DeletePAT_Call) Run(run func(ctx context.Context, token string, patID string)) *Service_DeletePAT_Call
- func (_c *Service_DeletePAT_Call) RunAndReturn(run func(ctx context.Context, token string, patID string) error) *Service_DeletePAT_Call
- type Service_Expecter
- func (_e *Service_Expecter) AddScope(ctx interface{}, token interface{}, patID interface{}, scopes interface{}) *Service_AddScope_Call
- func (_e *Service_Expecter) Authorize(ctx interface{}, pr interface{}, patAuthz interface{}) *Service_Authorize_Call
- func (_e *Service_Expecter) AuthorizePAT(ctx interface{}, userID interface{}, patID interface{}, entityType interface{}, ...) *Service_AuthorizePAT_Call
- func (_e *Service_Expecter) CreatePAT(ctx interface{}, token interface{}, name interface{}, description interface{}, ...) *Service_CreatePAT_Call
- func (_e *Service_Expecter) DeletePAT(ctx interface{}, token interface{}, patID interface{}) *Service_DeletePAT_Call
- func (_e *Service_Expecter) Identify(ctx interface{}, token interface{}) *Service_Identify_Call
- func (_e *Service_Expecter) IdentifyPAT(ctx interface{}, paToken interface{}) *Service_IdentifyPAT_Call
- func (_e *Service_Expecter) Issue(ctx interface{}, token interface{}, key interface{}) *Service_Issue_Call
- func (_e *Service_Expecter) ListPATS(ctx interface{}, token interface{}, pm interface{}) *Service_ListPATS_Call
- func (_e *Service_Expecter) ListScopes(ctx interface{}, token interface{}, pm interface{}) *Service_ListScopes_Call
- func (_e *Service_Expecter) ListUserRefreshTokens(ctx interface{}, userID interface{}) *Service_ListUserRefreshTokens_Call
- func (_e *Service_Expecter) RemoveAllPAT(ctx interface{}, token interface{}) *Service_RemoveAllPAT_Call
- func (_e *Service_Expecter) RemovePATAllScope(ctx interface{}, token interface{}, patID interface{}) *Service_RemovePATAllScope_Call
- func (_e *Service_Expecter) RemoveScope(ctx interface{}, token interface{}, patID interface{}, scopeIDs ...interface{}) *Service_RemoveScope_Call
- func (_e *Service_Expecter) ResetPATSecret(ctx interface{}, token interface{}, patID interface{}, duration interface{}) *Service_ResetPATSecret_Call
- func (_e *Service_Expecter) RetrieveJWKS() *Service_RetrieveJWKS_Call
- func (_e *Service_Expecter) RetrieveKey(ctx interface{}, token interface{}, id interface{}) *Service_RetrieveKey_Call
- func (_e *Service_Expecter) RetrievePAT(ctx interface{}, userID interface{}, patID interface{}) *Service_RetrievePAT_Call
- func (_e *Service_Expecter) Revoke(ctx interface{}, token interface{}, id interface{}) *Service_Revoke_Call
- func (_e *Service_Expecter) RevokePATSecret(ctx interface{}, token interface{}, patID interface{}) *Service_RevokePATSecret_Call
- func (_e *Service_Expecter) RevokeToken(ctx interface{}, userID interface{}, tokenID interface{}) *Service_RevokeToken_Call
- func (_e *Service_Expecter) UpdatePATDescription(ctx interface{}, token interface{}, patID interface{}, description interface{}) *Service_UpdatePATDescription_Call
- func (_e *Service_Expecter) UpdatePATName(ctx interface{}, token interface{}, patID interface{}, name interface{}) *Service_UpdatePATName_Call
- type Service_IdentifyPAT_Call
- func (_c *Service_IdentifyPAT_Call) Return(pAT auth.PAT, err error) *Service_IdentifyPAT_Call
- func (_c *Service_IdentifyPAT_Call) Run(run func(ctx context.Context, paToken string)) *Service_IdentifyPAT_Call
- func (_c *Service_IdentifyPAT_Call) RunAndReturn(run func(ctx context.Context, paToken string) (auth.PAT, error)) *Service_IdentifyPAT_Call
- type Service_Identify_Call
- func (_c *Service_Identify_Call) Return(key auth.Key, err error) *Service_Identify_Call
- func (_c *Service_Identify_Call) Run(run func(ctx context.Context, token string)) *Service_Identify_Call
- func (_c *Service_Identify_Call) RunAndReturn(run func(ctx context.Context, token string) (auth.Key, error)) *Service_Identify_Call
- type Service_Issue_Call
- func (_c *Service_Issue_Call) Return(token1 auth.Token, err error) *Service_Issue_Call
- func (_c *Service_Issue_Call) Run(run func(ctx context.Context, token string, key auth.Key)) *Service_Issue_Call
- func (_c *Service_Issue_Call) RunAndReturn(run func(ctx context.Context, token string, key auth.Key) (auth.Token, error)) *Service_Issue_Call
- type Service_ListPATS_Call
- type Service_ListScopes_Call
- func (_c *Service_ListScopes_Call) Return(scopesPage auth.ScopesPage, err error) *Service_ListScopes_Call
- func (_c *Service_ListScopes_Call) Run(run func(ctx context.Context, token string, pm auth.ScopesPageMeta)) *Service_ListScopes_Call
- func (_c *Service_ListScopes_Call) RunAndReturn(...) *Service_ListScopes_Call
- type Service_ListUserRefreshTokens_Call
- func (_c *Service_ListUserRefreshTokens_Call) Return(tokenInfos []auth.TokenInfo, err error) *Service_ListUserRefreshTokens_Call
- func (_c *Service_ListUserRefreshTokens_Call) Run(run func(ctx context.Context, userID string)) *Service_ListUserRefreshTokens_Call
- func (_c *Service_ListUserRefreshTokens_Call) RunAndReturn(run func(ctx context.Context, userID string) ([]auth.TokenInfo, error)) *Service_ListUserRefreshTokens_Call
- type Service_RemoveAllPAT_Call
- func (_c *Service_RemoveAllPAT_Call) Return(err error) *Service_RemoveAllPAT_Call
- func (_c *Service_RemoveAllPAT_Call) Run(run func(ctx context.Context, token string)) *Service_RemoveAllPAT_Call
- func (_c *Service_RemoveAllPAT_Call) RunAndReturn(run func(ctx context.Context, token string) error) *Service_RemoveAllPAT_Call
- type Service_RemovePATAllScope_Call
- func (_c *Service_RemovePATAllScope_Call) Return(err error) *Service_RemovePATAllScope_Call
- func (_c *Service_RemovePATAllScope_Call) Run(run func(ctx context.Context, token string, patID string)) *Service_RemovePATAllScope_Call
- func (_c *Service_RemovePATAllScope_Call) RunAndReturn(run func(ctx context.Context, token string, patID string) error) *Service_RemovePATAllScope_Call
- type Service_RemoveScope_Call
- func (_c *Service_RemoveScope_Call) Return(err error) *Service_RemoveScope_Call
- func (_c *Service_RemoveScope_Call) Run(run func(ctx context.Context, token string, patID string, scopeIDs ...string)) *Service_RemoveScope_Call
- func (_c *Service_RemoveScope_Call) RunAndReturn(...) *Service_RemoveScope_Call
- type Service_ResetPATSecret_Call
- type Service_RetrieveJWKS_Call
- type Service_RetrieveKey_Call
- func (_c *Service_RetrieveKey_Call) Return(key auth.Key, err error) *Service_RetrieveKey_Call
- func (_c *Service_RetrieveKey_Call) Run(run func(ctx context.Context, token string, id string)) *Service_RetrieveKey_Call
- func (_c *Service_RetrieveKey_Call) RunAndReturn(run func(ctx context.Context, token string, id string) (auth.Key, error)) *Service_RetrieveKey_Call
- type Service_RetrievePAT_Call
- func (_c *Service_RetrievePAT_Call) Return(pAT auth.PAT, err error) *Service_RetrievePAT_Call
- func (_c *Service_RetrievePAT_Call) Run(run func(ctx context.Context, userID string, patID string)) *Service_RetrievePAT_Call
- func (_c *Service_RetrievePAT_Call) RunAndReturn(run func(ctx context.Context, userID string, patID string) (auth.PAT, error)) *Service_RetrievePAT_Call
- type Service_RevokePATSecret_Call
- func (_c *Service_RevokePATSecret_Call) Return(err error) *Service_RevokePATSecret_Call
- func (_c *Service_RevokePATSecret_Call) Run(run func(ctx context.Context, token string, patID string)) *Service_RevokePATSecret_Call
- func (_c *Service_RevokePATSecret_Call) RunAndReturn(run func(ctx context.Context, token string, patID string) error) *Service_RevokePATSecret_Call
- type Service_RevokeToken_Call
- func (_c *Service_RevokeToken_Call) Return(err error) *Service_RevokeToken_Call
- func (_c *Service_RevokeToken_Call) Run(run func(ctx context.Context, userID string, tokenID string)) *Service_RevokeToken_Call
- func (_c *Service_RevokeToken_Call) RunAndReturn(run func(ctx context.Context, userID string, tokenID string) error) *Service_RevokeToken_Call
- type Service_Revoke_Call
- func (_c *Service_Revoke_Call) Return(err error) *Service_Revoke_Call
- func (_c *Service_Revoke_Call) Run(run func(ctx context.Context, token string, id string)) *Service_Revoke_Call
- func (_c *Service_Revoke_Call) RunAndReturn(run func(ctx context.Context, token string, id string) error) *Service_Revoke_Call
- type Service_UpdatePATDescription_Call
- func (_c *Service_UpdatePATDescription_Call) Return(pAT auth.PAT, err error) *Service_UpdatePATDescription_Call
- func (_c *Service_UpdatePATDescription_Call) Run(run func(ctx context.Context, token string, patID string, description string)) *Service_UpdatePATDescription_Call
- func (_c *Service_UpdatePATDescription_Call) RunAndReturn(...) *Service_UpdatePATDescription_Call
- type Service_UpdatePATName_Call
- func (_c *Service_UpdatePATName_Call) Return(pAT auth.PAT, err error) *Service_UpdatePATName_Call
- func (_c *Service_UpdatePATName_Call) Run(run func(ctx context.Context, token string, patID string, name string)) *Service_UpdatePATName_Call
- func (_c *Service_UpdatePATName_Call) RunAndReturn(...) *Service_UpdatePATName_Call
- type TokenServiceClient
- func (_m *TokenServiceClient) EXPECT() *TokenServiceClient_Expecter
- func (_mock *TokenServiceClient) Issue(ctx context.Context, in *v1.IssueReq, opts ...grpc.CallOption) (*v1.Token, error)
- func (_mock *TokenServiceClient) ListUserRefreshTokens(ctx context.Context, in *v1.ListUserRefreshTokensReq, opts ...grpc.CallOption) (*v1.ListUserRefreshTokensRes, error)
- func (_mock *TokenServiceClient) Refresh(ctx context.Context, in *v1.RefreshReq, opts ...grpc.CallOption) (*v1.Token, error)
- func (_mock *TokenServiceClient) Revoke(ctx context.Context, in *v1.RevokeReq, opts ...grpc.CallOption) (*v1.RevokeRes, error)
- type TokenServiceClient_Expecter
- func (_e *TokenServiceClient_Expecter) Issue(ctx interface{}, in interface{}, opts ...interface{}) *TokenServiceClient_Issue_Call
- func (_e *TokenServiceClient_Expecter) ListUserRefreshTokens(ctx interface{}, in interface{}, opts ...interface{}) *TokenServiceClient_ListUserRefreshTokens_Call
- func (_e *TokenServiceClient_Expecter) Refresh(ctx interface{}, in interface{}, opts ...interface{}) *TokenServiceClient_Refresh_Call
- func (_e *TokenServiceClient_Expecter) Revoke(ctx interface{}, in interface{}, opts ...interface{}) *TokenServiceClient_Revoke_Call
- type TokenServiceClient_Issue_Call
- func (_c *TokenServiceClient_Issue_Call) Return(token *v1.Token, err error) *TokenServiceClient_Issue_Call
- func (_c *TokenServiceClient_Issue_Call) Run(run func(ctx context.Context, in *v1.IssueReq, opts ...grpc.CallOption)) *TokenServiceClient_Issue_Call
- func (_c *TokenServiceClient_Issue_Call) RunAndReturn(...) *TokenServiceClient_Issue_Call
- type TokenServiceClient_ListUserRefreshTokens_Call
- func (_c *TokenServiceClient_ListUserRefreshTokens_Call) Return(listUserRefreshTokensRes *v1.ListUserRefreshTokensRes, err error) *TokenServiceClient_ListUserRefreshTokens_Call
- func (_c *TokenServiceClient_ListUserRefreshTokens_Call) Run(...) *TokenServiceClient_ListUserRefreshTokens_Call
- func (_c *TokenServiceClient_ListUserRefreshTokens_Call) RunAndReturn(...) *TokenServiceClient_ListUserRefreshTokens_Call
- type TokenServiceClient_Refresh_Call
- func (_c *TokenServiceClient_Refresh_Call) Return(token *v1.Token, err error) *TokenServiceClient_Refresh_Call
- func (_c *TokenServiceClient_Refresh_Call) Run(run func(ctx context.Context, in *v1.RefreshReq, opts ...grpc.CallOption)) *TokenServiceClient_Refresh_Call
- func (_c *TokenServiceClient_Refresh_Call) RunAndReturn(...) *TokenServiceClient_Refresh_Call
- type TokenServiceClient_Revoke_Call
- func (_c *TokenServiceClient_Revoke_Call) Return(revokeRes *v1.RevokeRes, err error) *TokenServiceClient_Revoke_Call
- func (_c *TokenServiceClient_Revoke_Call) Run(run func(ctx context.Context, in *v1.RevokeReq, opts ...grpc.CallOption)) *TokenServiceClient_Revoke_Call
- func (_c *TokenServiceClient_Revoke_Call) RunAndReturn(...) *TokenServiceClient_Revoke_Call
- type Tokenizer
- type Tokenizer_Expecter
- type Tokenizer_Issue_Call
- type Tokenizer_Parse_Call
- func (_c *Tokenizer_Parse_Call) Return(key auth.Key, err error) *Tokenizer_Parse_Call
- func (_c *Tokenizer_Parse_Call) Run(run func(ctx context.Context, token string)) *Tokenizer_Parse_Call
- func (_c *Tokenizer_Parse_Call) RunAndReturn(run func(ctx context.Context, token string) (auth.Key, error)) *Tokenizer_Parse_Call
- type Tokenizer_RetrieveJWKS_Call
- func (_c *Tokenizer_RetrieveJWKS_Call) Return(publicKeyInfos []auth.PublicKeyInfo, err error) *Tokenizer_RetrieveJWKS_Call
- func (_c *Tokenizer_RetrieveJWKS_Call) Run(run func()) *Tokenizer_RetrieveJWKS_Call
- func (_c *Tokenizer_RetrieveJWKS_Call) RunAndReturn(run func() ([]auth.PublicKeyInfo, error)) *Tokenizer_RetrieveJWKS_Call
- type UserActiveTokensCache
- func (_m *UserActiveTokensCache) EXPECT() *UserActiveTokensCache_Expecter
- func (_mock *UserActiveTokensCache) IsActive(ctx context.Context, tokenID string) (bool, error)
- func (_mock *UserActiveTokensCache) ListUserTokens(ctx context.Context, userID string) ([]auth.TokenInfo, error)
- func (_mock *UserActiveTokensCache) RemoveActive(ctx context.Context, userID string, tokenID string) error
- func (_mock *UserActiveTokensCache) SaveActive(ctx context.Context, userID string, tokenID string, description string, ...) error
- type UserActiveTokensCache_Expecter
- func (_e *UserActiveTokensCache_Expecter) IsActive(ctx interface{}, tokenID interface{}) *UserActiveTokensCache_IsActive_Call
- func (_e *UserActiveTokensCache_Expecter) ListUserTokens(ctx interface{}, userID interface{}) *UserActiveTokensCache_ListUserTokens_Call
- func (_e *UserActiveTokensCache_Expecter) RemoveActive(ctx interface{}, userID interface{}, tokenID interface{}) *UserActiveTokensCache_RemoveActive_Call
- func (_e *UserActiveTokensCache_Expecter) SaveActive(ctx interface{}, userID interface{}, tokenID interface{}, ...) *UserActiveTokensCache_SaveActive_Call
- type UserActiveTokensCache_IsActive_Call
- func (_c *UserActiveTokensCache_IsActive_Call) Return(b bool, err error) *UserActiveTokensCache_IsActive_Call
- func (_c *UserActiveTokensCache_IsActive_Call) Run(run func(ctx context.Context, tokenID string)) *UserActiveTokensCache_IsActive_Call
- func (_c *UserActiveTokensCache_IsActive_Call) RunAndReturn(run func(ctx context.Context, tokenID string) (bool, error)) *UserActiveTokensCache_IsActive_Call
- type UserActiveTokensCache_ListUserTokens_Call
- func (_c *UserActiveTokensCache_ListUserTokens_Call) Return(tokenInfos []auth.TokenInfo, err error) *UserActiveTokensCache_ListUserTokens_Call
- func (_c *UserActiveTokensCache_ListUserTokens_Call) Run(run func(ctx context.Context, userID string)) *UserActiveTokensCache_ListUserTokens_Call
- func (_c *UserActiveTokensCache_ListUserTokens_Call) RunAndReturn(run func(ctx context.Context, userID string) ([]auth.TokenInfo, error)) *UserActiveTokensCache_ListUserTokens_Call
- type UserActiveTokensCache_RemoveActive_Call
- func (_c *UserActiveTokensCache_RemoveActive_Call) Return(err error) *UserActiveTokensCache_RemoveActive_Call
- func (_c *UserActiveTokensCache_RemoveActive_Call) Run(run func(ctx context.Context, userID string, tokenID string)) *UserActiveTokensCache_RemoveActive_Call
- func (_c *UserActiveTokensCache_RemoveActive_Call) RunAndReturn(run func(ctx context.Context, userID string, tokenID string) error) *UserActiveTokensCache_RemoveActive_Call
- type UserActiveTokensCache_SaveActive_Call
- func (_c *UserActiveTokensCache_SaveActive_Call) Return(err error) *UserActiveTokensCache_SaveActive_Call
- func (_c *UserActiveTokensCache_SaveActive_Call) Run(...) *UserActiveTokensCache_SaveActive_Call
- func (_c *UserActiveTokensCache_SaveActive_Call) RunAndReturn(...) *UserActiveTokensCache_SaveActive_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authz ¶
Authz is an autogenerated mock type for the Authz type
func NewAuthz ¶
NewAuthz creates a new instance of Authz. 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 (*Authz) Authorize ¶
func (_mock *Authz) Authorize(ctx context.Context, pr policies.Policy, patAuthz *auth.PATAuthz) error
Authorize provides a mock function for the type Authz
func (*Authz) EXPECT ¶ added in v0.17.0
func (_m *Authz) EXPECT() *Authz_Expecter
type Authz_Authorize_Call ¶ added in v0.17.0
Authz_Authorize_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Authorize'
func (*Authz_Authorize_Call) Return ¶ added in v0.17.0
func (_c *Authz_Authorize_Call) Return(err error) *Authz_Authorize_Call
func (*Authz_Authorize_Call) Run ¶ added in v0.17.0
func (_c *Authz_Authorize_Call) Run(run func(ctx context.Context, pr policies.Policy, patAuthz *auth.PATAuthz)) *Authz_Authorize_Call
func (*Authz_Authorize_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Authz_Authorize_Call) RunAndReturn(run func(ctx context.Context, pr policies.Policy, patAuthz *auth.PATAuthz) error) *Authz_Authorize_Call
type Authz_Expecter ¶ added in v0.17.0
type Authz_Expecter struct {
// contains filtered or unexported fields
}
func (*Authz_Expecter) Authorize ¶ added in v0.17.0
func (_e *Authz_Expecter) Authorize(ctx interface{}, pr interface{}, patAuthz interface{}) *Authz_Authorize_Call
Authorize is a helper method to define mock.On call
- ctx context.Context
- pr policies.Policy
- patAuthz *auth.PATAuthz
type Cache ¶ added in v0.17.0
Cache is an autogenerated mock type for the Cache type
func NewCache ¶ added in v0.17.0
NewCache creates a new instance of Cache. 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 (*Cache) CheckScope ¶ added in v0.17.0
func (_mock *Cache) CheckScope(ctx context.Context, userID string, patID string, optionalDomainID string, entityType auth.EntityType, operation string, entityID string) bool
CheckScope provides a mock function for the type Cache
func (*Cache) EXPECT ¶ added in v0.17.0
func (_m *Cache) EXPECT() *Cache_Expecter
func (*Cache) RemoveAllScope ¶ added in v0.17.0
RemoveAllScope provides a mock function for the type Cache
func (*Cache) RemoveUserAllScope ¶ added in v0.17.0
RemoveUserAllScope provides a mock function for the type Cache
type Cache_CheckScope_Call ¶ added in v0.17.0
Cache_CheckScope_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckScope'
func (*Cache_CheckScope_Call) Return ¶ added in v0.17.0
func (_c *Cache_CheckScope_Call) Return(b bool) *Cache_CheckScope_Call
func (*Cache_CheckScope_Call) Run ¶ added in v0.17.0
func (_c *Cache_CheckScope_Call) Run(run func(ctx context.Context, userID string, patID string, optionalDomainID string, entityType auth.EntityType, operation string, entityID string)) *Cache_CheckScope_Call
func (*Cache_CheckScope_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Cache_CheckScope_Call) RunAndReturn(run func(ctx context.Context, userID string, patID string, optionalDomainID string, entityType auth.EntityType, operation string, entityID string) bool) *Cache_CheckScope_Call
type Cache_Expecter ¶ added in v0.17.0
type Cache_Expecter struct {
// contains filtered or unexported fields
}
func (*Cache_Expecter) CheckScope ¶ added in v0.17.0
func (_e *Cache_Expecter) CheckScope(ctx interface{}, userID interface{}, patID interface{}, optionalDomainID interface{}, entityType interface{}, operation interface{}, entityID interface{}) *Cache_CheckScope_Call
CheckScope is a helper method to define mock.On call
- ctx context.Context
- userID string
- patID string
- optionalDomainID string
- entityType auth.EntityType
- operation string
- entityID string
func (*Cache_Expecter) Remove ¶ added in v0.17.0
func (_e *Cache_Expecter) Remove(ctx interface{}, userID interface{}, scopesID interface{}) *Cache_Remove_Call
Remove is a helper method to define mock.On call
- ctx context.Context
- userID string
- scopesID []string
func (*Cache_Expecter) RemoveAllScope ¶ added in v0.17.0
func (_e *Cache_Expecter) RemoveAllScope(ctx interface{}, userID interface{}, patID interface{}) *Cache_RemoveAllScope_Call
RemoveAllScope is a helper method to define mock.On call
- ctx context.Context
- userID string
- patID string
func (*Cache_Expecter) RemoveUserAllScope ¶ added in v0.17.0
func (_e *Cache_Expecter) RemoveUserAllScope(ctx interface{}, userID interface{}) *Cache_RemoveUserAllScope_Call
RemoveUserAllScope is a helper method to define mock.On call
- ctx context.Context
- userID string
func (*Cache_Expecter) Save ¶ added in v0.17.0
func (_e *Cache_Expecter) Save(ctx interface{}, userID interface{}, scopes interface{}) *Cache_Save_Call
Save is a helper method to define mock.On call
- ctx context.Context
- userID string
- scopes []auth.Scope
type Cache_RemoveAllScope_Call ¶ added in v0.17.0
Cache_RemoveAllScope_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveAllScope'
func (*Cache_RemoveAllScope_Call) Return ¶ added in v0.17.0
func (_c *Cache_RemoveAllScope_Call) Return(err error) *Cache_RemoveAllScope_Call
func (*Cache_RemoveAllScope_Call) Run ¶ added in v0.17.0
func (_c *Cache_RemoveAllScope_Call) Run(run func(ctx context.Context, userID string, patID string)) *Cache_RemoveAllScope_Call
func (*Cache_RemoveAllScope_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Cache_RemoveAllScope_Call) RunAndReturn(run func(ctx context.Context, userID string, patID string) error) *Cache_RemoveAllScope_Call
type Cache_RemoveUserAllScope_Call ¶ added in v0.17.0
Cache_RemoveUserAllScope_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveUserAllScope'
func (*Cache_RemoveUserAllScope_Call) Return ¶ added in v0.17.0
func (_c *Cache_RemoveUserAllScope_Call) Return(err error) *Cache_RemoveUserAllScope_Call
func (*Cache_RemoveUserAllScope_Call) Run ¶ added in v0.17.0
func (_c *Cache_RemoveUserAllScope_Call) Run(run func(ctx context.Context, userID string)) *Cache_RemoveUserAllScope_Call
func (*Cache_RemoveUserAllScope_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Cache_RemoveUserAllScope_Call) RunAndReturn(run func(ctx context.Context, userID string) error) *Cache_RemoveUserAllScope_Call
type Cache_Remove_Call ¶ added in v0.17.0
Cache_Remove_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Remove'
func (*Cache_Remove_Call) Return ¶ added in v0.17.0
func (_c *Cache_Remove_Call) Return(err error) *Cache_Remove_Call
func (*Cache_Remove_Call) Run ¶ added in v0.17.0
func (_c *Cache_Remove_Call) Run(run func(ctx context.Context, userID string, scopesID []string)) *Cache_Remove_Call
func (*Cache_Remove_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Cache_Remove_Call) RunAndReturn(run func(ctx context.Context, userID string, scopesID []string) error) *Cache_Remove_Call
type Cache_Save_Call ¶ added in v0.17.0
Cache_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*Cache_Save_Call) Return ¶ added in v0.17.0
func (_c *Cache_Save_Call) Return(err error) *Cache_Save_Call
func (*Cache_Save_Call) Run ¶ added in v0.17.0
func (_c *Cache_Save_Call) Run(run func(ctx context.Context, userID string, scopes []auth.Scope)) *Cache_Save_Call
func (*Cache_Save_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Cache_Save_Call) RunAndReturn(run func(ctx context.Context, userID string, scopes []auth.Scope) error) *Cache_Save_Call
type Hasher ¶ added in v0.17.0
Hasher is an autogenerated mock type for the Hasher type
func NewHasher ¶ added in v0.17.0
NewHasher creates a new instance of Hasher. 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 (*Hasher) EXPECT ¶ added in v0.17.0
func (_m *Hasher) EXPECT() *Hasher_Expecter
type Hasher_Compare_Call ¶ added in v0.17.0
Hasher_Compare_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Compare'
func (*Hasher_Compare_Call) Return ¶ added in v0.17.0
func (_c *Hasher_Compare_Call) Return(err error) *Hasher_Compare_Call
func (*Hasher_Compare_Call) Run ¶ added in v0.17.0
func (_c *Hasher_Compare_Call) Run(run func(s string, s1 string)) *Hasher_Compare_Call
func (*Hasher_Compare_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Hasher_Compare_Call) RunAndReturn(run func(s string, s1 string) error) *Hasher_Compare_Call
type Hasher_Expecter ¶ added in v0.17.0
type Hasher_Expecter struct {
// contains filtered or unexported fields
}
func (*Hasher_Expecter) Compare ¶ added in v0.17.0
func (_e *Hasher_Expecter) Compare(s interface{}, s1 interface{}) *Hasher_Compare_Call
Compare is a helper method to define mock.On call
- s string
- s1 string
func (*Hasher_Expecter) Hash ¶ added in v0.17.0
func (_e *Hasher_Expecter) Hash(s interface{}) *Hasher_Hash_Call
Hash is a helper method to define mock.On call
- s string
type Hasher_Hash_Call ¶ added in v0.17.0
Hasher_Hash_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Hash'
func (*Hasher_Hash_Call) Return ¶ added in v0.17.0
func (_c *Hasher_Hash_Call) Return(s1 string, err error) *Hasher_Hash_Call
func (*Hasher_Hash_Call) Run ¶ added in v0.17.0
func (_c *Hasher_Hash_Call) Run(run func(s string)) *Hasher_Hash_Call
func (*Hasher_Hash_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Hasher_Hash_Call) RunAndReturn(run func(s string) (string, error)) *Hasher_Hash_Call
type KeyRepository ¶
KeyRepository is an autogenerated mock type for the KeyRepository type
func NewKeyRepository ¶
func NewKeyRepository(t interface {
mock.TestingT
Cleanup(func())
}) *KeyRepository
NewKeyRepository creates a new instance of KeyRepository. 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 (*KeyRepository) EXPECT ¶ added in v0.17.0
func (_m *KeyRepository) EXPECT() *KeyRepository_Expecter
type KeyRepository_Expecter ¶ added in v0.17.0
type KeyRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*KeyRepository_Expecter) Remove ¶ added in v0.17.0
func (_e *KeyRepository_Expecter) Remove(ctx interface{}, issuer interface{}, id interface{}) *KeyRepository_Remove_Call
Remove is a helper method to define mock.On call
- ctx context.Context
- issuer string
- id string
func (*KeyRepository_Expecter) Retrieve ¶ added in v0.17.0
func (_e *KeyRepository_Expecter) Retrieve(ctx interface{}, issuer interface{}, id interface{}) *KeyRepository_Retrieve_Call
Retrieve is a helper method to define mock.On call
- ctx context.Context
- issuer string
- id string
func (*KeyRepository_Expecter) Save ¶ added in v0.17.0
func (_e *KeyRepository_Expecter) Save(ctx interface{}, key interface{}) *KeyRepository_Save_Call
Save is a helper method to define mock.On call
- ctx context.Context
- key auth.Key
type KeyRepository_Remove_Call ¶ added in v0.17.0
KeyRepository_Remove_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Remove'
func (*KeyRepository_Remove_Call) Return ¶ added in v0.17.0
func (_c *KeyRepository_Remove_Call) Return(err error) *KeyRepository_Remove_Call
func (*KeyRepository_Remove_Call) Run ¶ added in v0.17.0
func (_c *KeyRepository_Remove_Call) Run(run func(ctx context.Context, issuer string, id string)) *KeyRepository_Remove_Call
func (*KeyRepository_Remove_Call) RunAndReturn ¶ added in v0.17.0
func (_c *KeyRepository_Remove_Call) RunAndReturn(run func(ctx context.Context, issuer string, id string) error) *KeyRepository_Remove_Call
type KeyRepository_Retrieve_Call ¶ added in v0.17.0
KeyRepository_Retrieve_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Retrieve'
func (*KeyRepository_Retrieve_Call) Return ¶ added in v0.17.0
func (_c *KeyRepository_Retrieve_Call) Return(key auth.Key, err error) *KeyRepository_Retrieve_Call
func (*KeyRepository_Retrieve_Call) Run ¶ added in v0.17.0
func (_c *KeyRepository_Retrieve_Call) Run(run func(ctx context.Context, issuer string, id string)) *KeyRepository_Retrieve_Call
func (*KeyRepository_Retrieve_Call) RunAndReturn ¶ added in v0.17.0
func (_c *KeyRepository_Retrieve_Call) RunAndReturn(run func(ctx context.Context, issuer string, id string) (auth.Key, error)) *KeyRepository_Retrieve_Call
type KeyRepository_Save_Call ¶ added in v0.17.0
KeyRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*KeyRepository_Save_Call) Return ¶ added in v0.17.0
func (_c *KeyRepository_Save_Call) Return(id string, err error) *KeyRepository_Save_Call
func (*KeyRepository_Save_Call) Run ¶ added in v0.17.0
func (_c *KeyRepository_Save_Call) Run(run func(ctx context.Context, key auth.Key)) *KeyRepository_Save_Call
func (*KeyRepository_Save_Call) RunAndReturn ¶ added in v0.17.0
func (_c *KeyRepository_Save_Call) RunAndReturn(run func(ctx context.Context, key auth.Key) (string, error)) *KeyRepository_Save_Call
type PATS ¶ added in v0.17.0
PATS is an autogenerated mock type for the PATS type
func NewPATS ¶ added in v0.17.0
NewPATS creates a new instance of PATS. 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 (*PATS) AddScope ¶ added in v0.17.0
func (_mock *PATS) AddScope(ctx context.Context, token string, patID string, scopes []auth.Scope) error
AddScope provides a mock function for the type PATS
func (*PATS) AuthorizePAT ¶ added in v0.17.0
func (_mock *PATS) AuthorizePAT(ctx context.Context, userID string, patID string, entityType auth.EntityType, domainID string, operation string, entityID string) error
AuthorizePAT provides a mock function for the type PATS
func (*PATS) CreatePAT ¶ added in v0.17.0
func (_mock *PATS) CreatePAT(ctx context.Context, token string, name string, description string, duration time.Duration) (auth.PAT, error)
CreatePAT provides a mock function for the type PATS
func (*PATS) EXPECT ¶ added in v0.17.0
func (_m *PATS) EXPECT() *PATS_Expecter
func (*PATS) IdentifyPAT ¶ added in v0.17.0
IdentifyPAT provides a mock function for the type PATS
func (*PATS) ListPATS ¶ added in v0.17.0
func (_mock *PATS) ListPATS(ctx context.Context, token string, pm auth.PATSPageMeta) (auth.PATSPage, error)
ListPATS provides a mock function for the type PATS
func (*PATS) ListScopes ¶ added in v0.17.0
func (_mock *PATS) ListScopes(ctx context.Context, token string, pm auth.ScopesPageMeta) (auth.ScopesPage, error)
ListScopes provides a mock function for the type PATS
func (*PATS) RemoveAllPAT ¶ added in v0.17.0
RemoveAllPAT provides a mock function for the type PATS
func (*PATS) RemovePATAllScope ¶ added in v0.17.0
RemovePATAllScope provides a mock function for the type PATS
func (*PATS) RemoveScope ¶ added in v0.17.0
func (_mock *PATS) RemoveScope(ctx context.Context, token string, patID string, scopeIDs ...string) error
RemoveScope provides a mock function for the type PATS
func (*PATS) ResetPATSecret ¶ added in v0.17.0
func (_mock *PATS) ResetPATSecret(ctx context.Context, token string, patID string, duration time.Duration) (auth.PAT, error)
ResetPATSecret provides a mock function for the type PATS
func (*PATS) RetrievePAT ¶ added in v0.17.0
RetrievePAT provides a mock function for the type PATS
func (*PATS) RevokePATSecret ¶ added in v0.17.0
RevokePATSecret provides a mock function for the type PATS
type PATSRepository ¶ added in v0.17.0
PATSRepository is an autogenerated mock type for the PATSRepository type
func NewPATSRepository ¶ added in v0.17.0
func NewPATSRepository(t interface {
mock.TestingT
Cleanup(func())
}) *PATSRepository
NewPATSRepository creates a new instance of PATSRepository. 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 (*PATSRepository) AddScope ¶ added in v0.17.0
func (_mock *PATSRepository) AddScope(ctx context.Context, userID string, scopes []auth.Scope) error
AddScope provides a mock function for the type PATSRepository
func (*PATSRepository) CheckScope ¶ added in v0.17.0
func (_mock *PATSRepository) CheckScope(ctx context.Context, userID string, patID string, entityType auth.EntityType, domainID string, operation string, entityID string) error
CheckScope provides a mock function for the type PATSRepository
func (*PATSRepository) EXPECT ¶ added in v0.17.0
func (_m *PATSRepository) EXPECT() *PATSRepository_Expecter
func (*PATSRepository) Reactivate ¶ added in v0.17.0
Reactivate provides a mock function for the type PATSRepository
func (*PATSRepository) Remove ¶ added in v0.17.0
Remove provides a mock function for the type PATSRepository
func (*PATSRepository) RemoveAllPAT ¶ added in v0.17.0
func (_mock *PATSRepository) RemoveAllPAT(ctx context.Context, userID string) error
RemoveAllPAT provides a mock function for the type PATSRepository
func (*PATSRepository) RemoveAllScope ¶ added in v0.17.0
func (_mock *PATSRepository) RemoveAllScope(ctx context.Context, patID string) error
RemoveAllScope provides a mock function for the type PATSRepository
func (*PATSRepository) RemoveScope ¶ added in v0.17.0
func (_mock *PATSRepository) RemoveScope(ctx context.Context, userID string, scopesIDs ...string) error
RemoveScope provides a mock function for the type PATSRepository
func (*PATSRepository) Retrieve ¶ added in v0.17.0
func (_mock *PATSRepository) Retrieve(ctx context.Context, userID string, patID string) (auth.PAT, error)
Retrieve provides a mock function for the type PATSRepository
func (*PATSRepository) RetrieveAll ¶ added in v0.17.0
func (_mock *PATSRepository) RetrieveAll(ctx context.Context, userID string, pm auth.PATSPageMeta) (auth.PATSPage, error)
RetrieveAll provides a mock function for the type PATSRepository
func (*PATSRepository) RetrieveScope ¶ added in v0.17.0
func (_mock *PATSRepository) RetrieveScope(ctx context.Context, pm auth.ScopesPageMeta) (auth.ScopesPage, error)
RetrieveScope provides a mock function for the type PATSRepository
func (*PATSRepository) RetrieveSecretAndRevokeStatus ¶ added in v0.17.0
func (_mock *PATSRepository) RetrieveSecretAndRevokeStatus(ctx context.Context, userID string, patID string) (string, bool, bool, error)
RetrieveSecretAndRevokeStatus provides a mock function for the type PATSRepository
func (*PATSRepository) Revoke ¶ added in v0.17.0
Revoke provides a mock function for the type PATSRepository
func (*PATSRepository) Save ¶ added in v0.17.0
Save provides a mock function for the type PATSRepository
func (*PATSRepository) UpdateDescription ¶ added in v0.17.0
func (_mock *PATSRepository) UpdateDescription(ctx context.Context, userID string, patID string, description string) (auth.PAT, error)
UpdateDescription provides a mock function for the type PATSRepository
type PATSRepository_AddScope_Call ¶ added in v0.17.0
PATSRepository_AddScope_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddScope'
func (*PATSRepository_AddScope_Call) Return ¶ added in v0.17.0
func (_c *PATSRepository_AddScope_Call) Return(err error) *PATSRepository_AddScope_Call
func (*PATSRepository_AddScope_Call) Run ¶ added in v0.17.0
func (_c *PATSRepository_AddScope_Call) Run(run func(ctx context.Context, userID string, scopes []auth.Scope)) *PATSRepository_AddScope_Call
func (*PATSRepository_AddScope_Call) RunAndReturn ¶ added in v0.17.0
func (_c *PATSRepository_AddScope_Call) RunAndReturn(run func(ctx context.Context, userID string, scopes []auth.Scope) error) *PATSRepository_AddScope_Call
type PATSRepository_CheckScope_Call ¶ added in v0.17.0
PATSRepository_CheckScope_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckScope'
func (*PATSRepository_CheckScope_Call) Return ¶ added in v0.17.0
func (_c *PATSRepository_CheckScope_Call) Return(err error) *PATSRepository_CheckScope_Call
func (*PATSRepository_CheckScope_Call) Run ¶ added in v0.17.0
func (_c *PATSRepository_CheckScope_Call) Run(run func(ctx context.Context, userID string, patID string, entityType auth.EntityType, domainID string, operation string, entityID string)) *PATSRepository_CheckScope_Call
func (*PATSRepository_CheckScope_Call) RunAndReturn ¶ added in v0.17.0
func (_c *PATSRepository_CheckScope_Call) RunAndReturn(run func(ctx context.Context, userID string, patID string, entityType auth.EntityType, domainID string, operation string, entityID string) error) *PATSRepository_CheckScope_Call
type PATSRepository_Expecter ¶ added in v0.17.0
type PATSRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*PATSRepository_Expecter) AddScope ¶ added in v0.17.0
func (_e *PATSRepository_Expecter) AddScope(ctx interface{}, userID interface{}, scopes interface{}) *PATSRepository_AddScope_Call
AddScope is a helper method to define mock.On call
- ctx context.Context
- userID string
- scopes []auth.Scope
func (*PATSRepository_Expecter) CheckScope ¶ added in v0.17.0
func (_e *PATSRepository_Expecter) CheckScope(ctx interface{}, userID interface{}, patID interface{}, entityType interface{}, domainID interface{}, operation interface{}, entityID interface{}) *PATSRepository_CheckScope_Call
CheckScope is a helper method to define mock.On call
- ctx context.Context
- userID string
- patID string
- entityType auth.EntityType
- domainID string
- operation string
- entityID string
func (*PATSRepository_Expecter) Reactivate ¶ added in v0.17.0
func (_e *PATSRepository_Expecter) Reactivate(ctx interface{}, userID interface{}, patID interface{}) *PATSRepository_Reactivate_Call
Reactivate is a helper method to define mock.On call
- ctx context.Context
- userID string
- patID string
func (*PATSRepository_Expecter) Remove ¶ added in v0.17.0
func (_e *PATSRepository_Expecter) Remove(ctx interface{}, userID interface{}, patID interface{}) *PATSRepository_Remove_Call
Remove is a helper method to define mock.On call
- ctx context.Context
- userID string
- patID string
func (*PATSRepository_Expecter) RemoveAllPAT ¶ added in v0.17.0
func (_e *PATSRepository_Expecter) RemoveAllPAT(ctx interface{}, userID interface{}) *PATSRepository_RemoveAllPAT_Call
RemoveAllPAT is a helper method to define mock.On call
- ctx context.Context
- userID string
func (*PATSRepository_Expecter) RemoveAllScope ¶ added in v0.17.0
func (_e *PATSRepository_Expecter) RemoveAllScope(ctx interface{}, patID interface{}) *PATSRepository_RemoveAllScope_Call
RemoveAllScope is a helper method to define mock.On call
- ctx context.Context
- patID string
func (*PATSRepository_Expecter) RemoveScope ¶ added in v0.17.0
func (_e *PATSRepository_Expecter) RemoveScope(ctx interface{}, userID interface{}, scopesIDs ...interface{}) *PATSRepository_RemoveScope_Call
RemoveScope is a helper method to define mock.On call
- ctx context.Context
- userID string
- scopesIDs ...string
func (*PATSRepository_Expecter) Retrieve ¶ added in v0.17.0
func (_e *PATSRepository_Expecter) Retrieve(ctx interface{}, userID interface{}, patID interface{}) *PATSRepository_Retrieve_Call
Retrieve is a helper method to define mock.On call
- ctx context.Context
- userID string
- patID string
func (*PATSRepository_Expecter) RetrieveAll ¶ added in v0.17.0
func (_e *PATSRepository_Expecter) RetrieveAll(ctx interface{}, userID interface{}, pm interface{}) *PATSRepository_RetrieveAll_Call
RetrieveAll is a helper method to define mock.On call
- ctx context.Context
- userID string
- pm auth.PATSPageMeta
func (*PATSRepository_Expecter) RetrieveScope ¶ added in v0.17.0
func (_e *PATSRepository_Expecter) RetrieveScope(ctx interface{}, pm interface{}) *PATSRepository_RetrieveScope_Call
RetrieveScope is a helper method to define mock.On call
- ctx context.Context
- pm auth.ScopesPageMeta
func (*PATSRepository_Expecter) RetrieveSecretAndRevokeStatus ¶ added in v0.17.0
func (_e *PATSRepository_Expecter) RetrieveSecretAndRevokeStatus(ctx interface{}, userID interface{}, patID interface{}) *PATSRepository_RetrieveSecretAndRevokeStatus_Call
RetrieveSecretAndRevokeStatus is a helper method to define mock.On call
- ctx context.Context
- userID string
- patID string
func (*PATSRepository_Expecter) Revoke ¶ added in v0.17.0
func (_e *PATSRepository_Expecter) Revoke(ctx interface{}, userID interface{}, patID interface{}) *PATSRepository_Revoke_Call
Revoke is a helper method to define mock.On call
- ctx context.Context
- userID string
- patID string
func (*PATSRepository_Expecter) Save ¶ added in v0.17.0
func (_e *PATSRepository_Expecter) Save(ctx interface{}, pat interface{}) *PATSRepository_Save_Call
Save is a helper method to define mock.On call
- ctx context.Context
- pat auth.PAT
func (*PATSRepository_Expecter) UpdateDescription ¶ added in v0.17.0
func (_e *PATSRepository_Expecter) UpdateDescription(ctx interface{}, userID interface{}, patID interface{}, description interface{}) *PATSRepository_UpdateDescription_Call
UpdateDescription is a helper method to define mock.On call
- ctx context.Context
- userID string
- patID string
- description string
func (*PATSRepository_Expecter) UpdateName ¶ added in v0.17.0
func (_e *PATSRepository_Expecter) UpdateName(ctx interface{}, userID interface{}, patID interface{}, name interface{}) *PATSRepository_UpdateName_Call
UpdateName is a helper method to define mock.On call
- ctx context.Context
- userID string
- patID string
- name string
func (*PATSRepository_Expecter) UpdateTokenHash ¶ added in v0.17.0
func (_e *PATSRepository_Expecter) UpdateTokenHash(ctx interface{}, userID interface{}, patID interface{}, tokenHash interface{}, expiryAt interface{}) *PATSRepository_UpdateTokenHash_Call
UpdateTokenHash is a helper method to define mock.On call
- ctx context.Context
- userID string
- patID string
- tokenHash string
- expiryAt time.Time
type PATSRepository_Reactivate_Call ¶ added in v0.17.0
PATSRepository_Reactivate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Reactivate'
func (*PATSRepository_Reactivate_Call) Return ¶ added in v0.17.0
func (_c *PATSRepository_Reactivate_Call) Return(err error) *PATSRepository_Reactivate_Call
func (*PATSRepository_Reactivate_Call) Run ¶ added in v0.17.0
func (_c *PATSRepository_Reactivate_Call) Run(run func(ctx context.Context, userID string, patID string)) *PATSRepository_Reactivate_Call
func (*PATSRepository_Reactivate_Call) RunAndReturn ¶ added in v0.17.0
func (_c *PATSRepository_Reactivate_Call) RunAndReturn(run func(ctx context.Context, userID string, patID string) error) *PATSRepository_Reactivate_Call
type PATSRepository_RemoveAllPAT_Call ¶ added in v0.17.0
PATSRepository_RemoveAllPAT_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveAllPAT'
func (*PATSRepository_RemoveAllPAT_Call) Return ¶ added in v0.17.0
func (_c *PATSRepository_RemoveAllPAT_Call) Return(err error) *PATSRepository_RemoveAllPAT_Call
func (*PATSRepository_RemoveAllPAT_Call) Run ¶ added in v0.17.0
func (_c *PATSRepository_RemoveAllPAT_Call) Run(run func(ctx context.Context, userID string)) *PATSRepository_RemoveAllPAT_Call
func (*PATSRepository_RemoveAllPAT_Call) RunAndReturn ¶ added in v0.17.0
func (_c *PATSRepository_RemoveAllPAT_Call) RunAndReturn(run func(ctx context.Context, userID string) error) *PATSRepository_RemoveAllPAT_Call
type PATSRepository_RemoveAllScope_Call ¶ added in v0.17.0
PATSRepository_RemoveAllScope_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveAllScope'
func (*PATSRepository_RemoveAllScope_Call) Return ¶ added in v0.17.0
func (_c *PATSRepository_RemoveAllScope_Call) Return(err error) *PATSRepository_RemoveAllScope_Call
func (*PATSRepository_RemoveAllScope_Call) Run ¶ added in v0.17.0
func (_c *PATSRepository_RemoveAllScope_Call) Run(run func(ctx context.Context, patID string)) *PATSRepository_RemoveAllScope_Call
func (*PATSRepository_RemoveAllScope_Call) RunAndReturn ¶ added in v0.17.0
func (_c *PATSRepository_RemoveAllScope_Call) RunAndReturn(run func(ctx context.Context, patID string) error) *PATSRepository_RemoveAllScope_Call
type PATSRepository_RemoveScope_Call ¶ added in v0.17.0
PATSRepository_RemoveScope_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveScope'
func (*PATSRepository_RemoveScope_Call) Return ¶ added in v0.17.0
func (_c *PATSRepository_RemoveScope_Call) Return(err error) *PATSRepository_RemoveScope_Call
func (*PATSRepository_RemoveScope_Call) Run ¶ added in v0.17.0
func (_c *PATSRepository_RemoveScope_Call) Run(run func(ctx context.Context, userID string, scopesIDs ...string)) *PATSRepository_RemoveScope_Call
func (*PATSRepository_RemoveScope_Call) RunAndReturn ¶ added in v0.17.0
func (_c *PATSRepository_RemoveScope_Call) RunAndReturn(run func(ctx context.Context, userID string, scopesIDs ...string) error) *PATSRepository_RemoveScope_Call
type PATSRepository_Remove_Call ¶ added in v0.17.0
PATSRepository_Remove_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Remove'
func (*PATSRepository_Remove_Call) Return ¶ added in v0.17.0
func (_c *PATSRepository_Remove_Call) Return(err error) *PATSRepository_Remove_Call
func (*PATSRepository_Remove_Call) Run ¶ added in v0.17.0
func (_c *PATSRepository_Remove_Call) Run(run func(ctx context.Context, userID string, patID string)) *PATSRepository_Remove_Call
func (*PATSRepository_Remove_Call) RunAndReturn ¶ added in v0.17.0
func (_c *PATSRepository_Remove_Call) RunAndReturn(run func(ctx context.Context, userID string, patID string) error) *PATSRepository_Remove_Call
type PATSRepository_RetrieveAll_Call ¶ added in v0.17.0
PATSRepository_RetrieveAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RetrieveAll'
func (*PATSRepository_RetrieveAll_Call) Return ¶ added in v0.17.0
func (_c *PATSRepository_RetrieveAll_Call) Return(pats auth.PATSPage, err error) *PATSRepository_RetrieveAll_Call
func (*PATSRepository_RetrieveAll_Call) Run ¶ added in v0.17.0
func (_c *PATSRepository_RetrieveAll_Call) Run(run func(ctx context.Context, userID string, pm auth.PATSPageMeta)) *PATSRepository_RetrieveAll_Call
func (*PATSRepository_RetrieveAll_Call) RunAndReturn ¶ added in v0.17.0
func (_c *PATSRepository_RetrieveAll_Call) RunAndReturn(run func(ctx context.Context, userID string, pm auth.PATSPageMeta) (auth.PATSPage, error)) *PATSRepository_RetrieveAll_Call
type PATSRepository_RetrieveScope_Call ¶ added in v0.17.0
PATSRepository_RetrieveScope_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RetrieveScope'
func (*PATSRepository_RetrieveScope_Call) Return ¶ added in v0.17.0
func (_c *PATSRepository_RetrieveScope_Call) Return(scopes auth.ScopesPage, err error) *PATSRepository_RetrieveScope_Call
func (*PATSRepository_RetrieveScope_Call) Run ¶ added in v0.17.0
func (_c *PATSRepository_RetrieveScope_Call) Run(run func(ctx context.Context, pm auth.ScopesPageMeta)) *PATSRepository_RetrieveScope_Call
func (*PATSRepository_RetrieveScope_Call) RunAndReturn ¶ added in v0.17.0
func (_c *PATSRepository_RetrieveScope_Call) RunAndReturn(run func(ctx context.Context, pm auth.ScopesPageMeta) (auth.ScopesPage, error)) *PATSRepository_RetrieveScope_Call
type PATSRepository_RetrieveSecretAndRevokeStatus_Call ¶ added in v0.17.0
PATSRepository_RetrieveSecretAndRevokeStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RetrieveSecretAndRevokeStatus'
func (*PATSRepository_RetrieveSecretAndRevokeStatus_Call) Return ¶ added in v0.17.0
func (_c *PATSRepository_RetrieveSecretAndRevokeStatus_Call) Return(s string, b bool, b1 bool, err error) *PATSRepository_RetrieveSecretAndRevokeStatus_Call
func (*PATSRepository_RetrieveSecretAndRevokeStatus_Call) Run ¶ added in v0.17.0
func (_c *PATSRepository_RetrieveSecretAndRevokeStatus_Call) Run(run func(ctx context.Context, userID string, patID string)) *PATSRepository_RetrieveSecretAndRevokeStatus_Call
func (*PATSRepository_RetrieveSecretAndRevokeStatus_Call) RunAndReturn ¶ added in v0.17.0
func (_c *PATSRepository_RetrieveSecretAndRevokeStatus_Call) RunAndReturn(run func(ctx context.Context, userID string, patID string) (string, bool, bool, error)) *PATSRepository_RetrieveSecretAndRevokeStatus_Call
type PATSRepository_Retrieve_Call ¶ added in v0.17.0
PATSRepository_Retrieve_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Retrieve'
func (*PATSRepository_Retrieve_Call) Return ¶ added in v0.17.0
func (_c *PATSRepository_Retrieve_Call) Return(pat auth.PAT, err error) *PATSRepository_Retrieve_Call
func (*PATSRepository_Retrieve_Call) Run ¶ added in v0.17.0
func (_c *PATSRepository_Retrieve_Call) Run(run func(ctx context.Context, userID string, patID string)) *PATSRepository_Retrieve_Call
func (*PATSRepository_Retrieve_Call) RunAndReturn ¶ added in v0.17.0
func (_c *PATSRepository_Retrieve_Call) RunAndReturn(run func(ctx context.Context, userID string, patID string) (auth.PAT, error)) *PATSRepository_Retrieve_Call
type PATSRepository_Revoke_Call ¶ added in v0.17.0
PATSRepository_Revoke_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Revoke'
func (*PATSRepository_Revoke_Call) Return ¶ added in v0.17.0
func (_c *PATSRepository_Revoke_Call) Return(err error) *PATSRepository_Revoke_Call
func (*PATSRepository_Revoke_Call) Run ¶ added in v0.17.0
func (_c *PATSRepository_Revoke_Call) Run(run func(ctx context.Context, userID string, patID string)) *PATSRepository_Revoke_Call
func (*PATSRepository_Revoke_Call) RunAndReturn ¶ added in v0.17.0
func (_c *PATSRepository_Revoke_Call) RunAndReturn(run func(ctx context.Context, userID string, patID string) error) *PATSRepository_Revoke_Call
type PATSRepository_Save_Call ¶ added in v0.17.0
PATSRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*PATSRepository_Save_Call) Return ¶ added in v0.17.0
func (_c *PATSRepository_Save_Call) Return(err error) *PATSRepository_Save_Call
func (*PATSRepository_Save_Call) Run ¶ added in v0.17.0
func (_c *PATSRepository_Save_Call) Run(run func(ctx context.Context, pat auth.PAT)) *PATSRepository_Save_Call
func (*PATSRepository_Save_Call) RunAndReturn ¶ added in v0.17.0
func (_c *PATSRepository_Save_Call) RunAndReturn(run func(ctx context.Context, pat auth.PAT) error) *PATSRepository_Save_Call
type PATSRepository_UpdateDescription_Call ¶ added in v0.17.0
PATSRepository_UpdateDescription_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateDescription'
func (*PATSRepository_UpdateDescription_Call) Return ¶ added in v0.17.0
func (_c *PATSRepository_UpdateDescription_Call) Return(pAT auth.PAT, err error) *PATSRepository_UpdateDescription_Call
func (*PATSRepository_UpdateDescription_Call) Run ¶ added in v0.17.0
func (_c *PATSRepository_UpdateDescription_Call) Run(run func(ctx context.Context, userID string, patID string, description string)) *PATSRepository_UpdateDescription_Call
func (*PATSRepository_UpdateDescription_Call) RunAndReturn ¶ added in v0.17.0
func (_c *PATSRepository_UpdateDescription_Call) RunAndReturn(run func(ctx context.Context, userID string, patID string, description string) (auth.PAT, error)) *PATSRepository_UpdateDescription_Call
type PATSRepository_UpdateName_Call ¶ added in v0.17.0
PATSRepository_UpdateName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateName'
func (*PATSRepository_UpdateName_Call) Return ¶ added in v0.17.0
func (_c *PATSRepository_UpdateName_Call) Return(pAT auth.PAT, err error) *PATSRepository_UpdateName_Call
func (*PATSRepository_UpdateName_Call) Run ¶ added in v0.17.0
func (_c *PATSRepository_UpdateName_Call) Run(run func(ctx context.Context, userID string, patID string, name string)) *PATSRepository_UpdateName_Call
func (*PATSRepository_UpdateName_Call) RunAndReturn ¶ added in v0.17.0
func (_c *PATSRepository_UpdateName_Call) RunAndReturn(run func(ctx context.Context, userID string, patID string, name string) (auth.PAT, error)) *PATSRepository_UpdateName_Call
type PATSRepository_UpdateTokenHash_Call ¶ added in v0.17.0
PATSRepository_UpdateTokenHash_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateTokenHash'
func (*PATSRepository_UpdateTokenHash_Call) Return ¶ added in v0.17.0
func (_c *PATSRepository_UpdateTokenHash_Call) Return(pAT auth.PAT, err error) *PATSRepository_UpdateTokenHash_Call
func (*PATSRepository_UpdateTokenHash_Call) Run ¶ added in v0.17.0
func (_c *PATSRepository_UpdateTokenHash_Call) Run(run func(ctx context.Context, userID string, patID string, tokenHash string, expiryAt time.Time)) *PATSRepository_UpdateTokenHash_Call
func (*PATSRepository_UpdateTokenHash_Call) RunAndReturn ¶ added in v0.17.0
type PATS_AddScope_Call ¶ added in v0.17.0
PATS_AddScope_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddScope'
func (*PATS_AddScope_Call) Return ¶ added in v0.17.0
func (_c *PATS_AddScope_Call) Return(err error) *PATS_AddScope_Call
func (*PATS_AddScope_Call) Run ¶ added in v0.17.0
func (_c *PATS_AddScope_Call) Run(run func(ctx context.Context, token string, patID string, scopes []auth.Scope)) *PATS_AddScope_Call
func (*PATS_AddScope_Call) RunAndReturn ¶ added in v0.17.0
func (_c *PATS_AddScope_Call) RunAndReturn(run func(ctx context.Context, token string, patID string, scopes []auth.Scope) error) *PATS_AddScope_Call
type PATS_AuthorizePAT_Call ¶ added in v0.17.0
PATS_AuthorizePAT_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AuthorizePAT'
func (*PATS_AuthorizePAT_Call) Return ¶ added in v0.17.0
func (_c *PATS_AuthorizePAT_Call) Return(err error) *PATS_AuthorizePAT_Call
func (*PATS_AuthorizePAT_Call) Run ¶ added in v0.17.0
func (_c *PATS_AuthorizePAT_Call) Run(run func(ctx context.Context, userID string, patID string, entityType auth.EntityType, domainID string, operation string, entityID string)) *PATS_AuthorizePAT_Call
func (*PATS_AuthorizePAT_Call) RunAndReturn ¶ added in v0.17.0
func (_c *PATS_AuthorizePAT_Call) RunAndReturn(run func(ctx context.Context, userID string, patID string, entityType auth.EntityType, domainID string, operation string, entityID string) error) *PATS_AuthorizePAT_Call
type PATS_CreatePAT_Call ¶ added in v0.17.0
PATS_CreatePAT_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreatePAT'
func (*PATS_CreatePAT_Call) Return ¶ added in v0.17.0
func (_c *PATS_CreatePAT_Call) Return(pAT auth.PAT, err error) *PATS_CreatePAT_Call
func (*PATS_CreatePAT_Call) Run ¶ added in v0.17.0
func (_c *PATS_CreatePAT_Call) Run(run func(ctx context.Context, token string, name string, description string, duration time.Duration)) *PATS_CreatePAT_Call
func (*PATS_CreatePAT_Call) RunAndReturn ¶ added in v0.17.0
type PATS_DeletePAT_Call ¶ added in v0.17.0
PATS_DeletePAT_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeletePAT'
func (*PATS_DeletePAT_Call) Return ¶ added in v0.17.0
func (_c *PATS_DeletePAT_Call) Return(err error) *PATS_DeletePAT_Call
func (*PATS_DeletePAT_Call) Run ¶ added in v0.17.0
func (_c *PATS_DeletePAT_Call) Run(run func(ctx context.Context, token string, patID string)) *PATS_DeletePAT_Call
func (*PATS_DeletePAT_Call) RunAndReturn ¶ added in v0.17.0
func (_c *PATS_DeletePAT_Call) RunAndReturn(run func(ctx context.Context, token string, patID string) error) *PATS_DeletePAT_Call
type PATS_Expecter ¶ added in v0.17.0
type PATS_Expecter struct {
// contains filtered or unexported fields
}
func (*PATS_Expecter) AddScope ¶ added in v0.17.0
func (_e *PATS_Expecter) AddScope(ctx interface{}, token interface{}, patID interface{}, scopes interface{}) *PATS_AddScope_Call
AddScope is a helper method to define mock.On call
- ctx context.Context
- token string
- patID string
- scopes []auth.Scope
func (*PATS_Expecter) AuthorizePAT ¶ added in v0.17.0
func (_e *PATS_Expecter) AuthorizePAT(ctx interface{}, userID interface{}, patID interface{}, entityType interface{}, domainID interface{}, operation interface{}, entityID interface{}) *PATS_AuthorizePAT_Call
AuthorizePAT is a helper method to define mock.On call
- ctx context.Context
- userID string
- patID string
- entityType auth.EntityType
- domainID string
- operation string
- entityID string
func (*PATS_Expecter) CreatePAT ¶ added in v0.17.0
func (_e *PATS_Expecter) CreatePAT(ctx interface{}, token interface{}, name interface{}, description interface{}, duration interface{}) *PATS_CreatePAT_Call
CreatePAT is a helper method to define mock.On call
- ctx context.Context
- token string
- name string
- description string
- duration time.Duration
func (*PATS_Expecter) DeletePAT ¶ added in v0.17.0
func (_e *PATS_Expecter) DeletePAT(ctx interface{}, token interface{}, patID interface{}) *PATS_DeletePAT_Call
DeletePAT is a helper method to define mock.On call
- ctx context.Context
- token string
- patID string
func (*PATS_Expecter) IdentifyPAT ¶ added in v0.17.0
func (_e *PATS_Expecter) IdentifyPAT(ctx interface{}, paToken interface{}) *PATS_IdentifyPAT_Call
IdentifyPAT is a helper method to define mock.On call
- ctx context.Context
- paToken string
func (*PATS_Expecter) ListPATS ¶ added in v0.17.0
func (_e *PATS_Expecter) ListPATS(ctx interface{}, token interface{}, pm interface{}) *PATS_ListPATS_Call
ListPATS is a helper method to define mock.On call
- ctx context.Context
- token string
- pm auth.PATSPageMeta
func (*PATS_Expecter) ListScopes ¶ added in v0.17.0
func (_e *PATS_Expecter) ListScopes(ctx interface{}, token interface{}, pm interface{}) *PATS_ListScopes_Call
ListScopes is a helper method to define mock.On call
- ctx context.Context
- token string
- pm auth.ScopesPageMeta
func (*PATS_Expecter) RemoveAllPAT ¶ added in v0.17.0
func (_e *PATS_Expecter) RemoveAllPAT(ctx interface{}, token interface{}) *PATS_RemoveAllPAT_Call
RemoveAllPAT is a helper method to define mock.On call
- ctx context.Context
- token string
func (*PATS_Expecter) RemovePATAllScope ¶ added in v0.17.0
func (_e *PATS_Expecter) RemovePATAllScope(ctx interface{}, token interface{}, patID interface{}) *PATS_RemovePATAllScope_Call
RemovePATAllScope is a helper method to define mock.On call
- ctx context.Context
- token string
- patID string
func (*PATS_Expecter) RemoveScope ¶ added in v0.17.0
func (_e *PATS_Expecter) RemoveScope(ctx interface{}, token interface{}, patID interface{}, scopeIDs ...interface{}) *PATS_RemoveScope_Call
RemoveScope is a helper method to define mock.On call
- ctx context.Context
- token string
- patID string
- scopeIDs ...string
func (*PATS_Expecter) ResetPATSecret ¶ added in v0.17.0
func (_e *PATS_Expecter) ResetPATSecret(ctx interface{}, token interface{}, patID interface{}, duration interface{}) *PATS_ResetPATSecret_Call
ResetPATSecret is a helper method to define mock.On call
- ctx context.Context
- token string
- patID string
- duration time.Duration
func (*PATS_Expecter) RetrievePAT ¶ added in v0.17.0
func (_e *PATS_Expecter) RetrievePAT(ctx interface{}, userID interface{}, patID interface{}) *PATS_RetrievePAT_Call
RetrievePAT is a helper method to define mock.On call
- ctx context.Context
- userID string
- patID string
func (*PATS_Expecter) RevokePATSecret ¶ added in v0.17.0
func (_e *PATS_Expecter) RevokePATSecret(ctx interface{}, token interface{}, patID interface{}) *PATS_RevokePATSecret_Call
RevokePATSecret is a helper method to define mock.On call
- ctx context.Context
- token string
- patID string
func (*PATS_Expecter) UpdatePATDescription ¶ added in v0.17.0
func (_e *PATS_Expecter) UpdatePATDescription(ctx interface{}, token interface{}, patID interface{}, description interface{}) *PATS_UpdatePATDescription_Call
UpdatePATDescription is a helper method to define mock.On call
- ctx context.Context
- token string
- patID string
- description string
func (*PATS_Expecter) UpdatePATName ¶ added in v0.17.0
func (_e *PATS_Expecter) UpdatePATName(ctx interface{}, token interface{}, patID interface{}, name interface{}) *PATS_UpdatePATName_Call
UpdatePATName is a helper method to define mock.On call
- ctx context.Context
- token string
- patID string
- name string
type PATS_IdentifyPAT_Call ¶ added in v0.17.0
PATS_IdentifyPAT_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IdentifyPAT'
func (*PATS_IdentifyPAT_Call) Return ¶ added in v0.17.0
func (_c *PATS_IdentifyPAT_Call) Return(pAT auth.PAT, err error) *PATS_IdentifyPAT_Call
func (*PATS_IdentifyPAT_Call) Run ¶ added in v0.17.0
func (_c *PATS_IdentifyPAT_Call) Run(run func(ctx context.Context, paToken string)) *PATS_IdentifyPAT_Call
func (*PATS_IdentifyPAT_Call) RunAndReturn ¶ added in v0.17.0
func (_c *PATS_IdentifyPAT_Call) RunAndReturn(run func(ctx context.Context, paToken string) (auth.PAT, error)) *PATS_IdentifyPAT_Call
type PATS_ListPATS_Call ¶ added in v0.17.0
PATS_ListPATS_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListPATS'
func (*PATS_ListPATS_Call) Return ¶ added in v0.17.0
func (_c *PATS_ListPATS_Call) Return(pATSPage auth.PATSPage, err error) *PATS_ListPATS_Call
func (*PATS_ListPATS_Call) Run ¶ added in v0.17.0
func (_c *PATS_ListPATS_Call) Run(run func(ctx context.Context, token string, pm auth.PATSPageMeta)) *PATS_ListPATS_Call
func (*PATS_ListPATS_Call) RunAndReturn ¶ added in v0.17.0
func (_c *PATS_ListPATS_Call) RunAndReturn(run func(ctx context.Context, token string, pm auth.PATSPageMeta) (auth.PATSPage, error)) *PATS_ListPATS_Call
type PATS_ListScopes_Call ¶ added in v0.17.0
PATS_ListScopes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListScopes'
func (*PATS_ListScopes_Call) Return ¶ added in v0.17.0
func (_c *PATS_ListScopes_Call) Return(scopesPage auth.ScopesPage, err error) *PATS_ListScopes_Call
func (*PATS_ListScopes_Call) Run ¶ added in v0.17.0
func (_c *PATS_ListScopes_Call) Run(run func(ctx context.Context, token string, pm auth.ScopesPageMeta)) *PATS_ListScopes_Call
func (*PATS_ListScopes_Call) RunAndReturn ¶ added in v0.17.0
func (_c *PATS_ListScopes_Call) RunAndReturn(run func(ctx context.Context, token string, pm auth.ScopesPageMeta) (auth.ScopesPage, error)) *PATS_ListScopes_Call
type PATS_RemoveAllPAT_Call ¶ added in v0.17.0
PATS_RemoveAllPAT_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveAllPAT'
func (*PATS_RemoveAllPAT_Call) Return ¶ added in v0.17.0
func (_c *PATS_RemoveAllPAT_Call) Return(err error) *PATS_RemoveAllPAT_Call
func (*PATS_RemoveAllPAT_Call) Run ¶ added in v0.17.0
func (_c *PATS_RemoveAllPAT_Call) Run(run func(ctx context.Context, token string)) *PATS_RemoveAllPAT_Call
func (*PATS_RemoveAllPAT_Call) RunAndReturn ¶ added in v0.17.0
func (_c *PATS_RemoveAllPAT_Call) RunAndReturn(run func(ctx context.Context, token string) error) *PATS_RemoveAllPAT_Call
type PATS_RemovePATAllScope_Call ¶ added in v0.17.0
PATS_RemovePATAllScope_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemovePATAllScope'
func (*PATS_RemovePATAllScope_Call) Return ¶ added in v0.17.0
func (_c *PATS_RemovePATAllScope_Call) Return(err error) *PATS_RemovePATAllScope_Call
func (*PATS_RemovePATAllScope_Call) Run ¶ added in v0.17.0
func (_c *PATS_RemovePATAllScope_Call) Run(run func(ctx context.Context, token string, patID string)) *PATS_RemovePATAllScope_Call
func (*PATS_RemovePATAllScope_Call) RunAndReturn ¶ added in v0.17.0
func (_c *PATS_RemovePATAllScope_Call) RunAndReturn(run func(ctx context.Context, token string, patID string) error) *PATS_RemovePATAllScope_Call
type PATS_RemoveScope_Call ¶ added in v0.17.0
PATS_RemoveScope_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveScope'
func (*PATS_RemoveScope_Call) Return ¶ added in v0.17.0
func (_c *PATS_RemoveScope_Call) Return(err error) *PATS_RemoveScope_Call
func (*PATS_RemoveScope_Call) Run ¶ added in v0.17.0
func (_c *PATS_RemoveScope_Call) Run(run func(ctx context.Context, token string, patID string, scopeIDs ...string)) *PATS_RemoveScope_Call
func (*PATS_RemoveScope_Call) RunAndReturn ¶ added in v0.17.0
func (_c *PATS_RemoveScope_Call) RunAndReturn(run func(ctx context.Context, token string, patID string, scopeIDs ...string) error) *PATS_RemoveScope_Call
type PATS_ResetPATSecret_Call ¶ added in v0.17.0
PATS_ResetPATSecret_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ResetPATSecret'
func (*PATS_ResetPATSecret_Call) Return ¶ added in v0.17.0
func (_c *PATS_ResetPATSecret_Call) Return(pAT auth.PAT, err error) *PATS_ResetPATSecret_Call
func (*PATS_ResetPATSecret_Call) Run ¶ added in v0.17.0
func (_c *PATS_ResetPATSecret_Call) Run(run func(ctx context.Context, token string, patID string, duration time.Duration)) *PATS_ResetPATSecret_Call
func (*PATS_ResetPATSecret_Call) RunAndReturn ¶ added in v0.17.0
type PATS_RetrievePAT_Call ¶ added in v0.17.0
PATS_RetrievePAT_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RetrievePAT'
func (*PATS_RetrievePAT_Call) Return ¶ added in v0.17.0
func (_c *PATS_RetrievePAT_Call) Return(pAT auth.PAT, err error) *PATS_RetrievePAT_Call
func (*PATS_RetrievePAT_Call) Run ¶ added in v0.17.0
func (_c *PATS_RetrievePAT_Call) Run(run func(ctx context.Context, userID string, patID string)) *PATS_RetrievePAT_Call
func (*PATS_RetrievePAT_Call) RunAndReturn ¶ added in v0.17.0
func (_c *PATS_RetrievePAT_Call) RunAndReturn(run func(ctx context.Context, userID string, patID string) (auth.PAT, error)) *PATS_RetrievePAT_Call
type PATS_RevokePATSecret_Call ¶ added in v0.17.0
PATS_RevokePATSecret_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RevokePATSecret'
func (*PATS_RevokePATSecret_Call) Return ¶ added in v0.17.0
func (_c *PATS_RevokePATSecret_Call) Return(err error) *PATS_RevokePATSecret_Call
func (*PATS_RevokePATSecret_Call) Run ¶ added in v0.17.0
func (_c *PATS_RevokePATSecret_Call) Run(run func(ctx context.Context, token string, patID string)) *PATS_RevokePATSecret_Call
func (*PATS_RevokePATSecret_Call) RunAndReturn ¶ added in v0.17.0
func (_c *PATS_RevokePATSecret_Call) RunAndReturn(run func(ctx context.Context, token string, patID string) error) *PATS_RevokePATSecret_Call
type PATS_UpdatePATDescription_Call ¶ added in v0.17.0
PATS_UpdatePATDescription_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdatePATDescription'
func (*PATS_UpdatePATDescription_Call) Return ¶ added in v0.17.0
func (_c *PATS_UpdatePATDescription_Call) Return(pAT auth.PAT, err error) *PATS_UpdatePATDescription_Call
func (*PATS_UpdatePATDescription_Call) Run ¶ added in v0.17.0
func (_c *PATS_UpdatePATDescription_Call) Run(run func(ctx context.Context, token string, patID string, description string)) *PATS_UpdatePATDescription_Call
func (*PATS_UpdatePATDescription_Call) RunAndReturn ¶ added in v0.17.0
func (_c *PATS_UpdatePATDescription_Call) RunAndReturn(run func(ctx context.Context, token string, patID string, description string) (auth.PAT, error)) *PATS_UpdatePATDescription_Call
type PATS_UpdatePATName_Call ¶ added in v0.17.0
PATS_UpdatePATName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdatePATName'
func (*PATS_UpdatePATName_Call) Return ¶ added in v0.17.0
func (_c *PATS_UpdatePATName_Call) Return(pAT auth.PAT, err error) *PATS_UpdatePATName_Call
func (*PATS_UpdatePATName_Call) Run ¶ added in v0.17.0
func (_c *PATS_UpdatePATName_Call) Run(run func(ctx context.Context, token string, patID string, name string)) *PATS_UpdatePATName_Call
func (*PATS_UpdatePATName_Call) RunAndReturn ¶ added in v0.17.0
func (_c *PATS_UpdatePATName_Call) RunAndReturn(run func(ctx context.Context, token string, patID string, name string) (auth.PAT, error)) *PATS_UpdatePATName_Call
type Service ¶
Service is an autogenerated mock type for the Service type
func NewService ¶
NewService creates a new instance of Service. 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 (*Service) AddScope ¶ added in v0.17.0
func (_mock *Service) AddScope(ctx context.Context, token string, patID string, scopes []auth.Scope) error
AddScope provides a mock function for the type Service
func (*Service) Authorize ¶
func (_mock *Service) Authorize(ctx context.Context, pr policies.Policy, patAuthz *auth.PATAuthz) error
Authorize provides a mock function for the type Service
func (*Service) AuthorizePAT ¶ added in v0.17.0
func (_mock *Service) AuthorizePAT(ctx context.Context, userID string, patID string, entityType auth.EntityType, domainID string, operation string, entityID string) error
AuthorizePAT provides a mock function for the type Service
func (*Service) CreatePAT ¶ added in v0.17.0
func (_mock *Service) CreatePAT(ctx context.Context, token string, name string, description string, duration time.Duration) (auth.PAT, error)
CreatePAT provides a mock function for the type Service
func (*Service) DeletePAT ¶ added in v0.17.0
DeletePAT provides a mock function for the type Service
func (*Service) EXPECT ¶ added in v0.17.0
func (_m *Service) EXPECT() *Service_Expecter
func (*Service) IdentifyPAT ¶ added in v0.17.0
IdentifyPAT provides a mock function for the type Service
func (*Service) ListPATS ¶ added in v0.17.0
func (_mock *Service) ListPATS(ctx context.Context, token string, pm auth.PATSPageMeta) (auth.PATSPage, error)
ListPATS provides a mock function for the type Service
func (*Service) ListScopes ¶ added in v0.17.0
func (_mock *Service) ListScopes(ctx context.Context, token string, pm auth.ScopesPageMeta) (auth.ScopesPage, error)
ListScopes provides a mock function for the type Service
func (*Service) ListUserRefreshTokens ¶ added in v0.19.0
func (_mock *Service) ListUserRefreshTokens(ctx context.Context, userID string) ([]auth.TokenInfo, error)
ListUserRefreshTokens provides a mock function for the type Service
func (*Service) RemoveAllPAT ¶ added in v0.17.0
RemoveAllPAT provides a mock function for the type Service
func (*Service) RemovePATAllScope ¶ added in v0.17.0
RemovePATAllScope provides a mock function for the type Service
func (*Service) RemoveScope ¶ added in v0.17.0
func (_mock *Service) RemoveScope(ctx context.Context, token string, patID string, scopeIDs ...string) error
RemoveScope provides a mock function for the type Service
func (*Service) ResetPATSecret ¶ added in v0.17.0
func (_mock *Service) ResetPATSecret(ctx context.Context, token string, patID string, duration time.Duration) (auth.PAT, error)
ResetPATSecret provides a mock function for the type Service
func (*Service) RetrieveJWKS ¶ added in v0.18.4
func (_mock *Service) RetrieveJWKS() []auth.PublicKeyInfo
RetrieveJWKS provides a mock function for the type Service
func (*Service) RetrieveKey ¶
RetrieveKey provides a mock function for the type Service
func (*Service) RetrievePAT ¶ added in v0.17.0
func (_mock *Service) RetrievePAT(ctx context.Context, userID string, patID string) (auth.PAT, error)
RetrievePAT provides a mock function for the type Service
func (*Service) RevokePATSecret ¶ added in v0.17.0
RevokePATSecret provides a mock function for the type Service
func (*Service) RevokeToken ¶ added in v0.19.0
RevokeToken provides a mock function for the type Service
type Service_AddScope_Call ¶ added in v0.17.0
Service_AddScope_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddScope'
func (*Service_AddScope_Call) Return ¶ added in v0.17.0
func (_c *Service_AddScope_Call) Return(err error) *Service_AddScope_Call
func (*Service_AddScope_Call) Run ¶ added in v0.17.0
func (_c *Service_AddScope_Call) Run(run func(ctx context.Context, token string, patID string, scopes []auth.Scope)) *Service_AddScope_Call
func (*Service_AddScope_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Service_AddScope_Call) RunAndReturn(run func(ctx context.Context, token string, patID string, scopes []auth.Scope) error) *Service_AddScope_Call
type Service_AuthorizePAT_Call ¶ added in v0.17.0
Service_AuthorizePAT_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AuthorizePAT'
func (*Service_AuthorizePAT_Call) Return ¶ added in v0.17.0
func (_c *Service_AuthorizePAT_Call) Return(err error) *Service_AuthorizePAT_Call
func (*Service_AuthorizePAT_Call) Run ¶ added in v0.17.0
func (_c *Service_AuthorizePAT_Call) Run(run func(ctx context.Context, userID string, patID string, entityType auth.EntityType, domainID string, operation string, entityID string)) *Service_AuthorizePAT_Call
func (*Service_AuthorizePAT_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Service_AuthorizePAT_Call) RunAndReturn(run func(ctx context.Context, userID string, patID string, entityType auth.EntityType, domainID string, operation string, entityID string) error) *Service_AuthorizePAT_Call
type Service_Authorize_Call ¶ added in v0.17.0
Service_Authorize_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Authorize'
func (*Service_Authorize_Call) Return ¶ added in v0.17.0
func (_c *Service_Authorize_Call) Return(err error) *Service_Authorize_Call
func (*Service_Authorize_Call) Run ¶ added in v0.17.0
func (_c *Service_Authorize_Call) Run(run func(ctx context.Context, pr policies.Policy, patAuthz *auth.PATAuthz)) *Service_Authorize_Call
func (*Service_Authorize_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Service_Authorize_Call) RunAndReturn(run func(ctx context.Context, pr policies.Policy, patAuthz *auth.PATAuthz) error) *Service_Authorize_Call
type Service_CreatePAT_Call ¶ added in v0.17.0
Service_CreatePAT_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreatePAT'
func (*Service_CreatePAT_Call) Return ¶ added in v0.17.0
func (_c *Service_CreatePAT_Call) Return(pAT auth.PAT, err error) *Service_CreatePAT_Call
func (*Service_CreatePAT_Call) Run ¶ added in v0.17.0
func (_c *Service_CreatePAT_Call) Run(run func(ctx context.Context, token string, name string, description string, duration time.Duration)) *Service_CreatePAT_Call
func (*Service_CreatePAT_Call) RunAndReturn ¶ added in v0.17.0
type Service_DeletePAT_Call ¶ added in v0.17.0
Service_DeletePAT_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeletePAT'
func (*Service_DeletePAT_Call) Return ¶ added in v0.17.0
func (_c *Service_DeletePAT_Call) Return(err error) *Service_DeletePAT_Call
func (*Service_DeletePAT_Call) Run ¶ added in v0.17.0
func (_c *Service_DeletePAT_Call) Run(run func(ctx context.Context, token string, patID string)) *Service_DeletePAT_Call
func (*Service_DeletePAT_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Service_DeletePAT_Call) RunAndReturn(run func(ctx context.Context, token string, patID string) error) *Service_DeletePAT_Call
type Service_Expecter ¶ added in v0.17.0
type Service_Expecter struct {
// contains filtered or unexported fields
}
func (*Service_Expecter) AddScope ¶ added in v0.17.0
func (_e *Service_Expecter) AddScope(ctx interface{}, token interface{}, patID interface{}, scopes interface{}) *Service_AddScope_Call
AddScope is a helper method to define mock.On call
- ctx context.Context
- token string
- patID string
- scopes []auth.Scope
func (*Service_Expecter) Authorize ¶ added in v0.17.0
func (_e *Service_Expecter) Authorize(ctx interface{}, pr interface{}, patAuthz interface{}) *Service_Authorize_Call
Authorize is a helper method to define mock.On call
- ctx context.Context
- pr policies.Policy
- patAuthz *auth.PATAuthz
func (*Service_Expecter) AuthorizePAT ¶ added in v0.17.0
func (_e *Service_Expecter) AuthorizePAT(ctx interface{}, userID interface{}, patID interface{}, entityType interface{}, domainID interface{}, operation interface{}, entityID interface{}) *Service_AuthorizePAT_Call
AuthorizePAT is a helper method to define mock.On call
- ctx context.Context
- userID string
- patID string
- entityType auth.EntityType
- domainID string
- operation string
- entityID string
func (*Service_Expecter) CreatePAT ¶ added in v0.17.0
func (_e *Service_Expecter) CreatePAT(ctx interface{}, token interface{}, name interface{}, description interface{}, duration interface{}) *Service_CreatePAT_Call
CreatePAT is a helper method to define mock.On call
- ctx context.Context
- token string
- name string
- description string
- duration time.Duration
func (*Service_Expecter) DeletePAT ¶ added in v0.17.0
func (_e *Service_Expecter) DeletePAT(ctx interface{}, token interface{}, patID interface{}) *Service_DeletePAT_Call
DeletePAT is a helper method to define mock.On call
- ctx context.Context
- token string
- patID string
func (*Service_Expecter) Identify ¶ added in v0.17.0
func (_e *Service_Expecter) Identify(ctx interface{}, token interface{}) *Service_Identify_Call
Identify is a helper method to define mock.On call
- ctx context.Context
- token string
func (*Service_Expecter) IdentifyPAT ¶ added in v0.17.0
func (_e *Service_Expecter) IdentifyPAT(ctx interface{}, paToken interface{}) *Service_IdentifyPAT_Call
IdentifyPAT is a helper method to define mock.On call
- ctx context.Context
- paToken string
func (*Service_Expecter) Issue ¶ added in v0.17.0
func (_e *Service_Expecter) Issue(ctx interface{}, token interface{}, key interface{}) *Service_Issue_Call
Issue is a helper method to define mock.On call
- ctx context.Context
- token string
- key auth.Key
func (*Service_Expecter) ListPATS ¶ added in v0.17.0
func (_e *Service_Expecter) ListPATS(ctx interface{}, token interface{}, pm interface{}) *Service_ListPATS_Call
ListPATS is a helper method to define mock.On call
- ctx context.Context
- token string
- pm auth.PATSPageMeta
func (*Service_Expecter) ListScopes ¶ added in v0.17.0
func (_e *Service_Expecter) ListScopes(ctx interface{}, token interface{}, pm interface{}) *Service_ListScopes_Call
ListScopes is a helper method to define mock.On call
- ctx context.Context
- token string
- pm auth.ScopesPageMeta
func (*Service_Expecter) ListUserRefreshTokens ¶ added in v0.19.0
func (_e *Service_Expecter) ListUserRefreshTokens(ctx interface{}, userID interface{}) *Service_ListUserRefreshTokens_Call
ListUserRefreshTokens is a helper method to define mock.On call
- ctx context.Context
- userID string
func (*Service_Expecter) RemoveAllPAT ¶ added in v0.17.0
func (_e *Service_Expecter) RemoveAllPAT(ctx interface{}, token interface{}) *Service_RemoveAllPAT_Call
RemoveAllPAT is a helper method to define mock.On call
- ctx context.Context
- token string
func (*Service_Expecter) RemovePATAllScope ¶ added in v0.17.0
func (_e *Service_Expecter) RemovePATAllScope(ctx interface{}, token interface{}, patID interface{}) *Service_RemovePATAllScope_Call
RemovePATAllScope is a helper method to define mock.On call
- ctx context.Context
- token string
- patID string
func (*Service_Expecter) RemoveScope ¶ added in v0.17.0
func (_e *Service_Expecter) RemoveScope(ctx interface{}, token interface{}, patID interface{}, scopeIDs ...interface{}) *Service_RemoveScope_Call
RemoveScope is a helper method to define mock.On call
- ctx context.Context
- token string
- patID string
- scopeIDs ...string
func (*Service_Expecter) ResetPATSecret ¶ added in v0.17.0
func (_e *Service_Expecter) ResetPATSecret(ctx interface{}, token interface{}, patID interface{}, duration interface{}) *Service_ResetPATSecret_Call
ResetPATSecret is a helper method to define mock.On call
- ctx context.Context
- token string
- patID string
- duration time.Duration
func (*Service_Expecter) RetrieveJWKS ¶ added in v0.18.4
func (_e *Service_Expecter) RetrieveJWKS() *Service_RetrieveJWKS_Call
RetrieveJWKS is a helper method to define mock.On call
func (*Service_Expecter) RetrieveKey ¶ added in v0.17.0
func (_e *Service_Expecter) RetrieveKey(ctx interface{}, token interface{}, id interface{}) *Service_RetrieveKey_Call
RetrieveKey is a helper method to define mock.On call
- ctx context.Context
- token string
- id string
func (*Service_Expecter) RetrievePAT ¶ added in v0.17.0
func (_e *Service_Expecter) RetrievePAT(ctx interface{}, userID interface{}, patID interface{}) *Service_RetrievePAT_Call
RetrievePAT is a helper method to define mock.On call
- ctx context.Context
- userID string
- patID string
func (*Service_Expecter) Revoke ¶ added in v0.17.0
func (_e *Service_Expecter) Revoke(ctx interface{}, token interface{}, id interface{}) *Service_Revoke_Call
Revoke is a helper method to define mock.On call
- ctx context.Context
- token string
- id string
func (*Service_Expecter) RevokePATSecret ¶ added in v0.17.0
func (_e *Service_Expecter) RevokePATSecret(ctx interface{}, token interface{}, patID interface{}) *Service_RevokePATSecret_Call
RevokePATSecret is a helper method to define mock.On call
- ctx context.Context
- token string
- patID string
func (*Service_Expecter) RevokeToken ¶ added in v0.19.0
func (_e *Service_Expecter) RevokeToken(ctx interface{}, userID interface{}, tokenID interface{}) *Service_RevokeToken_Call
RevokeToken is a helper method to define mock.On call
- ctx context.Context
- userID string
- tokenID string
func (*Service_Expecter) UpdatePATDescription ¶ added in v0.17.0
func (_e *Service_Expecter) UpdatePATDescription(ctx interface{}, token interface{}, patID interface{}, description interface{}) *Service_UpdatePATDescription_Call
UpdatePATDescription is a helper method to define mock.On call
- ctx context.Context
- token string
- patID string
- description string
func (*Service_Expecter) UpdatePATName ¶ added in v0.17.0
func (_e *Service_Expecter) UpdatePATName(ctx interface{}, token interface{}, patID interface{}, name interface{}) *Service_UpdatePATName_Call
UpdatePATName is a helper method to define mock.On call
- ctx context.Context
- token string
- patID string
- name string
type Service_IdentifyPAT_Call ¶ added in v0.17.0
Service_IdentifyPAT_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IdentifyPAT'
func (*Service_IdentifyPAT_Call) Return ¶ added in v0.17.0
func (_c *Service_IdentifyPAT_Call) Return(pAT auth.PAT, err error) *Service_IdentifyPAT_Call
func (*Service_IdentifyPAT_Call) Run ¶ added in v0.17.0
func (_c *Service_IdentifyPAT_Call) Run(run func(ctx context.Context, paToken string)) *Service_IdentifyPAT_Call
func (*Service_IdentifyPAT_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Service_IdentifyPAT_Call) RunAndReturn(run func(ctx context.Context, paToken string) (auth.PAT, error)) *Service_IdentifyPAT_Call
type Service_Identify_Call ¶ added in v0.17.0
Service_Identify_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Identify'
func (*Service_Identify_Call) Return ¶ added in v0.17.0
func (_c *Service_Identify_Call) Return(key auth.Key, err error) *Service_Identify_Call
func (*Service_Identify_Call) Run ¶ added in v0.17.0
func (_c *Service_Identify_Call) Run(run func(ctx context.Context, token string)) *Service_Identify_Call
func (*Service_Identify_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Service_Identify_Call) RunAndReturn(run func(ctx context.Context, token string) (auth.Key, error)) *Service_Identify_Call
type Service_Issue_Call ¶ added in v0.17.0
Service_Issue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Issue'
func (*Service_Issue_Call) Return ¶ added in v0.17.0
func (_c *Service_Issue_Call) Return(token1 auth.Token, err error) *Service_Issue_Call
func (*Service_Issue_Call) Run ¶ added in v0.17.0
func (_c *Service_Issue_Call) Run(run func(ctx context.Context, token string, key auth.Key)) *Service_Issue_Call
func (*Service_Issue_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Service_Issue_Call) RunAndReturn(run func(ctx context.Context, token string, key auth.Key) (auth.Token, error)) *Service_Issue_Call
type Service_ListPATS_Call ¶ added in v0.17.0
Service_ListPATS_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListPATS'
func (*Service_ListPATS_Call) Return ¶ added in v0.17.0
func (_c *Service_ListPATS_Call) Return(pATSPage auth.PATSPage, err error) *Service_ListPATS_Call
func (*Service_ListPATS_Call) Run ¶ added in v0.17.0
func (_c *Service_ListPATS_Call) Run(run func(ctx context.Context, token string, pm auth.PATSPageMeta)) *Service_ListPATS_Call
func (*Service_ListPATS_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Service_ListPATS_Call) RunAndReturn(run func(ctx context.Context, token string, pm auth.PATSPageMeta) (auth.PATSPage, error)) *Service_ListPATS_Call
type Service_ListScopes_Call ¶ added in v0.17.0
Service_ListScopes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListScopes'
func (*Service_ListScopes_Call) Return ¶ added in v0.17.0
func (_c *Service_ListScopes_Call) Return(scopesPage auth.ScopesPage, err error) *Service_ListScopes_Call
func (*Service_ListScopes_Call) Run ¶ added in v0.17.0
func (_c *Service_ListScopes_Call) Run(run func(ctx context.Context, token string, pm auth.ScopesPageMeta)) *Service_ListScopes_Call
func (*Service_ListScopes_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Service_ListScopes_Call) RunAndReturn(run func(ctx context.Context, token string, pm auth.ScopesPageMeta) (auth.ScopesPage, error)) *Service_ListScopes_Call
type Service_ListUserRefreshTokens_Call ¶ added in v0.19.0
Service_ListUserRefreshTokens_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListUserRefreshTokens'
func (*Service_ListUserRefreshTokens_Call) Return ¶ added in v0.19.0
func (_c *Service_ListUserRefreshTokens_Call) Return(tokenInfos []auth.TokenInfo, err error) *Service_ListUserRefreshTokens_Call
func (*Service_ListUserRefreshTokens_Call) Run ¶ added in v0.19.0
func (_c *Service_ListUserRefreshTokens_Call) Run(run func(ctx context.Context, userID string)) *Service_ListUserRefreshTokens_Call
func (*Service_ListUserRefreshTokens_Call) RunAndReturn ¶ added in v0.19.0
func (_c *Service_ListUserRefreshTokens_Call) RunAndReturn(run func(ctx context.Context, userID string) ([]auth.TokenInfo, error)) *Service_ListUserRefreshTokens_Call
type Service_RemoveAllPAT_Call ¶ added in v0.17.0
Service_RemoveAllPAT_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveAllPAT'
func (*Service_RemoveAllPAT_Call) Return ¶ added in v0.17.0
func (_c *Service_RemoveAllPAT_Call) Return(err error) *Service_RemoveAllPAT_Call
func (*Service_RemoveAllPAT_Call) Run ¶ added in v0.17.0
func (_c *Service_RemoveAllPAT_Call) Run(run func(ctx context.Context, token string)) *Service_RemoveAllPAT_Call
func (*Service_RemoveAllPAT_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Service_RemoveAllPAT_Call) RunAndReturn(run func(ctx context.Context, token string) error) *Service_RemoveAllPAT_Call
type Service_RemovePATAllScope_Call ¶ added in v0.17.0
Service_RemovePATAllScope_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemovePATAllScope'
func (*Service_RemovePATAllScope_Call) Return ¶ added in v0.17.0
func (_c *Service_RemovePATAllScope_Call) Return(err error) *Service_RemovePATAllScope_Call
func (*Service_RemovePATAllScope_Call) Run ¶ added in v0.17.0
func (_c *Service_RemovePATAllScope_Call) Run(run func(ctx context.Context, token string, patID string)) *Service_RemovePATAllScope_Call
func (*Service_RemovePATAllScope_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Service_RemovePATAllScope_Call) RunAndReturn(run func(ctx context.Context, token string, patID string) error) *Service_RemovePATAllScope_Call
type Service_RemoveScope_Call ¶ added in v0.17.0
Service_RemoveScope_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveScope'
func (*Service_RemoveScope_Call) Return ¶ added in v0.17.0
func (_c *Service_RemoveScope_Call) Return(err error) *Service_RemoveScope_Call
func (*Service_RemoveScope_Call) Run ¶ added in v0.17.0
func (_c *Service_RemoveScope_Call) Run(run func(ctx context.Context, token string, patID string, scopeIDs ...string)) *Service_RemoveScope_Call
func (*Service_RemoveScope_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Service_RemoveScope_Call) RunAndReturn(run func(ctx context.Context, token string, patID string, scopeIDs ...string) error) *Service_RemoveScope_Call
type Service_ResetPATSecret_Call ¶ added in v0.17.0
Service_ResetPATSecret_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ResetPATSecret'
func (*Service_ResetPATSecret_Call) Return ¶ added in v0.17.0
func (_c *Service_ResetPATSecret_Call) Return(pAT auth.PAT, err error) *Service_ResetPATSecret_Call
func (*Service_ResetPATSecret_Call) Run ¶ added in v0.17.0
func (_c *Service_ResetPATSecret_Call) Run(run func(ctx context.Context, token string, patID string, duration time.Duration)) *Service_ResetPATSecret_Call
func (*Service_ResetPATSecret_Call) RunAndReturn ¶ added in v0.17.0
type Service_RetrieveJWKS_Call ¶ added in v0.18.4
Service_RetrieveJWKS_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RetrieveJWKS'
func (*Service_RetrieveJWKS_Call) Return ¶ added in v0.18.4
func (_c *Service_RetrieveJWKS_Call) Return(publicKeyInfos []auth.PublicKeyInfo) *Service_RetrieveJWKS_Call
func (*Service_RetrieveJWKS_Call) Run ¶ added in v0.18.4
func (_c *Service_RetrieveJWKS_Call) Run(run func()) *Service_RetrieveJWKS_Call
func (*Service_RetrieveJWKS_Call) RunAndReturn ¶ added in v0.18.4
func (_c *Service_RetrieveJWKS_Call) RunAndReturn(run func() []auth.PublicKeyInfo) *Service_RetrieveJWKS_Call
type Service_RetrieveKey_Call ¶ added in v0.17.0
Service_RetrieveKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RetrieveKey'
func (*Service_RetrieveKey_Call) Return ¶ added in v0.17.0
func (_c *Service_RetrieveKey_Call) Return(key auth.Key, err error) *Service_RetrieveKey_Call
func (*Service_RetrieveKey_Call) Run ¶ added in v0.17.0
func (_c *Service_RetrieveKey_Call) Run(run func(ctx context.Context, token string, id string)) *Service_RetrieveKey_Call
func (*Service_RetrieveKey_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Service_RetrieveKey_Call) RunAndReturn(run func(ctx context.Context, token string, id string) (auth.Key, error)) *Service_RetrieveKey_Call
type Service_RetrievePAT_Call ¶ added in v0.17.0
Service_RetrievePAT_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RetrievePAT'
func (*Service_RetrievePAT_Call) Return ¶ added in v0.17.0
func (_c *Service_RetrievePAT_Call) Return(pAT auth.PAT, err error) *Service_RetrievePAT_Call
func (*Service_RetrievePAT_Call) Run ¶ added in v0.17.0
func (_c *Service_RetrievePAT_Call) Run(run func(ctx context.Context, userID string, patID string)) *Service_RetrievePAT_Call
func (*Service_RetrievePAT_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Service_RetrievePAT_Call) RunAndReturn(run func(ctx context.Context, userID string, patID string) (auth.PAT, error)) *Service_RetrievePAT_Call
type Service_RevokePATSecret_Call ¶ added in v0.17.0
Service_RevokePATSecret_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RevokePATSecret'
func (*Service_RevokePATSecret_Call) Return ¶ added in v0.17.0
func (_c *Service_RevokePATSecret_Call) Return(err error) *Service_RevokePATSecret_Call
func (*Service_RevokePATSecret_Call) Run ¶ added in v0.17.0
func (_c *Service_RevokePATSecret_Call) Run(run func(ctx context.Context, token string, patID string)) *Service_RevokePATSecret_Call
func (*Service_RevokePATSecret_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Service_RevokePATSecret_Call) RunAndReturn(run func(ctx context.Context, token string, patID string) error) *Service_RevokePATSecret_Call
type Service_RevokeToken_Call ¶ added in v0.19.0
Service_RevokeToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RevokeToken'
func (*Service_RevokeToken_Call) Return ¶ added in v0.19.0
func (_c *Service_RevokeToken_Call) Return(err error) *Service_RevokeToken_Call
func (*Service_RevokeToken_Call) Run ¶ added in v0.19.0
func (_c *Service_RevokeToken_Call) Run(run func(ctx context.Context, userID string, tokenID string)) *Service_RevokeToken_Call
func (*Service_RevokeToken_Call) RunAndReturn ¶ added in v0.19.0
func (_c *Service_RevokeToken_Call) RunAndReturn(run func(ctx context.Context, userID string, tokenID string) error) *Service_RevokeToken_Call
type Service_Revoke_Call ¶ added in v0.17.0
Service_Revoke_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Revoke'
func (*Service_Revoke_Call) Return ¶ added in v0.17.0
func (_c *Service_Revoke_Call) Return(err error) *Service_Revoke_Call
func (*Service_Revoke_Call) Run ¶ added in v0.17.0
func (_c *Service_Revoke_Call) Run(run func(ctx context.Context, token string, id string)) *Service_Revoke_Call
func (*Service_Revoke_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Service_Revoke_Call) RunAndReturn(run func(ctx context.Context, token string, id string) error) *Service_Revoke_Call
type Service_UpdatePATDescription_Call ¶ added in v0.17.0
Service_UpdatePATDescription_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdatePATDescription'
func (*Service_UpdatePATDescription_Call) Return ¶ added in v0.17.0
func (_c *Service_UpdatePATDescription_Call) Return(pAT auth.PAT, err error) *Service_UpdatePATDescription_Call
func (*Service_UpdatePATDescription_Call) Run ¶ added in v0.17.0
func (_c *Service_UpdatePATDescription_Call) Run(run func(ctx context.Context, token string, patID string, description string)) *Service_UpdatePATDescription_Call
func (*Service_UpdatePATDescription_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Service_UpdatePATDescription_Call) RunAndReturn(run func(ctx context.Context, token string, patID string, description string) (auth.PAT, error)) *Service_UpdatePATDescription_Call
type Service_UpdatePATName_Call ¶ added in v0.17.0
Service_UpdatePATName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdatePATName'
func (*Service_UpdatePATName_Call) Return ¶ added in v0.17.0
func (_c *Service_UpdatePATName_Call) Return(pAT auth.PAT, err error) *Service_UpdatePATName_Call
func (*Service_UpdatePATName_Call) Run ¶ added in v0.17.0
func (_c *Service_UpdatePATName_Call) Run(run func(ctx context.Context, token string, patID string, name string)) *Service_UpdatePATName_Call
func (*Service_UpdatePATName_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Service_UpdatePATName_Call) RunAndReturn(run func(ctx context.Context, token string, patID string, name string) (auth.PAT, error)) *Service_UpdatePATName_Call
type TokenServiceClient ¶
TokenServiceClient is an autogenerated mock type for the TokenServiceClient type
func NewTokenServiceClient ¶
func NewTokenServiceClient(t interface {
mock.TestingT
Cleanup(func())
}) *TokenServiceClient
NewTokenServiceClient creates a new instance of TokenServiceClient. 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 (*TokenServiceClient) EXPECT ¶
func (_m *TokenServiceClient) EXPECT() *TokenServiceClient_Expecter
func (*TokenServiceClient) Issue ¶
func (_mock *TokenServiceClient) Issue(ctx context.Context, in *v1.IssueReq, opts ...grpc.CallOption) (*v1.Token, error)
Issue provides a mock function for the type TokenServiceClient
func (*TokenServiceClient) ListUserRefreshTokens ¶ added in v0.19.0
func (_mock *TokenServiceClient) ListUserRefreshTokens(ctx context.Context, in *v1.ListUserRefreshTokensReq, opts ...grpc.CallOption) (*v1.ListUserRefreshTokensRes, error)
ListUserRefreshTokens provides a mock function for the type TokenServiceClient
func (*TokenServiceClient) Refresh ¶
func (_mock *TokenServiceClient) Refresh(ctx context.Context, in *v1.RefreshReq, opts ...grpc.CallOption) (*v1.Token, error)
Refresh provides a mock function for the type TokenServiceClient
func (*TokenServiceClient) Revoke ¶ added in v0.19.0
func (_mock *TokenServiceClient) Revoke(ctx context.Context, in *v1.RevokeReq, opts ...grpc.CallOption) (*v1.RevokeRes, error)
Revoke provides a mock function for the type TokenServiceClient
type TokenServiceClient_Expecter ¶
type TokenServiceClient_Expecter struct {
// contains filtered or unexported fields
}
func (*TokenServiceClient_Expecter) Issue ¶
func (_e *TokenServiceClient_Expecter) Issue(ctx interface{}, in interface{}, opts ...interface{}) *TokenServiceClient_Issue_Call
Issue is a helper method to define mock.On call
- ctx context.Context
- in *v1.IssueReq
- opts ...grpc.CallOption
func (*TokenServiceClient_Expecter) ListUserRefreshTokens ¶ added in v0.19.0
func (_e *TokenServiceClient_Expecter) ListUserRefreshTokens(ctx interface{}, in interface{}, opts ...interface{}) *TokenServiceClient_ListUserRefreshTokens_Call
ListUserRefreshTokens is a helper method to define mock.On call
- ctx context.Context
- in *v1.ListUserRefreshTokensReq
- opts ...grpc.CallOption
func (*TokenServiceClient_Expecter) Refresh ¶
func (_e *TokenServiceClient_Expecter) Refresh(ctx interface{}, in interface{}, opts ...interface{}) *TokenServiceClient_Refresh_Call
Refresh is a helper method to define mock.On call
- ctx context.Context
- in *v1.RefreshReq
- opts ...grpc.CallOption
func (*TokenServiceClient_Expecter) Revoke ¶ added in v0.19.0
func (_e *TokenServiceClient_Expecter) Revoke(ctx interface{}, in interface{}, opts ...interface{}) *TokenServiceClient_Revoke_Call
Revoke is a helper method to define mock.On call
- ctx context.Context
- in *v1.RevokeReq
- opts ...grpc.CallOption
type TokenServiceClient_Issue_Call ¶
TokenServiceClient_Issue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Issue'
func (*TokenServiceClient_Issue_Call) Return ¶
func (_c *TokenServiceClient_Issue_Call) Return(token *v1.Token, err error) *TokenServiceClient_Issue_Call
func (*TokenServiceClient_Issue_Call) Run ¶
func (_c *TokenServiceClient_Issue_Call) Run(run func(ctx context.Context, in *v1.IssueReq, opts ...grpc.CallOption)) *TokenServiceClient_Issue_Call
func (*TokenServiceClient_Issue_Call) RunAndReturn ¶
func (_c *TokenServiceClient_Issue_Call) RunAndReturn(run func(ctx context.Context, in *v1.IssueReq, opts ...grpc.CallOption) (*v1.Token, error)) *TokenServiceClient_Issue_Call
type TokenServiceClient_ListUserRefreshTokens_Call ¶ added in v0.19.0
TokenServiceClient_ListUserRefreshTokens_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListUserRefreshTokens'
func (*TokenServiceClient_ListUserRefreshTokens_Call) Return ¶ added in v0.19.0
func (_c *TokenServiceClient_ListUserRefreshTokens_Call) Return(listUserRefreshTokensRes *v1.ListUserRefreshTokensRes, err error) *TokenServiceClient_ListUserRefreshTokens_Call
func (*TokenServiceClient_ListUserRefreshTokens_Call) Run ¶ added in v0.19.0
func (_c *TokenServiceClient_ListUserRefreshTokens_Call) Run(run func(ctx context.Context, in *v1.ListUserRefreshTokensReq, opts ...grpc.CallOption)) *TokenServiceClient_ListUserRefreshTokens_Call
func (*TokenServiceClient_ListUserRefreshTokens_Call) RunAndReturn ¶ added in v0.19.0
func (_c *TokenServiceClient_ListUserRefreshTokens_Call) RunAndReturn(run func(ctx context.Context, in *v1.ListUserRefreshTokensReq, opts ...grpc.CallOption) (*v1.ListUserRefreshTokensRes, error)) *TokenServiceClient_ListUserRefreshTokens_Call
type TokenServiceClient_Refresh_Call ¶
TokenServiceClient_Refresh_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Refresh'
func (*TokenServiceClient_Refresh_Call) Return ¶
func (_c *TokenServiceClient_Refresh_Call) Return(token *v1.Token, err error) *TokenServiceClient_Refresh_Call
func (*TokenServiceClient_Refresh_Call) Run ¶
func (_c *TokenServiceClient_Refresh_Call) Run(run func(ctx context.Context, in *v1.RefreshReq, opts ...grpc.CallOption)) *TokenServiceClient_Refresh_Call
func (*TokenServiceClient_Refresh_Call) RunAndReturn ¶
func (_c *TokenServiceClient_Refresh_Call) RunAndReturn(run func(ctx context.Context, in *v1.RefreshReq, opts ...grpc.CallOption) (*v1.Token, error)) *TokenServiceClient_Refresh_Call
type TokenServiceClient_Revoke_Call ¶ added in v0.19.0
TokenServiceClient_Revoke_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Revoke'
func (*TokenServiceClient_Revoke_Call) Return ¶ added in v0.19.0
func (_c *TokenServiceClient_Revoke_Call) Return(revokeRes *v1.RevokeRes, err error) *TokenServiceClient_Revoke_Call
func (*TokenServiceClient_Revoke_Call) Run ¶ added in v0.19.0
func (_c *TokenServiceClient_Revoke_Call) Run(run func(ctx context.Context, in *v1.RevokeReq, opts ...grpc.CallOption)) *TokenServiceClient_Revoke_Call
func (*TokenServiceClient_Revoke_Call) RunAndReturn ¶ added in v0.19.0
func (_c *TokenServiceClient_Revoke_Call) RunAndReturn(run func(ctx context.Context, in *v1.RevokeReq, opts ...grpc.CallOption) (*v1.RevokeRes, error)) *TokenServiceClient_Revoke_Call
type Tokenizer ¶ added in v0.18.4
Tokenizer is an autogenerated mock type for the Tokenizer type
func NewTokenizer ¶ added in v0.18.4
NewTokenizer creates a new instance of Tokenizer. 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 (*Tokenizer) EXPECT ¶ added in v0.18.4
func (_m *Tokenizer) EXPECT() *Tokenizer_Expecter
func (*Tokenizer) RetrieveJWKS ¶ added in v0.18.4
func (_mock *Tokenizer) RetrieveJWKS() ([]auth.PublicKeyInfo, error)
RetrieveJWKS provides a mock function for the type Tokenizer
type Tokenizer_Expecter ¶ added in v0.18.4
type Tokenizer_Expecter struct {
// contains filtered or unexported fields
}
func (*Tokenizer_Expecter) Issue ¶ added in v0.18.4
func (_e *Tokenizer_Expecter) Issue(key interface{}) *Tokenizer_Issue_Call
Issue is a helper method to define mock.On call
- key auth.Key
func (*Tokenizer_Expecter) Parse ¶ added in v0.18.4
func (_e *Tokenizer_Expecter) Parse(ctx interface{}, token interface{}) *Tokenizer_Parse_Call
Parse is a helper method to define mock.On call
- ctx context.Context
- token string
func (*Tokenizer_Expecter) RetrieveJWKS ¶ added in v0.18.4
func (_e *Tokenizer_Expecter) RetrieveJWKS() *Tokenizer_RetrieveJWKS_Call
RetrieveJWKS is a helper method to define mock.On call
type Tokenizer_Issue_Call ¶ added in v0.18.4
Tokenizer_Issue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Issue'
func (*Tokenizer_Issue_Call) Return ¶ added in v0.18.4
func (_c *Tokenizer_Issue_Call) Return(token string, err error) *Tokenizer_Issue_Call
func (*Tokenizer_Issue_Call) Run ¶ added in v0.18.4
func (_c *Tokenizer_Issue_Call) Run(run func(key auth.Key)) *Tokenizer_Issue_Call
func (*Tokenizer_Issue_Call) RunAndReturn ¶ added in v0.18.4
func (_c *Tokenizer_Issue_Call) RunAndReturn(run func(key auth.Key) (string, error)) *Tokenizer_Issue_Call
type Tokenizer_Parse_Call ¶ added in v0.18.4
Tokenizer_Parse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Parse'
func (*Tokenizer_Parse_Call) Return ¶ added in v0.18.4
func (_c *Tokenizer_Parse_Call) Return(key auth.Key, err error) *Tokenizer_Parse_Call
func (*Tokenizer_Parse_Call) Run ¶ added in v0.18.4
func (_c *Tokenizer_Parse_Call) Run(run func(ctx context.Context, token string)) *Tokenizer_Parse_Call
func (*Tokenizer_Parse_Call) RunAndReturn ¶ added in v0.18.4
func (_c *Tokenizer_Parse_Call) RunAndReturn(run func(ctx context.Context, token string) (auth.Key, error)) *Tokenizer_Parse_Call
type Tokenizer_RetrieveJWKS_Call ¶ added in v0.18.4
Tokenizer_RetrieveJWKS_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RetrieveJWKS'
func (*Tokenizer_RetrieveJWKS_Call) Return ¶ added in v0.18.4
func (_c *Tokenizer_RetrieveJWKS_Call) Return(publicKeyInfos []auth.PublicKeyInfo, err error) *Tokenizer_RetrieveJWKS_Call
func (*Tokenizer_RetrieveJWKS_Call) Run ¶ added in v0.18.4
func (_c *Tokenizer_RetrieveJWKS_Call) Run(run func()) *Tokenizer_RetrieveJWKS_Call
func (*Tokenizer_RetrieveJWKS_Call) RunAndReturn ¶ added in v0.18.4
func (_c *Tokenizer_RetrieveJWKS_Call) RunAndReturn(run func() ([]auth.PublicKeyInfo, error)) *Tokenizer_RetrieveJWKS_Call
type UserActiveTokensCache ¶ added in v0.19.0
UserActiveTokensCache is an autogenerated mock type for the UserActiveTokensCache type
func NewUserActiveTokensCache ¶ added in v0.19.0
func NewUserActiveTokensCache(t interface {
mock.TestingT
Cleanup(func())
}) *UserActiveTokensCache
NewUserActiveTokensCache creates a new instance of UserActiveTokensCache. 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 (*UserActiveTokensCache) EXPECT ¶ added in v0.19.0
func (_m *UserActiveTokensCache) EXPECT() *UserActiveTokensCache_Expecter
func (*UserActiveTokensCache) IsActive ¶ added in v0.19.0
IsActive provides a mock function for the type UserActiveTokensCache
func (*UserActiveTokensCache) ListUserTokens ¶ added in v0.19.0
func (_mock *UserActiveTokensCache) ListUserTokens(ctx context.Context, userID string) ([]auth.TokenInfo, error)
ListUserTokens provides a mock function for the type UserActiveTokensCache
func (*UserActiveTokensCache) RemoveActive ¶ added in v0.19.0
func (_mock *UserActiveTokensCache) RemoveActive(ctx context.Context, userID string, tokenID string) error
RemoveActive provides a mock function for the type UserActiveTokensCache
type UserActiveTokensCache_Expecter ¶ added in v0.19.0
type UserActiveTokensCache_Expecter struct {
// contains filtered or unexported fields
}
func (*UserActiveTokensCache_Expecter) IsActive ¶ added in v0.19.0
func (_e *UserActiveTokensCache_Expecter) IsActive(ctx interface{}, tokenID interface{}) *UserActiveTokensCache_IsActive_Call
IsActive is a helper method to define mock.On call
- ctx context.Context
- tokenID string
func (*UserActiveTokensCache_Expecter) ListUserTokens ¶ added in v0.19.0
func (_e *UserActiveTokensCache_Expecter) ListUserTokens(ctx interface{}, userID interface{}) *UserActiveTokensCache_ListUserTokens_Call
ListUserTokens is a helper method to define mock.On call
- ctx context.Context
- userID string
func (*UserActiveTokensCache_Expecter) RemoveActive ¶ added in v0.19.0
func (_e *UserActiveTokensCache_Expecter) RemoveActive(ctx interface{}, userID interface{}, tokenID interface{}) *UserActiveTokensCache_RemoveActive_Call
RemoveActive is a helper method to define mock.On call
- ctx context.Context
- userID string
- tokenID string
func (*UserActiveTokensCache_Expecter) SaveActive ¶ added in v0.19.0
func (_e *UserActiveTokensCache_Expecter) SaveActive(ctx interface{}, userID interface{}, tokenID interface{}, description interface{}, expiry interface{}) *UserActiveTokensCache_SaveActive_Call
SaveActive is a helper method to define mock.On call
- ctx context.Context
- userID string
- tokenID string
- description string
- expiry time.Time
type UserActiveTokensCache_IsActive_Call ¶ added in v0.19.0
UserActiveTokensCache_IsActive_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsActive'
func (*UserActiveTokensCache_IsActive_Call) Return ¶ added in v0.19.0
func (_c *UserActiveTokensCache_IsActive_Call) Return(b bool, err error) *UserActiveTokensCache_IsActive_Call
func (*UserActiveTokensCache_IsActive_Call) Run ¶ added in v0.19.0
func (_c *UserActiveTokensCache_IsActive_Call) Run(run func(ctx context.Context, tokenID string)) *UserActiveTokensCache_IsActive_Call
func (*UserActiveTokensCache_IsActive_Call) RunAndReturn ¶ added in v0.19.0
func (_c *UserActiveTokensCache_IsActive_Call) RunAndReturn(run func(ctx context.Context, tokenID string) (bool, error)) *UserActiveTokensCache_IsActive_Call
type UserActiveTokensCache_ListUserTokens_Call ¶ added in v0.19.0
UserActiveTokensCache_ListUserTokens_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListUserTokens'
func (*UserActiveTokensCache_ListUserTokens_Call) Return ¶ added in v0.19.0
func (_c *UserActiveTokensCache_ListUserTokens_Call) Return(tokenInfos []auth.TokenInfo, err error) *UserActiveTokensCache_ListUserTokens_Call
func (*UserActiveTokensCache_ListUserTokens_Call) Run ¶ added in v0.19.0
func (_c *UserActiveTokensCache_ListUserTokens_Call) Run(run func(ctx context.Context, userID string)) *UserActiveTokensCache_ListUserTokens_Call
func (*UserActiveTokensCache_ListUserTokens_Call) RunAndReturn ¶ added in v0.19.0
func (_c *UserActiveTokensCache_ListUserTokens_Call) RunAndReturn(run func(ctx context.Context, userID string) ([]auth.TokenInfo, error)) *UserActiveTokensCache_ListUserTokens_Call
type UserActiveTokensCache_RemoveActive_Call ¶ added in v0.19.0
UserActiveTokensCache_RemoveActive_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveActive'
func (*UserActiveTokensCache_RemoveActive_Call) Return ¶ added in v0.19.0
func (_c *UserActiveTokensCache_RemoveActive_Call) Return(err error) *UserActiveTokensCache_RemoveActive_Call
func (*UserActiveTokensCache_RemoveActive_Call) Run ¶ added in v0.19.0
func (_c *UserActiveTokensCache_RemoveActive_Call) Run(run func(ctx context.Context, userID string, tokenID string)) *UserActiveTokensCache_RemoveActive_Call
func (*UserActiveTokensCache_RemoveActive_Call) RunAndReturn ¶ added in v0.19.0
func (_c *UserActiveTokensCache_RemoveActive_Call) RunAndReturn(run func(ctx context.Context, userID string, tokenID string) error) *UserActiveTokensCache_RemoveActive_Call
type UserActiveTokensCache_SaveActive_Call ¶ added in v0.19.0
UserActiveTokensCache_SaveActive_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveActive'
func (*UserActiveTokensCache_SaveActive_Call) Return ¶ added in v0.19.0
func (_c *UserActiveTokensCache_SaveActive_Call) Return(err error) *UserActiveTokensCache_SaveActive_Call
func (*UserActiveTokensCache_SaveActive_Call) Run ¶ added in v0.19.0
func (_c *UserActiveTokensCache_SaveActive_Call) Run(run func(ctx context.Context, userID string, tokenID string, description string, expiry time.Time)) *UserActiveTokensCache_SaveActive_Call
func (*UserActiveTokensCache_SaveActive_Call) RunAndReturn ¶ added in v0.19.0
func (_c *UserActiveTokensCache_SaveActive_Call) RunAndReturn(run func(ctx context.Context, userID string, tokenID string, description string, expiry time.Time) error) *UserActiveTokensCache_SaveActive_Call