Help us shape the future of Go! Take the 2026 Go Developer Survey

mocks

package
v1.126.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 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 APITokenRepo

type APITokenRepo struct {
	mock.Mock
}

APITokenRepo is an autogenerated mock type for the APITokenRepo type

func NewAPITokenRepo

func NewAPITokenRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *APITokenRepo

NewAPITokenRepo creates a new instance of APITokenRepo. 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 (*APITokenRepo) Create

func (_mock *APITokenRepo) Create(ctx context.Context, opts *biz.APITokenCreateOpts) (*biz.APIToken, error)

Create provides a mock function for the type APITokenRepo

func (*APITokenRepo) EXPECT added in v1.54.0

func (_m *APITokenRepo) EXPECT() *APITokenRepo_Expecter

func (*APITokenRepo) FindByID

func (_mock *APITokenRepo) FindByID(ctx context.Context, ID uuid.UUID) (*biz.APIToken, error)

FindByID provides a mock function for the type APITokenRepo

func (*APITokenRepo) FindByIDInOrg added in v1.29.0

func (_mock *APITokenRepo) FindByIDInOrg(ctx context.Context, orgID uuid.UUID, id uuid.UUID) (*biz.APIToken, error)

FindByIDInOrg provides a mock function for the type APITokenRepo

func (*APITokenRepo) FindByNameInOrg added in v0.93.1

func (_mock *APITokenRepo) FindByNameInOrg(ctx context.Context, orgID uuid.UUID, name string) (*biz.APIToken, error)

FindByNameInOrg provides a mock function for the type APITokenRepo

func (*APITokenRepo) FindInactive added in v1.77.1

func (_mock *APITokenRepo) FindInactive(ctx context.Context, orgID uuid.UUID, inactiveSince time.Time) ([]*biz.APIToken, error)

FindInactive provides a mock function for the type APITokenRepo

func (*APITokenRepo) List

func (_mock *APITokenRepo) List(ctx context.Context, orgID *uuid.UUID, filters *biz.APITokenListFilters) ([]*biz.APIToken, error)

List provides a mock function for the type APITokenRepo

func (*APITokenRepo) Revoke

func (_mock *APITokenRepo) Revoke(ctx context.Context, orgID *uuid.UUID, ID uuid.UUID) error

Revoke provides a mock function for the type APITokenRepo

func (*APITokenRepo) UpdateExpiration added in v1.5.0

func (_mock *APITokenRepo) UpdateExpiration(ctx context.Context, ID uuid.UUID, expiresAt time.Time) error

UpdateExpiration provides a mock function for the type APITokenRepo

func (*APITokenRepo) UpdateLastUsedAt added in v1.29.0

func (_mock *APITokenRepo) UpdateLastUsedAt(ctx context.Context, ID uuid.UUID, lastUsedAt time.Time) error

UpdateLastUsedAt provides a mock function for the type APITokenRepo

type APITokenRepo_Create_Call added in v1.54.0

type APITokenRepo_Create_Call struct {
	*mock.Call
}

APITokenRepo_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'

func (*APITokenRepo_Create_Call) Return added in v1.54.0

func (*APITokenRepo_Create_Call) Run added in v1.54.0

func (*APITokenRepo_Create_Call) RunAndReturn added in v1.54.0

type APITokenRepo_Expecter added in v1.54.0

type APITokenRepo_Expecter struct {
	// contains filtered or unexported fields
}

func (*APITokenRepo_Expecter) Create added in v1.54.0

func (_e *APITokenRepo_Expecter) Create(ctx any, opts any) *APITokenRepo_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • opts *biz.APITokenCreateOpts

func (*APITokenRepo_Expecter) FindByID added in v1.54.0

FindByID is a helper method to define mock.On call

  • ctx context.Context
  • ID uuid.UUID

func (*APITokenRepo_Expecter) FindByIDInOrg added in v1.54.0

func (_e *APITokenRepo_Expecter) FindByIDInOrg(ctx any, orgID any, id any) *APITokenRepo_FindByIDInOrg_Call

FindByIDInOrg is a helper method to define mock.On call

  • ctx context.Context
  • orgID uuid.UUID
  • id uuid.UUID

func (*APITokenRepo_Expecter) FindByNameInOrg added in v1.54.0

func (_e *APITokenRepo_Expecter) FindByNameInOrg(ctx any, orgID any, name any) *APITokenRepo_FindByNameInOrg_Call

FindByNameInOrg is a helper method to define mock.On call

  • ctx context.Context
  • orgID uuid.UUID
  • name string

func (*APITokenRepo_Expecter) FindInactive added in v1.77.1

func (_e *APITokenRepo_Expecter) FindInactive(ctx any, orgID any, inactiveSince any) *APITokenRepo_FindInactive_Call

FindInactive is a helper method to define mock.On call

  • ctx context.Context
  • orgID uuid.UUID
  • inactiveSince time.Time

func (*APITokenRepo_Expecter) List added in v1.54.0

func (_e *APITokenRepo_Expecter) List(ctx any, orgID any, filters any) *APITokenRepo_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • orgID *uuid.UUID
  • filters *biz.APITokenListFilters

func (*APITokenRepo_Expecter) Revoke added in v1.54.0

func (_e *APITokenRepo_Expecter) Revoke(ctx any, orgID any, ID any) *APITokenRepo_Revoke_Call

Revoke is a helper method to define mock.On call

  • ctx context.Context
  • orgID *uuid.UUID
  • ID uuid.UUID

func (*APITokenRepo_Expecter) UpdateExpiration added in v1.54.0

func (_e *APITokenRepo_Expecter) UpdateExpiration(ctx any, ID any, expiresAt any) *APITokenRepo_UpdateExpiration_Call

UpdateExpiration is a helper method to define mock.On call

  • ctx context.Context
  • ID uuid.UUID
  • expiresAt time.Time

func (*APITokenRepo_Expecter) UpdateLastUsedAt added in v1.54.0

func (_e *APITokenRepo_Expecter) UpdateLastUsedAt(ctx any, ID any, lastUsedAt any) *APITokenRepo_UpdateLastUsedAt_Call

UpdateLastUsedAt is a helper method to define mock.On call

  • ctx context.Context
  • ID uuid.UUID
  • lastUsedAt time.Time

type APITokenRepo_FindByIDInOrg_Call added in v1.54.0

type APITokenRepo_FindByIDInOrg_Call struct {
	*mock.Call
}

APITokenRepo_FindByIDInOrg_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByIDInOrg'

func (*APITokenRepo_FindByIDInOrg_Call) Return added in v1.54.0

func (*APITokenRepo_FindByIDInOrg_Call) Run added in v1.54.0

func (*APITokenRepo_FindByIDInOrg_Call) RunAndReturn added in v1.54.0

type APITokenRepo_FindByID_Call added in v1.54.0

type APITokenRepo_FindByID_Call struct {
	*mock.Call
}

APITokenRepo_FindByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByID'

func (*APITokenRepo_FindByID_Call) Return added in v1.54.0

func (*APITokenRepo_FindByID_Call) Run added in v1.54.0

func (*APITokenRepo_FindByID_Call) RunAndReturn added in v1.54.0

type APITokenRepo_FindByNameInOrg_Call added in v1.54.0

type APITokenRepo_FindByNameInOrg_Call struct {
	*mock.Call
}

APITokenRepo_FindByNameInOrg_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByNameInOrg'

func (*APITokenRepo_FindByNameInOrg_Call) Return added in v1.54.0

func (*APITokenRepo_FindByNameInOrg_Call) Run added in v1.54.0

func (*APITokenRepo_FindByNameInOrg_Call) RunAndReturn added in v1.54.0

type APITokenRepo_FindInactive_Call added in v1.77.1

