automock

package
v0.0.0-...-6d13c91 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 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 DestinationCreatorService

type DestinationCreatorService struct {
	mock.Mock
}

DestinationCreatorService is an autogenerated mock type for the destinationCreatorService type

func NewDestinationCreatorService

func NewDestinationCreatorService(t interface {
	mock.TestingT
	Cleanup(func())
}) *DestinationCreatorService

NewDestinationCreatorService creates a new instance of DestinationCreatorService. 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 (*DestinationCreatorService) CreateBasicCredentialDestinations

func (_m *DestinationCreatorService) CreateBasicCredentialDestinations(ctx context.Context, destinationDetails operators.Destination, basicAuthenticationCredentials operators.BasicAuthentication, formationAssignment *model.FormationAssignment, correlationIDs []string, depth uint8, skipSubaccountValidation bool) (*destinationcreator.DestinationInfo, error)

CreateBasicCredentialDestinations provides a mock function with given fields: ctx, destinationDetails, basicAuthenticationCredentials, formationAssignment, correlationIDs, depth, skipSubaccountValidation

func (*DestinationCreatorService) CreateClientCertificateDestination

func (_m *DestinationCreatorService) CreateClientCertificateDestination(ctx context.Context, destinationDetails operators.Destination, clientCertAuthCreds *operators.ClientCertAuthentication, formationAssignment *model.FormationAssignment, correlationIDs []string, depth uint8, skipSubaccountValidation bool) (*destinationcreator.DestinationInfo, error)

CreateClientCertificateDestination provides a mock function with given fields: ctx, destinationDetails, clientCertAuthCreds, formationAssignment, correlationIDs, depth, skipSubaccountValidation

func (*DestinationCreatorService) CreateDesignTimeDestinations

func (_m *DestinationCreatorService) CreateDesignTimeDestinations(ctx context.Context, destinationDetails operators.DestinationRaw, formationAssignment *model.FormationAssignment, depth uint8, skipSubaccountValidation bool) error

CreateDesignTimeDestinations provides a mock function with given fields: ctx, destinationDetails, formationAssignment, depth, skipSubaccountValidation

func (*DestinationCreatorService) CreateOAuth2ClientCredentialsDestinations

func (_m *DestinationCreatorService) CreateOAuth2ClientCredentialsDestinations(ctx context.Context, destinationDetails operators.Destination, oauth2ClientCredsCredentials *operators.OAuth2ClientCredentialsAuthentication, formationAssignment *model.FormationAssignment, correlationIDs []string, depth uint8, skipSubaccountValidation bool) (*destinationcreator.DestinationInfo, error)

CreateOAuth2ClientCredentialsDestinations provides a mock function with given fields: ctx, destinationDetails, oauth2ClientCredsCredentials, formationAssignment, correlationIDs, depth, skipSubaccountValidation

func (*DestinationCreatorService) CreateOAuth2mTLSDestinations

func (_m *DestinationCreatorService) CreateOAuth2mTLSDestinations(ctx context.Context, destinationDetails operators.Destination, oauth2mTLSAuthentication *operators.OAuth2mTLSAuthentication, formationAssignment *model.FormationAssignment, correlationIDs []string, depth uint8, skipSubaccountValidation bool) (*destinationcreator.DestinationInfo, error)

CreateOAuth2mTLSDestinations provides a mock function with given fields: ctx, destinationDetails, oauth2mTLSAuthentication, formationAssignment, correlationIDs, depth, skipSubaccountValidation

func (*DestinationCreatorService) CreateSAMLAssertionDestination

func (_m *DestinationCreatorService) CreateSAMLAssertionDestination(ctx context.Context, destinationDetails operators.Destination, samlAuthCreds *operators.SAMLAssertionAuthentication, formationAssignment *model.FormationAssignment, correlationIDs []string, depth uint8, skipSubaccountValidation bool) (*destinationcreator.DestinationInfo, error)

CreateSAMLAssertionDestination provides a mock function with given fields: ctx, destinationDetails, samlAuthCreds, formationAssignment, correlationIDs, depth, skipSubaccountValidation

func (*DestinationCreatorService) DeleteCertificate

func (_m *DestinationCreatorService) DeleteCertificate(ctx context.Context, certificateName string, externalDestSubaccountID string, instanceID string, formationAssignment *model.FormationAssignment, skipSubaccountValidation bool) error

