mocks

package
v0.0.0-...-e080771 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const TimeSrcIncrementStep = time.Second

TimeSrcIncrementStep ...

Variables

This section is empty.

Functions

This section is empty.

Types

type CredentialMicroservice

type CredentialMicroservice struct {
	mock.Mock
}

CredentialMicroservice is an autogenerated mock type for the CredentialMicroservice type

func NewCredentialMicroservice

func NewCredentialMicroservice(t mockConstructorTestingTNewCredentialMicroservice) *CredentialMicroservice

NewCredentialMicroservice creates a new instance of CredentialMicroservice. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*CredentialMicroservice) Get

Get provides a mock function with given fields: actor, owner, id

func (*CredentialMicroservice) List

List provides a mock function with given fields: actor, owner

type DeploymentRunStorage

type DeploymentRunStorage struct {
	mock.Mock
}

DeploymentRunStorage is an autogenerated mock type for the DeploymentRunStorage type

func NewDeploymentRunStorage

func NewDeploymentRunStorage(t mockConstructorTestingTNewDeploymentRunStorage) *DeploymentRunStorage

NewDeploymentRunStorage creates a new instance of DeploymentRunStorage. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*DeploymentRunStorage) BatchGet

func (_m *DeploymentRunStorage) BatchGet(runIDs []common.ID) ([]types.DeploymentRun, error)

BatchGet provides a mock function with given fields: runIDs

func (*DeploymentRunStorage) Create

Create provides a mock function with given fields: run

func (*DeploymentRunStorage) DeletePlaceholder

func (_m *DeploymentRunStorage) DeletePlaceholder(id common.ID) (bool, error)

DeletePlaceholder provides a mock function with given fields: id

func (*DeploymentRunStorage) Get

Get provides a mock function with given fields: runID

func (*DeploymentRunStorage) GetLatestRun

func (_m *DeploymentRunStorage) GetLatestRun(deployment common.ID) (*types.DeploymentRun, error)

GetLatestRun provides a mock function with given fields: deployment

func (*DeploymentRunStorage) Init

func (_m *DeploymentRunStorage) Init() error

Init provides a mock function with given fields:

func (*DeploymentRunStorage) List

List provides a mock function with given fields: filter, pagination

func (*DeploymentRunStorage) Update

Update provides a mock function with given fields: id, run, filter

type DeploymentStorage

type DeploymentStorage struct {
	mock.Mock
}

DeploymentStorage is an autogenerated mock type for the DeploymentStorage type

func NewDeploymentStorage

func NewDeploymentStorage(t mockConstructorTestingTNewDeploymentStorage) *DeploymentStorage

NewDeploymentStorage creates a new instance of DeploymentStorage. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*DeploymentStorage) Create

func (_m *DeploymentStorage) Create(_a0 types.Deployment) error

Create provides a mock function with given fields: _a0

func (*DeploymentStorage) Delete

func (_m *DeploymentStorage) Delete(_a0 common.ID) error

Delete provides a mock function with given fields: _a0

func (*DeploymentStorage) Get

func (_m *DeploymentStorage) Get(_a0 common.ID) (types.Deployment, error)

Get provides a mock function with given fields: _a0

func (*DeploymentStorage) Init

func (_m *DeploymentStorage) Init() error

Init provides a mock function with given fields:

func (*DeploymentStorage) List

func (_m *DeploymentStorage) List(filters types.DeploymentFilter, offset int64, limit int64, sort types.DeploymentSort) ([]types.Deployment, error)

List provides a mock function with given fields: filters, offset, limit, sort

func (*DeploymentStorage) Update

func (_m *DeploymentStorage) Update(id common.ID, deployment types.DeploymentUpdate, filter types.DeploymentFilter) (bool, error)

Update provides a mock function with given fields: id, deployment, filter

type IncrementingTimeSrc

type IncrementingTimeSrc struct {
	Start time.Time
	// contains filtered or unexported fields
}

IncrementingTimeSrc returns a time.Time that is incrementing each time Now() is called. This is useful when testing creation and update timestamp.

func (*IncrementingTimeSrc) Now

func (t *IncrementingTimeSrc) Now() time.Time

Now ...

type OutgoingEventSink

type OutgoingEventSink struct {
	mock.Mock
}

OutgoingEventSink is an autogenerated mock type for the OutgoingEventSink type

func NewOutgoingEventSink

func NewOutgoingEventSink(t interface {
	mock.TestingT
	Cleanup(func())
}) *OutgoingEventSink

NewOutgoingEventSink creates a new instance of OutgoingEventSink. 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 (*OutgoingEventSink) DeploymentCreateFailed

func (_m *OutgoingEventSink) DeploymentCreateFailed(_a0 service.DeploymentCreationResult)

DeploymentCreateFailed provides a mock function with given fields: _a0

func (*OutgoingEventSink) DeploymentCreated

func (_m *OutgoingEventSink) DeploymentCreated(_a0 service.DeploymentCreationResult)

DeploymentCreated provides a mock function with given fields: _a0

func (*OutgoingEventSink) DeploymentDeleteFailed

func (_m *OutgoingEventSink) DeploymentDeleteFailed(_a0 service.DeploymentDeletionResult)

DeploymentDeleteFailed provides a mock function with given fields: _a0

func (*OutgoingEventSink) DeploymentDeleted

func (_m *OutgoingEventSink) DeploymentDeleted(_a0 service.DeploymentDeletionResult)

DeploymentDeleted provides a mock function with given fields: _a0

func (*OutgoingEventSink) DeploymentDeletionStarted

func (_m *OutgoingEventSink) DeploymentDeletionStarted(_a0 service.DeploymentDeletionResult)

DeploymentDeletionStarted provides a mock function with given fields: _a0

func (*OutgoingEventSink) DeploymentRunCreateFailed

func (_m *OutgoingEventSink) DeploymentRunCreateFailed(_a0 service.DeploymentCreateRunResult)

DeploymentRunCreateFailed provides a mock function with given fields: _a0

func (*OutgoingEventSink) DeploymentRunCreated

func (_m *OutgoingEventSink) DeploymentRunCreated(_a0 service.DeploymentCreateRunResult)

DeploymentRunCreated provides a mock function with given fields: _a0

func (*OutgoingEventSink) DeploymentStateRefreshFailed

func (_m *OutgoingEventSink) DeploymentStateRefreshFailed(_a0 service.DeploymentStateRefreshResult)

DeploymentStateRefreshFailed provides a mock function with given fields: _a0

func (*OutgoingEventSink) DeploymentStateRefreshed

func (_m *OutgoingEventSink) DeploymentStateRefreshed(_a0 service.DeploymentStateRefreshResult)

DeploymentStateRefreshed provides a mock function with given fields: _a0

func (*OutgoingEventSink) DeploymentUpdateFailed

func (_m *OutgoingEventSink) DeploymentUpdateFailed(_a0 service.DeploymentUpdateResult)

DeploymentUpdateFailed provides a mock function with given fields: _a0

func (*OutgoingEventSink) DeploymentUpdated

func (_m *OutgoingEventSink) DeploymentUpdated(_a0 service.DeploymentUpdateResult)

DeploymentUpdated provides a mock function with given fields: _a0

func (*OutgoingEventSink) EventDeploymentRunStatusUpdated

func (_m *OutgoingEventSink) EventDeploymentRunStatusUpdated(_a0 deploymentevents.DeploymentRunStatusUpdated)

EventDeploymentRunStatusUpdated provides a mock function with given fields: _a0

func (*OutgoingEventSink) EventStartRunRequested

func (_m *OutgoingEventSink) EventStartRunRequested(_a0 deploymentevents.StartRunRequest)

EventStartRunRequested provides a mock function with given fields: _a0

func (*OutgoingEventSink) EventStartStateRefreshRequested

func (_m *OutgoingEventSink) EventStartStateRefreshRequested(_a0 deploymentevents.StartStateRefreshRequest)

EventStartStateRefreshRequested provides a mock function with given fields: _a0

type ProviderMicroservice

type ProviderMicroservice struct {
	mock.Mock
}

ProviderMicroservice is an autogenerated mock type for the ProviderMicroservice type

func NewProviderMicroservice

func NewProviderMicroservice(t mockConstructorTestingTNewProviderMicroservice) *ProviderMicroservice

NewProviderMicroservice creates a new instance of ProviderMicroservice. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ProviderMicroservice) Get

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

func (*ProviderMicroservice) List

List provides a mock function with given fields: actor

type TemplateMicroservice

type TemplateMicroservice struct {
	mock.Mock
}

TemplateMicroservice is an autogenerated mock type for the TemplateMicroservice type

func NewTemplateMicroservice

func NewTemplateMicroservice(t interface {
	mock.TestingT
	Cleanup(func())
}) *TemplateMicroservice

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

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

func (*TemplateMicroservice) GetTemplateType

func (_m *TemplateMicroservice) GetTemplateType(actor service.Actor, templateTypeName service.TemplateTypeName) (service.TemplateType, error)

GetTemplateType provides a mock function with given fields: actor, templateTypeName

func (*TemplateMicroservice) GetTemplateVersion

func (_m *TemplateMicroservice) GetTemplateVersion(actor service.Actor, id common.ID) (*service.TemplateVersion, error)

GetTemplateVersion provides a mock function with given fields: actor, id

type WorkspaceMicroservice

type WorkspaceMicroservice struct {
	mock.Mock
}

WorkspaceMicroservice is an autogenerated mock type for the WorkspaceMicroservice type

func NewWorkspaceMicroservice

func NewWorkspaceMicroservice(t mockConstructorTestingTNewWorkspaceMicroservice) *WorkspaceMicroservice

NewWorkspaceMicroservice creates a new instance of WorkspaceMicroservice. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*WorkspaceMicroservice) Get

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

Jump to

Keyboard shortcuts

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