type APITokenRepo_FindInactive_Call struct {
	*mock.Call
}

APITokenRepo_FindInactive_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindInactive'

func (*APITokenRepo_FindInactive_Call) Return added in v1.77.1

func (*APITokenRepo_FindInactive_Call) Run added in v1.77.1

func (_c *APITokenRepo_FindInactive_Call) Run(run func(ctx context.Context, orgID uuid.UUID, inactiveSince time.Time)) *APITokenRepo_FindInactive_Call

func (*APITokenRepo_FindInactive_Call) RunAndReturn added in v1.77.1

func (_c *APITokenRepo_FindInactive_Call) RunAndReturn(run func(ctx context.Context, orgID uuid.UUID, inactiveSince time.Time) ([]*biz.APIToken, error)) *APITokenRepo_FindInactive_Call

type APITokenRepo_List_Call added in v1.54.0

type APITokenRepo_List_Call struct {
	*mock.Call
}

APITokenRepo_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'

func (*APITokenRepo_List_Call) Return added in v1.54.0

func (_c *APITokenRepo_List_Call) Return(aPITokens []*biz.APIToken, err error) *APITokenRepo_List_Call

func (*APITokenRepo_List_Call) Run added in v1.54.0

func (*APITokenRepo_List_Call) RunAndReturn added in v1.54.0

func (_c *APITokenRepo_List_Call) RunAndReturn(run func(ctx context.Context, orgID *uuid.UUID, filters *biz.APITokenListFilters) ([]*biz.APIToken, error)) *APITokenRepo_List_Call

type APITokenRepo_Revoke_Call added in v1.54.0

type APITokenRepo_Revoke_Call struct {
	*mock.Call
}

APITokenRepo_Revoke_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Revoke'

func (*APITokenRepo_Revoke_Call) Return added in v1.54.0

func (*APITokenRepo_Revoke_Call) Run added in v1.54.0

func (_c *APITokenRepo_Revoke_Call) Run(run func(ctx context.Context, orgID *uuid.UUID, ID uuid.UUID)) *APITokenRepo_Revoke_Call

func (*APITokenRepo_Revoke_Call) RunAndReturn added in v1.54.0

func (_c *APITokenRepo_Revoke_Call) RunAndReturn(run func(ctx context.Context, orgID *uuid.UUID, ID uuid.UUID) error) *APITokenRepo_Revoke_Call

type APITokenRepo_UpdateExpiration_Call added in v1.54.0

type APITokenRepo_UpdateExpiration_Call struct {
	*mock.Call
}

APITokenRepo_UpdateExpiration_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateExpiration'

func (*APITokenRepo_UpdateExpiration_Call) Return added in v1.54.0

func (*APITokenRepo_UpdateExpiration_Call) Run added in v1.54.0

func (*APITokenRepo_UpdateExpiration_Call) RunAndReturn added in v1.54.0

type APITokenRepo_UpdateLastUsedAt_Call added in v1.54.0

type APITokenRepo_UpdateLastUsedAt_Call struct {
	*mock.Call
}

APITokenRepo_UpdateLastUsedAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateLastUsedAt'

func (*APITokenRepo_UpdateLastUsedAt_Call) Return added in v1.54.0

func (*APITokenRepo_UpdateLastUsedAt_Call) Run added in v1.54.0

func (*APITokenRepo_UpdateLastUsedAt_Call) RunAndReturn added in v1.54.0

type CASBackendReader

type CASBackendReader struct {
	mock.Mock
}

CASBackendReader is an autogenerated mock type for the CASBackendReader type

func NewCASBackendReader

func NewCASBackendReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *CASBackendReader

NewCASBackendReader creates a new instance of CASBackendReader. 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 (*CASBackendReader) FindByIDInOrg

func (_m *CASBackendReader) FindByIDInOrg(ctx context.Context, OrgID string, ID string) (*biz.CASBackend, error)

FindByIDInOrg provides a mock function with given fields: ctx, OrgID, ID

func (*CASBackendReader) FindDefaultBackend

func (_m *CASBackendReader) FindDefaultBackend(ctx context.Context, orgID string) (*biz.CASBackend, error)

FindDefaultBackend provides a mock function with given fields: ctx, orgID

func (*CASBackendReader) PerformValidation

func (_m *CASBackendReader) PerformValidation(ctx context.Context, ID string) error

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

type CASBackendRepo

type CASBackendRepo struct {
	mock.Mock
}

CASBackendRepo is an autogenerated mock type for the CASBackendRepo type

func NewCASBackendRepo

func NewCASBackendRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *CASBackendRepo

NewCASBackendRepo creates a new instance of CASBackendRepo. 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 (*CASBackendRepo) Create

func (_mock *CASBackendRepo) Create(context1 context.Context, cASBackendCreateOpts *biz.CASBackendCreateOpts) (*biz.CASBackend, error)

Create provides a mock function for the type CASBackendRepo

func (*CASBackendRepo) Delete

func (_mock *CASBackendRepo) Delete(ctx context.Context, ID uuid.UUID) error

Delete provides a mock function for the type CASBackendRepo

func (*CASBackendRepo) EXPECT added in v1.54.0

func (*CASBackendRepo) FindByID

func (_mock *CASBackendRepo) FindByID(ctx context.Context, ID uuid.UUID) (*biz.CASBackend, error)

FindByID provides a mock function for the type CASBackendRepo

func (*CASBackendRepo) FindByIDInOrg

func (_mock *CASBackendRepo) FindByIDInOrg(ctx context.Context, OrgID uuid.UUID, ID uuid.UUID) (*biz.CASBackend, error)

FindByIDInOrg provides a mock function for the type CASBackendRepo

func (*CASBackendRepo) FindByNameInOrg added in v0.93.0

func (_mock *CASBackendRepo) FindByNameInOrg(ctx context.Context, OrgID uuid.UUID, name string) (*biz.CASBackend, error)

FindByNameInOrg provides a mock function for the type CASBackendRepo

func (*CASBackendRepo) FindDefaultBackend

func (_mock *CASBackendRepo) FindDefaultBackend(ctx context.Context, orgID uuid.UUID) (*biz.CASBackend, error)

FindDefaultBackend provides a mock function for the type CASBackendRepo

func (*CASBackendRepo) FindFallbackBackend

func (_mock *CASBackendRepo) FindFallbackBackend(ctx context.Context, orgID uuid.UUID) (*biz.CASBackend, error)

FindFallbackBackend provides a mock function for the type CASBackendRepo

func (*CASBackendRepo) FindInlineBackend added in v1.67.0

func (_mock *CASBackendRepo) FindInlineBackend(ctx context.Context, orgID uuid.UUID) (*biz.CASBackend, error)

FindInlineBackend provides a mock function for the type CASBackendRepo

func (*CASBackendRepo) FindManagedBackend added in v1.98.6

func (_mock *CASBackendRepo) FindManagedBackend(ctx context.Context, orgID uuid.UUID) (*biz.CASBackend, error)

FindManagedBackend provides a mock function for the type CASBackendRepo

func (*CASBackendRepo) List

func (_mock *CASBackendRepo) List(ctx context.Context, orgID uuid.UUID) ([]*biz.CASBackend, error)

List provides a mock function for the type CASBackendRepo

func (*CASBackendRepo) ListBackends added in v1.43.2

func (_mock *CASBackendRepo) ListBackends(ctx context.Context, defaultsOrFallbacks bool) ([]*biz.CASBackend, error)

ListBackends provides a mock function for the type CASBackendRepo

func (*CASBackendRepo) SoftDelete

func (_mock *CASBackendRepo) SoftDelete(ctx context.Context, ID uuid.UUID) error

SoftDelete provides a mock function for the type CASBackendRepo

func (*CASBackendRepo) Update

func (_mock *CASBackendRepo) Update(context1 context.Context, cASBackendUpdateOpts *biz.CASBackendUpdateOpts) (*biz.CASBackend, error)

Update provides a mock function for the type CASBackendRepo

func (*CASBackendRepo) UpdateValidationStatus

func (_mock *CASBackendRepo) UpdateValidationStatus(ctx context.Context, ID uuid.UUID, status biz.CASBackendValidationStatus, validationError *string) error

UpdateValidationStatus provides a mock function for the type CASBackendRepo

type CASBackendRepo_Create_Call added in v1.54.0

type CASBackendRepo_Create_Call struct {
	*mock.Call
}

CASBackendRepo_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'

func (*CASBackendRepo_Create_Call) Return added in v1.54.0

func (*CASBackendRepo_Create_Call) Run added in v1.54.0

func (_c *CASBackendRepo_Create_Call) Run(run func(context1 context.Context, cASBackendCreateOpts *biz.CASBackendCreateOpts)) *CASBackendRepo_Create_Call

func (*CASBackendRepo_Create_Call) RunAndReturn added in v1.54.0

func (_c *CASBackendRepo_Create_Call) RunAndReturn(run func(context1 context.Context, cASBackendCreateOpts *biz.CASBackendCreateOpts) (*biz.CASBackend, error)) *CASBackendRepo_Create_Call

type CASBackendRepo_Delete_Call added in v1.54.0

type CASBackendRepo_Delete_Call struct {
	*mock.Call
}

CASBackendRepo_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'

func (*CASBackendRepo_Delete_Call) Return added in v1.54.0

func (*CASBackendRepo_Delete_Call) Run added in v1.54.0

func (*CASBackendRepo_Delete_Call) RunAndReturn added in v1.54.0

type CASBackendRepo_Expecter added in v1.54.0

type CASBackendRepo_Expecter struct {
	// contains filtered or unexported fields
}

func (*CASBackendRepo_Expecter) Create added in v1.54.0

func (_e *CASBackendRepo_Expecter) Create(context1 interface{}, cASBackendCreateOpts interface{}) *CASBackendRepo_Create_Call

Create is a helper method to define mock.On call

  • context1 context.Context
  • cASBackendCreateOpts *biz.CASBackendCreateOpts

func (*CASBackendRepo_Expecter) Delete added in v1.54.0

func (_e *CASBackendRepo_Expecter) Delete(ctx interface{}, ID interface{}) *CASBackendRepo_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • ID uuid.UUID

func (*CASBackendRepo_Expecter) FindByID added in v1.54.0

func (_e *CASBackendRepo_Expecter) FindByID(ctx interface{}, ID interface{}) *CASBackendRepo_FindByID_Call

FindByID is a helper method to define mock.On call

  • ctx context.Context
  • ID uuid.UUID

func (*CASBackendRepo_Expecter) FindByIDInOrg added in v1.54.0

func (_e *CASBackendRepo_Expecter) FindByIDInOrg(ctx interface{}, OrgID interface{}, ID interface{}) *CASBackendRepo_FindByIDInOrg_Call

FindByIDInOrg is a helper method to define mock.On call

  • ctx context.Context
  • OrgID uuid.UUID
  • ID uuid.UUID

func (*CASBackendRepo_Expecter) FindByNameInOrg added in v1.54.0

func (_e *CASBackendRepo_Expecter) FindByNameInOrg(ctx interface{}, OrgID interface{}, name interface{}) *CASBackendRepo_FindByNameInOrg_Call

FindByNameInOrg is a helper method to define mock.On call

  • ctx context.Context
  • OrgID uuid.UUID
  • name string

func (*CASBackendRepo_Expecter) FindDefaultBackend added in v1.54.0

func (_e *CASBackendRepo_Expecter) FindDefaultBackend(ctx interface{}, orgID interface{}) *CASBackendRepo_FindDefaultBackend_Call

FindDefaultBackend is a helper method to define mock.On call

  • ctx context.Context
  • orgID uuid.UUID

func (*CASBackendRepo_Expecter) FindFallbackBackend added in v1.54.0

func (_e *CASBackendRepo_Expecter) FindFallbackBackend(ctx interface{}, orgID interface{}) *CASBackendRepo_FindFallbackBackend_Call

FindFallbackBackend is a helper method to define mock.On call

  • ctx context.Context
  • orgID uuid.UUID

func (*CASBackendRepo_Expecter) FindInlineBackend added in v1.67.0

func (_e *CASBackendRepo_Expecter) FindInlineBackend(ctx interface{}, orgID interface{}) *CASBackendRepo_FindInlineBackend_Call

FindInlineBackend is a helper method to define mock.On call

  • ctx context.Context
  • orgID uuid.UUID

func (*CASBackendRepo_Expecter) FindManagedBackend added in v1.98.6

func (_e *CASBackendRepo_Expecter) FindManagedBackend(ctx interface{}, orgID interface{}) *CASBackendRepo_FindManagedBackend_Call

FindManagedBackend is a helper method to define mock.On call

  • ctx context.Context
  • orgID uuid.UUID

func (*CASBackendRepo_Expecter) List added in v1.54.0

func (_e *CASBackendRepo_Expecter) List(ctx interface{}, orgID interface{}) *CASBackendRepo_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • orgID uuid.UUID

func (*CASBackendRepo_Expecter) ListBackends added in v1.54.0

func (_e *CASBackendRepo_Expecter) ListBackends(ctx interface{}, defaultsOrFallbacks interface{}) *CASBackendRepo_ListBackends_Call

ListBackends is a helper method to define mock.On call

  • ctx context.Context
  • defaultsOrFallbacks bool

func (*CASBackendRepo_Expecter) SoftDelete added in v1.54.0

func (_e *CASBackendRepo_Expecter) SoftDelete(ctx interface{}, ID interface{}) *CASBackendRepo_SoftDelete_Call

SoftDelete is a helper method to define mock.On call

  • ctx context.Context
  • ID uuid.UUID

func (*CASBackendRepo_Expecter) Update added in v1.54.0

func (_e *CASBackendRepo_Expecter) Update(context1 interface{}, cASBackendUpdateOpts interface{}) *CASBackendRepo_Update_Call

Update is a helper method to define mock.On call

  • context1 context.Context
  • cASBackendUpdateOpts *biz.CASBackendUpdateOpts

func (*CASBackendRepo_Expecter) UpdateValidationStatus added in v1.54.0

func (_e *CASBackendRepo_Expecter) UpdateValidationStatus(ctx interface{}, ID interface{}, status interface{}, validationError interface{}) *CASBackendRepo_UpdateValidationStatus_Call

UpdateValidationStatus is a helper method to define mock.On call

  • ctx context.Context
  • ID uuid.UUID
  • status biz.CASBackendValidationStatus
  • validationError *string

type CASBackendRepo_FindByIDInOrg_Call added in v1.54.0

type CASBackendRepo_FindByIDInOrg_Call struct {
	*mock.Call
}

CASBackendRepo_FindByIDInOrg_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByIDInOrg'

func (*CASBackendRepo_FindByIDInOrg_Call) Return added in v1.54.0

func (*CASBackendRepo_FindByIDInOrg_Call) Run added in v1.54.0

func (*CASBackendRepo_FindByIDInOrg_Call) RunAndReturn added in v1.54.0

type CASBackendRepo_FindByID_Call added in v1.54.0

type CASBackendRepo_FindByID_Call struct {
	*mock.Call
}

CASBackendRepo_FindByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByID'

func (*CASBackendRepo_FindByID_Call) Return added in v1.54.0

func (*CASBackendRepo_FindByID_Call) Run added in v1.54.0

