mocks

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authz

type Authz struct {
	mock.Mock
}

Authz is an autogenerated mock type for the Authz type

func NewAuthz

func NewAuthz(t interface {
	mock.TestingT
	Cleanup(func())
}) *Authz

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

type Authz_Authorize_Call struct {
	*mock.Call
}

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 (*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

type Cache struct {
	mock.Mock
}

Cache is an autogenerated mock type for the Cache type

func NewCache added in v0.17.0

func NewCache(t interface {
	mock.TestingT
	Cleanup(func())
}) *Cache

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) Remove added in v0.17.0

func (_mock *Cache) Remove(ctx context.Context, userID string, scopesID []string) error

Remove provides a mock function for the type Cache

func (*Cache) RemoveAllScope added in v0.17.0

func (_mock *Cache) RemoveAllScope(ctx context.Context, userID string, patID string) error

RemoveAllScope provides a mock function for the type Cache

func (*Cache) RemoveUserAllScope added in v0.17.0

func (_mock *Cache) RemoveUserAllScope(ctx context.Context, userID string) error

RemoveUserAllScope provides a mock function for the type Cache

func (*Cache) Save added in v0.17.0

func (_mock *Cache) Save(ctx context.Context, userID string, scopes []auth.Scope) error

Save provides a mock function for the type Cache

type Cache_CheckScope_Call added in v0.17.0

