Documentation ¶
Index ¶
- type ApplicationConverter
- type ApplicationService
- type ExternalTenantsService
- type HTTPDoer
- type SystemAuthService
- func (_m *SystemAuthService) Create(ctx context.Context, objectType model.SystemAuthReferenceObjectType, ...) (string, error)
- func (_m *SystemAuthService) GetByToken(ctx context.Context, token string) (*model.SystemAuth, error)
- func (_m *SystemAuthService) GetGlobal(ctx context.Context, authID string) (*model.SystemAuth, error)
- func (_m *SystemAuthService) Update(ctx context.Context, item *model.SystemAuth) error
- type TokenConverter
- type TokenGenerator
- type TokenService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationConverter ¶
ApplicationConverter is an autogenerated mock type for the ApplicationConverter type
func NewApplicationConverter ¶
func NewApplicationConverter(t interface { mock.TestingT Cleanup(func()) }) *ApplicationConverter
NewApplicationConverter creates a new instance of ApplicationConverter. 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 (*ApplicationConverter) ToGraphQL ¶
func (_m *ApplicationConverter) ToGraphQL(in *model.Application) *graphql.Application
ToGraphQL provides a mock function with given fields: in
type ApplicationService ¶
ApplicationService is an autogenerated mock type for the ApplicationService type
func NewApplicationService ¶
func NewApplicationService(t interface { mock.TestingT Cleanup(func()) }) *ApplicationService
NewApplicationService creates a new instance of ApplicationService. 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 (*ApplicationService) Get ¶
func (_m *ApplicationService) Get(ctx context.Context, id string) (*model.Application, error)
Get provides a mock function with given fields: ctx, id
func (*ApplicationService) ListLabels ¶
func (_m *ApplicationService) ListLabels(ctx context.Context, applicationID string) (map[string]*model.Label, error)
ListLabels provides a mock function with given fields: ctx, applicationID
type ExternalTenantsService ¶
ExternalTenantsService is an autogenerated mock type for the ExternalTenantsService type
func NewExternalTenantsService ¶
func NewExternalTenantsService(t interface { mock.TestingT Cleanup(func()) }) *ExternalTenantsService
NewExternalTenantsService creates a new instance of ExternalTenantsService. 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 (*ExternalTenantsService) GetTenantByID ¶
func (_m *ExternalTenantsService) GetTenantByID(ctx context.Context, id string) (*model.BusinessTenantMapping, error)
GetTenantByID provides a mock function with given fields: ctx, id
func (*ExternalTenantsService) ListByIDsAndType ¶
func (_m *ExternalTenantsService) ListByIDsAndType(ctx context.Context, ids []string, tenantType tenant.Type) ([]*model.BusinessTenantMapping, error)
ListByIDsAndType provides a mock function with given fields: ctx, ids, tenantType
type HTTPDoer ¶
HTTPDoer is an autogenerated mock type for the HTTPDoer type
func NewHTTPDoer ¶
NewHTTPDoer creates a new instance of HTTPDoer. 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.
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) Create ¶
func (_m *SystemAuthService) Create(ctx context.Context, objectType model.SystemAuthReferenceObjectType, objectID string, authInput *internalmodel.AuthInput) (string, error)
Create provides a mock function with given fields: ctx, objectType, objectID, authInput
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, authID string) (*model.SystemAuth, error)
GetGlobal provides a mock function with given fields: ctx, authID
func (*SystemAuthService) Update ¶
func (_m *SystemAuthService) Update(ctx context.Context, item *model.SystemAuth) error
Update provides a mock function with given fields: ctx, item
type TokenConverter ¶
TokenConverter is an autogenerated mock type for the TokenConverter type
func NewTokenConverter ¶
func NewTokenConverter(t interface { mock.TestingT Cleanup(func()) }) *TokenConverter
NewTokenConverter creates a new instance of TokenConverter. 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 (*TokenConverter) ToGraphQLForApplication ¶
func (_m *TokenConverter) ToGraphQLForApplication(_a0 model.OneTimeToken) (graphql.OneTimeTokenForApplication, error)
ToGraphQLForApplication provides a mock function with given fields: _a0
func (*TokenConverter) ToGraphQLForRuntime ¶
func (_m *TokenConverter) ToGraphQLForRuntime(_a0 model.OneTimeToken) graphql.OneTimeTokenForRuntime
ToGraphQLForRuntime provides a mock function with given fields: _a0
type TokenGenerator ¶
TokenGenerator is an autogenerated mock type for the TokenGenerator type
func NewTokenGenerator ¶
func NewTokenGenerator(t interface { mock.TestingT Cleanup(func()) }) *TokenGenerator
NewTokenGenerator creates a new instance of TokenGenerator. 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 (*TokenGenerator) NewToken ¶
func (_m *TokenGenerator) NewToken() (string, error)
NewToken provides a mock function with given fields:
type TokenService ¶
TokenService is an autogenerated mock type for the TokenService type
func NewTokenService ¶
func NewTokenService(t interface { mock.TestingT Cleanup(func()) }) *TokenService
NewTokenService creates a new instance of TokenService. 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 (*TokenService) GenerateOneTimeToken ¶
func (_m *TokenService) GenerateOneTimeToken(ctx context.Context, runtimeID string, tokenType model.SystemAuthReferenceObjectType) (*internalmodel.OneTimeToken, error)
GenerateOneTimeToken provides a mock function with given fields: ctx, runtimeID, tokenType
func (*TokenService) RegenerateOneTimeToken ¶
func (_m *TokenService) RegenerateOneTimeToken(ctx context.Context, sysAuthID string) (*internalmodel.OneTimeToken, error)
RegenerateOneTimeToken provides a mock function with given fields: ctx, sysAuthID