func (*CASBackendRepo_FindByID_Call) RunAndReturn added in v1.54.0

type CASBackendRepo_FindByNameInOrg_Call added in v1.54.0

type CASBackendRepo_FindByNameInOrg_Call struct {
	*mock.Call
}

CASBackendRepo_FindByNameInOrg_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByNameInOrg'

func (*CASBackendRepo_FindByNameInOrg_Call) Return added in v1.54.0

func (*CASBackendRepo_FindByNameInOrg_Call) Run added in v1.54.0

func (*CASBackendRepo_FindByNameInOrg_Call) RunAndReturn added in v1.54.0

type CASBackendRepo_FindDefaultBackend_Call added in v1.54.0

type CASBackendRepo_FindDefaultBackend_Call struct {
	*mock.Call
}

CASBackendRepo_FindDefaultBackend_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindDefaultBackend'

func (*CASBackendRepo_FindDefaultBackend_Call) Return added in v1.54.0

func (*CASBackendRepo_FindDefaultBackend_Call) Run added in v1.54.0

func (*CASBackendRepo_FindDefaultBackend_Call) RunAndReturn added in v1.54.0

type CASBackendRepo_FindFallbackBackend_Call added in v1.54.0

type CASBackendRepo_FindFallbackBackend_Call struct {
	*mock.Call
}

CASBackendRepo_FindFallbackBackend_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindFallbackBackend'

func (*CASBackendRepo_FindFallbackBackend_Call) Return added in v1.54.0

func (*CASBackendRepo_FindFallbackBackend_Call) Run added in v1.54.0

func (*CASBackendRepo_FindFallbackBackend_Call) RunAndReturn added in v1.54.0

type CASBackendRepo_FindInlineBackend_Call added in v1.67.0

type CASBackendRepo_FindInlineBackend_Call struct {
	*mock.Call
}

CASBackendRepo_FindInlineBackend_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindInlineBackend'

func (*CASBackendRepo_FindInlineBackend_Call) Return added in v1.67.0

func (*CASBackendRepo_FindInlineBackend_Call) Run added in v1.67.0

func (*CASBackendRepo_FindInlineBackend_Call) RunAndReturn added in v1.67.0

type CASBackendRepo_FindManagedBackend_Call added in v1.98.6

type CASBackendRepo_FindManagedBackend_Call struct {
	*mock.Call
}

CASBackendRepo_FindManagedBackend_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindManagedBackend'

func (*CASBackendRepo_FindManagedBackend_Call) Return added in v1.98.6

func (*CASBackendRepo_FindManagedBackend_Call) Run added in v1.98.6

func (*CASBackendRepo_FindManagedBackend_Call) RunAndReturn added in v1.98.6

type CASBackendRepo_ListBackends_Call added in v1.54.0

type CASBackendRepo_ListBackends_Call struct {
	*mock.Call
}

CASBackendRepo_ListBackends_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListBackends'

func (*CASBackendRepo_ListBackends_Call) Return added in v1.54.0

func (*CASBackendRepo_ListBackends_Call) Run added in v1.54.0

func (_c *CASBackendRepo_ListBackends_Call) Run(run func(ctx context.Context, defaultsOrFallbacks bool)) *CASBackendRepo_ListBackends_Call

func (*CASBackendRepo_ListBackends_Call) RunAndReturn added in v1.54.0

func (_c *CASBackendRepo_ListBackends_Call) RunAndReturn(run func(ctx context.Context, defaultsOrFallbacks bool) ([]*biz.CASBackend, error)) *CASBackendRepo_ListBackends_Call

type CASBackendRepo_List_Call added in v1.54.0

type CASBackendRepo_List_Call struct {
	*mock.Call
}

CASBackendRepo_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'

func (*CASBackendRepo_List_Call) Return added in v1.54.0

func (_c *CASBackendRepo_List_Call) Return(cASBackends []*biz.CASBackend, err error) *CASBackendRepo_List_Call

func (*CASBackendRepo_List_Call) Run added in v1.54.0

func (*CASBackendRepo_List_Call) RunAndReturn added in v1.54.0

func (_c *CASBackendRepo_List_Call) RunAndReturn(run func(ctx context.Context, orgID uuid.UUID) ([]*biz.CASBackend, error)) *CASBackendRepo_List_Call

type CASBackendRepo_SoftDelete_Call added in v1.54.0

type CASBackendRepo_SoftDelete_Call struct {
	*mock.Call
}

CASBackendRepo_SoftDelete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SoftDelete'

func (*CASBackendRepo_SoftDelete_Call) Return added in v1.54.0

func (*CASBackendRepo_SoftDelete_Call) Run added in v1.54.0

func (*CASBackendRepo_SoftDelete_Call) RunAndReturn added in v1.54.0

type CASBackendRepo_UpdateValidationStatus_Call added in v1.54.0

type CASBackendRepo_UpdateValidationStatus_Call struct {
	*mock.Call
}

CASBackendRepo_UpdateValidationStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateValidationStatus'

func (*CASBackendRepo_UpdateValidationStatus_Call) Return added in v1.54.0

func (*CASBackendRepo_UpdateValidationStatus_Call) Run added in v1.54.0

func (*CASBackendRepo_UpdateValidationStatus_Call) RunAndReturn added in v1.54.0

type CASBackendRepo_Update_Call added in v1.54.0

type CASBackendRepo_Update_Call struct {
	*mock.Call
}

CASBackendRepo_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'

func (*CASBackendRepo_Update_Call) Return added in v1.54.0

func (*CASBackendRepo_Update_Call) Run added in v1.54.0

func (_c *CASBackendRepo_Update_Call) Run(run func(context1 context.Context, cASBackendUpdateOpts *biz.CASBackendUpdateOpts)) *CASBackendRepo_Update_Call

func (*CASBackendRepo_Update_Call) RunAndReturn added in v1.54.0

func (_c *CASBackendRepo_Update_Call) RunAndReturn(run func(context1 context.Context, cASBackendUpdateOpts *biz.CASBackendUpdateOpts) (*biz.CASBackend, error)) *CASBackendRepo_Update_Call

type CASClient

type CASClient struct {
	mock.Mock
}

CASClient is an autogenerated mock type for the CASClient type

func NewCASClient

func NewCASClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*CASClient) Download

func (_mock *CASClient) Download(ctx context.Context, backendType string, secretID string, orgID uuid.UUID, w io.Writer, digest string) error

Download provides a mock function for the type CASClient

func (*CASClient) EXPECT added in v1.108.5

func (_m *CASClient) EXPECT() *CASClient_Expecter

func (*CASClient) Upload

func (_mock *CASClient) Upload(ctx context.Context, backendType string, secretID string, orgID uuid.UUID, content io.Reader, filename string, digest string) error

Upload provides a mock function for the type CASClient

type CASClient_Download_Call added in v1.108.5

type CASClient_Download_Call struct {
	*mock.Call
}

CASClient_Download_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Download'

func (*CASClient_Download_Call) Return added in v1.108.5

func (*CASClient_Download_Call) Run added in v1.108.5

func (_c *CASClient_Download_Call) Run(run func(ctx context.Context, backendType string, secretID string, orgID uuid.UUID, w io.Writer, digest string)) *CASClient_Download_Call

func (*CASClient_Download_Call) RunAndReturn added in v1.108.5

func (_c *CASClient_Download_Call) RunAndReturn(run func(ctx context.Context, backendType string, secretID string, orgID uuid.UUID, w io.Writer, digest string) error) *CASClient_Download_Call

type CASClient_Expecter added in v1.108.5

type CASClient_Expecter struct {
	// contains filtered or unexported fields
}

func (*CASClient_Expecter) Download added in v1.108.5

