mock

package
v0.0.0-...-5597880 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type AccessQueriesMock

type AccessQueriesMock struct {
	mock.Mock
}

func (*AccessQueriesMock) ApproveAccessRequest

func (m *AccessQueriesMock) ApproveAccessRequest(ctx context.Context, params gensql.ApproveAccessRequestParams) error

func (*AccessQueriesMock) CreateAccessRequestForDataset

func (*AccessQueriesMock) DeleteAccessRequest

func (m *AccessQueriesMock) DeleteAccessRequest(ctx context.Context, id uuid.UUID) error

func (*AccessQueriesMock) DenyAccessRequest

func (m *AccessQueriesMock) DenyAccessRequest(ctx context.Context, params gensql.DenyAccessRequestParams) error

func (*AccessQueriesMock) GetAccessRequest

func (m *AccessQueriesMock) GetAccessRequest(ctx context.Context, id uuid.UUID) (gensql.DatasetAccessRequest, error)

func (*AccessQueriesMock) GetAccessToDataset

func (m *AccessQueriesMock) GetAccessToDataset(ctx context.Context, id uuid.UUID) (gensql.DatasetAccess, error)

func (*AccessQueriesMock) GetActiveAccessToDatasetForSubject

func (m *AccessQueriesMock) GetActiveAccessToDatasetForSubject(ctx context.Context, params gensql.GetActiveAccessToDatasetForSubjectParams) (gensql.DatasetAccess, error)

func (*AccessQueriesMock) GrantAccessToDataset

func (*AccessQueriesMock) ListAccessRequestsForDataset

func (m *AccessQueriesMock) ListAccessRequestsForDataset(ctx context.Context, datasetID uuid.UUID) ([]gensql.DatasetAccessRequest, error)

func (*AccessQueriesMock) ListAccessRequestsForOwner

func (m *AccessQueriesMock) ListAccessRequestsForOwner(ctx context.Context, owner []string) ([]gensql.DatasetAccessRequest, error)

func (*AccessQueriesMock) ListActiveAccessToDataset

func (m *AccessQueriesMock) ListActiveAccessToDataset(ctx context.Context, datasetID uuid.UUID) ([]gensql.DatasetAccess, error)

func (*AccessQueriesMock) ListUnrevokedExpiredAccessEntries

func (m *AccessQueriesMock) ListUnrevokedExpiredAccessEntries(ctx context.Context) ([]gensql.DatasetAccess, error)

func (*AccessQueriesMock) RevokeAccessToDataset

func (m *AccessQueriesMock) RevokeAccessToDataset(ctx context.Context, id uuid.UUID) error

func (*AccessQueriesMock) UpdateAccessRequest

type MockTransacter

type MockTransacter struct {
	mock.Mock
}

func (*MockTransacter) Commit

func (m *MockTransacter) Commit() error

func (*MockTransacter) Rollback

func (m *MockTransacter) Rollback() error

Jump to

Keyboard shortcuts

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