Documentation ¶
Index ¶
- type OCIRepositoryReader
- type OCIRepositoryRepo
- func (_m *OCIRepositoryRepo) Create(_a0 context.Context, _a1 *biz.OCIRepoCreateOpts) (*biz.OCIRepository, error)
- func (_m *OCIRepositoryRepo) Delete(ctx context.Context, ID uuid.UUID) error
- func (_m *OCIRepositoryRepo) FindByID(ctx context.Context, ID uuid.UUID) (*biz.OCIRepository, error)
- func (_m *OCIRepositoryRepo) FindMainRepo(ctx context.Context, orgID uuid.UUID) (*biz.OCIRepository, error)
- func (_m *OCIRepositoryRepo) Update(_a0 context.Context, _a1 *biz.OCIRepoUpdateOpts) (*biz.OCIRepository, error)
- func (_m *OCIRepositoryRepo) UpdateValidationStatus(ctx context.Context, ID uuid.UUID, status biz.OCIRepoValidationStatus) error
- type OrganizationRepo
- type UserOrgFinder
- type WorkflowRunRepo
- func (_m *WorkflowRunRepo) Create(ctx context.Context, workflowID uuid.UUID, robotaccountID uuid.UUID, ...) (*biz.WorkflowRun, error)
- func (_m *WorkflowRunRepo) Expire(ctx context.Context, id uuid.UUID) error
- func (_m *WorkflowRunRepo) FindByID(ctx context.Context, ID uuid.UUID) (*biz.WorkflowRun, error)
- func (_m *WorkflowRunRepo) FindByIDInOrg(ctx context.Context, orgID uuid.UUID, ID uuid.UUID) (*biz.WorkflowRun, error)
- func (_m *WorkflowRunRepo) List(ctx context.Context, orgID uuid.UUID, workflowID uuid.UUID, ...) ([]*biz.WorkflowRun, string, error)
- func (_m *WorkflowRunRepo) ListNotFinishedOlderThan(ctx context.Context, olderThan time.Time) ([]*biz.WorkflowRun, error)
- func (_m *WorkflowRunRepo) MarkAsFinished(ctx context.Context, ID uuid.UUID, status biz.WorkflowRunStatus, reason string) error
- func (_m *WorkflowRunRepo) SaveAttestationRef(ctx context.Context, ID uuid.UUID, ref *biz.AttestationRef) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OCIRepositoryReader ¶
OCIRepositoryReader is an autogenerated mock type for the OCIRepositoryReader type
func NewOCIRepositoryReader ¶
func NewOCIRepositoryReader(t mockConstructorTestingTNewOCIRepositoryReader) *OCIRepositoryReader
NewOCIRepositoryReader creates a new instance of OCIRepositoryReader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*OCIRepositoryReader) FindByID ¶
func (_m *OCIRepositoryReader) FindByID(ctx context.Context, ID string) (*biz.OCIRepository, error)
FindByID provides a mock function with given fields: ctx, ID
func (*OCIRepositoryReader) FindMainRepo ¶
func (_m *OCIRepositoryReader) FindMainRepo(ctx context.Context, orgID string) (*biz.OCIRepository, error)
FindMainRepo provides a mock function with given fields: ctx, orgID
func (*OCIRepositoryReader) PerformValidation ¶
func (_m *OCIRepositoryReader) PerformValidation(ctx context.Context, ID string) error
PerformValidation provides a mock function with given fields: ctx, ID
type OCIRepositoryRepo ¶
OCIRepositoryRepo is an autogenerated mock type for the OCIRepositoryRepo type
func NewOCIRepositoryRepo ¶
func NewOCIRepositoryRepo(t mockConstructorTestingTNewOCIRepositoryRepo) *OCIRepositoryRepo
NewOCIRepositoryRepo creates a new instance of OCIRepositoryRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*OCIRepositoryRepo) Create ¶
func (_m *OCIRepositoryRepo) Create(_a0 context.Context, _a1 *biz.OCIRepoCreateOpts) (*biz.OCIRepository, error)
Create provides a mock function with given fields: _a0, _a1
func (*OCIRepositoryRepo) FindByID ¶
func (_m *OCIRepositoryRepo) FindByID(ctx context.Context, ID uuid.UUID) (*biz.OCIRepository, error)
FindByID provides a mock function with given fields: ctx, ID
func (*OCIRepositoryRepo) FindMainRepo ¶
func (_m *OCIRepositoryRepo) FindMainRepo(ctx context.Context, orgID uuid.UUID) (*biz.OCIRepository, error)
FindMainRepo provides a mock function with given fields: ctx, orgID
func (*OCIRepositoryRepo) Update ¶
func (_m *OCIRepositoryRepo) Update(_a0 context.Context, _a1 *biz.OCIRepoUpdateOpts) (*biz.OCIRepository, error)
Update provides a mock function with given fields: _a0, _a1
func (*OCIRepositoryRepo) UpdateValidationStatus ¶
func (_m *OCIRepositoryRepo) UpdateValidationStatus(ctx context.Context, ID uuid.UUID, status biz.OCIRepoValidationStatus) error
UpdateValidationStatus provides a mock function with given fields: ctx, ID, status
type OrganizationRepo ¶
OrganizationRepo is an autogenerated mock type for the OrganizationRepo type
func NewOrganizationRepo ¶
func NewOrganizationRepo(t mockConstructorTestingTNewOrganizationRepo) *OrganizationRepo
NewOrganizationRepo creates a new instance of OrganizationRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*OrganizationRepo) Create ¶
func (_m *OrganizationRepo) Create(ctx context.Context, name string) (*biz.Organization, error)
Create provides a mock function with given fields: ctx, name
func (*OrganizationRepo) FindByID ¶
func (_m *OrganizationRepo) FindByID(ctx context.Context, orgID uuid.UUID) (*biz.Organization, error)
FindByID provides a mock function with given fields: ctx, orgID
type UserOrgFinder ¶
UserOrgFinder is an autogenerated mock type for the UserOrgFinder type
func NewUserOrgFinder ¶
func NewUserOrgFinder(t mockConstructorTestingTNewUserOrgFinder) *UserOrgFinder
NewUserOrgFinder creates a new instance of UserOrgFinder. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*UserOrgFinder) CurrentOrg ¶
func (_m *UserOrgFinder) CurrentOrg(ctx context.Context, userID string) (*biz.Organization, error)
CurrentOrg provides a mock function with given fields: ctx, userID
type WorkflowRunRepo ¶
WorkflowRunRepo is an autogenerated mock type for the WorkflowRunRepo type
func NewWorkflowRunRepo ¶
func NewWorkflowRunRepo(t mockConstructorTestingTNewWorkflowRunRepo) *WorkflowRunRepo
NewWorkflowRunRepo creates a new instance of WorkflowRunRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*WorkflowRunRepo) Create ¶
func (_m *WorkflowRunRepo) Create(ctx context.Context, workflowID uuid.UUID, robotaccountID uuid.UUID, contractVersion uuid.UUID, runURL string, runnerType string) (*biz.WorkflowRun, error)
Create provides a mock function with given fields: ctx, workflowID, robotaccountID, contractVersion, runURL, runnerType
func (*WorkflowRunRepo) FindByID ¶
func (_m *WorkflowRunRepo) FindByID(ctx context.Context, ID uuid.UUID) (*biz.WorkflowRun, error)
FindByID provides a mock function with given fields: ctx, ID
func (*WorkflowRunRepo) FindByIDInOrg ¶
func (_m *WorkflowRunRepo) FindByIDInOrg(ctx context.Context, orgID uuid.UUID, ID uuid.UUID) (*biz.WorkflowRun, error)
FindByIDInOrg provides a mock function with given fields: ctx, orgID, ID
func (*WorkflowRunRepo) List ¶
func (_m *WorkflowRunRepo) List(ctx context.Context, orgID uuid.UUID, workflowID uuid.UUID, p *pagination.Options) ([]*biz.WorkflowRun, string, error)
List provides a mock function with given fields: ctx, orgID, workflowID, p
func (*WorkflowRunRepo) ListNotFinishedOlderThan ¶
func (_m *WorkflowRunRepo) ListNotFinishedOlderThan(ctx context.Context, olderThan time.Time) ([]*biz.WorkflowRun, error)
ListNotFinishedOlderThan provides a mock function with given fields: ctx, olderThan
func (*WorkflowRunRepo) MarkAsFinished ¶
func (_m *WorkflowRunRepo) MarkAsFinished(ctx context.Context, ID uuid.UUID, status biz.WorkflowRunStatus, reason string) error
MarkAsFinished provides a mock function with given fields: ctx, ID, status, reason
func (*WorkflowRunRepo) SaveAttestationRef ¶
func (_m *WorkflowRunRepo) SaveAttestationRef(ctx context.Context, ID uuid.UUID, ref *biz.AttestationRef) error
SaveAttestationRef provides a mock function with given fields: ctx, ID, ref