type Cache_CheckScope_Call struct {
	*mock.Call
}

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 (*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

type Cache_RemoveAllScope_Call struct {
	*mock.Call
}

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 (*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

type Cache_RemoveUserAllScope_Call struct {
	*mock.Call
}

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 (*Cache_RemoveUserAllScope_Call) Run added in v0.17.0

func (*Cache_RemoveUserAllScope_Call) RunAndReturn added in v0.17.0

type Cache_Remove_Call added in v0.17.0

type Cache_Remove_Call struct {
	*mock.Call
}

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

type Cache_Save_Call struct {
	*mock.Call
}

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

type Hasher struct {
	mock.Mock
}

Hasher is an autogenerated mock type for the Hasher type

func NewHasher added in v0.17.0

func NewHasher(t interface {
	mock.TestingT
	Cleanup(func())
}) *Hasher

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) Compare added in v0.17.0

func (_mock *Hasher) Compare(s string, s1 string) error

Compare provides a mock function for the type Hasher

func (*Hasher) EXPECT added in v0.17.0

func (_m *Hasher) EXPECT() *Hasher_Expecter

func (*Hasher) Hash added in v0.17.0

func (_mock *Hasher) Hash(s string) (string, error)

Hash provides a mock function for the type Hasher

type Hasher_Compare_Call added in v0.17.0

type Hasher_Compare_Call struct {
	*mock.Call
}

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 (*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

type Hasher_Hash_Call struct {
	*mock.Call
}

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

type KeyRepository struct {
	mock.Mock
}

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

func (*KeyRepository) Remove

func (_mock *KeyRepository) Remove(ctx context.Context, issuer string, id string) error

Remove provides a mock function for the type KeyRepository

func (*KeyRepository) Retrieve

func (_mock *KeyRepository) Retrieve(ctx context.Context, issuer string, id string) (auth.Key, error)

Retrieve provides a mock function for the type KeyRepository

func (*KeyRepository) Save

func (_mock *KeyRepository) Save(ctx context.Context, key auth.Key) (string, error)

Save provides a mock function for the type KeyRepository

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

type KeyRepository_Remove_Call struct {
	*mock.Call
}

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 (*KeyRepository_Remove_Call) Run added in v0.17.0

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

type KeyRepository_Retrieve_Call struct {
	*mock.Call
}

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 (*KeyRepository_Retrieve_Call) Run added in v0.17.0

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

type KeyRepository_Save_Call struct {
	*mock.Call
}

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 (*KeyRepository_Save_Call) Run added in v0.17.0

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

type PATS struct {
	mock.Mock
}

PATS is an autogenerated mock type for the PATS type

func NewPATS added in v0.17.0

func NewPATS(t interface {
	mock.TestingT
	Cleanup(func())
}) *PATS

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) DeletePAT added in v0.17.0

func (_mock *PATS) DeletePAT(ctx context.Context, token string, patID string) error

DeletePAT 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

func (_mock *PATS) IdentifyPAT(ctx context.Context, paToken string) (auth.PAT, error)

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

func (_mock *PATS) RemoveAllPAT(ctx context.Context, token string) error

RemoveAllPAT provides a mock function for the type PATS

func (*PATS) RemovePATAllScope added in v0.17.0

func (_mock *PATS) RemovePATAllScope(ctx context.Context, token string, patID string) error

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

func (_mock *PATS) RetrievePAT(ctx context.Context, userID string, patID string) (auth.PAT, error)

RetrievePAT provides a mock function for the type PATS

func (*PATS) RevokePATSecret added in v0.17.0

func (_mock *PATS) RevokePATSecret(ctx context.Context, token string, patID string) error

RevokePATSecret provides a mock function for the type PATS

func (*PATS) UpdatePATDescription added in v0.17.0

func (_mock *PATS) UpdatePATDescription(ctx context.Context, token string, patID string, description string) (auth.PAT, error)

UpdatePATDescription provides a mock function for the type PATS

func (*PATS) UpdatePATName added in v0.17.0

func (_mock *PATS) UpdatePATName(ctx context.Context, token string, patID string, name string) (auth.PAT, error)

UpdatePATName provides a mock function for the type PATS

type PATSRepository added in v0.17.0

type PATSRepository struct {
	mock.Mock
}

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 (*PATSRepository) Reactivate added in v0.17.0

func (_mock *PATSRepository) Reactivate(ctx context.Context, userID string, patID string) error

Reactivate provides a mock function for the type PATSRepository

func (*PATSRepository) Remove added in v0.17.0

func (_mock *PATSRepository) Remove(ctx context.Context, userID string, patID string) error

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

func (_mock *PATSRepository) Revoke(ctx context.Context, userID string, patID string) error

Revoke provides a mock function for the type PATSRepository

func (*PATSRepository) Save added in v0.17.0

func (_mock *PATSRepository) Save(ctx context.Context, pat auth.PAT) error

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

func (*PATSRepository) UpdateName added in v0.17.0

func (_mock *PATSRepository) UpdateName(ctx context.Context, userID string, patID string, name string) (auth.PAT, error)

UpdateName provides a mock function for the type PATSRepository

func (*PATSRepository) UpdateTokenHash added in v0.17.0

func (_mock *PATSRepository) UpdateTokenHash(ctx context.Context, userID string, patID string, tokenHash string, expiryAt time.Time) (auth.PAT, error)

UpdateTokenHash provides a mock function for the type PATSRepository

type PATSRepository_AddScope_Call added in v0.17.0

type PATSRepository_AddScope_Call struct {
	*mock.Call
}

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 (*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

type PATSRepository_CheckScope_Call struct {
	*mock.Call
}

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 (*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

type PATSRepository_Reactivate_Call struct {
	*mock.Call
}

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 (*PATSRepository_Reactivate_Call) Run added in v0.17.0

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

type PATSRepository_RemoveAllPAT_Call struct {
	*mock.Call
}

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 (*PATSRepository_RemoveAllPAT_Call) Run added in v0.17.0

func (*PATSRepository_RemoveAllPAT_Call) RunAndReturn added in v0.17.0

type PATSRepository_RemoveAllScope_Call added in v0.17.0

type PATSRepository_RemoveAllScope_Call struct {
	*mock.Call
}

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 (*PATSRepository_RemoveAllScope_Call) Run added in v0.17.0

func (*PATSRepository_RemoveAllScope_Call) RunAndReturn added in v0.17.0

type PATSRepository_RemoveScope_Call added in v0.17.0

type PATSRepository_RemoveScope_Call struct {
	*mock.Call
}

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 (*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

type PATSRepository_Remove_Call struct {
	*mock.Call
}

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 (*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

type PATSRepository_RetrieveAll_Call struct {
	*mock.Call
}

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 (*PATSRepository_RetrieveAll_Call) Run added in v0.17.0

func (*PATSRepository_RetrieveAll_Call) RunAndReturn added in v0.17.0

type PATSRepository_RetrieveScope_Call added in v0.17.0

type PATSRepository_RetrieveScope_Call struct {
	*mock.Call
}

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 (*PATSRepository_RetrieveScope_Call) Run added in v0.17.0

func (*PATSRepository_RetrieveScope_Call) RunAndReturn added in v0.17.0

type PATSRepository_RetrieveSecretAndRevokeStatus_Call added in v0.17.0

type PATSRepository_RetrieveSecretAndRevokeStatus_Call struct {
	*mock.Call
}

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 (*PATSRepository_RetrieveSecretAndRevokeStatus_Call) Run added in v0.17.0

func (*PATSRepository_RetrieveSecretAndRevokeStatus_Call) RunAndReturn added in v0.17.0

type PATSRepository_Retrieve_Call added in v0.17.0

type PATSRepository_Retrieve_Call struct {
	*mock.Call
}

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 (*PATSRepository_Retrieve_Call) Run added in v0.17.0

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

type PATSRepository_Revoke_Call struct {
	*mock.Call
}

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 (*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

type PATSRepository_Save_Call struct {
	*mock.Call
}

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 (*PATSRepository_Save_Call) Run added in v0.17.0

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

type PATSRepository_UpdateDescription_Call struct {
	*mock.Call
}

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 (*PATSRepository_UpdateDescription_Call) Run added in v0.17.0

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

type PATSRepository_UpdateName_Call struct {
	*mock.Call
}

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 (*PATSRepository_UpdateName_Call) Run added in v0.17.0

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

type PATSRepository_UpdateTokenHash_Call struct {
	*mock.Call
}

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 (*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

func (_c *PATSRepository_UpdateTokenHash_Call) RunAndReturn(run func(ctx context.Context, userID string, patID string, tokenHash string, expiryAt time.Time) (auth.PAT, error)) *PATSRepository_UpdateTokenHash_Call

type PATS_AddScope_Call added in v0.17.0

type PATS_AddScope_Call struct {
	*mock.Call
}

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

type PATS_AuthorizePAT_Call struct {
	*mock.Call
}

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 (*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

type PATS_CreatePAT_Call struct {
	*mock.Call
}

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

func (_c *PATS_CreatePAT_Call) RunAndReturn(run func(ctx context.Context, token string, name string, description string, duration time.Duration) (auth.PAT, error)) *PATS_CreatePAT_Call

type PATS_DeletePAT_Call added in v0.17.0

type PATS_DeletePAT_Call struct {
	*mock.Call
}

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 (*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

type PATS_IdentifyPAT_Call struct {
	*mock.Call
}

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 (*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

type PATS_ListPATS_Call struct {
	*mock.Call
}

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

type PATS_ListScopes_Call struct {
	*mock.Call
}

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 (*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

type PATS_RemoveAllPAT_Call struct {
	*mock.Call
}

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 (*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

type PATS_RemovePATAllScope_Call struct {
	*mock.Call
}

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 (*PATS_RemovePATAllScope_Call) Run added in v0.17.0

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

type PATS_RemoveScope_Call struct {
	*mock.Call
}

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 (*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

type PATS_ResetPATSecret_Call struct {
	*mock.Call
}

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 (*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

func (_c *PATS_ResetPATSecret_Call) RunAndReturn(run func(ctx context.Context, token string, patID string, duration time.Duration) (auth.PAT, error)) *PATS_ResetPATSecret_Call

type PATS_RetrievePAT_Call added in v0.17.0

type PATS_RetrievePAT_Call struct {
	*mock.Call
}

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 (*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

type PATS_RevokePATSecret_Call struct {
	*mock.Call
}

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 (*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

type PATS_UpdatePATDescription_Call struct {
	*mock.Call
}

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 (*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

type PATS_UpdatePATName_Call struct {
	*mock.Call
}

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 (*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

type Service struct {
	mock.Mock
}

Service is an autogenerated mock type for the Service type

func NewService

func NewService(t interface {
	mock.TestingT
	Cleanup(func())
}) *Service

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

func (_mock *Service) DeletePAT(ctx context.Context, token string, patID string) error

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) Identify

func (_mock *Service) Identify(ctx context.Context, token string) (auth.Key, error)

Identify provides a mock function for the type Service

func (*Service) IdentifyPAT added in v0.17.0

func (_mock *Service) IdentifyPAT(ctx context.Context, paToken string) (auth.PAT, error)

IdentifyPAT provides a mock function for the type Service

func (*Service) Issue

func (_mock *Service) Issue(ctx context.Context, token string, key auth.Key) (auth.Token, error)

Issue 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

func (_mock *Service) RemoveAllPAT(ctx context.Context, token string) error

RemoveAllPAT provides a mock function for the type Service

func (*Service) RemovePATAllScope added in v0.17.0

func (_mock *Service) RemovePATAllScope(ctx context.Context, token string, patID string) error

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

func (_mock *Service) RetrieveKey(ctx context.Context, token string, id string) (auth.Key, error)

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) Revoke

func (_mock *Service) Revoke(ctx context.Context, token string, id string) error

Revoke provides a mock function for the type Service

func (*Service) RevokePATSecret added in v0.17.0

func (_mock *Service) RevokePATSecret(ctx context.Context, token string, patID string) error

RevokePATSecret provides a mock function for the type Service

func (*Service) RevokeToken added in v0.19.0

func (_mock *Service) RevokeToken(ctx context.Context, userID string, tokenID string) error

RevokeToken provides a mock function for the type Service

func (*Service) UpdatePATDescription added in v0.17.0

func (_mock *Service) UpdatePATDescription(ctx context.Context, token string, patID string, description string) (auth.PAT, error)

UpdatePATDescription provides a mock function for the type Service

func (*Service) UpdatePATName added in v0.17.0

func (_mock *Service) UpdatePATName(ctx context.Context, token string, patID string, name string) (auth.PAT, error)

UpdatePATName provides a mock function for the type Service

type Service_AddScope_Call added in v0.17.0

type Service_AddScope_Call struct {
	*mock.Call
}

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 (*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

type Service_AuthorizePAT_Call struct {
	*mock.Call
}

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 (*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

type Service_Authorize_Call struct {
	*mock.Call
}

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 (*Service_Authorize_Call) Run added in v0.17.0

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

type Service_CreatePAT_Call struct {
	*mock.Call
}

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 (*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

func (_c *Service_CreatePAT_Call) RunAndReturn(run func(ctx context.Context, token string, name string, description string, duration time.Duration) (auth.PAT, error)) *Service_CreatePAT_Call

type Service_DeletePAT_Call added in v0.17.0

type Service_DeletePAT_Call struct {
	*mock.Call
}

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 (*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

type Service_IdentifyPAT_Call struct {
	*mock.Call
}

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 (*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

type Service_Identify_Call struct {
	*mock.Call
}

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 (*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

type Service_Issue_Call struct {
	*mock.Call
}

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

type Service_ListPATS_Call struct {
	*mock.Call
}

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 (*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

type Service_ListScopes_Call struct {
	*mock.Call
}

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 (*Service_ListScopes_Call) Run added in v0.17.0

func (*Service_ListScopes_Call) RunAndReturn added in v0.17.0

type Service_ListUserRefreshTokens_Call added in v0.19.0

type Service_ListUserRefreshTokens_Call struct {
	*mock.Call
}

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 (*Service_ListUserRefreshTokens_Call) Run added in v0.19.0

func (*Service_ListUserRefreshTokens_Call) RunAndReturn added in v0.19.0

type Service_RemoveAllPAT_Call added in v0.17.0

type Service_RemoveAllPAT_Call struct {
	*mock.Call
}

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 (*Service_RemoveAllPAT_Call) Run added in v0.17.0

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

type Service_RemovePATAllScope_Call struct {
	*mock.Call
}

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 (*Service_RemovePATAllScope_Call) Run added in v0.17.0

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

type Service_RemoveScope_Call struct {
	*mock.Call
}

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 (*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

type Service_ResetPATSecret_Call struct {
	*mock.Call
}

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 (*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

func (_c *Service_ResetPATSecret_Call) RunAndReturn(run func(ctx context.Context, token string, patID string, duration time.Duration) (auth.PAT, error)) *Service_ResetPATSecret_Call

type Service_RetrieveJWKS_Call added in v0.18.4

type Service_RetrieveJWKS_Call struct {
	*mock.Call
}

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 (*Service_RetrieveJWKS_Call) Run added in v0.18.4

func (*Service_RetrieveJWKS_Call) RunAndReturn added in v0.18.4

type Service_RetrieveKey_Call added in v0.17.0

type Service_RetrieveKey_Call struct {
	*mock.Call
}

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 (*Service_RetrieveKey_Call) Run added in v0.17.0

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

type Service_RetrievePAT_Call struct {
	*mock.Call
}

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 (*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

type Service_RevokePATSecret_Call struct {
	*mock.Call
}

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 (*Service_RevokePATSecret_Call) Run added in v0.17.0

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

type Service_RevokeToken_Call struct {
	*mock.Call
}

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 (*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

type Service_Revoke_Call struct {
	*mock.Call
}

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 (*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

type Service_UpdatePATDescription_Call struct {
	*mock.Call
}

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 (*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

type Service_UpdatePATName_Call struct {
	*mock.Call
}

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 (*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

type TokenServiceClient struct {
	mock.Mock
}

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 (*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

type TokenServiceClient_Issue_Call struct {
	*mock.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

type TokenServiceClient_ListUserRefreshTokens_Call struct {
	*mock.Call
}

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

type TokenServiceClient_Refresh_Call struct {
	*mock.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

type TokenServiceClient_Revoke_Call struct {
	*mock.Call
}

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

type Tokenizer struct {
	mock.Mock
}

Tokenizer is an autogenerated mock type for the Tokenizer type

func NewTokenizer added in v0.18.4

func NewTokenizer(t interface {
	mock.TestingT
	Cleanup(func())
}) *Tokenizer

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) Issue added in v0.18.4

func (_mock *Tokenizer) Issue(key auth.Key) (string, error)

Issue provides a mock function for the type Tokenizer

func (*Tokenizer) Parse added in v0.18.4

func (_mock *Tokenizer) Parse(ctx context.Context, token string) (auth.Key, error)

Parse provides a mock function for the type Tokenizer

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

type Tokenizer_Issue_Call struct {
	*mock.Call
}

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

type Tokenizer_Parse_Call struct {
	*mock.Call
}

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

type Tokenizer_RetrieveJWKS_Call struct {
	*mock.Call
}

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 (*Tokenizer_RetrieveJWKS_Call) Run added in v0.18.4

func (*Tokenizer_RetrieveJWKS_Call) RunAndReturn added in v0.18.4

type UserActiveTokensCache added in v0.19.0

type UserActiveTokensCache struct {
	mock.Mock
}

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 (*UserActiveTokensCache) IsActive added in v0.19.0

func (_mock *UserActiveTokensCache) IsActive(ctx context.Context, tokenID string) (bool, error)

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

func (*UserActiveTokensCache) SaveActive added in v0.19.0

func (_mock *UserActiveTokensCache) SaveActive(ctx context.Context, userID string, tokenID string, description string, expiry time.Time) error

SaveActive 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

type UserActiveTokensCache_IsActive_Call struct {
	*mock.Call
}

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 (*UserActiveTokensCache_IsActive_Call) Run added in v0.19.0

func (*UserActiveTokensCache_IsActive_Call) RunAndReturn added in v0.19.0

type UserActiveTokensCache_ListUserTokens_Call added in v0.19.0

type UserActiveTokensCache_ListUserTokens_Call struct {
	*mock.Call
}

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 (*UserActiveTokensCache_ListUserTokens_Call) Run added in v0.19.0

func (*UserActiveTokensCache_ListUserTokens_Call) RunAndReturn added in v0.19.0

type UserActiveTokensCache_RemoveActive_Call added in v0.19.0

type UserActiveTokensCache_RemoveActive_Call struct {
	*mock.Call
}

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 (*UserActiveTokensCache_RemoveActive_Call) Run added in v0.19.0

func (*UserActiveTokensCache_RemoveActive_Call) RunAndReturn added in v0.19.0

type UserActiveTokensCache_SaveActive_Call added in v0.19.0

type UserActiveTokensCache_SaveActive_Call struct {
	*mock.Call
}

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 (*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

Jump to

Keyboard shortcuts

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