func (_e *CASClient_Expecter) Download(ctx any, backendType any, secretID any, orgID any, w any, digest any) *CASClient_Download_Call

Download is a helper method to define mock.On call

  • ctx context.Context
  • backendType string
  • secretID string
  • orgID uuid.UUID
  • w io.Writer
  • digest string

func (*CASClient_Expecter) Upload added in v1.108.5

func (_e *CASClient_Expecter) Upload(ctx any, backendType any, secretID any, orgID any, content any, filename any, digest any) *CASClient_Upload_Call

Upload is a helper method to define mock.On call

  • ctx context.Context
  • backendType string
  • secretID string
  • orgID uuid.UUID
  • content io.Reader
  • filename string
  • digest string

type CASClient_Upload_Call added in v1.108.5

type CASClient_Upload_Call struct {
	*mock.Call
}

CASClient_Upload_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upload'

func (*CASClient_Upload_Call) Return added in v1.108.5

func (*CASClient_Upload_Call) Run added in v1.108.5

func (_c *CASClient_Upload_Call) Run(run func(ctx context.Context, backendType string, secretID string, orgID uuid.UUID, content io.Reader, filename string, digest string)) *CASClient_Upload_Call

func (*CASClient_Upload_Call) RunAndReturn added in v1.108.5

func (_c *CASClient_Upload_Call) RunAndReturn(run func(ctx context.Context, backendType string, secretID string, orgID uuid.UUID, content io.Reader, filename string, digest string) error) *CASClient_Upload_Call

type CASMappingRepo

type CASMappingRepo struct {
	mock.Mock
}

CASMappingRepo is an autogenerated mock type for the CASMappingRepo type

func NewCASMappingRepo

func NewCASMappingRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *CASMappingRepo

NewCASMappingRepo creates a new instance of CASMappingRepo. 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 (*CASMappingRepo) Create

func (_mock *CASMappingRepo) Create(ctx context.Context, digest string, casBackendID uuid.UUID, opts *biz.CASMappingCreateOpts) (*biz.CASMapping, error)

Create provides a mock function for the type CASMappingRepo

func (*CASMappingRepo) EXPECT added in v1.99.1

func (*CASMappingRepo) FindByDigestInOrgs added in v1.99.1

func (_mock *CASMappingRepo) FindByDigestInOrgs(ctx context.Context, digest string, orgs []uuid.UUID, scopes biz.RBACScopes) (*biz.CASMapping, error)

FindByDigestInOrgs provides a mock function for the type CASMappingRepo

func (*CASMappingRepo) ListByDigestInOrg added in v1.106.1

func (_mock *CASMappingRepo) ListByDigestInOrg(ctx context.Context, digest string, orgID uuid.UUID) ([]*biz.CASMapping, error)

ListByDigestInOrg provides a mock function for the type CASMappingRepo

type CASMappingRepo_Create_Call added in v1.99.1

type CASMappingRepo_Create_Call struct {
	*mock.Call
}

CASMappingRepo_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'

func (*CASMappingRepo_Create_Call) Return added in v1.99.1

func (*CASMappingRepo_Create_Call) Run added in v1.99.1

func (_c *CASMappingRepo_Create_Call) Run(run func(ctx context.Context, digest string, casBackendID uuid.UUID, opts *biz.CASMappingCreateOpts)) *CASMappingRepo_Create_Call

func (*CASMappingRepo_Create_Call) RunAndReturn added in v1.99.1

func (_c *CASMappingRepo_Create_Call) RunAndReturn(run func(ctx context.Context, digest string, casBackendID uuid.UUID, opts *biz.CASMappingCreateOpts) (*biz.CASMapping, error)) *CASMappingRepo_Create_Call

type CASMappingRepo_Expecter added in v1.99.1

type CASMappingRepo_Expecter struct {
	// contains filtered or unexported fields
}

func (*CASMappingRepo_Expecter) Create added in v1.99.1

func (_e *CASMappingRepo_Expecter) Create(ctx interface{}, digest interface{}, casBackendID interface{}, opts interface{}) *CASMappingRepo_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • digest string
  • casBackendID uuid.UUID
  • opts *biz.CASMappingCreateOpts

func (*CASMappingRepo_Expecter) FindByDigestInOrgs added in v1.99.1

func (_e *CASMappingRepo_Expecter) FindByDigestInOrgs(ctx interface{}, digest interface{}, orgs interface{}, scopes interface{}) *CASMappingRepo_FindByDigestInOrgs_Call

FindByDigestInOrgs is a helper method to define mock.On call

  • ctx context.Context
  • digest string
  • orgs []uuid.UUID
  • scopes biz.RBACScopes

func (*CASMappingRepo_Expecter) ListByDigestInOrg added in v1.106.1

func (_e *CASMappingRepo_Expecter) ListByDigestInOrg(ctx interface{}, digest interface{}, orgID interface{}) *CASMappingRepo_ListByDigestInOrg_Call

ListByDigestInOrg is a helper method to define mock.On call

  • ctx context.Context
  • digest string
  • orgID uuid.UUID

type CASMappingRepo_FindByDigestInOrgs_Call added in v1.99.1

type CASMappingRepo_FindByDigestInOrgs_Call struct {
	*mock.Call
}

CASMappingRepo_FindByDigestInOrgs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByDigestInOrgs'

func (*CASMappingRepo_FindByDigestInOrgs_Call) Return added in v1.99.1

func (*CASMappingRepo_FindByDigestInOrgs_Call) Run added in v1.99.1

func (*CASMappingRepo_FindByDigestInOrgs_Call) RunAndReturn added in v1.99.1

type CASMappingRepo_ListByDigestInOrg_Call added in v1.106.1

type CASMappingRepo_ListByDigestInOrg_Call struct {
	*mock.Call
}

CASMappingRepo_ListByDigestInOrg_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListByDigestInOrg'

func (*CASMappingRepo_ListByDigestInOrg_Call) Return added in v1.106.1

func (*CASMappingRepo_ListByDigestInOrg_Call) Run added in v1.106.1

func (*CASMappingRepo_ListByDigestInOrg_Call) RunAndReturn added in v1.106.1

type MembershipsRBAC added in v1.11.0

type MembershipsRBAC struct {
	mock.Mock
}

MembershipsRBAC is an autogenerated mock type for the MembershipsRBAC type

func NewMembershipsRBAC added in v1.11.0

func NewMembershipsRBAC(t interface {
	mock.TestingT
	Cleanup(func())
}) *MembershipsRBAC

NewMembershipsRBAC creates a new instance of MembershipsRBAC. 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 (*MembershipsRBAC) ListAllMembershipsForUser added in v1.11.0

func (_m *MembershipsRBAC) ListAllMembershipsForUser(ctx context.Context, userID uuid.UUID) ([]*biz.Membership, error)

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

type OrganizationRepo

type OrganizationRepo struct {
	mock.Mock
}

OrganizationRepo is an autogenerated mock type for the OrganizationRepo type

func NewOrganizationRepo

func NewOrganizationRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*OrganizationRepo) Create

func (_mock *OrganizationRepo) Create(ctx context.Context, name string) (*biz.Organization, error)

Create provides a mock function for the type OrganizationRepo

func (*OrganizationRepo) Delete

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

Delete provides a mock function for the type OrganizationRepo

func (*OrganizationRepo) EXPECT added in v1.54.0

func (*OrganizationRepo) FindByID

func (_mock *OrganizationRepo) FindByID(ctx context.Context, orgID uuid.UUID) (*biz.Organization, error)

FindByID provides a mock function for the type OrganizationRepo

func (*OrganizationRepo) FindByName added in v0.91.8

func (_mock *OrganizationRepo) FindByName(ctx context.Context, name string) (*biz.Organization, error)

