Documentation ¶
Index ¶
- type CredentialPort
- type IncrementTimeSrc
- type OutgoingEventPort
- func (_m *OutgoingEventPort) CustomFieldTypeCreateFailed(actor service.Actor, templateCustomFieldType types.TemplateCustomFieldType, ...)
- func (_m *OutgoingEventPort) CustomFieldTypeCreated(actor service.Actor, templateCustomFieldType types.TemplateCustomFieldType)
- func (_m *OutgoingEventPort) CustomFieldTypeDeleteFailed(actor service.Actor, templateCustomFieldType types.TemplateCustomFieldType, ...)
- func (_m *OutgoingEventPort) CustomFieldTypeDeleted(actor service.Actor, templateCustomFieldType types.TemplateCustomFieldType)
- func (_m *OutgoingEventPort) CustomFieldTypeUpdateFailed(actor service.Actor, templateCustomFieldType types.TemplateCustomFieldType, ...)
- func (_m *OutgoingEventPort) CustomFieldTypeUpdated(actor service.Actor, templateCustomFieldType types.TemplateCustomFieldType)
- func (_m *OutgoingEventPort) DeleteFailed(actor service.Actor, template types.Template, deletionError service.CacaoError)
- func (_m *OutgoingEventPort) Deleted(actor service.Actor, template types.Template)
- func (_m *OutgoingEventPort) ImportFailed(actor service.Actor, template types.Template, importError service.CacaoError)
- func (_m *OutgoingEventPort) Imported(actor service.Actor, template types.Template)
- func (_m *OutgoingEventPort) SyncFailed(actor service.Actor, template types.Template, syncError service.CacaoError)
- func (_m *OutgoingEventPort) Synced(actor service.Actor, template types.Template)
- func (_m *OutgoingEventPort) TypeCreateFailed(actor service.Actor, templateType types.TemplateType, ...)
- func (_m *OutgoingEventPort) TypeCreated(actor service.Actor, templateType types.TemplateType)
- func (_m *OutgoingEventPort) TypeDeleteFailed(actor service.Actor, templateType types.TemplateType, ...)
- func (_m *OutgoingEventPort) TypeDeleted(actor service.Actor, templateType types.TemplateType)
- func (_m *OutgoingEventPort) TypeUpdateFailed(actor service.Actor, templateType types.TemplateType, ...)
- func (_m *OutgoingEventPort) TypeUpdated(actor service.Actor, templateType types.TemplateType)
- func (_m *OutgoingEventPort) UpdateFailed(actor service.Actor, template types.Template, updateError service.CacaoError)
- func (_m *OutgoingEventPort) Updated(actor service.Actor, template types.Template)
- func (_m *OutgoingEventPort) VersionDisableFailed(actor service.Actor, version types.TemplateVersion, ...)
- func (_m *OutgoingEventPort) VersionDisabled(actor service.Actor, version types.TemplateVersion)
- type PersistentStoragePort
- func (_m *PersistentStoragePort) Create(template types.Template) error
- func (_m *PersistentStoragePort) CreateCustomFieldType(templateCustomFieldType types.TemplateCustomFieldType) error
- func (_m *PersistentStoragePort) CreateType(templateType types.TemplateType) error
- func (_m *PersistentStoragePort) CreateVersion(version types.TemplateVersion) error
- func (_m *PersistentStoragePort) DeleteCustomFieldType(customFieldTypeName string) error
- func (_m *PersistentStoragePort) DeleteType(templateTypeName service.TemplateTypeName) error
- func (_m *PersistentStoragePort) DisableVersion(versionID common.ID) (time.Time, error)
- func (_m *PersistentStoragePort) Get(user string, templateID common.ID) (types.Template, error)
- func (_m *PersistentStoragePort) GetCustomFieldType(customFieldTypeName string) (types.TemplateCustomFieldType, error)
- func (_m *PersistentStoragePort) GetType(templateTypeName service.TemplateTypeName) (types.TemplateType, error)
- func (_m *PersistentStoragePort) GetVersion(user string, versionID common.ID) (types.TemplateVersion, error)
- func (_m *PersistentStoragePort) Init(config *types.Config) error
- func (_m *PersistentStoragePort) List(user string, includeCacaoReservedPurposes bool) ([]types.Template, error)
- func (_m *PersistentStoragePort) ListCustomFieldTypes() ([]types.TemplateCustomFieldType, error)
- func (_m *PersistentStoragePort) ListTypes() ([]types.TemplateType, error)
- func (_m *PersistentStoragePort) ListTypesForProviderType(providerType service.TemplateProviderType) ([]types.TemplateType, error)
- func (_m *PersistentStoragePort) ListVersions(user string, templateID common.ID) ([]types.TemplateVersion, error)
- func (_m *PersistentStoragePort) SoftDelete(user string, templateID common.ID) error
- func (_m *PersistentStoragePort) TemplateSyncFinished(templateID common.ID) error
- func (_m *PersistentStoragePort) TemplateSyncStart(templateID common.ID) (bool, error)
- func (_m *PersistentStoragePort) Update(template types.Template, updateFieldNames []string) error
- func (_m *PersistentStoragePort) UpdateCustomFieldType(templateCustomFieldType types.TemplateCustomFieldType, ...) error
- func (_m *PersistentStoragePort) UpdateType(templateType types.TemplateType, updateFieldNames []string) error
- type TemplateSourcePort
- type TimeSrc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CredentialPort ¶
CredentialPort is an autogenerated mock type for the CredentialPort type
func NewCredentialPort ¶
func NewCredentialPort(t mockConstructorTestingTNewCredentialPort) *CredentialPort
NewCredentialPort creates a new instance of CredentialPort. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*CredentialPort) GetTemplateSourceCredential ¶
func (_m *CredentialPort) GetTemplateSourceCredential(actor string, emulator string, credentialID string) (service.TemplateSourceCredential, error)
GetTemplateSourceCredential provides a mock function with given fields: actor, emulator, credentialID
type IncrementTimeSrc ¶
type IncrementTimeSrc struct { Start time.Time Step time.Duration // contains filtered or unexported fields }
IncrementTimeSrc ...
type OutgoingEventPort ¶
OutgoingEventPort is an autogenerated mock type for the OutgoingEventPort type
func NewOutgoingEventPort ¶
func NewOutgoingEventPort(t interface { mock.TestingT Cleanup(func()) }) *OutgoingEventPort
NewOutgoingEventPort creates a new instance of OutgoingEventPort. 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 (*OutgoingEventPort) CustomFieldTypeCreateFailed ¶
func (_m *OutgoingEventPort) CustomFieldTypeCreateFailed(actor service.Actor, templateCustomFieldType types.TemplateCustomFieldType, creationError service.CacaoError)
CustomFieldTypeCreateFailed provides a mock function with given fields: actor, templateCustomFieldType, creationError
func (*OutgoingEventPort) CustomFieldTypeCreated ¶
func (_m *OutgoingEventPort) CustomFieldTypeCreated(actor service.Actor, templateCustomFieldType types.TemplateCustomFieldType)
CustomFieldTypeCreated provides a mock function with given fields: actor, templateCustomFieldType
func (*OutgoingEventPort) CustomFieldTypeDeleteFailed ¶
func (_m *OutgoingEventPort) CustomFieldTypeDeleteFailed(actor service.Actor, templateCustomFieldType types.TemplateCustomFieldType, deletionError service.CacaoError)
CustomFieldTypeDeleteFailed provides a mock function with given fields: actor, templateCustomFieldType, deletionError
func (*OutgoingEventPort) CustomFieldTypeDeleted ¶
func (_m *OutgoingEventPort) CustomFieldTypeDeleted(actor service.Actor, templateCustomFieldType types.TemplateCustomFieldType)
CustomFieldTypeDeleted provides a mock function with given fields: actor, templateCustomFieldType
func (*OutgoingEventPort) CustomFieldTypeUpdateFailed ¶
func (_m *OutgoingEventPort) CustomFieldTypeUpdateFailed(actor service.Actor, templateCustomFieldType types.TemplateCustomFieldType, updateError service.CacaoError)
CustomFieldTypeUpdateFailed provides a mock function with given fields: actor, templateCustomFieldType, updateError
func (*OutgoingEventPort) CustomFieldTypeUpdated ¶
func (_m *OutgoingEventPort) CustomFieldTypeUpdated(actor service.Actor, templateCustomFieldType types.TemplateCustomFieldType)
CustomFieldTypeUpdated provides a mock function with given fields: actor, templateCustomFieldType
func (*OutgoingEventPort) DeleteFailed ¶
func (_m *OutgoingEventPort) DeleteFailed(actor service.Actor, template types.Template, deletionError service.CacaoError)
DeleteFailed provides a mock function with given fields: actor, template, deletionError
func (*OutgoingEventPort) Deleted ¶
func (_m *OutgoingEventPort) Deleted(actor service.Actor, template types.Template)
Deleted provides a mock function with given fields: actor, template
func (*OutgoingEventPort) ImportFailed ¶
func (_m *OutgoingEventPort) ImportFailed(actor service.Actor, template types.Template, importError service.CacaoError)
ImportFailed provides a mock function with given fields: actor, template, importError
func (*OutgoingEventPort) Imported ¶
func (_m *OutgoingEventPort) Imported(actor service.Actor, template types.Template)
Imported provides a mock function with given fields: actor, template
func (*OutgoingEventPort) SyncFailed ¶
func (_m *OutgoingEventPort) SyncFailed(actor service.Actor, template types.Template, syncError service.CacaoError)
SyncFailed provides a mock function with given fields: actor, template, syncError
func (*OutgoingEventPort) Synced ¶
func (_m *OutgoingEventPort) Synced(actor service.Actor, template types.Template)
Synced provides a mock function with given fields: actor, template
func (*OutgoingEventPort) TypeCreateFailed ¶
func (_m *OutgoingEventPort) TypeCreateFailed(actor service.Actor, templateType types.TemplateType, creationError service.CacaoError)
TypeCreateFailed provides a mock function with given fields: actor, templateType, creationError
func (*OutgoingEventPort) TypeCreated ¶
func (_m *OutgoingEventPort) TypeCreated(actor service.Actor, templateType types.TemplateType)
TypeCreated provides a mock function with given fields: actor, templateType
func (*OutgoingEventPort) TypeDeleteFailed ¶
func (_m *OutgoingEventPort) TypeDeleteFailed(actor service.Actor, templateType types.TemplateType, deletionError service.CacaoError)
TypeDeleteFailed provides a mock function with given fields: actor, templateType, deletionError
func (*OutgoingEventPort) TypeDeleted ¶
func (_m *OutgoingEventPort) TypeDeleted(actor service.Actor, templateType types.TemplateType)
TypeDeleted provides a mock function with given fields: actor, templateType
func (*OutgoingEventPort) TypeUpdateFailed ¶
func (_m *OutgoingEventPort) TypeUpdateFailed(actor service.Actor, templateType types.TemplateType, updateError service.CacaoError)
TypeUpdateFailed provides a mock function with given fields: actor, templateType, updateError
func (*OutgoingEventPort) TypeUpdated ¶
func (_m *OutgoingEventPort) TypeUpdated(actor service.Actor, templateType types.TemplateType)
TypeUpdated provides a mock function with given fields: actor, templateType
func (*OutgoingEventPort) UpdateFailed ¶
func (_m *OutgoingEventPort) UpdateFailed(actor service.Actor, template types.Template, updateError service.CacaoError)
UpdateFailed provides a mock function with given fields: actor, template, updateError
func (*OutgoingEventPort) Updated ¶
func (_m *OutgoingEventPort) Updated(actor service.Actor, template types.Template)
Updated provides a mock function with given fields: actor, template
func (*OutgoingEventPort) VersionDisableFailed ¶
func (_m *OutgoingEventPort) VersionDisableFailed(actor service.Actor, version types.TemplateVersion, versionErr service.CacaoError)
VersionDisableFailed provides a mock function with given fields: actor, version, versionErr
func (*OutgoingEventPort) VersionDisabled ¶
func (_m *OutgoingEventPort) VersionDisabled(actor service.Actor, version types.TemplateVersion)
VersionDisabled provides a mock function with given fields: actor, version
type PersistentStoragePort ¶
PersistentStoragePort is an autogenerated mock type for the PersistentStoragePort type
func NewPersistentStoragePort ¶
func NewPersistentStoragePort(t interface { mock.TestingT Cleanup(func()) }) *PersistentStoragePort
NewPersistentStoragePort creates a new instance of PersistentStoragePort. 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 (*PersistentStoragePort) Create ¶
func (_m *PersistentStoragePort) Create(template types.Template) error
Create provides a mock function with given fields: template
func (*PersistentStoragePort) CreateCustomFieldType ¶
func (_m *PersistentStoragePort) CreateCustomFieldType(templateCustomFieldType types.TemplateCustomFieldType) error
CreateCustomFieldType provides a mock function with given fields: templateCustomFieldType
func (*PersistentStoragePort) CreateType ¶
func (_m *PersistentStoragePort) CreateType(templateType types.TemplateType) error
CreateType provides a mock function with given fields: templateType
func (*PersistentStoragePort) CreateVersion ¶
func (_m *PersistentStoragePort) CreateVersion(version types.TemplateVersion) error
CreateVersion provides a mock function with given fields: version
func (*PersistentStoragePort) DeleteCustomFieldType ¶
func (_m *PersistentStoragePort) DeleteCustomFieldType(customFieldTypeName string) error
DeleteCustomFieldType provides a mock function with given fields: customFieldTypeName
func (*PersistentStoragePort) DeleteType ¶
func (_m *PersistentStoragePort) DeleteType(templateTypeName service.TemplateTypeName) error
DeleteType provides a mock function with given fields: templateTypeName
func (*PersistentStoragePort) DisableVersion ¶
DisableVersion provides a mock function with given fields: versionID
func (*PersistentStoragePort) Get ¶
Get provides a mock function with given fields: user, templateID
func (*PersistentStoragePort) GetCustomFieldType ¶
func (_m *PersistentStoragePort) GetCustomFieldType(customFieldTypeName string) (types.TemplateCustomFieldType, error)
GetCustomFieldType provides a mock function with given fields: customFieldTypeName
func (*PersistentStoragePort) GetType ¶
func (_m *PersistentStoragePort) GetType(templateTypeName service.TemplateTypeName) (types.TemplateType, error)
GetType provides a mock function with given fields: templateTypeName
func (*PersistentStoragePort) GetVersion ¶
func (_m *PersistentStoragePort) GetVersion(user string, versionID common.ID) (types.TemplateVersion, error)
GetVersion provides a mock function with given fields: user, versionID
func (*PersistentStoragePort) Init ¶
func (_m *PersistentStoragePort) Init(config *types.Config) error
Init provides a mock function with given fields: config
func (*PersistentStoragePort) List ¶
func (_m *PersistentStoragePort) List(user string, includeCacaoReservedPurposes bool) ([]types.Template, error)
List provides a mock function with given fields: user, includeCacaoReservedPurposes
func (*PersistentStoragePort) ListCustomFieldTypes ¶
func (_m *PersistentStoragePort) ListCustomFieldTypes() ([]types.TemplateCustomFieldType, error)
ListCustomFieldTypes provides a mock function with given fields:
func (*PersistentStoragePort) ListTypes ¶
func (_m *PersistentStoragePort) ListTypes() ([]types.TemplateType, error)
ListTypes provides a mock function with given fields:
func (*PersistentStoragePort) ListTypesForProviderType ¶
func (_m *PersistentStoragePort) ListTypesForProviderType(providerType service.TemplateProviderType) ([]types.TemplateType, error)
ListTypesForProviderType provides a mock function with given fields: providerType
func (*PersistentStoragePort) ListVersions ¶
func (_m *PersistentStoragePort) ListVersions(user string, templateID common.ID) ([]types.TemplateVersion, error)
ListVersions provides a mock function with given fields: user, templateID
func (*PersistentStoragePort) SoftDelete ¶
func (_m *PersistentStoragePort) SoftDelete(user string, templateID common.ID) error
SoftDelete provides a mock function with given fields: user, templateID
func (*PersistentStoragePort) TemplateSyncFinished ¶
func (_m *PersistentStoragePort) TemplateSyncFinished(templateID common.ID) error
TemplateSyncFinished provides a mock function with given fields: templateID
func (*PersistentStoragePort) TemplateSyncStart ¶
func (_m *PersistentStoragePort) TemplateSyncStart(templateID common.ID) (bool, error)
TemplateSyncStart provides a mock function with given fields: templateID
func (*PersistentStoragePort) Update ¶
func (_m *PersistentStoragePort) Update(template types.Template, updateFieldNames []string) error
Update provides a mock function with given fields: template, updateFieldNames
func (*PersistentStoragePort) UpdateCustomFieldType ¶
func (_m *PersistentStoragePort) UpdateCustomFieldType(templateCustomFieldType types.TemplateCustomFieldType, updateFieldNames []string) error
UpdateCustomFieldType provides a mock function with given fields: templateCustomFieldType, updateFieldNames
func (*PersistentStoragePort) UpdateType ¶
func (_m *PersistentStoragePort) UpdateType(templateType types.TemplateType, updateFieldNames []string) error
UpdateType provides a mock function with given fields: templateType, updateFieldNames
type TemplateSourcePort ¶
TemplateSourcePort is an autogenerated mock type for the TemplateSourcePort type
func NewTemplateSourcePort ¶
func NewTemplateSourcePort(t interface { mock.TestingT Cleanup(func()) }) *TemplateSourcePort
NewTemplateSourcePort creates a new instance of TemplateSourcePort. 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 (*TemplateSourcePort) GetTemplateMetadata ¶
func (_m *TemplateSourcePort) GetTemplateMetadata(source service.TemplateSource, credential service.TemplateSourceCredential) (service.TemplateMetadata, service.TemplateUIMetadata, service.TemplateSource, error)
GetTemplateMetadata provides a mock function with given fields: source, credential
type TimeSrc ¶
TimeSrc is an autogenerated mock type for the TimeSrc type
func NewTimeSrc ¶
func NewTimeSrc(t mockConstructorTestingTNewTimeSrc) *TimeSrc
NewTimeSrc creates a new instance of TimeSrc. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.