Documentation ¶
Index ¶
- func AccessQueriesWithTxFn(m *AccessQueriesMock, t database.Transacter, err error) func() (postgres.AccessQueries, database.Transacter, error)
- type AccessQueriesMock
- func (m *AccessQueriesMock) ApproveAccessRequest(ctx context.Context, params gensql.ApproveAccessRequestParams) error
- func (m *AccessQueriesMock) CreateAccessRequestForDataset(ctx context.Context, params gensql.CreateAccessRequestForDatasetParams) (gensql.DatasetAccessRequest, error)
- func (m *AccessQueriesMock) DeleteAccessRequest(ctx context.Context, id uuid.UUID) error
- func (m *AccessQueriesMock) DenyAccessRequest(ctx context.Context, params gensql.DenyAccessRequestParams) error
- func (m *AccessQueriesMock) GetAccessRequest(ctx context.Context, id uuid.UUID) (gensql.DatasetAccessRequest, error)
- func (m *AccessQueriesMock) GetAccessToDataset(ctx context.Context, id uuid.UUID) (gensql.DatasetAccess, error)
- func (m *AccessQueriesMock) GetActiveAccessToDatasetForSubject(ctx context.Context, params gensql.GetActiveAccessToDatasetForSubjectParams) (gensql.DatasetAccess, error)
- func (m *AccessQueriesMock) GrantAccessToDataset(ctx context.Context, params gensql.GrantAccessToDatasetParams) (gensql.DatasetAccess, error)
- func (m *AccessQueriesMock) ListAccessRequestsForDataset(ctx context.Context, datasetID uuid.UUID) ([]gensql.DatasetAccessRequest, error)
- func (m *AccessQueriesMock) ListAccessRequestsForOwner(ctx context.Context, owner []string) ([]gensql.DatasetAccessRequest, error)
- func (m *AccessQueriesMock) ListActiveAccessToDataset(ctx context.Context, datasetID uuid.UUID) ([]gensql.DatasetAccess, error)
- func (m *AccessQueriesMock) ListUnrevokedExpiredAccessEntries(ctx context.Context) ([]gensql.DatasetAccess, error)
- func (m *AccessQueriesMock) RevokeAccessToDataset(ctx context.Context, id uuid.UUID) error
- func (m *AccessQueriesMock) UpdateAccessRequest(ctx context.Context, params gensql.UpdateAccessRequestParams) (gensql.DatasetAccessRequest, error)
- type MockTransacter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccessQueriesWithTxFn ¶
func AccessQueriesWithTxFn(m *AccessQueriesMock, t database.Transacter, err error) func() (postgres.AccessQueries, database.Transacter, error)
Types ¶
type AccessQueriesMock ¶
func (*AccessQueriesMock) ApproveAccessRequest ¶
func (m *AccessQueriesMock) ApproveAccessRequest(ctx context.Context, params gensql.ApproveAccessRequestParams) error
func (*AccessQueriesMock) CreateAccessRequestForDataset ¶
func (m *AccessQueriesMock) CreateAccessRequestForDataset(ctx context.Context, params gensql.CreateAccessRequestForDatasetParams) (gensql.DatasetAccessRequest, error)
func (*AccessQueriesMock) DeleteAccessRequest ¶
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 (m *AccessQueriesMock) GrantAccessToDataset(ctx context.Context, params gensql.GrantAccessToDatasetParams) (gensql.DatasetAccess, error)
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 (*AccessQueriesMock) UpdateAccessRequest ¶
func (m *AccessQueriesMock) UpdateAccessRequest(ctx context.Context, params gensql.UpdateAccessRequestParams) (gensql.DatasetAccessRequest, error)
type MockTransacter ¶
func (*MockTransacter) Commit ¶
func (m *MockTransacter) Commit() error
func (*MockTransacter) Rollback ¶
func (m *MockTransacter) Rollback() error
Click to show internal directories.
Click to hide internal directories.