Documentation ¶
Index ¶
- type AuthConverter
- type Converter
- type OAuth20Service
- type OneTimeTokenService
- type Repository
- func (_m *Repository) Create(ctx context.Context, item model.SystemAuth) error
- func (_m *Repository) DeleteByIDForObject(ctx context.Context, tenant string, id string, ...) error
- func (_m *Repository) DeleteByIDForObjectGlobal(ctx context.Context, id string, objType model.SystemAuthReferenceObjectType) error
- func (_m *Repository) GetByIDForObject(ctx context.Context, tenant string, id string, ...) (*model.SystemAuth, error)
- func (_m *Repository) GetByIDForObjectGlobal(ctx context.Context, id string, objType model.SystemAuthReferenceObjectType) (*model.SystemAuth, error)
- func (_m *Repository) GetByIDGlobal(ctx context.Context, id string) (*model.SystemAuth, error)
- func (_m *Repository) GetByJSONValue(ctx context.Context, value map[string]interface{}) (*model.SystemAuth, error)
- func (_m *Repository) ListForObject(ctx context.Context, tenant string, ...) ([]model.SystemAuth, error)
- func (_m *Repository) ListForObjectGlobal(ctx context.Context, objectType model.SystemAuthReferenceObjectType, ...) ([]model.SystemAuth, error)
- func (_m *Repository) Update(ctx context.Context, item *model.SystemAuth) error
- type SystemAuthConverter
- type SystemAuthService
- func (_m *SystemAuthService) DeleteByIDForObject(ctx context.Context, objectType model.SystemAuthReferenceObjectType, ...) error
- func (_m *SystemAuthService) GetByIDForObject(ctx context.Context, objectType model.SystemAuthReferenceObjectType, ...) (*model.SystemAuth, error)
- func (_m *SystemAuthService) GetByToken(ctx context.Context, token string) (*model.SystemAuth, error)
- func (_m *SystemAuthService) GetGlobal(ctx context.Context, id string) (*model.SystemAuth, error)
- func (_m *SystemAuthService) InvalidateToken(ctx context.Context, id string) (*model.SystemAuth, error)
- func (_m *SystemAuthService) Update(ctx context.Context, item *model.SystemAuth) error
- func (_m *SystemAuthService) UpdateValue(ctx context.Context, id string, item *internalmodel.Auth) (*model.SystemAuth, error)
- type UIDService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthConverter ¶
AuthConverter is an autogenerated mock type for the AuthConverter type
func NewAuthConverter ¶
func NewAuthConverter(t interface { mock.TestingT Cleanup(func()) }) *AuthConverter
NewAuthConverter creates a new instance of AuthConverter. 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 (*AuthConverter) ModelFromGraphQLInput ¶
ModelFromGraphQLInput provides a mock function with given fields: in
type Converter ¶
Converter is an autogenerated mock type for the Converter type
func NewConverter ¶
NewConverter creates a new instance of Converter. 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 (*Converter) FromEntity ¶
func (_m *Converter) FromEntity(in systemauth.Entity) (model.SystemAuth, error)
FromEntity provides a mock function with given fields: in
func (*Converter) ToEntity ¶
func (_m *Converter) ToEntity(in model.SystemAuth) (systemauth.Entity, error)
ToEntity provides a mock function with given fields: in
type OAuth20Service ¶
OAuth20Service is an autogenerated mock type for the OAuth20Service type
func NewOAuth20Service ¶
func NewOAuth20Service(t interface { mock.TestingT Cleanup(func()) }) *OAuth20Service
NewOAuth20Service creates a new instance of OAuth20Service. 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 (*OAuth20Service) DeleteClientCredentials ¶
func (_m *OAuth20Service) DeleteClientCredentials(ctx context.Context, clientID string) error
DeleteClientCredentials provides a mock function with given fields: ctx, clientID
type OneTimeTokenService ¶
OneTimeTokenService is an autogenerated mock type for the OneTimeTokenService type
func NewOneTimeTokenService ¶
func NewOneTimeTokenService(t interface { mock.TestingT Cleanup(func()) }) *OneTimeTokenService
NewOneTimeTokenService creates a new instance of OneTimeTokenService. 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 (*OneTimeTokenService) IsTokenValid ¶
func (_m *OneTimeTokenService) IsTokenValid(systemAuth *model.SystemAuth) (bool, error)
IsTokenValid provides a mock function with given fields: systemAuth
type Repository ¶
Repository is an autogenerated mock type for the Repository type
func NewRepository ¶
func NewRepository(t interface { mock.TestingT Cleanup(func()) }) *Repository
NewRepository creates a new instance of Repository. 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 (*Repository) Create ¶
func (_m *Repository) Create(ctx context.Context, item model.SystemAuth) error
Create provides a mock function with given fields: ctx, item
func (*Repository) DeleteByIDForObject ¶
func (_m *Repository) DeleteByIDForObject(ctx context.Context, tenant string, id string, objType model.SystemAuthReferenceObjectType) error
DeleteByIDForObject provides a mock function with given fields: ctx, tenant, id, objType
func (*Repository) DeleteByIDForObjectGlobal ¶
func (_m *Repository) DeleteByIDForObjectGlobal(ctx context.Context, id string, objType model.SystemAuthReferenceObjectType) error
DeleteByIDForObjectGlobal provides a mock function with given fields: ctx, id, objType
func (*Repository) GetByIDForObject ¶
func (_m *Repository) GetByIDForObject(ctx context.Context, tenant string, id string, objType model.SystemAuthReferenceObjectType) (*model.SystemAuth, error)
GetByIDForObject provides a mock function with given fields: ctx, tenant, id, objType
func (*Repository) GetByIDForObjectGlobal ¶
func (_m *Repository) GetByIDForObjectGlobal(ctx context.Context, id string, objType model.SystemAuthReferenceObjectType) (*model.SystemAuth, error)
GetByIDForObjectGlobal provides a mock function with given fields: ctx, id, objType
func (*Repository) GetByIDGlobal ¶
func (_m *Repository) GetByIDGlobal(ctx context.Context, id string) (*model.SystemAuth, error)
GetByIDGlobal provides a mock function with given fields: ctx, id
func (*Repository) GetByJSONValue ¶
func (_m *Repository) GetByJSONValue(ctx context.Context, value map[string]interface{}) (*model.SystemAuth, error)
GetByJSONValue provides a mock function with given fields: ctx, value
func (*Repository) ListForObject ¶
func (_m *Repository) ListForObject(ctx context.Context, tenant string, objectType model.SystemAuthReferenceObjectType, objectID string) ([]model.SystemAuth, error)
ListForObject provides a mock function with given fields: ctx, tenant, objectType, objectID
func (*Repository) ListForObjectGlobal ¶
func (_m *Repository) ListForObjectGlobal(ctx context.Context, objectType model.SystemAuthReferenceObjectType, objectID string) ([]model.SystemAuth, error)
ListForObjectGlobal provides a mock function with given fields: ctx, objectType, objectID
func (*Repository) Update ¶
func (_m *Repository) Update(ctx context.Context, item *model.SystemAuth) error
Update provides a mock function with given fields: ctx, item
type SystemAuthConverter ¶
SystemAuthConverter is an autogenerated mock type for the SystemAuthConverter type
func NewSystemAuthConverter ¶
func NewSystemAuthConverter(t interface { mock.TestingT Cleanup(func()) }) *SystemAuthConverter
NewSystemAuthConverter creates a new instance of SystemAuthConverter. 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 (*SystemAuthConverter) ToGraphQL ¶
func (_m *SystemAuthConverter) ToGraphQL(_a0 *model.SystemAuth) (graphql.SystemAuth, error)
ToGraphQL provides a mock function with given fields: _a0
type SystemAuthService ¶
SystemAuthService is an autogenerated mock type for the SystemAuthService type
func NewSystemAuthService ¶
func NewSystemAuthService(t interface { mock.TestingT Cleanup(func()) }) *SystemAuthService
NewSystemAuthService creates a new instance of SystemAuthService. 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 (*SystemAuthService) DeleteByIDForObject ¶
func (_m *SystemAuthService) DeleteByIDForObject(ctx context.Context, objectType model.SystemAuthReferenceObjectType, authID string) error
DeleteByIDForObject provides a mock function with given fields: ctx, objectType, authID
func (*SystemAuthService) GetByIDForObject ¶
func (_m *SystemAuthService) GetByIDForObject(ctx context.Context, objectType model.SystemAuthReferenceObjectType, authID string) (*model.SystemAuth, error)
GetByIDForObject provides a mock function with given fields: ctx, objectType, authID
func (*SystemAuthService) GetByToken ¶
func (_m *SystemAuthService) GetByToken(ctx context.Context, token string) (*model.SystemAuth, error)
GetByToken provides a mock function with given fields: ctx, token
func (*SystemAuthService) GetGlobal ¶
func (_m *SystemAuthService) GetGlobal(ctx context.Context, id string) (*model.SystemAuth, error)
GetGlobal provides a mock function with given fields: ctx, id
func (*SystemAuthService) InvalidateToken ¶
func (_m *SystemAuthService) InvalidateToken(ctx context.Context, id string) (*model.SystemAuth, error)
InvalidateToken provides a mock function with given fields: ctx, id
func (*SystemAuthService) Update ¶
func (_m *SystemAuthService) Update(ctx context.Context, item *model.SystemAuth) error
Update provides a mock function with given fields: ctx, item
func (*SystemAuthService) UpdateValue ¶
func (_m *SystemAuthService) UpdateValue(ctx context.Context, id string, item *internalmodel.Auth) (*model.SystemAuth, error)
UpdateValue provides a mock function with given fields: ctx, id, item
type UIDService ¶
UIDService is an autogenerated mock type for the UIDService type
func NewUIDService ¶
func NewUIDService(t interface { mock.TestingT Cleanup(func()) }) *UIDService
NewUIDService creates a new instance of UIDService. 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 (*UIDService) Generate ¶
func (_m *UIDService) Generate() string
Generate provides a mock function with given fields: