Documentation
¶
Index ¶
- Constants
- type CredentialMicroservice
- type DeploymentRunStorage
- func (_m *DeploymentRunStorage) BatchGet(runIDs []common.ID) ([]types.DeploymentRun, error)
- func (_m *DeploymentRunStorage) Create(run types.DeploymentRun) (common.ID, error)
- func (_m *DeploymentRunStorage) DeletePlaceholder(id common.ID) (bool, error)
- func (_m *DeploymentRunStorage) Get(runID common.ID) (types.DeploymentRun, error)
- func (_m *DeploymentRunStorage) GetLatestRun(deployment common.ID) (*types.DeploymentRun, error)
- func (_m *DeploymentRunStorage) Init() error
- func (_m *DeploymentRunStorage) List(filter types.DeploymentRunFilter, pagination service.RequestPagination) ([]types.DeploymentRun, error)
- func (_m *DeploymentRunStorage) Update(id common.ID, run types.DeploymentRunUpdate, filter types.DeploymentRunFilter) (bool, error)
- type DeploymentStorage
- func (_m *DeploymentStorage) Create(_a0 types.Deployment) error
- func (_m *DeploymentStorage) Delete(_a0 common.ID) error
- func (_m *DeploymentStorage) Get(_a0 common.ID) (types.Deployment, error)
- func (_m *DeploymentStorage) Init() error
- func (_m *DeploymentStorage) List(filters types.DeploymentFilter, offset int64, limit int64, ...) ([]types.Deployment, error)
- func (_m *DeploymentStorage) Update(id common.ID, deployment types.DeploymentUpdate, filter types.DeploymentFilter) (bool, error)
- type IncrementingTimeSrc
- type OutgoingEventSink
- func (_m *OutgoingEventSink) DeploymentCreateFailed(_a0 service.DeploymentCreationResult)
- func (_m *OutgoingEventSink) DeploymentCreated(_a0 service.DeploymentCreationResult)
- func (_m *OutgoingEventSink) DeploymentDeleteFailed(_a0 service.DeploymentDeletionResult)
- func (_m *OutgoingEventSink) DeploymentDeleted(_a0 service.DeploymentDeletionResult)
- func (_m *OutgoingEventSink) DeploymentDeletionStarted(_a0 service.DeploymentDeletionResult)
- func (_m *OutgoingEventSink) DeploymentRunCreateFailed(_a0 service.DeploymentCreateRunResult)
- func (_m *OutgoingEventSink) DeploymentRunCreated(_a0 service.DeploymentCreateRunResult)
- func (_m *OutgoingEventSink) DeploymentStateRefreshFailed(_a0 service.DeploymentStateRefreshResult)
- func (_m *OutgoingEventSink) DeploymentStateRefreshed(_a0 service.DeploymentStateRefreshResult)
- func (_m *OutgoingEventSink) DeploymentUpdateFailed(_a0 service.DeploymentUpdateResult)
- func (_m *OutgoingEventSink) DeploymentUpdated(_a0 service.DeploymentUpdateResult)
- func (_m *OutgoingEventSink) EventDeploymentRunStatusUpdated(_a0 deploymentevents.DeploymentRunStatusUpdated)
- func (_m *OutgoingEventSink) EventStartRunRequested(_a0 deploymentevents.StartRunRequest)
- func (_m *OutgoingEventSink) EventStartStateRefreshRequested(_a0 deploymentevents.StartStateRefreshRequest)
- type ProviderMicroservice
- type TemplateMicroservice
- func (_m *TemplateMicroservice) Get(actor service.Actor, id common.ID) (service.Template, error)
- func (_m *TemplateMicroservice) GetTemplateType(actor service.Actor, templateTypeName service.TemplateTypeName) (service.TemplateType, error)
- func (_m *TemplateMicroservice) GetTemplateVersion(actor service.Actor, id common.ID) (*service.TemplateVersion, error)
- type WorkspaceMicroservice
Constants ¶
const TimeSrcIncrementStep = time.Second
TimeSrcIncrementStep ...
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CredentialMicroservice ¶
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 ¶
func (_m *CredentialMicroservice) Get(actor service.Actor, owner string, id string) (*service.CredentialModel, error)
Get provides a mock function with given fields: actor, owner, id
func (*CredentialMicroservice) List ¶
func (_m *CredentialMicroservice) List(actor service.Actor, owner string) ([]service.CredentialModel, error)
List provides a mock function with given fields: actor, owner
type DeploymentRunStorage ¶
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 ¶
func (_m *DeploymentRunStorage) Create(run types.DeploymentRun) (common.ID, error)
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 ¶
func (_m *DeploymentRunStorage) Get(runID common.ID) (types.DeploymentRun, error)
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 ¶
func (_m *DeploymentRunStorage) List(filter types.DeploymentRunFilter, pagination service.RequestPagination) ([]types.DeploymentRun, error)
List provides a mock function with given fields: filter, pagination
func (*DeploymentRunStorage) Update ¶
func (_m *DeploymentRunStorage) Update(id common.ID, run types.DeploymentRunUpdate, filter types.DeploymentRunFilter) (bool, error)
Update provides a mock function with given fields: id, run, filter
type DeploymentStorage ¶
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 ¶
IncrementingTimeSrc returns a time.Time that is incrementing each time Now() is called. This is useful when testing creation and update timestamp.
type OutgoingEventSink ¶
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 ¶
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 ¶
func (_m *ProviderMicroservice) Get(actor service.Actor, id common.ID) (*service.ProviderModel, error)
Get provides a mock function with given fields: actor, id
func (*ProviderMicroservice) List ¶
func (_m *ProviderMicroservice) List(actor service.Actor) ([]service.ProviderModel, error)
List provides a mock function with given fields: actor
type TemplateMicroservice ¶
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) 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 ¶
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 ¶
func (_m *WorkspaceMicroservice) Get(actor service.Actor, id common.ID) (*service.WorkspaceModel, error)
Get provides a mock function with given fields: actor, id