automock

package
v0.0.0-...-5d7c5bf 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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationConverter

type ApplicationConverter struct {
	mock.Mock
}

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

ToGraphQL provides a mock function with given fields: in

type ApplicationService

type ApplicationService struct {
	mock.Mock
}

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

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

type ExternalTenantsService struct {
	mock.Mock
}

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

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

type HTTPDoer struct {
	mock.Mock
}

HTTPDoer is an autogenerated mock type for the HTTPDoer type

func NewHTTPDoer

func NewHTTPDoer(t interface {
	mock.TestingT
	Cleanup(func())
}) *HTTPDoer

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.

func (*HTTPDoer) Do

func (_m *HTTPDoer) Do(req *http.Request) (*http.Response, error)

Do provides a mock function with given fields: req

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

type TokenConverter struct {
	mock.Mock
}

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

type TokenGenerator struct {
	mock.Mock
}

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

type TokenService struct {
	mock.Mock
}

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

Jump to

Keyboard shortcuts

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