FindByName provides a mock function for the type OrganizationRepo

func (*OrganizationRepo) FindWithTokenInactivityThreshold added in v1.77.1

func (_mock *OrganizationRepo) FindWithTokenInactivityThreshold(ctx context.Context) ([]*biz.Organization, error)

FindWithTokenInactivityThreshold provides a mock function for the type OrganizationRepo

func (*OrganizationRepo) SetSuspended added in v1.89.12

func (_mock *OrganizationRepo) SetSuspended(ctx context.Context, id uuid.UUID, suspended bool) error

SetSuspended provides a mock function for the type OrganizationRepo

func (*OrganizationRepo) Update

Update provides a mock function for the type OrganizationRepo

type OrganizationRepo_Create_Call added in v1.54.0

type OrganizationRepo_Create_Call struct {
	*mock.Call
}

OrganizationRepo_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'

func (*OrganizationRepo_Create_Call) Return added in v1.54.0

func (*OrganizationRepo_Create_Call) Run added in v1.54.0

func (*OrganizationRepo_Create_Call) RunAndReturn added in v1.54.0

type OrganizationRepo_Delete_Call added in v1.54.0

type OrganizationRepo_Delete_Call struct {
	*mock.Call
}

OrganizationRepo_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'

func (*OrganizationRepo_Delete_Call) Return added in v1.54.0

func (*OrganizationRepo_Delete_Call) Run added in v1.54.0

func (*OrganizationRepo_Delete_Call) RunAndReturn added in v1.54.0

type OrganizationRepo_Expecter added in v1.54.0

type OrganizationRepo_Expecter struct {
	// contains filtered or unexported fields
}

func (*OrganizationRepo_Expecter) Create added in v1.54.0

func (_e *OrganizationRepo_Expecter) Create(ctx interface{}, name interface{}) *OrganizationRepo_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • name string

func (*OrganizationRepo_Expecter) Delete added in v1.54.0

func (_e *OrganizationRepo_Expecter) Delete(ctx interface{}, ID interface{}) *OrganizationRepo_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • ID uuid.UUID

func (*OrganizationRepo_Expecter) FindByID added in v1.54.0

func (_e *OrganizationRepo_Expecter) FindByID(ctx interface{}, orgID interface{}) *OrganizationRepo_FindByID_Call

FindByID is a helper method to define mock.On call

  • ctx context.Context
  • orgID uuid.UUID

func (*OrganizationRepo_Expecter) FindByName added in v1.54.0

func (_e *OrganizationRepo_Expecter) FindByName(ctx interface{}, name interface{}) *OrganizationRepo_FindByName_Call

FindByName is a helper method to define mock.On call

  • ctx context.Context
  • name string

func (*OrganizationRepo_Expecter) FindWithTokenInactivityThreshold added in v1.77.1

func (_e *OrganizationRepo_Expecter) FindWithTokenInactivityThreshold(ctx interface{}) *OrganizationRepo_FindWithTokenInactivityThreshold_Call

FindWithTokenInactivityThreshold is a helper method to define mock.On call

  • ctx context.Context

func (*OrganizationRepo_Expecter) SetSuspended added in v1.89.12

func (_e *OrganizationRepo_Expecter) SetSuspended(ctx interface{}, id interface{}, suspended interface{}) *OrganizationRepo_SetSuspended_Call

SetSuspended is a helper method to define mock.On call

  • ctx context.Context
  • id uuid.UUID
  • suspended bool

func (*OrganizationRepo_Expecter) Update added in v1.54.0

func (_e *OrganizationRepo_Expecter) Update(ctx interface{}, id interface{}, opts interface{}) *OrganizationRepo_Update_Call

Update is a helper method to define mock.On call

  • ctx context.Context
  • id uuid.UUID
  • opts *biz.OrganizationUpdateOpts

type OrganizationRepo_FindByID_Call added in v1.54.0

type OrganizationRepo_FindByID_Call struct {
	*mock.Call
}

OrganizationRepo_FindByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByID'

func (*OrganizationRepo_FindByID_Call) Return added in v1.54.0

func (*OrganizationRepo_FindByID_Call) Run added in v1.54.0

func (*OrganizationRepo_FindByID_Call) RunAndReturn added in v1.54.0

type OrganizationRepo_FindByName_Call added in v1.54.0

type OrganizationRepo_FindByName_Call struct {
	*mock.Call
}

OrganizationRepo_FindByName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByName'

func (*OrganizationRepo_FindByName_Call) Return added in v1.54.0

func (*OrganizationRepo_FindByName_Call) Run added in v1.54.0

func (*OrganizationRepo_FindByName_Call) RunAndReturn added in v1.54.0

type OrganizationRepo_FindWithTokenInactivityThreshold_Call added in v1.77.1

type OrganizationRepo_FindWithTokenInactivityThreshold_Call struct {
	*mock.Call
}

OrganizationRepo_FindWithTokenInactivityThreshold_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindWithTokenInactivityThreshold'

func (*OrganizationRepo_FindWithTokenInactivityThreshold_Call) Return added in v1.77.1

func (*OrganizationRepo_FindWithTokenInactivityThreshold_Call) Run added in v1.77.1

func (*OrganizationRepo_FindWithTokenInactivityThreshold_Call) RunAndReturn added in v1.77.1

type OrganizationRepo_SetSuspended_Call added in v1.89.12

type OrganizationRepo_SetSuspended_Call struct {
	*mock.Call
}

OrganizationRepo_SetSuspended_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetSuspended'

func (*OrganizationRepo_SetSuspended_Call) Return added in v1.89.12

func (*OrganizationRepo_SetSuspended_Call) Run added in v1.89.12

func (*OrganizationRepo_SetSuspended_Call) RunAndReturn added in v1.89.12

type OrganizationRepo_Update_Call added in v1.54.0

type OrganizationRepo_Update_Call struct {
	*mock.Call
}

OrganizationRepo_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'

func (*OrganizationRepo_Update_Call) Return added in v1.54.0

func (*OrganizationRepo_Update_Call) Run added in v1.54.0

func (*OrganizationRepo_Update_Call) RunAndReturn added in v1.54.0

type PromObservable added in v0.95.0

type PromObservable struct {
	mock.Mock
}

PromObservable is an autogenerated mock type for the PromObservable type

func NewPromObservable added in v0.95.0

func NewPromObservable(t interface {
	mock.TestingT
	Cleanup(func())
}) *PromObservable

NewPromObservable creates a new instance of PromObservable. 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 (*PromObservable) ObserveAttestationIfNeeded added in v0.95.0

func (_m *PromObservable) ObserveAttestationIfNeeded(ctx context.Context, run *biz.WorkflowRun, status biz.WorkflowRunStatus) bool

ObserveAttestationIfNeeded provides a mock function with given fields: ctx, run, status

type UserOrgFinder

type UserOrgFinder struct {
	mock.Mock
}

UserOrgFinder is an autogenerated mock type for the UserOrgFinder type

func NewUserOrgFinder

func NewUserOrgFinder(t interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*UserOrgFinder) CurrentMembership

func (_m *UserOrgFinder) CurrentMembership(ctx context.Context, userID string) (*biz.Membership, error)

CurrentMembership 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

func (*UserOrgFinder) MembershipInOrg added in v0.140.0

func (_m *UserOrgFinder) MembershipInOrg(ctx context.Context, userID string, orgName string) (*biz.Membership, error)

MembershipInOrg provides a mock function with given fields: ctx, userID, orgName

type WorkflowRunRepo

type WorkflowRunRepo struct {
	mock.Mock
}

WorkflowRunRepo is an autogenerated mock type for the WorkflowRunRepo type

func NewWorkflowRunRepo

func NewWorkflowRunRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*WorkflowRunRepo) Create

Create provides a mock function for the type WorkflowRunRepo

func (*WorkflowRunRepo) EXPECT added in v1.58.0

func (*WorkflowRunRepo) Expire

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

Expire provides a mock function for the type WorkflowRunRepo

func (*WorkflowRunRepo) FindByAttestationDigest

func (_mock *WorkflowRunRepo) FindByAttestationDigest(ctx context.Context, digest string) (*biz.WorkflowRun, error)

FindByAttestationDigest provides a mock function for the type WorkflowRunRepo

func (*WorkflowRunRepo) FindByID

func (_mock *WorkflowRunRepo) FindByID(ctx context.Context, ID uuid.UUID) (*biz.WorkflowRun, error)

FindByID provides a mock function for the type WorkflowRunRepo

func (*WorkflowRunRepo) FindByIDInOrg

func (_mock *WorkflowRunRepo) FindByIDInOrg(ctx context.Context, orgID uuid.UUID, ID uuid.UUID) (*biz.WorkflowRun, error)

FindByIDInOrg provides a mock function for the type WorkflowRunRepo

func (*WorkflowRunRepo) GetBundle added in v0.160.0

func (_mock *WorkflowRunRepo) GetBundle(ctx context.Context, wrID uuid.UUID) ([]byte, error)

GetBundle provides a mock function for the type WorkflowRunRepo

func (*WorkflowRunRepo) List

List provides a mock function for the type WorkflowRunRepo

func (*WorkflowRunRepo) ListNotFinishedOlderThan

func (_mock *WorkflowRunRepo) ListNotFinishedOlderThan(ctx context.Context, olderThan time.Time, limit int) ([]*biz.WorkflowRun, error)

ListNotFinishedOlderThan provides a mock function for the type WorkflowRunRepo

func (*WorkflowRunRepo) MarkAsFinished

func (_mock *WorkflowRunRepo) MarkAsFinished(ctx context.Context, ID uuid.UUID, status biz.WorkflowRunStatus, reason string) error

MarkAsFinished provides a mock function for the type WorkflowRunRepo

func (*WorkflowRunRepo) SaveAttestationBundle added in v1.93.4

func (_mock *WorkflowRunRepo) SaveAttestationBundle(ctx context.Context, ID uuid.UUID, digest string, bundle []byte, blockReleasedVersions bool) error

SaveAttestationBundle provides a mock function for the type WorkflowRunRepo

func (*WorkflowRunRepo) SaveAttestationDigest added in v1.95.2

func (_mock *WorkflowRunRepo) SaveAttestationDigest(ctx context.Context, ID uuid.UUID, digest string, blockReleasedVersions bool) error

SaveAttestationDigest provides a mock function for the type WorkflowRunRepo

func (*WorkflowRunRepo) UpdatePolicyStatus added in v1.93.4

func (_mock *WorkflowRunRepo) UpdatePolicyStatus(ctx context.Context, ID uuid.UUID, summary *chainloop.PolicyStatusSummary) error

UpdatePolicyStatus provides a mock function for the type WorkflowRunRepo

type WorkflowRunRepo_Create_Call added in v1.58.0

type WorkflowRunRepo_Create_Call struct {
	*mock.Call
}

WorkflowRunRepo_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'

func (*WorkflowRunRepo_Create_Call) Return added in v1.58.0

func (_c *WorkflowRunRepo_Create_Call) Return(workflowRunRepoCreateResult *biz.WorkflowRunRepoCreateResult, err error) *WorkflowRunRepo_Create_Call

func (*WorkflowRunRepo_Create_Call) Run added in v1.58.0

func (*WorkflowRunRepo_Create_Call) RunAndReturn added in v1.58.0

type WorkflowRunRepo_Expecter added in v1.58.0

type WorkflowRunRepo_Expecter struct {
	// contains filtered or unexported fields
}

func (*WorkflowRunRepo_Expecter) Create added in v1.58.0

func (_e *WorkflowRunRepo_Expecter) Create(ctx interface{}, opts interface{}) *WorkflowRunRepo_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • opts *biz.WorkflowRunRepoCreateOpts

func (*WorkflowRunRepo_Expecter) Expire added in v1.58.0

func (_e *WorkflowRunRepo_Expecter) Expire(ctx interface{}, id interface{}) *WorkflowRunRepo_Expire_Call

Expire is a helper method to define mock.On call

  • ctx context.Context
  • id uuid.UUID

func (*WorkflowRunRepo_Expecter) FindByAttestationDigest added in v1.58.0

func (_e *WorkflowRunRepo_Expecter) FindByAttestationDigest(ctx interface{}, digest interface{}) *WorkflowRunRepo_FindByAttestationDigest_Call

FindByAttestationDigest is a helper method to define mock.On call

  • ctx context.Context
  • digest string

func (*WorkflowRunRepo_Expecter) FindByID added in v1.58.0

func (_e *WorkflowRunRepo_Expecter) FindByID(ctx interface{}, ID interface{}) *WorkflowRunRepo_FindByID_Call

FindByID is a helper method to define mock.On call

  • ctx context.Context
  • ID uuid.UUID

func (*WorkflowRunRepo_Expecter) FindByIDInOrg added in v1.58.0

func (_e *WorkflowRunRepo_Expecter) FindByIDInOrg(ctx interface{}, orgID interface{}, ID interface{}) *WorkflowRunRepo_FindByIDInOrg_Call

FindByIDInOrg is a helper method to define mock.On call

  • ctx context.Context
  • orgID uuid.UUID
  • ID uuid.UUID

func (*WorkflowRunRepo_Expecter) GetBundle added in v1.58.0

func (_e *WorkflowRunRepo_Expecter) GetBundle(ctx interface{}, wrID interface{}) *WorkflowRunRepo_GetBundle_Call

GetBundle is a helper method to define mock.On call

  • ctx context.Context
  • wrID uuid.UUID

func (*WorkflowRunRepo_Expecter) List added in v1.58.0

func (_e *WorkflowRunRepo_Expecter) List(ctx interface{}, orgID interface{}, f interface{}, p interface{}) *WorkflowRunRepo_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • orgID uuid.UUID
  • f *biz.RunListFilters
  • p *pagination.CursorOptions

func (*WorkflowRunRepo_Expecter) ListNotFinishedOlderThan added in v1.58.0

func (_e *WorkflowRunRepo_Expecter) ListNotFinishedOlderThan(ctx interface{}, olderThan interface{}, limit interface{}) *WorkflowRunRepo_ListNotFinishedOlderThan_Call

ListNotFinishedOlderThan is a helper method to define mock.On call

  • ctx context.Context
  • olderThan time.Time
  • limit int

func (*WorkflowRunRepo_Expecter) MarkAsFinished added in v1.58.0

func (_e *WorkflowRunRepo_Expecter) MarkAsFinished(ctx interface{}, ID interface{}, status interface{}, reason interface{}) *WorkflowRunRepo_MarkAsFinished_Call

MarkAsFinished is a helper method to define mock.On call

  • ctx context.Context
  • ID uuid.UUID
  • status biz.WorkflowRunStatus
  • reason string

func (*WorkflowRunRepo_Expecter) SaveAttestationBundle added in v1.93.4

func (_e *WorkflowRunRepo_Expecter) SaveAttestationBundle(ctx interface{}, ID interface{}, digest interface{}, bundle interface{}, blockReleasedVersions interface{}) *WorkflowRunRepo_SaveAttestationBundle_Call

SaveAttestationBundle is a helper method to define mock.On call

  • ctx context.Context
  • ID uuid.UUID
  • digest string
  • bundle []byte
  • blockReleasedVersions bool