DeleteCertificate provides a mock function with given fields: ctx, certificateName, externalDestSubaccountID, instanceID, formationAssignment, skipSubaccountValidation

func (*DestinationCreatorService) DeleteDestination

func (_m *DestinationCreatorService) DeleteDestination(ctx context.Context, destinationName string, externalDestSubaccountID string, instanceID string, formationAssignment *model.FormationAssignment, skipSubaccountValidation bool) error

DeleteDestination provides a mock function with given fields: ctx, destinationName, externalDestSubaccountID, instanceID, formationAssignment, skipSubaccountValidation

func (*DestinationCreatorService) DetermineDestinationSubaccount

func (_m *DestinationCreatorService) DetermineDestinationSubaccount(ctx context.Context, externalDestSubaccountID string, formationAssignment *model.FormationAssignment, skipSubaccountValidation bool) (string, error)

DetermineDestinationSubaccount provides a mock function with given fields: ctx, externalDestSubaccountID, formationAssignment, skipSubaccountValidation

func (*DestinationCreatorService) EnsureDestinationSubaccountIDsCorrectness

func (_m *DestinationCreatorService) EnsureDestinationSubaccountIDsCorrectness(ctx context.Context, destinationsDetails []operators.Destination, formationAssignment *model.FormationAssignment, skipSubaccountValidation bool) error

EnsureDestinationSubaccountIDsCorrectness provides a mock function with given fields: ctx, destinationsDetails, formationAssignment, skipSubaccountValidation

func (*DestinationCreatorService) GetConsumerTenant

func (_m *DestinationCreatorService) GetConsumerTenant(ctx context.Context, formationAssignment *model.FormationAssignment) (string, error)

GetConsumerTenant provides a mock function with given fields: ctx, formationAssignment

type DestinationRepository

type DestinationRepository struct {
	mock.Mock
}

DestinationRepository is an autogenerated mock type for the destinationRepository type

func NewDestinationRepository

func NewDestinationRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *DestinationRepository

NewDestinationRepository creates a new instance of DestinationRepository. 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 (*DestinationRepository) DeleteByDestinationNameAndAssignmentID

func (_m *DestinationRepository) DeleteByDestinationNameAndAssignmentID(ctx context.Context, destinationName string, formationAssignmentID string, tenantID string) error

DeleteByDestinationNameAndAssignmentID provides a mock function with given fields: ctx, destinationName, formationAssignmentID, tenantID

func (*DestinationRepository) GetDestinationByNameAndTenant

func (_m *DestinationRepository) GetDestinationByNameAndTenant(ctx context.Context, destinationName string, tenantID string) (*model.Destination, error)

GetDestinationByNameAndTenant provides a mock function with given fields: ctx, destinationName, tenantID

func (*DestinationRepository) ListByAssignmentID

func (_m *DestinationRepository) ListByAssignmentID(ctx context.Context, formationAssignmentID string) ([]*model.Destination, error)

ListByAssignmentID provides a mock function with given fields: ctx, formationAssignmentID

func (*DestinationRepository) UpsertWithEmbeddedTenant

func (_m *DestinationRepository) UpsertWithEmbeddedTenant(ctx context.Context, _a1 *model.Destination) error

UpsertWithEmbeddedTenant provides a mock function with given fields: ctx, _a1

type EntityConverter

type EntityConverter struct {
	mock.Mock
}

EntityConverter is an autogenerated mock type for the EntityConverter type

func NewEntityConverter

func NewEntityConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *EntityConverter

NewEntityConverter creates a new instance of EntityConverter. 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 (*EntityConverter) FromEntity

func (_m *EntityConverter) FromEntity(entity *destination.Entity) *model.Destination

FromEntity provides a mock function with given fields: entity

func (*EntityConverter) ToEntity

func (_m *EntityConverter) ToEntity(in *model.Destination) *destination.Entity

ToEntity provides a mock function with given fields: in

type TenantRepository

type TenantRepository struct {
	mock.Mock
}

TenantRepository is an autogenerated mock type for the tenantRepository type

func NewTenantRepository

func NewTenantRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *TenantRepository

NewTenantRepository creates a new instance of TenantRepository. 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 (*TenantRepository) Get

Get provides a mock function with given fields: ctx, id

func (*TenantRepository) GetByExternalTenant

func (_m *TenantRepository) GetByExternalTenant(ctx context.Context, externalTenant string) (*model.BusinessTenantMapping, error)

GetByExternalTenant provides a mock function with given fields: ctx, externalTenant

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