automock

package
v0.0.0-...-7aca128 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthConverter

type AuthConverter struct {
	mock.Mock
}

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

func (_m *AuthConverter) ModelFromGraphQLInput(in graphql.AuthInput) (*model.Auth, error)

ModelFromGraphQLInput provides a mock function with given fields: in

func (*AuthConverter) ToGraphQL

func (_m *AuthConverter) ToGraphQL(in *model.Auth) (*graphql.Auth, error)

ToGraphQL provides a mock function with given fields: in

type Converter

type Converter struct {
	mock.Mock
}

Converter is an autogenerated mock type for the Converter type

func NewConverter

func NewConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *Converter

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

type OAuth20Service struct {
	mock.Mock
}

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

type OneTimeTokenService struct {
	mock.Mock
}

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

type Repository struct {
	mock.Mock
}

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

type SystemAuthConverter struct {
	mock.Mock
}

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

ToGraphQL provides a mock function with given fields: _a0

type SystemAuthService

type SystemAuthService struct {
	mock.Mock
}

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

type UIDService struct {
	mock.Mock
}

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:

Jump to

Keyboard shortcuts

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