func (*WorkflowRunRepo_Expecter) SaveAttestationDigest added in v1.95.2

func (_e *WorkflowRunRepo_Expecter) SaveAttestationDigest(ctx interface{}, ID interface{}, digest interface{}, blockReleasedVersions interface{}) *WorkflowRunRepo_SaveAttestationDigest_Call

SaveAttestationDigest is a helper method to define mock.On call

  • ctx context.Context
  • ID uuid.UUID
  • digest string
  • blockReleasedVersions bool

func (*WorkflowRunRepo_Expecter) UpdatePolicyStatus added in v1.93.4

func (_e *WorkflowRunRepo_Expecter) UpdatePolicyStatus(ctx interface{}, ID interface{}, summary interface{}) *WorkflowRunRepo_UpdatePolicyStatus_Call

UpdatePolicyStatus is a helper method to define mock.On call

  • ctx context.Context
  • ID uuid.UUID
  • summary *chainloop.PolicyStatusSummary

type WorkflowRunRepo_Expire_Call added in v1.58.0

type WorkflowRunRepo_Expire_Call struct {
	*mock.Call
}

WorkflowRunRepo_Expire_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Expire'

func (*WorkflowRunRepo_Expire_Call) Return added in v1.58.0

func (*WorkflowRunRepo_Expire_Call) Run added in v1.58.0

func (*WorkflowRunRepo_Expire_Call) RunAndReturn added in v1.58.0

type WorkflowRunRepo_FindByAttestationDigest_Call added in v1.58.0

type WorkflowRunRepo_FindByAttestationDigest_Call struct {
	*mock.Call
}

WorkflowRunRepo_FindByAttestationDigest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByAttestationDigest'

func (*WorkflowRunRepo_FindByAttestationDigest_Call) Return added in v1.58.0

func (*WorkflowRunRepo_FindByAttestationDigest_Call) Run added in v1.58.0

func (*WorkflowRunRepo_FindByAttestationDigest_Call) RunAndReturn added in v1.58.0

type WorkflowRunRepo_FindByIDInOrg_Call added in v1.58.0

type WorkflowRunRepo_FindByIDInOrg_Call struct {
	*mock.Call
}

WorkflowRunRepo_FindByIDInOrg_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByIDInOrg'

func (*WorkflowRunRepo_FindByIDInOrg_Call) Return added in v1.58.0

func (*WorkflowRunRepo_FindByIDInOrg_Call) Run added in v1.58.0

func (*WorkflowRunRepo_FindByIDInOrg_Call) RunAndReturn added in v1.58.0

type WorkflowRunRepo_FindByID_Call added in v1.58.0

type WorkflowRunRepo_FindByID_Call struct {
	*mock.Call
}

WorkflowRunRepo_FindByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByID'

func (*WorkflowRunRepo_FindByID_Call) Return added in v1.58.0

func (*WorkflowRunRepo_FindByID_Call) Run added in v1.58.0

func (*WorkflowRunRepo_FindByID_Call) RunAndReturn added in v1.58.0

type WorkflowRunRepo_GetBundle_Call added in v1.58.0

type WorkflowRunRepo_GetBundle_Call struct {
	*mock.Call
}

WorkflowRunRepo_GetBundle_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBundle'

func (*WorkflowRunRepo_GetBundle_Call) Return added in v1.58.0

func (*WorkflowRunRepo_GetBundle_Call) Run added in v1.58.0

func (*WorkflowRunRepo_GetBundle_Call) RunAndReturn added in v1.58.0

type WorkflowRunRepo_ListNotFinishedOlderThan_Call added in v1.58.0

type WorkflowRunRepo_ListNotFinishedOlderThan_Call struct {
	*mock.Call
}

WorkflowRunRepo_ListNotFinishedOlderThan_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListNotFinishedOlderThan'

func (*WorkflowRunRepo_ListNotFinishedOlderThan_Call) Return added in v1.58.0

func (*WorkflowRunRepo_ListNotFinishedOlderThan_Call) Run added in v1.58.0

func (*WorkflowRunRepo_ListNotFinishedOlderThan_Call) RunAndReturn added in v1.58.0

type WorkflowRunRepo_List_Call added in v1.58.0

type WorkflowRunRepo_List_Call struct {
	*mock.Call
}

WorkflowRunRepo_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'

func (*WorkflowRunRepo_List_Call) Return added in v1.58.0

func (_c *WorkflowRunRepo_List_Call) Return(workflowRuns []*biz.WorkflowRun, s string, err error) *WorkflowRunRepo_List_Call

func (*WorkflowRunRepo_List_Call) Run added in v1.58.0

func (*WorkflowRunRepo_List_Call) RunAndReturn added in v1.58.0

type WorkflowRunRepo_MarkAsFinished_Call added in v1.58.0

type WorkflowRunRepo_MarkAsFinished_Call struct {
	*mock.Call
}

WorkflowRunRepo_MarkAsFinished_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MarkAsFinished'

func (*WorkflowRunRepo_MarkAsFinished_Call) Return added in v1.58.0

func (*WorkflowRunRepo_MarkAsFinished_Call) Run added in v1.58.0

func (*WorkflowRunRepo_MarkAsFinished_Call) RunAndReturn added in v1.58.0

type WorkflowRunRepo_SaveAttestationBundle_Call added in v1.93.4

type WorkflowRunRepo_SaveAttestationBundle_Call struct {
	*mock.Call
}

WorkflowRunRepo_SaveAttestationBundle_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveAttestationBundle'

func (*WorkflowRunRepo_SaveAttestationBundle_Call) Return added in v1.93.4

func (*WorkflowRunRepo_SaveAttestationBundle_Call) Run added in v1.93.4

func (_c *WorkflowRunRepo_SaveAttestationBundle_Call) Run(run func(ctx context.Context, ID uuid.UUID, digest string, bundle []byte, blockReleasedVersions bool)) *WorkflowRunRepo_SaveAttestationBundle_Call

func (*WorkflowRunRepo_SaveAttestationBundle_Call) RunAndReturn added in v1.93.4

func (_c *WorkflowRunRepo_SaveAttestationBundle_Call) RunAndReturn(run func(ctx context.Context, ID uuid.UUID, digest string, bundle []byte, blockReleasedVersions bool) error) *WorkflowRunRepo_SaveAttestationBundle_Call

type WorkflowRunRepo_SaveAttestationDigest_Call added in v1.95.2

type WorkflowRunRepo_SaveAttestationDigest_Call struct {
	*mock.Call
}

WorkflowRunRepo_SaveAttestationDigest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveAttestationDigest'

func (*WorkflowRunRepo_SaveAttestationDigest_Call) Return added in v1.95.2

func (*WorkflowRunRepo_SaveAttestationDigest_Call) Run added in v1.95.2

func (*WorkflowRunRepo_SaveAttestationDigest_Call) RunAndReturn added in v1.95.2

func (_c *WorkflowRunRepo_SaveAttestationDigest_Call) RunAndReturn(run func(ctx context.Context, ID uuid.UUID, digest string, blockReleasedVersions bool) error) *WorkflowRunRepo_SaveAttestationDigest_Call

type WorkflowRunRepo_UpdatePolicyStatus_Call added in v1.93.4

type WorkflowRunRepo_UpdatePolicyStatus_Call struct {
	*mock.Call
}

WorkflowRunRepo_UpdatePolicyStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdatePolicyStatus'

func (*WorkflowRunRepo_UpdatePolicyStatus_Call) Return added in v1.93.4

func (*WorkflowRunRepo_UpdatePolicyStatus_Call) Run added in v1.93.4

func (*WorkflowRunRepo_UpdatePolicyStatus_Call) RunAndReturn added in v1.93.4

Jump to

Keyboard shortcuts

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