Documentation ¶
Overview ¶
Package db is a generated GoMock package.
Index ¶
- type AccessToken
- type AccessTokenScope
- type AppendLogsToRunParams
- type AssignRunParams
- type AuthAccessTokenRow
- type DBTX
- type DeleteTestParams
- type GetAccessTokenRow
- type GetRunParams
- type GetTestParams
- type IssueAccessTokenParams
- type IssueAccessTokenRow
- type ListAccessTokensParams
- type ListAccessTokensRow
- type ListPendingRunsRow
- type MockQuerier
- func (m *MockQuerier) AppendLogsToRun(ctx context.Context, db DBTX, arg AppendLogsToRunParams) error
- func (m *MockQuerier) AssignRun(ctx context.Context, db DBTX, arg AssignRunParams) (Run, error)
- func (m *MockQuerier) AuthAccessToken(ctx context.Context, db DBTX, tokenHash string) (AuthAccessTokenRow, error)
- func (m *MockQuerier) DeleteRunsForTest(ctx context.Context, db DBTX, testID uuid.UUID) error
- func (m *MockQuerier) DeleteTest(ctx context.Context, db DBTX, arg DeleteTestParams) (pgconn.CommandTag, error)
- func (m *MockQuerier) EXPECT() *MockQuerierMockRecorder
- func (m *MockQuerier) GetAccessToken(ctx context.Context, db DBTX, id uuid.UUID) (GetAccessTokenRow, error)
- func (m *MockQuerier) GetRun(ctx context.Context, db DBTX, arg GetRunParams) (Run, error)
- func (m *MockQuerier) GetRunner(ctx context.Context, db DBTX, id uuid.UUID) (Runner, error)
- func (m *MockQuerier) GetTest(ctx context.Context, db DBTX, arg GetTestParams) (Test, error)
- func (m *MockQuerier) IssueAccessToken(ctx context.Context, db DBTX, arg IssueAccessTokenParams) (IssueAccessTokenRow, error)
- func (m *MockQuerier) ListAccessTokens(ctx context.Context, db DBTX, arg ListAccessTokensParams) ([]ListAccessTokensRow, error)
- func (m *MockQuerier) ListAllNamespaces(ctx context.Context, db DBTX) ([]string, error)
- func (m *MockQuerier) ListPendingRuns(ctx context.Context, db DBTX) ([]ListPendingRunsRow, error)
- func (m *MockQuerier) ListRunners(ctx context.Context, db DBTX) ([]Runner, error)
- func (m *MockQuerier) ListRuns(ctx context.Context, db DBTX, namespace string) ([]Run, error)
- func (m *MockQuerier) ListTests(ctx context.Context, db DBTX, namespace string) ([]Test, error)
- func (m *MockQuerier) ListTestsToSchedule(ctx context.Context, db DBTX) ([]Test, error)
- func (m *MockQuerier) QueryRunners(ctx context.Context, db DBTX, arg QueryRunnersParams) ([]Runner, error)
- func (m *MockQuerier) QueryRuns(ctx context.Context, db DBTX, arg QueryRunsParams) ([]Run, error)
- func (m *MockQuerier) QueryTests(ctx context.Context, db DBTX, arg QueryTestsParams) ([]Test, error)
- func (m *MockQuerier) RegisterRunner(ctx context.Context, db DBTX, arg RegisterRunnerParams) (Runner, error)
- func (m *MockQuerier) RegisterTest(ctx context.Context, db DBTX, arg RegisterTestParams) (Test, error)
- func (m *MockQuerier) ResetOrphanedRuns(ctx context.Context, db DBTX, before time.Time) error
- func (m *MockQuerier) RevokeAccessToken(ctx context.Context, db DBTX, id uuid.UUID) error
- func (m *MockQuerier) RunSummariesForRunner(ctx context.Context, db DBTX, arg RunSummariesForRunnerParams) ([]RunSummariesForRunnerRow, error)
- func (m *MockQuerier) RunSummariesForTest(ctx context.Context, db DBTX, arg RunSummariesForTestParams) ([]RunSummariesForTestRow, error)
- func (m *MockQuerier) ScheduleRun(ctx context.Context, db DBTX, arg ScheduleRunParams) (Run, error)
- func (m *MockQuerier) SummarizeRunsBreakdownResult(ctx context.Context, db DBTX, arg SummarizeRunsBreakdownResultParams) ([]SummarizeRunsBreakdownResultRow, error)
- func (m *MockQuerier) SummarizeRunsBreakdownTest(ctx context.Context, db DBTX, arg SummarizeRunsBreakdownTestParams) ([]SummarizeRunsBreakdownTestRow, error)
- func (m *MockQuerier) TimeoutRuns(ctx context.Context, db DBTX, arg TimeoutRunsParams) error
- func (m *MockQuerier) UpdateResultData(ctx context.Context, db DBTX, arg UpdateResultDataParams) error
- func (m *MockQuerier) UpdateRun(ctx context.Context, db DBTX, arg UpdateRunParams) error
- func (m *MockQuerier) UpdateRunnerHeartbeat(ctx context.Context, db DBTX, arg UpdateRunnerHeartbeatParams) error
- func (m *MockQuerier) UpdateTest(ctx context.Context, db DBTX, arg UpdateTestParams) (pgconn.CommandTag, error)
- type MockQuerierMockRecorder
- func (mr *MockQuerierMockRecorder) AppendLogsToRun(ctx, db, arg interface{}) *gomock.Call
- func (mr *MockQuerierMockRecorder) AssignRun(ctx, db, arg interface{}) *gomock.Call
- func (mr *MockQuerierMockRecorder) AuthAccessToken(ctx, db, tokenHash interface{}) *gomock.Call
- func (mr *MockQuerierMockRecorder) DeleteRunsForTest(ctx, db, testID interface{}) *gomock.Call
- func (mr *MockQuerierMockRecorder) DeleteTest(ctx, db, arg interface{}) *gomock.Call
- func (mr *MockQuerierMockRecorder) GetAccessToken(ctx, db, id interface{}) *gomock.Call
- func (mr *MockQuerierMockRecorder) GetRun(ctx, db, arg interface{}) *gomock.Call
- func (mr *MockQuerierMockRecorder) GetRunner(ctx, db, id interface{}) *gomock.Call
- func (mr *MockQuerierMockRecorder) GetTest(ctx, db, arg interface{}) *gomock.Call
- func (mr *MockQuerierMockRecorder) IssueAccessToken(ctx, db, arg interface{}) *gomock.Call
- func (mr *MockQuerierMockRecorder) ListAccessTokens(ctx, db, arg interface{}) *gomock.Call
- func (mr *MockQuerierMockRecorder) ListAllNamespaces(ctx, db interface{}) *gomock.Call
- func (mr *MockQuerierMockRecorder) ListPendingRuns(ctx, db interface{}) *gomock.Call
- func (mr *MockQuerierMockRecorder) ListRunners(ctx, db interface{}) *gomock.Call
- func (mr *MockQuerierMockRecorder) ListRuns(ctx, db, namespace interface{}) *gomock.Call
- func (mr *MockQuerierMockRecorder) ListTests(ctx, db, namespace interface{}) *gomock.Call
- func (mr *MockQuerierMockRecorder) ListTestsToSchedule(ctx, db interface{}) *gomock.Call
- func (mr *MockQuerierMockRecorder) QueryRunners(ctx, db, arg interface{}) *gomock.Call
- func (mr *MockQuerierMockRecorder) QueryRuns(ctx, db, arg interface{}) *gomock.Call
- func (mr *MockQuerierMockRecorder) QueryTests(ctx, db, arg interface{}) *gomock.Call
- func (mr *MockQuerierMockRecorder) RegisterRunner(ctx, db, arg interface{}) *gomock.Call
- func (mr *MockQuerierMockRecorder) RegisterTest(ctx, db, arg interface{}) *gomock.Call
- func (mr *MockQuerierMockRecorder) ResetOrphanedRuns(ctx, db, before interface{}) *gomock.Call
- func (mr *MockQuerierMockRecorder) RevokeAccessToken(ctx, db, id interface{}) *gomock.Call
- func (mr *MockQuerierMockRecorder) RunSummariesForRunner(ctx, db, arg interface{}) *gomock.Call
- func (mr *MockQuerierMockRecorder) RunSummariesForTest(ctx, db, arg interface{}) *gomock.Call
- func (mr *MockQuerierMockRecorder) ScheduleRun(ctx, db, arg interface{}) *gomock.Call
- func (mr *MockQuerierMockRecorder) SummarizeRunsBreakdownResult(ctx, db, arg interface{}) *gomock.Call
- func (mr *MockQuerierMockRecorder) SummarizeRunsBreakdownTest(ctx, db, arg interface{}) *gomock.Call
- func (mr *MockQuerierMockRecorder) TimeoutRuns(ctx, db, arg interface{}) *gomock.Call
- func (mr *MockQuerierMockRecorder) UpdateResultData(ctx, db, arg interface{}) *gomock.Call
- func (mr *MockQuerierMockRecorder) UpdateRun(ctx, db, arg interface{}) *gomock.Call
- func (mr *MockQuerierMockRecorder) UpdateRunnerHeartbeat(ctx, db, arg interface{}) *gomock.Call
- func (mr *MockQuerierMockRecorder) UpdateTest(ctx, db, arg interface{}) *gomock.Call
- type NullAccessTokenScope
- type NullRunResult
- type Querier
- type Queries
- func (q *Queries) AppendLogsToRun(ctx context.Context, db DBTX, arg AppendLogsToRunParams) error
- func (q *Queries) AssignRun(ctx context.Context, db DBTX, arg AssignRunParams) (Run, error)
- func (q *Queries) AuthAccessToken(ctx context.Context, db DBTX, tokenHash string) (AuthAccessTokenRow, error)
- func (q *Queries) DeleteRunsForTest(ctx context.Context, db DBTX, testID uuid.UUID) error
- func (q *Queries) DeleteTest(ctx context.Context, db DBTX, arg DeleteTestParams) (pgconn.CommandTag, error)
- func (q *Queries) GetAccessToken(ctx context.Context, db DBTX, id uuid.UUID) (GetAccessTokenRow, error)
- func (q *Queries) GetRun(ctx context.Context, db DBTX, arg GetRunParams) (Run, error)
- func (q *Queries) GetRunner(ctx context.Context, db DBTX, id uuid.UUID) (Runner, error)
- func (q *Queries) GetTest(ctx context.Context, db DBTX, arg GetTestParams) (Test, error)
- func (q *Queries) IssueAccessToken(ctx context.Context, db DBTX, arg IssueAccessTokenParams) (IssueAccessTokenRow, error)
- func (q *Queries) ListAccessTokens(ctx context.Context, db DBTX, arg ListAccessTokensParams) ([]ListAccessTokensRow, error)
- func (q *Queries) ListAllNamespaces(ctx context.Context, db DBTX) ([]string, error)
- func (q *Queries) ListPendingRuns(ctx context.Context, db DBTX) ([]ListPendingRunsRow, error)
- func (q *Queries) ListRunners(ctx context.Context, db DBTX) ([]Runner, error)
- func (q *Queries) ListRuns(ctx context.Context, db DBTX, namespace string) ([]Run, error)
- func (q *Queries) ListTests(ctx context.Context, db DBTX, namespace string) ([]Test, error)
- func (q *Queries) ListTestsToSchedule(ctx context.Context, db DBTX) ([]Test, error)
- func (q *Queries) QueryRunners(ctx context.Context, db DBTX, arg QueryRunnersParams) ([]Runner, error)
- func (q *Queries) QueryRuns(ctx context.Context, db DBTX, arg QueryRunsParams) ([]Run, error)
- func (q *Queries) QueryTests(ctx context.Context, db DBTX, arg QueryTestsParams) ([]Test, error)
- func (q *Queries) RegisterRunner(ctx context.Context, db DBTX, arg RegisterRunnerParams) (Runner, error)
- func (q *Queries) RegisterTest(ctx context.Context, db DBTX, arg RegisterTestParams) (Test, error)
- func (q *Queries) ResetOrphanedRuns(ctx context.Context, db DBTX, before time.Time) error
- func (q *Queries) RevokeAccessToken(ctx context.Context, db DBTX, id uuid.UUID) error
- func (q *Queries) RunSummariesForRunner(ctx context.Context, db DBTX, arg RunSummariesForRunnerParams) ([]RunSummariesForRunnerRow, error)
- func (q *Queries) RunSummariesForTest(ctx context.Context, db DBTX, arg RunSummariesForTestParams) ([]RunSummariesForTestRow, error)
- func (q *Queries) ScheduleRun(ctx context.Context, db DBTX, arg ScheduleRunParams) (Run, error)
- func (q *Queries) SummarizeRunsBreakdownResult(ctx context.Context, db DBTX, arg SummarizeRunsBreakdownResultParams) ([]SummarizeRunsBreakdownResultRow, error)
- func (q *Queries) SummarizeRunsBreakdownTest(ctx context.Context, db DBTX, arg SummarizeRunsBreakdownTestParams) ([]SummarizeRunsBreakdownTestRow, error)
- func (q *Queries) TimeoutRuns(ctx context.Context, db DBTX, arg TimeoutRunsParams) error
- func (q *Queries) UpdateResultData(ctx context.Context, db DBTX, arg UpdateResultDataParams) error
- func (q *Queries) UpdateRun(ctx context.Context, db DBTX, arg UpdateRunParams) error
- func (q *Queries) UpdateRunnerHeartbeat(ctx context.Context, db DBTX, arg UpdateRunnerHeartbeatParams) error
- func (q *Queries) UpdateTest(ctx context.Context, db DBTX, arg UpdateTestParams) (pgconn.CommandTag, error)
- type QueryRunnersParams
- type QueryRunsParams
- type QueryTestsParams
- type RegisterRunnerParams
- type RegisterTestParams
- type Run
- type RunLog
- type RunResult
- type RunResults
- type RunSummariesForRunnerParams
- type RunSummariesForRunnerRow
- type RunSummariesForTestParams
- type RunSummariesForTestRow
- type Runner
- type ScheduleRunParams
- type SchemaMigration
- type SummarizeRunsBreakdownResultParams
- type SummarizeRunsBreakdownResultRow
- type SummarizeRunsBreakdownTestParams
- type SummarizeRunsBreakdownTestRow
- type Test
- type TestMatrix
- type TestRunConfig
- type TimeoutRunsParams
- type UpdateResultDataParams
- type UpdateRunParams
- type UpdateRunnerHeartbeatParams
- type UpdateTestParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessToken ¶
type AccessTokenScope ¶
type AccessTokenScope string
const ( AccessTokenScopeAdmin AccessTokenScope = "admin" AccessTokenScopeControl AccessTokenScope = "control" AccessTokenScopeData AccessTokenScope = "data" AccessTokenScopeRunner AccessTokenScope = "runner" )
func (*AccessTokenScope) Scan ¶
func (e *AccessTokenScope) Scan(src interface{}) error
type AuthAccessTokenRow ¶
type DeleteTestParams ¶
type GetAccessTokenRow ¶
type GetRunParams ¶
type GetTestParams ¶
type IssueAccessTokenParams ¶
type IssueAccessTokenRow ¶
type ListAccessTokensParams ¶
type ListAccessTokensRow ¶
type ListPendingRunsRow ¶
type ListPendingRunsRow struct { ID uuid.UUID TestID uuid.UUID TestRunConfig pgtype.JSONB TestMatrixID uuid.NullUUID Labels pgtype.JSONB RunnerID uuid.NullUUID Result NullRunResult Logs pgtype.JSONB ResultData pgtype.JSONB ScheduledAt sql.NullTime StartedAt sql.NullTime FinishedAt sql.NullTime Namespace string }
type MockQuerier ¶
type MockQuerier struct {
// contains filtered or unexported fields
}
MockQuerier is a mock of Querier interface.
func NewMockQuerier ¶
func NewMockQuerier(ctrl *gomock.Controller) *MockQuerier
NewMockQuerier creates a new mock instance.
func (*MockQuerier) AppendLogsToRun ¶
func (m *MockQuerier) AppendLogsToRun(ctx context.Context, db DBTX, arg AppendLogsToRunParams) error
AppendLogsToRun mocks base method.
func (*MockQuerier) AssignRun ¶
func (m *MockQuerier) AssignRun(ctx context.Context, db DBTX, arg AssignRunParams) (Run, error)
AssignRun mocks base method.
func (*MockQuerier) AuthAccessToken ¶
func (m *MockQuerier) AuthAccessToken(ctx context.Context, db DBTX, tokenHash string) (AuthAccessTokenRow, error)
AuthAccessToken mocks base method.
func (*MockQuerier) DeleteRunsForTest ¶
DeleteRunsForTest mocks base method.
func (*MockQuerier) DeleteTest ¶
func (m *MockQuerier) DeleteTest(ctx context.Context, db DBTX, arg DeleteTestParams) (pgconn.CommandTag, error)
DeleteTest mocks base method.
func (*MockQuerier) EXPECT ¶
func (m *MockQuerier) EXPECT() *MockQuerierMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockQuerier) GetAccessToken ¶
func (m *MockQuerier) GetAccessToken(ctx context.Context, db DBTX, id uuid.UUID) (GetAccessTokenRow, error)
GetAccessToken mocks base method.
func (*MockQuerier) GetRun ¶
func (m *MockQuerier) GetRun(ctx context.Context, db DBTX, arg GetRunParams) (Run, error)
GetRun mocks base method.
func (*MockQuerier) GetTest ¶
func (m *MockQuerier) GetTest(ctx context.Context, db DBTX, arg GetTestParams) (Test, error)
GetTest mocks base method.
func (*MockQuerier) IssueAccessToken ¶
func (m *MockQuerier) IssueAccessToken(ctx context.Context, db DBTX, arg IssueAccessTokenParams) (IssueAccessTokenRow, error)
IssueAccessToken mocks base method.
func (*MockQuerier) ListAccessTokens ¶
func (m *MockQuerier) ListAccessTokens(ctx context.Context, db DBTX, arg ListAccessTokensParams) ([]ListAccessTokensRow, error)
ListAccessTokens mocks base method.
func (*MockQuerier) ListAllNamespaces ¶
ListAllNamespaces mocks base method.
func (*MockQuerier) ListPendingRuns ¶
func (m *MockQuerier) ListPendingRuns(ctx context.Context, db DBTX) ([]ListPendingRunsRow, error)
ListPendingRuns mocks base method.
func (*MockQuerier) ListRunners ¶
ListRunners mocks base method.
func (*MockQuerier) ListTestsToSchedule ¶
ListTestsToSchedule mocks base method.
func (*MockQuerier) QueryRunners ¶
func (m *MockQuerier) QueryRunners(ctx context.Context, db DBTX, arg QueryRunnersParams) ([]Runner, error)
QueryRunners mocks base method.
func (*MockQuerier) QueryRuns ¶
func (m *MockQuerier) QueryRuns(ctx context.Context, db DBTX, arg QueryRunsParams) ([]Run, error)
QueryRuns mocks base method.
func (*MockQuerier) QueryTests ¶
func (m *MockQuerier) QueryTests(ctx context.Context, db DBTX, arg QueryTestsParams) ([]Test, error)
QueryTests mocks base method.
func (*MockQuerier) RegisterRunner ¶
func (m *MockQuerier) RegisterRunner(ctx context.Context, db DBTX, arg RegisterRunnerParams) (Runner, error)
RegisterRunner mocks base method.
func (*MockQuerier) RegisterTest ¶
func (m *MockQuerier) RegisterTest(ctx context.Context, db DBTX, arg RegisterTestParams) (Test, error)
RegisterTest mocks base method.
func (*MockQuerier) ResetOrphanedRuns ¶
ResetOrphanedRuns mocks base method.
func (*MockQuerier) RevokeAccessToken ¶
RevokeAccessToken mocks base method.
func (*MockQuerier) RunSummariesForRunner ¶
func (m *MockQuerier) RunSummariesForRunner(ctx context.Context, db DBTX, arg RunSummariesForRunnerParams) ([]RunSummariesForRunnerRow, error)
RunSummariesForRunner mocks base method.
func (*MockQuerier) RunSummariesForTest ¶
func (m *MockQuerier) RunSummariesForTest(ctx context.Context, db DBTX, arg RunSummariesForTestParams) ([]RunSummariesForTestRow, error)
RunSummariesForTest mocks base method.
func (*MockQuerier) ScheduleRun ¶
func (m *MockQuerier) ScheduleRun(ctx context.Context, db DBTX, arg ScheduleRunParams) (Run, error)
ScheduleRun mocks base method.
func (*MockQuerier) SummarizeRunsBreakdownResult ¶
func (m *MockQuerier) SummarizeRunsBreakdownResult(ctx context.Context, db DBTX, arg SummarizeRunsBreakdownResultParams) ([]SummarizeRunsBreakdownResultRow, error)
SummarizeRunsBreakdownResult mocks base method.
func (*MockQuerier) SummarizeRunsBreakdownTest ¶
func (m *MockQuerier) SummarizeRunsBreakdownTest(ctx context.Context, db DBTX, arg SummarizeRunsBreakdownTestParams) ([]SummarizeRunsBreakdownTestRow, error)
SummarizeRunsBreakdownTest mocks base method.
func (*MockQuerier) TimeoutRuns ¶
func (m *MockQuerier) TimeoutRuns(ctx context.Context, db DBTX, arg TimeoutRunsParams) error
TimeoutRuns mocks base method.
func (*MockQuerier) UpdateResultData ¶
func (m *MockQuerier) UpdateResultData(ctx context.Context, db DBTX, arg UpdateResultDataParams) error
UpdateResultData mocks base method.
func (*MockQuerier) UpdateRun ¶
func (m *MockQuerier) UpdateRun(ctx context.Context, db DBTX, arg UpdateRunParams) error
UpdateRun mocks base method.
func (*MockQuerier) UpdateRunnerHeartbeat ¶
func (m *MockQuerier) UpdateRunnerHeartbeat(ctx context.Context, db DBTX, arg UpdateRunnerHeartbeatParams) error
UpdateRunnerHeartbeat mocks base method.
func (*MockQuerier) UpdateTest ¶
func (m *MockQuerier) UpdateTest(ctx context.Context, db DBTX, arg UpdateTestParams) (pgconn.CommandTag, error)
UpdateTest mocks base method.
type MockQuerierMockRecorder ¶
type MockQuerierMockRecorder struct {
// contains filtered or unexported fields
}
MockQuerierMockRecorder is the mock recorder for MockQuerier.
func (*MockQuerierMockRecorder) AppendLogsToRun ¶
func (mr *MockQuerierMockRecorder) AppendLogsToRun(ctx, db, arg interface{}) *gomock.Call
AppendLogsToRun indicates an expected call of AppendLogsToRun.
func (*MockQuerierMockRecorder) AssignRun ¶
func (mr *MockQuerierMockRecorder) AssignRun(ctx, db, arg interface{}) *gomock.Call
AssignRun indicates an expected call of AssignRun.
func (*MockQuerierMockRecorder) AuthAccessToken ¶
func (mr *MockQuerierMockRecorder) AuthAccessToken(ctx, db, tokenHash interface{}) *gomock.Call
AuthAccessToken indicates an expected call of AuthAccessToken.
func (*MockQuerierMockRecorder) DeleteRunsForTest ¶
func (mr *MockQuerierMockRecorder) DeleteRunsForTest(ctx, db, testID interface{}) *gomock.Call
DeleteRunsForTest indicates an expected call of DeleteRunsForTest.
func (*MockQuerierMockRecorder) DeleteTest ¶
func (mr *MockQuerierMockRecorder) DeleteTest(ctx, db, arg interface{}) *gomock.Call
DeleteTest indicates an expected call of DeleteTest.
func (*MockQuerierMockRecorder) GetAccessToken ¶
func (mr *MockQuerierMockRecorder) GetAccessToken(ctx, db, id interface{}) *gomock.Call
GetAccessToken indicates an expected call of GetAccessToken.
func (*MockQuerierMockRecorder) GetRun ¶
func (mr *MockQuerierMockRecorder) GetRun(ctx, db, arg interface{}) *gomock.Call
GetRun indicates an expected call of GetRun.
func (*MockQuerierMockRecorder) GetRunner ¶
func (mr *MockQuerierMockRecorder) GetRunner(ctx, db, id interface{}) *gomock.Call
GetRunner indicates an expected call of GetRunner.
func (*MockQuerierMockRecorder) GetTest ¶
func (mr *MockQuerierMockRecorder) GetTest(ctx, db, arg interface{}) *gomock.Call
GetTest indicates an expected call of GetTest.
func (*MockQuerierMockRecorder) IssueAccessToken ¶
func (mr *MockQuerierMockRecorder) IssueAccessToken(ctx, db, arg interface{}) *gomock.Call
IssueAccessToken indicates an expected call of IssueAccessToken.
func (*MockQuerierMockRecorder) ListAccessTokens ¶
func (mr *MockQuerierMockRecorder) ListAccessTokens(ctx, db, arg interface{}) *gomock.Call
ListAccessTokens indicates an expected call of ListAccessTokens.
func (*MockQuerierMockRecorder) ListAllNamespaces ¶
func (mr *MockQuerierMockRecorder) ListAllNamespaces(ctx, db interface{}) *gomock.Call
ListAllNamespaces indicates an expected call of ListAllNamespaces.
func (*MockQuerierMockRecorder) ListPendingRuns ¶
func (mr *MockQuerierMockRecorder) ListPendingRuns(ctx, db interface{}) *gomock.Call
ListPendingRuns indicates an expected call of ListPendingRuns.
func (*MockQuerierMockRecorder) ListRunners ¶
func (mr *MockQuerierMockRecorder) ListRunners(ctx, db interface{}) *gomock.Call
ListRunners indicates an expected call of ListRunners.
func (*MockQuerierMockRecorder) ListRuns ¶
func (mr *MockQuerierMockRecorder) ListRuns(ctx, db, namespace interface{}) *gomock.Call
ListRuns indicates an expected call of ListRuns.
func (*MockQuerierMockRecorder) ListTests ¶
func (mr *MockQuerierMockRecorder) ListTests(ctx, db, namespace interface{}) *gomock.Call
ListTests indicates an expected call of ListTests.
func (*MockQuerierMockRecorder) ListTestsToSchedule ¶
func (mr *MockQuerierMockRecorder) ListTestsToSchedule(ctx, db interface{}) *gomock.Call
ListTestsToSchedule indicates an expected call of ListTestsToSchedule.
func (*MockQuerierMockRecorder) QueryRunners ¶
func (mr *MockQuerierMockRecorder) QueryRunners(ctx, db, arg interface{}) *gomock.Call
QueryRunners indicates an expected call of QueryRunners.
func (*MockQuerierMockRecorder) QueryRuns ¶
func (mr *MockQuerierMockRecorder) QueryRuns(ctx, db, arg interface{}) *gomock.Call
QueryRuns indicates an expected call of QueryRuns.
func (*MockQuerierMockRecorder) QueryTests ¶
func (mr *MockQuerierMockRecorder) QueryTests(ctx, db, arg interface{}) *gomock.Call
QueryTests indicates an expected call of QueryTests.
func (*MockQuerierMockRecorder) RegisterRunner ¶
func (mr *MockQuerierMockRecorder) RegisterRunner(ctx, db, arg interface{}) *gomock.Call
RegisterRunner indicates an expected call of RegisterRunner.
func (*MockQuerierMockRecorder) RegisterTest ¶
func (mr *MockQuerierMockRecorder) RegisterTest(ctx, db, arg interface{}) *gomock.Call
RegisterTest indicates an expected call of RegisterTest.
func (*MockQuerierMockRecorder) ResetOrphanedRuns ¶
func (mr *MockQuerierMockRecorder) ResetOrphanedRuns(ctx, db, before interface{}) *gomock.Call
ResetOrphanedRuns indicates an expected call of ResetOrphanedRuns.
func (*MockQuerierMockRecorder) RevokeAccessToken ¶
func (mr *MockQuerierMockRecorder) RevokeAccessToken(ctx, db, id interface{}) *gomock.Call
RevokeAccessToken indicates an expected call of RevokeAccessToken.
func (*MockQuerierMockRecorder) RunSummariesForRunner ¶
func (mr *MockQuerierMockRecorder) RunSummariesForRunner(ctx, db, arg interface{}) *gomock.Call
RunSummariesForRunner indicates an expected call of RunSummariesForRunner.
func (*MockQuerierMockRecorder) RunSummariesForTest ¶
func (mr *MockQuerierMockRecorder) RunSummariesForTest(ctx, db, arg interface{}) *gomock.Call
RunSummariesForTest indicates an expected call of RunSummariesForTest.
func (*MockQuerierMockRecorder) ScheduleRun ¶
func (mr *MockQuerierMockRecorder) ScheduleRun(ctx, db, arg interface{}) *gomock.Call
ScheduleRun indicates an expected call of ScheduleRun.
func (*MockQuerierMockRecorder) SummarizeRunsBreakdownResult ¶
func (mr *MockQuerierMockRecorder) SummarizeRunsBreakdownResult(ctx, db, arg interface{}) *gomock.Call
SummarizeRunsBreakdownResult indicates an expected call of SummarizeRunsBreakdownResult.
func (*MockQuerierMockRecorder) SummarizeRunsBreakdownTest ¶
func (mr *MockQuerierMockRecorder) SummarizeRunsBreakdownTest(ctx, db, arg interface{}) *gomock.Call
SummarizeRunsBreakdownTest indicates an expected call of SummarizeRunsBreakdownTest.
func (*MockQuerierMockRecorder) TimeoutRuns ¶
func (mr *MockQuerierMockRecorder) TimeoutRuns(ctx, db, arg interface{}) *gomock.Call
TimeoutRuns indicates an expected call of TimeoutRuns.
func (*MockQuerierMockRecorder) UpdateResultData ¶
func (mr *MockQuerierMockRecorder) UpdateResultData(ctx, db, arg interface{}) *gomock.Call
UpdateResultData indicates an expected call of UpdateResultData.
func (*MockQuerierMockRecorder) UpdateRun ¶
func (mr *MockQuerierMockRecorder) UpdateRun(ctx, db, arg interface{}) *gomock.Call
UpdateRun indicates an expected call of UpdateRun.
func (*MockQuerierMockRecorder) UpdateRunnerHeartbeat ¶
func (mr *MockQuerierMockRecorder) UpdateRunnerHeartbeat(ctx, db, arg interface{}) *gomock.Call
UpdateRunnerHeartbeat indicates an expected call of UpdateRunnerHeartbeat.
func (*MockQuerierMockRecorder) UpdateTest ¶
func (mr *MockQuerierMockRecorder) UpdateTest(ctx, db, arg interface{}) *gomock.Call
UpdateTest indicates an expected call of UpdateTest.
type NullAccessTokenScope ¶
type NullAccessTokenScope struct { AccessTokenScope AccessTokenScope Valid bool // Valid is true if AccessTokenScope is not NULL }
func (*NullAccessTokenScope) Scan ¶
func (ns *NullAccessTokenScope) Scan(value interface{}) error
Scan implements the Scanner interface.
type NullRunResult ¶
type NullRunResult struct { RunResult RunResult Valid bool // Valid is true if RunResult is not NULL }
func (*NullRunResult) Scan ¶
func (ns *NullRunResult) Scan(value interface{}) error
Scan implements the Scanner interface.
type Querier ¶
type Querier interface { AppendLogsToRun(ctx context.Context, db DBTX, arg AppendLogsToRunParams) error AssignRun(ctx context.Context, db DBTX, arg AssignRunParams) (Run, error) // TODO re: ::text[] https://github.com/kyleconroy/sqlc/issues/1256 AuthAccessToken(ctx context.Context, db DBTX, tokenHash string) (AuthAccessTokenRow, error) DeleteRunsForTest(ctx context.Context, db DBTX, testID uuid.UUID) error DeleteTest(ctx context.Context, db DBTX, arg DeleteTestParams) (pgconn.CommandTag, error) // TODO re: ::text[] https://github.com/kyleconroy/sqlc/issues/1256 GetAccessToken(ctx context.Context, db DBTX, id uuid.UUID) (GetAccessTokenRow, error) GetRun(ctx context.Context, db DBTX, arg GetRunParams) (Run, error) GetRunner(ctx context.Context, db DBTX, id uuid.UUID) (Runner, error) GetTest(ctx context.Context, db DBTX, arg GetTestParams) (Test, error) // TODO re: ::text[] https://github.com/kyleconroy/sqlc/issues/1256 IssueAccessToken(ctx context.Context, db DBTX, arg IssueAccessTokenParams) (IssueAccessTokenRow, error) // TODO re: ::text[] https://github.com/kyleconroy/sqlc/issues/1256 ListAccessTokens(ctx context.Context, db DBTX, arg ListAccessTokensParams) ([]ListAccessTokensRow, error) ListAllNamespaces(ctx context.Context, db DBTX) ([]string, error) ListPendingRuns(ctx context.Context, db DBTX) ([]ListPendingRunsRow, error) ListRunners(ctx context.Context, db DBTX) ([]Runner, error) ListRuns(ctx context.Context, db DBTX, namespace string) ([]Run, error) ListTests(ctx context.Context, db DBTX, namespace string) ([]Test, error) ListTestsToSchedule(ctx context.Context, db DBTX) ([]Test, error) QueryRunners(ctx context.Context, db DBTX, arg QueryRunnersParams) ([]Runner, error) QueryRuns(ctx context.Context, db DBTX, arg QueryRunsParams) ([]Run, error) QueryTests(ctx context.Context, db DBTX, arg QueryTestsParams) ([]Test, error) RegisterRunner(ctx context.Context, db DBTX, arg RegisterRunnerParams) (Runner, error) RegisterTest(ctx context.Context, db DBTX, arg RegisterTestParams) (Test, error) ResetOrphanedRuns(ctx context.Context, db DBTX, before time.Time) error RevokeAccessToken(ctx context.Context, db DBTX, id uuid.UUID) error RunSummariesForRunner(ctx context.Context, db DBTX, arg RunSummariesForRunnerParams) ([]RunSummariesForRunnerRow, error) RunSummariesForTest(ctx context.Context, db DBTX, arg RunSummariesForTestParams) ([]RunSummariesForTestRow, error) ScheduleRun(ctx context.Context, db DBTX, arg ScheduleRunParams) (Run, error) SummarizeRunsBreakdownResult(ctx context.Context, db DBTX, arg SummarizeRunsBreakdownResultParams) ([]SummarizeRunsBreakdownResultRow, error) SummarizeRunsBreakdownTest(ctx context.Context, db DBTX, arg SummarizeRunsBreakdownTestParams) ([]SummarizeRunsBreakdownTestRow, error) TimeoutRuns(ctx context.Context, db DBTX, arg TimeoutRunsParams) error UpdateResultData(ctx context.Context, db DBTX, arg UpdateResultDataParams) error UpdateRun(ctx context.Context, db DBTX, arg UpdateRunParams) error UpdateRunnerHeartbeat(ctx context.Context, db DBTX, arg UpdateRunnerHeartbeatParams) error UpdateTest(ctx context.Context, db DBTX, arg UpdateTestParams) (pgconn.CommandTag, error) }
type Queries ¶
type Queries struct { }
func (*Queries) AppendLogsToRun ¶
func (*Queries) AuthAccessToken ¶
func (q *Queries) AuthAccessToken(ctx context.Context, db DBTX, tokenHash string) (AuthAccessTokenRow, error)
TODO re: ::text[] https://github.com/kyleconroy/sqlc/issues/1256
func (*Queries) DeleteRunsForTest ¶
func (*Queries) DeleteTest ¶
func (q *Queries) DeleteTest(ctx context.Context, db DBTX, arg DeleteTestParams) (pgconn.CommandTag, error)
func (*Queries) GetAccessToken ¶
func (q *Queries) GetAccessToken(ctx context.Context, db DBTX, id uuid.UUID) (GetAccessTokenRow, error)
TODO re: ::text[] https://github.com/kyleconroy/sqlc/issues/1256
func (*Queries) IssueAccessToken ¶
func (q *Queries) IssueAccessToken(ctx context.Context, db DBTX, arg IssueAccessTokenParams) (IssueAccessTokenRow, error)
TODO re: ::text[] https://github.com/kyleconroy/sqlc/issues/1256
func (*Queries) ListAccessTokens ¶
func (q *Queries) ListAccessTokens(ctx context.Context, db DBTX, arg ListAccessTokensParams) ([]ListAccessTokensRow, error)
TODO re: ::text[] https://github.com/kyleconroy/sqlc/issues/1256
func (*Queries) ListAllNamespaces ¶
func (*Queries) ListPendingRuns ¶
func (*Queries) ListRunners ¶
func (*Queries) ListTestsToSchedule ¶
func (*Queries) QueryRunners ¶
func (*Queries) QueryTests ¶
func (*Queries) RegisterRunner ¶
func (*Queries) RegisterTest ¶
func (*Queries) ResetOrphanedRuns ¶
func (*Queries) RevokeAccessToken ¶
func (*Queries) RunSummariesForRunner ¶
func (q *Queries) RunSummariesForRunner(ctx context.Context, db DBTX, arg RunSummariesForRunnerParams) ([]RunSummariesForRunnerRow, error)
func (*Queries) RunSummariesForTest ¶
func (q *Queries) RunSummariesForTest(ctx context.Context, db DBTX, arg RunSummariesForTestParams) ([]RunSummariesForTestRow, error)
func (*Queries) ScheduleRun ¶
func (*Queries) SummarizeRunsBreakdownResult ¶
func (q *Queries) SummarizeRunsBreakdownResult(ctx context.Context, db DBTX, arg SummarizeRunsBreakdownResultParams) ([]SummarizeRunsBreakdownResultRow, error)
func (*Queries) SummarizeRunsBreakdownTest ¶
func (q *Queries) SummarizeRunsBreakdownTest(ctx context.Context, db DBTX, arg SummarizeRunsBreakdownTestParams) ([]SummarizeRunsBreakdownTestRow, error)
func (*Queries) TimeoutRuns ¶
func (*Queries) UpdateResultData ¶
func (*Queries) UpdateRunnerHeartbeat ¶
func (*Queries) UpdateTest ¶
func (q *Queries) UpdateTest(ctx context.Context, db DBTX, arg UpdateTestParams) (pgconn.CommandTag, error)
type QueryRunnersParams ¶
type QueryRunsParams ¶
type QueryTestsParams ¶
type RegisterRunnerParams ¶
type RegisterTestParams ¶
type RunResults ¶
type RunResults []RunResult
func (*RunResults) DecodeText ¶
func (r *RunResults) DecodeText(ci *pgtype.ConnInfo, src []byte) error
func (RunResults) EncodeText ¶
type RunSummariesForTestRow ¶
type ScheduleRunParams ¶
type SchemaMigration ¶
type SchemaMigration struct {
Version string
}