mocks

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Keycloak

func Keycloak(ctx context.Context, wg *sync.WaitGroup) (url string)

func MockResponses

func MockResponses(ctx context.Context, wg *sync.WaitGroup, responses []Response) (url string)

Types

type CamundaMock

type CamundaMock struct {
	Queue chan []model.CamundaExternalTask
	// contains filtered or unexported fields
}

func NewCamundaMock

func NewCamundaMock() *CamundaMock

func (*CamundaMock) AddToQueue

func (this *CamundaMock) AddToQueue(fetchResult []model.CamundaExternalTask)

func (*CamundaMock) Fetch

func (this *CamundaMock) Fetch() (result []model.CamundaExternalTask)

func (*CamundaMock) PopRequestLog

func (this *CamundaMock) PopRequestLog() []Request

func (*CamundaMock) Start

func (this *CamundaMock) Start(ctx context.Context, wg *sync.WaitGroup) (url string)

type DeploymentMock

type DeploymentMock struct {
	// contains filtered or unexported fields
}

func NewDeploymentMock

func NewDeploymentMock() *DeploymentMock

func (*DeploymentMock) PopRequestLog

func (this *DeploymentMock) PopRequestLog() []Request

func (*DeploymentMock) SetPreparedDeployments

func (this *DeploymentMock) SetPreparedDeployments(value map[string]deploymentmodel.Deployment)

func (*DeploymentMock) Start

func (this *DeploymentMock) Start(ctx context.Context, wg *sync.WaitGroup) (url string)

type FogDeploymentMock

type FogDeploymentMock struct {
	// contains filtered or unexported fields
}

func NewFogDeploymentMock

func NewFogDeploymentMock() *FogDeploymentMock

func (*FogDeploymentMock) PopRequestLog

func (this *FogDeploymentMock) PopRequestLog() []Request

func (*FogDeploymentMock) Start

func (this *FogDeploymentMock) Start(ctx context.Context, wg *sync.WaitGroup) (url string)

type Request

type Request struct {
	Method   string `json:"method"`
	Endpoint string `json:"endpoint"`
	Message  string `json:"message"`
}

type Response

type Response = Request

type SmartServiceRepoMock

type SmartServiceRepoMock struct {
	// contains filtered or unexported fields
}

func NewSmartServiceRepoMock

func NewSmartServiceRepoMock(libConfig configuration.Config, config processdeployment.Config) *SmartServiceRepoMock

func (*SmartServiceRepoMock) PopRequestLog

func (this *SmartServiceRepoMock) PopRequestLog() []Request

func (*SmartServiceRepoMock) Start

func (this *SmartServiceRepoMock) Start(ctx context.Context, wg *sync.WaitGroup) (url string)

Jump to

Keyboard shortcuts

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