mocks

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CASClient added in v0.8.95

type CASClient struct {
	mock.Mock
}

CASClient is an autogenerated mock type for the CASClient type

func NewCASClient added in v0.8.95

func NewCASClient(t mockConstructorTestingTNewCASClient) *CASClient

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

func (*CASClient) Configured added in v0.8.95

func (_m *CASClient) Configured() bool

Configured provides a mock function with given fields:

func (*CASClient) Download added in v0.8.95

func (_m *CASClient) Download(ctx context.Context, secretID string, w io.Writer, digest string) error

Download provides a mock function with given fields: ctx, secretID, w, digest

func (*CASClient) Upload added in v0.8.95

func (_m *CASClient) Upload(ctx context.Context, secretID string, content io.Reader, filename string, digest string) error

Upload provides a mock function with given fields: ctx, secretID, content, filename, digest

type OCIRepositoryReader

type OCIRepositoryReader struct {
	mock.Mock
}

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

type OCIRepositoryRepo struct {
	mock.Mock
}

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

Create provides a mock function with given fields: _a0, _a1

func (*OCIRepositoryRepo) Delete

func (_m *OCIRepositoryRepo) Delete(ctx context.Context, ID uuid.UUID) error

Delete provides a mock function with given fields: ctx, ID

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

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

type OrganizationRepo struct {
	mock.Mock
}

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) Delete

func (_m *OrganizationRepo) Delete(ctx context.Context, ID uuid.UUID) error

Delete provides a mock function with given fields: ctx, ID

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

type UserOrgFinder struct {
	mock.Mock
}

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

func (*UserOrgFinder) FindByID

func (_m *UserOrgFinder) FindByID(ctx context.Context, userID string) (*biz.User, error)

FindByID provides a mock function with given fields: ctx, userID

type WorkflowRunRepo

type WorkflowRunRepo struct {
	mock.Mock
}

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) Expire

func (_m *WorkflowRunRepo) Expire(ctx context.Context, id uuid.UUID) error

Expire provides a mock function with given fields: ctx, id

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

Jump to

Keyboard shortcuts

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