Documentation
¶
Overview ¶
Package daemonclient provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.6.0 DO NOT EDIT.
Index ¶
- func NewAddCommentRequest(server string, body AddCommentJSONRequestBody) (*http.Request, error)
- func NewAddCommentRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewBatchJobsRequest(server string, body BatchJobsJSONRequestBody) (*http.Request, error)
- func NewBatchJobsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCancelJobRequest(server string, body CancelJobJSONRequestBody) (*http.Request, error)
- func NewCancelJobRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCloseReviewRequest(server string, body CloseReviewJSONRequestBody) (*http.Request, error)
- func NewCloseReviewRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateFixJobRequest(server string, body CreateFixJobJSONRequestBody) (*http.Request, error)
- func NewCreateFixJobRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewEnqueueJobRequest(server string, body EnqueueJobJSONRequestBody) (*http.Request, error)
- func NewEnqueueJobRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetHealthRequest(server string) (*http.Request, error)
- func NewGetJobLogRequest(server string, params *GetJobLogParams) (*http.Request, error)
- func NewGetJobOutputRequest(server string, params *GetJobOutputParams) (*http.Request, error)
- func NewGetJobPatchRequest(server string, params *GetJobPatchParams) (*http.Request, error)
- func NewGetReviewRequest(server string, params *GetReviewParams) (*http.Request, error)
- func NewGetStatusRequest(server string) (*http.Request, error)
- func NewGetSummaryRequest(server string, params *GetSummaryParams) (*http.Request, error)
- func NewGetSyncStatusRequest(server string) (*http.Request, error)
- func NewListActivityRequest(server string, params *ListActivityParams) (*http.Request, error)
- func NewListBranchesRequest(server string, params *ListBranchesParams) (*http.Request, error)
- func NewListCommentsRequest(server string, params *ListCommentsParams) (*http.Request, error)
- func NewListJobsRequest(server string, params *ListJobsParams) (*http.Request, error)
- func NewListReposRequest(server string, params *ListReposParams) (*http.Request, error)
- func NewMarkJobAppliedRequest(server string, body MarkJobAppliedJSONRequestBody) (*http.Request, error)
- func NewMarkJobAppliedRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewMarkJobRebasedRequest(server string, body MarkJobRebasedJSONRequestBody) (*http.Request, error)
- func NewMarkJobRebasedRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPingRequest(server string) (*http.Request, error)
- func NewRegisterRepoRequest(server string, body RegisterRepoJSONRequestBody) (*http.Request, error)
- func NewRegisterRepoRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewRemapJobsRequest(server string, body RemapJobsJSONRequestBody) (*http.Request, error)
- func NewRemapJobsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewRerunJobRequest(server string, body RerunJobJSONRequestBody) (*http.Request, error)
- func NewRerunJobRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewStreamEventsRequest(server string, params *StreamEventsParams) (*http.Request, error)
- func NewSyncNowRequest(server string, params *SyncNowParams) (*http.Request, error)
- func NewUpdateJobBranchRequest(server string, body UpdateJobBranchJSONRequestBody) (*http.Request, error)
- func NewUpdateJobBranchRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- type ActivityEntry
- type ActivityOutputBody
- type AddCommentJSONRequestBody
- type AddCommentRequest
- type AddCommentResponse
- type AgentStats
- type AutoDesignStatus
- type BatchJobsJSONRequestBody
- type BatchJobsOutputBody
- type BatchJobsRequest
- type BatchJobsResponse
- type BranchWithCount
- type CancelJobJSONRequestBody
- type CancelJobOutputBody
- type CancelJobRequest
- type CancelJobResponse
- type Client
- func (c *Client) AddComment(ctx context.Context, body AddCommentJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AddCommentWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) BatchJobs(ctx context.Context, body BatchJobsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) BatchJobsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CancelJob(ctx context.Context, body CancelJobJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CancelJobWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CloseReview(ctx context.Context, body CloseReviewJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CloseReviewWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateFixJob(ctx context.Context, body CreateFixJobJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateFixJobWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) EnqueueJob(ctx context.Context, body EnqueueJobJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) EnqueueJobWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetJobLog(ctx context.Context, params *GetJobLogParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetJobOutput(ctx context.Context, params *GetJobOutputParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetJobPatch(ctx context.Context, params *GetJobPatchParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetReview(ctx context.Context, params *GetReviewParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetSummary(ctx context.Context, params *GetSummaryParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetSyncStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListActivity(ctx context.Context, params *ListActivityParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListBranches(ctx context.Context, params *ListBranchesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListComments(ctx context.Context, params *ListCommentsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListJobs(ctx context.Context, params *ListJobsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListRepos(ctx context.Context, params *ListReposParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) MarkJobApplied(ctx context.Context, body MarkJobAppliedJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) MarkJobAppliedWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) MarkJobRebased(ctx context.Context, body MarkJobRebasedJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) MarkJobRebasedWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) Ping(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) RegisterRepo(ctx context.Context, body RegisterRepoJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) RegisterRepoWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) RemapJobs(ctx context.Context, body RemapJobsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) RemapJobsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) RerunJob(ctx context.Context, body RerunJobJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) RerunJobWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) StreamEvents(ctx context.Context, params *StreamEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) SyncNow(ctx context.Context, params *SyncNowParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) UpdateJobBranch(ctx context.Context, body UpdateJobBranchJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateJobBranchWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) AddCommentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*AddCommentResponse, error)
- func (c *ClientWithResponses) AddCommentWithResponse(ctx context.Context, body AddCommentJSONRequestBody, ...) (*AddCommentResponse, error)
- func (c *ClientWithResponses) BatchJobsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*BatchJobsResponse, error)
- func (c *ClientWithResponses) BatchJobsWithResponse(ctx context.Context, body BatchJobsJSONRequestBody, ...) (*BatchJobsResponse, error)
- func (c *ClientWithResponses) CancelJobWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CancelJobResponse, error)
- func (c *ClientWithResponses) CancelJobWithResponse(ctx context.Context, body CancelJobJSONRequestBody, ...) (*CancelJobResponse, error)
- func (c *ClientWithResponses) CloseReviewWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CloseReviewResponse, error)
- func (c *ClientWithResponses) CloseReviewWithResponse(ctx context.Context, body CloseReviewJSONRequestBody, ...) (*CloseReviewResponse, error)
- func (c *ClientWithResponses) CreateFixJobWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateFixJobResponse, error)
- func (c *ClientWithResponses) CreateFixJobWithResponse(ctx context.Context, body CreateFixJobJSONRequestBody, ...) (*CreateFixJobResponse, error)
- func (c *ClientWithResponses) EnqueueJobWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*EnqueueJobResponse, error)
- func (c *ClientWithResponses) EnqueueJobWithResponse(ctx context.Context, body EnqueueJobJSONRequestBody, ...) (*EnqueueJobResponse, error)
- func (c *ClientWithResponses) GetHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthResponse, error)
- func (c *ClientWithResponses) GetJobLogWithResponse(ctx context.Context, params *GetJobLogParams, reqEditors ...RequestEditorFn) (*GetJobLogResponse, error)
- func (c *ClientWithResponses) GetJobOutputWithResponse(ctx context.Context, params *GetJobOutputParams, reqEditors ...RequestEditorFn) (*GetJobOutputResponse, error)
- func (c *ClientWithResponses) GetJobPatchWithResponse(ctx context.Context, params *GetJobPatchParams, reqEditors ...RequestEditorFn) (*GetJobPatchResponse, error)
- func (c *ClientWithResponses) GetReviewWithResponse(ctx context.Context, params *GetReviewParams, reqEditors ...RequestEditorFn) (*GetReviewResponse, error)
- func (c *ClientWithResponses) GetStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetStatusResponse, error)
- func (c *ClientWithResponses) GetSummaryWithResponse(ctx context.Context, params *GetSummaryParams, reqEditors ...RequestEditorFn) (*GetSummaryResponse, error)
- func (c *ClientWithResponses) GetSyncStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSyncStatusResponse, error)
- func (c *ClientWithResponses) ListActivityWithResponse(ctx context.Context, params *ListActivityParams, reqEditors ...RequestEditorFn) (*ListActivityResponse, error)
- func (c *ClientWithResponses) ListBranchesWithResponse(ctx context.Context, params *ListBranchesParams, reqEditors ...RequestEditorFn) (*ListBranchesResponse, error)
- func (c *ClientWithResponses) ListCommentsWithResponse(ctx context.Context, params *ListCommentsParams, reqEditors ...RequestEditorFn) (*ListCommentsResponse, error)
- func (c *ClientWithResponses) ListJobsWithResponse(ctx context.Context, params *ListJobsParams, reqEditors ...RequestEditorFn) (*ListJobsResponse, error)
- func (c *ClientWithResponses) ListReposWithResponse(ctx context.Context, params *ListReposParams, reqEditors ...RequestEditorFn) (*ListReposResponse, error)
- func (c *ClientWithResponses) MarkJobAppliedWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*MarkJobAppliedResponse, error)
- func (c *ClientWithResponses) MarkJobAppliedWithResponse(ctx context.Context, body MarkJobAppliedJSONRequestBody, ...) (*MarkJobAppliedResponse, error)
- func (c *ClientWithResponses) MarkJobRebasedWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*MarkJobRebasedResponse, error)
- func (c *ClientWithResponses) MarkJobRebasedWithResponse(ctx context.Context, body MarkJobRebasedJSONRequestBody, ...) (*MarkJobRebasedResponse, error)
- func (c *ClientWithResponses) PingWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PingResponse, error)
- func (c *ClientWithResponses) RegisterRepoWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*RegisterRepoResponse, error)
- func (c *ClientWithResponses) RegisterRepoWithResponse(ctx context.Context, body RegisterRepoJSONRequestBody, ...) (*RegisterRepoResponse, error)
- func (c *ClientWithResponses) RemapJobsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*RemapJobsResponse, error)
- func (c *ClientWithResponses) RemapJobsWithResponse(ctx context.Context, body RemapJobsJSONRequestBody, ...) (*RemapJobsResponse, error)
- func (c *ClientWithResponses) RerunJobWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*RerunJobResponse, error)
- func (c *ClientWithResponses) RerunJobWithResponse(ctx context.Context, body RerunJobJSONRequestBody, ...) (*RerunJobResponse, error)
- func (c *ClientWithResponses) StreamEventsWithResponse(ctx context.Context, params *StreamEventsParams, reqEditors ...RequestEditorFn) (*StreamEventsResponse, error)
- func (c *ClientWithResponses) SyncNowWithResponse(ctx context.Context, params *SyncNowParams, reqEditors ...RequestEditorFn) (*SyncNowResponse, error)
- func (c *ClientWithResponses) UpdateJobBranchWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*UpdateJobBranchResponse, error)
- func (c *ClientWithResponses) UpdateJobBranchWithResponse(ctx context.Context, body UpdateJobBranchJSONRequestBody, ...) (*UpdateJobBranchResponse, error)
- type ClientWithResponsesInterface
- type CloseReviewJSONRequestBody
- type CloseReviewOutputBody
- type CloseReviewRequest
- type CloseReviewResponse
- type ComponentHealth
- type CreateFixJobJSONRequestBody
- type CreateFixJobResponse
- type DaemonStatus
- type DurationStats
- type EnqueueJobJSONRequestBody
- type EnqueueJobResponse
- type EnqueueRequest
- type EnqueueSkippedResponse
- type ErrorDetail
- type ErrorEntry
- type ErrorModel
- type ErrorResponse
- type FailureStats
- type FixJobRequest
- type GetHealthResponse
- type GetJobLogParams
- type GetJobLogResponse
- type GetJobOutputParams
- type GetJobOutputResponse
- type GetJobPatchParams
- type GetJobPatchResponse
- type GetReviewParams
- type GetReviewResponse
- type GetStatusResponse
- type GetSummaryParams
- type GetSummaryParamsAll
- type GetSummaryResponse
- type GetSyncStatusResponse
- type HealthStatus
- type HttpRequestDoer
- type JobIDRequest
- type JobStats
- type JobStatusOutputBody
- type JobTypeStats
- type JobWithReview
- type ListActivityParams
- type ListActivityResponse
- type ListBranchesOutputBody
- type ListBranchesParams
- type ListBranchesResponse
- type ListCommentsOutputBody
- type ListCommentsParams
- type ListCommentsResponse
- type ListJobsOutputBody
- type ListJobsParams
- type ListJobsParamsBranchIncludeEmpty
- type ListJobsParamsClosed
- type ListJobsResponse
- type ListReposOutputBody
- type ListReposParams
- type ListReposResponse
- type MarkJobAppliedJSONRequestBody
- type MarkJobAppliedResponse
- type MarkJobRebasedJSONRequestBody
- type MarkJobRebasedResponse
- type OverviewStats
- type PingInfo
- type PingResponse
- type RegisterRepoJSONRequestBody
- type RegisterRepoRequest
- type RegisterRepoResponse
- type RemapJobsJSONRequestBody
- type RemapJobsResponse
- type RemapMapping
- type RemapRequest
- type RemapResult
- type Repo
- type RepoSummary
- type RepoWithCount
- type RequestEditorFn
- type RerunJobJSONRequestBody
- type RerunJobOutputBody
- type RerunJobRequest
- type RerunJobResponse
- type Response
- type Review
- type ReviewJob
- type StreamEventsParams
- type StreamEventsResponse
- type Summary
- type SyncNowParams
- type SyncNowResponse
- type SyncStatusOutputBody
- type UpdateJobBranchJSONRequestBody
- type UpdateJobBranchOutputBody
- type UpdateJobBranchRequest
- type UpdateJobBranchResponse
- type VerdictStats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAddCommentRequest ¶
func NewAddCommentRequest(server string, body AddCommentJSONRequestBody) (*http.Request, error)
NewAddCommentRequest calls the generic AddComment builder with application/json body
func NewAddCommentRequestWithBody ¶
func NewAddCommentRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewAddCommentRequestWithBody generates requests for AddComment with any type of body
func NewBatchJobsRequest ¶
func NewBatchJobsRequest(server string, body BatchJobsJSONRequestBody) (*http.Request, error)
NewBatchJobsRequest calls the generic BatchJobs builder with application/json body
func NewBatchJobsRequestWithBody ¶
func NewBatchJobsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewBatchJobsRequestWithBody generates requests for BatchJobs with any type of body
func NewCancelJobRequest ¶
func NewCancelJobRequest(server string, body CancelJobJSONRequestBody) (*http.Request, error)
NewCancelJobRequest calls the generic CancelJob builder with application/json body
func NewCancelJobRequestWithBody ¶
func NewCancelJobRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCancelJobRequestWithBody generates requests for CancelJob with any type of body
func NewCloseReviewRequest ¶
func NewCloseReviewRequest(server string, body CloseReviewJSONRequestBody) (*http.Request, error)
NewCloseReviewRequest calls the generic CloseReview builder with application/json body
func NewCloseReviewRequestWithBody ¶
func NewCloseReviewRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCloseReviewRequestWithBody generates requests for CloseReview with any type of body
func NewCreateFixJobRequest ¶
func NewCreateFixJobRequest(server string, body CreateFixJobJSONRequestBody) (*http.Request, error)
NewCreateFixJobRequest calls the generic CreateFixJob builder with application/json body
func NewCreateFixJobRequestWithBody ¶
func NewCreateFixJobRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateFixJobRequestWithBody generates requests for CreateFixJob with any type of body
func NewEnqueueJobRequest ¶
func NewEnqueueJobRequest(server string, body EnqueueJobJSONRequestBody) (*http.Request, error)
NewEnqueueJobRequest calls the generic EnqueueJob builder with application/json body
func NewEnqueueJobRequestWithBody ¶
func NewEnqueueJobRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewEnqueueJobRequestWithBody generates requests for EnqueueJob with any type of body
func NewGetHealthRequest ¶
NewGetHealthRequest generates requests for GetHealth
func NewGetJobLogRequest ¶
func NewGetJobLogRequest(server string, params *GetJobLogParams) (*http.Request, error)
NewGetJobLogRequest generates requests for GetJobLog
func NewGetJobOutputRequest ¶
func NewGetJobOutputRequest(server string, params *GetJobOutputParams) (*http.Request, error)
NewGetJobOutputRequest generates requests for GetJobOutput
func NewGetJobPatchRequest ¶
func NewGetJobPatchRequest(server string, params *GetJobPatchParams) (*http.Request, error)
NewGetJobPatchRequest generates requests for GetJobPatch
func NewGetReviewRequest ¶
func NewGetReviewRequest(server string, params *GetReviewParams) (*http.Request, error)
NewGetReviewRequest generates requests for GetReview
func NewGetStatusRequest ¶
NewGetStatusRequest generates requests for GetStatus
func NewGetSummaryRequest ¶
func NewGetSummaryRequest(server string, params *GetSummaryParams) (*http.Request, error)
NewGetSummaryRequest generates requests for GetSummary
func NewGetSyncStatusRequest ¶
NewGetSyncStatusRequest generates requests for GetSyncStatus
func NewListActivityRequest ¶
func NewListActivityRequest(server string, params *ListActivityParams) (*http.Request, error)
NewListActivityRequest generates requests for ListActivity
func NewListBranchesRequest ¶
func NewListBranchesRequest(server string, params *ListBranchesParams) (*http.Request, error)
NewListBranchesRequest generates requests for ListBranches
func NewListCommentsRequest ¶
func NewListCommentsRequest(server string, params *ListCommentsParams) (*http.Request, error)
NewListCommentsRequest generates requests for ListComments
func NewListJobsRequest ¶
func NewListJobsRequest(server string, params *ListJobsParams) (*http.Request, error)
NewListJobsRequest generates requests for ListJobs
func NewListReposRequest ¶
func NewListReposRequest(server string, params *ListReposParams) (*http.Request, error)
NewListReposRequest generates requests for ListRepos
func NewMarkJobAppliedRequest ¶
func NewMarkJobAppliedRequest(server string, body MarkJobAppliedJSONRequestBody) (*http.Request, error)
NewMarkJobAppliedRequest calls the generic MarkJobApplied builder with application/json body
func NewMarkJobAppliedRequestWithBody ¶
func NewMarkJobAppliedRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewMarkJobAppliedRequestWithBody generates requests for MarkJobApplied with any type of body
func NewMarkJobRebasedRequest ¶
func NewMarkJobRebasedRequest(server string, body MarkJobRebasedJSONRequestBody) (*http.Request, error)
NewMarkJobRebasedRequest calls the generic MarkJobRebased builder with application/json body
func NewMarkJobRebasedRequestWithBody ¶
func NewMarkJobRebasedRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewMarkJobRebasedRequestWithBody generates requests for MarkJobRebased with any type of body
func NewPingRequest ¶
NewPingRequest generates requests for Ping
func NewRegisterRepoRequest ¶
func NewRegisterRepoRequest(server string, body RegisterRepoJSONRequestBody) (*http.Request, error)
NewRegisterRepoRequest calls the generic RegisterRepo builder with application/json body
func NewRegisterRepoRequestWithBody ¶
func NewRegisterRepoRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewRegisterRepoRequestWithBody generates requests for RegisterRepo with any type of body
func NewRemapJobsRequest ¶
func NewRemapJobsRequest(server string, body RemapJobsJSONRequestBody) (*http.Request, error)
NewRemapJobsRequest calls the generic RemapJobs builder with application/json body
func NewRemapJobsRequestWithBody ¶
func NewRemapJobsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewRemapJobsRequestWithBody generates requests for RemapJobs with any type of body
func NewRerunJobRequest ¶
func NewRerunJobRequest(server string, body RerunJobJSONRequestBody) (*http.Request, error)
NewRerunJobRequest calls the generic RerunJob builder with application/json body
func NewRerunJobRequestWithBody ¶
func NewRerunJobRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewRerunJobRequestWithBody generates requests for RerunJob with any type of body
func NewStreamEventsRequest ¶
func NewStreamEventsRequest(server string, params *StreamEventsParams) (*http.Request, error)
NewStreamEventsRequest generates requests for StreamEvents
func NewSyncNowRequest ¶
func NewSyncNowRequest(server string, params *SyncNowParams) (*http.Request, error)
NewSyncNowRequest generates requests for SyncNow
func NewUpdateJobBranchRequest ¶
func NewUpdateJobBranchRequest(server string, body UpdateJobBranchJSONRequestBody) (*http.Request, error)
NewUpdateJobBranchRequest calls the generic UpdateJobBranch builder with application/json body
Types ¶
type ActivityEntry ¶
type ActivityEntry struct {
Component string `json:"component"`
Details *map[string]string `json:"details,omitempty"`
Event string `json:"event"`
Message string `json:"message"`
Ts time.Time `json:"ts"`
}
ActivityEntry defines model for ActivityEntry.
type ActivityOutputBody ¶
type ActivityOutputBody struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
Entries *[]ActivityEntry `json:"entries"`
}
ActivityOutputBody defines model for ActivityOutputBody.
type AddCommentJSONRequestBody ¶
type AddCommentJSONRequestBody = AddCommentRequest
AddCommentJSONRequestBody defines body for AddComment for application/json ContentType.
type AddCommentRequest ¶
type AddCommentRequest struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
Comment string `json:"comment"`
Commenter string `json:"commenter"`
JobId *int64 `json:"job_id,omitempty"`
Sha *string `json:"sha,omitempty"`
}
AddCommentRequest defines model for AddCommentRequest.
type AddCommentResponse ¶
type AddCommentResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *Response
ApplicationproblemJSONDefault *ErrorModel
}
func ParseAddCommentResponse ¶
func ParseAddCommentResponse(rsp *http.Response) (*AddCommentResponse, error)
ParseAddCommentResponse parses an HTTP response from a AddCommentWithResponse call
func (AddCommentResponse) Status ¶
func (r AddCommentResponse) Status() string
Status returns HTTPResponse.Status
func (AddCommentResponse) StatusCode ¶
func (r AddCommentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AgentStats ¶
type AgentStats struct {
Agent string `json:"agent"`
Errors int64 `json:"errors"`
Failed int64 `json:"failed"`
MedianDurationSecs float64 `json:"median_duration_secs"`
PassRate float64 `json:"pass_rate"`
Passed int64 `json:"passed"`
Total int64 `json:"total"`
}
AgentStats defines model for AgentStats.
type AutoDesignStatus ¶
type AutoDesignStatus struct {
ClassifierFailed int64 `json:"classifier_failed"`
Enabled bool `json:"enabled"`
SkippedClassifier int64 `json:"skipped_classifier"`
SkippedHeuristic int64 `json:"skipped_heuristic"`
TriggeredClassifier int64 `json:"triggered_classifier"`
TriggeredHeuristic int64 `json:"triggered_heuristic"`
}
AutoDesignStatus defines model for AutoDesignStatus.
type BatchJobsJSONRequestBody ¶
type BatchJobsJSONRequestBody = BatchJobsRequest
BatchJobsJSONRequestBody defines body for BatchJobs for application/json ContentType.
type BatchJobsOutputBody ¶
type BatchJobsOutputBody struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
Results map[string]JobWithReview `json:"results"`
}
BatchJobsOutputBody defines model for BatchJobsOutputBody.
type BatchJobsRequest ¶
type BatchJobsRequest struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
JobIds *[]int64 `json:"job_ids"`
}
BatchJobsRequest defines model for BatchJobsRequest.
type BatchJobsResponse ¶
type BatchJobsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *BatchJobsOutputBody
ApplicationproblemJSONDefault *ErrorModel
}
func ParseBatchJobsResponse ¶
func ParseBatchJobsResponse(rsp *http.Response) (*BatchJobsResponse, error)
ParseBatchJobsResponse parses an HTTP response from a BatchJobsWithResponse call
func (BatchJobsResponse) Status ¶
func (r BatchJobsResponse) Status() string
Status returns HTTPResponse.Status
func (BatchJobsResponse) StatusCode ¶
func (r BatchJobsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type BranchWithCount ¶
BranchWithCount defines model for BranchWithCount.
type CancelJobJSONRequestBody ¶
type CancelJobJSONRequestBody = CancelJobRequest
CancelJobJSONRequestBody defines body for CancelJob for application/json ContentType.
type CancelJobOutputBody ¶
type CancelJobOutputBody struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
Success bool `json:"success"`
}
CancelJobOutputBody defines model for CancelJobOutputBody.
type CancelJobRequest ¶
type CancelJobRequest struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
JobId int64 `json:"job_id"`
}
CancelJobRequest defines model for CancelJobRequest.
type CancelJobResponse ¶
type CancelJobResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CancelJobOutputBody
ApplicationproblemJSONDefault *ErrorModel
}
func ParseCancelJobResponse ¶
func ParseCancelJobResponse(rsp *http.Response) (*CancelJobResponse, error)
ParseCancelJobResponse parses an HTTP response from a CancelJobWithResponse call
func (CancelJobResponse) Status ¶
func (r CancelJobResponse) Status() string
Status returns HTTPResponse.Status
func (CancelJobResponse) StatusCode ¶
func (r CancelJobResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Client ¶
type Client struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example. This can contain a path relative
// to the server, such as https://api.deepmap.com/dev-test, and all the
// paths in the swagger spec will be appended to the server.
Server string
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
}
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) AddComment ¶
func (c *Client) AddComment(ctx context.Context, body AddCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AddCommentWithBody ¶
func (*Client) BatchJobs ¶
func (c *Client) BatchJobs(ctx context.Context, body BatchJobsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) BatchJobsWithBody ¶
func (*Client) CancelJob ¶
func (c *Client) CancelJob(ctx context.Context, body CancelJobJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CancelJobWithBody ¶
func (*Client) CloseReview ¶
func (c *Client) CloseReview(ctx context.Context, body CloseReviewJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CloseReviewWithBody ¶
func (*Client) CreateFixJob ¶
func (c *Client) CreateFixJob(ctx context.Context, body CreateFixJobJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateFixJobWithBody ¶
func (*Client) EnqueueJob ¶
func (c *Client) EnqueueJob(ctx context.Context, body EnqueueJobJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) EnqueueJobWithBody ¶
func (*Client) GetJobLog ¶
func (c *Client) GetJobLog(ctx context.Context, params *GetJobLogParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetJobOutput ¶
func (c *Client) GetJobOutput(ctx context.Context, params *GetJobOutputParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetJobPatch ¶
func (c *Client) GetJobPatch(ctx context.Context, params *GetJobPatchParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetReview ¶
func (c *Client) GetReview(ctx context.Context, params *GetReviewParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetSummary ¶
func (c *Client) GetSummary(ctx context.Context, params *GetSummaryParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetSyncStatus ¶
func (*Client) ListActivity ¶
func (c *Client) ListActivity(ctx context.Context, params *ListActivityParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListBranches ¶
func (c *Client) ListBranches(ctx context.Context, params *ListBranchesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListComments ¶
func (c *Client) ListComments(ctx context.Context, params *ListCommentsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListJobs ¶
func (c *Client) ListJobs(ctx context.Context, params *ListJobsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListRepos ¶
func (c *Client) ListRepos(ctx context.Context, params *ListReposParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) MarkJobApplied ¶
func (c *Client) MarkJobApplied(ctx context.Context, body MarkJobAppliedJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) MarkJobAppliedWithBody ¶
func (*Client) MarkJobRebased ¶
func (c *Client) MarkJobRebased(ctx context.Context, body MarkJobRebasedJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) MarkJobRebasedWithBody ¶
func (*Client) RegisterRepo ¶
func (c *Client) RegisterRepo(ctx context.Context, body RegisterRepoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) RegisterRepoWithBody ¶
func (*Client) RemapJobs ¶
func (c *Client) RemapJobs(ctx context.Context, body RemapJobsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) RemapJobsWithBody ¶
func (*Client) RerunJob ¶
func (c *Client) RerunJob(ctx context.Context, body RerunJobJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) RerunJobWithBody ¶
func (*Client) StreamEvents ¶
func (c *Client) StreamEvents(ctx context.Context, params *StreamEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SyncNow ¶
func (c *Client) SyncNow(ctx context.Context, params *SyncNowParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateJobBranch ¶
func (c *Client) UpdateJobBranch(ctx context.Context, body UpdateJobBranchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface {
// ListActivity request
ListActivity(ctx context.Context, params *ListActivityParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListBranches request
ListBranches(ctx context.Context, params *ListBranchesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// AddCommentWithBody request with any body
AddCommentWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AddComment(ctx context.Context, body AddCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListComments request
ListComments(ctx context.Context, params *ListCommentsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// EnqueueJobWithBody request with any body
EnqueueJobWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
EnqueueJob(ctx context.Context, body EnqueueJobJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetHealth request
GetHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// MarkJobAppliedWithBody request with any body
MarkJobAppliedWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
MarkJobApplied(ctx context.Context, body MarkJobAppliedJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CancelJobWithBody request with any body
CancelJobWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CancelJob(ctx context.Context, body CancelJobJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateFixJobWithBody request with any body
CreateFixJobWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateFixJob(ctx context.Context, body CreateFixJobJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetJobLog request
GetJobLog(ctx context.Context, params *GetJobLogParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetJobOutput request
GetJobOutput(ctx context.Context, params *GetJobOutputParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetJobPatch request
GetJobPatch(ctx context.Context, params *GetJobPatchParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// MarkJobRebasedWithBody request with any body
MarkJobRebasedWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
MarkJobRebased(ctx context.Context, body MarkJobRebasedJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// RerunJobWithBody request with any body
RerunJobWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
RerunJob(ctx context.Context, body RerunJobJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateJobBranchWithBody request with any body
UpdateJobBranchWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateJobBranch(ctx context.Context, body UpdateJobBranchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListJobs request
ListJobs(ctx context.Context, params *ListJobsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// BatchJobsWithBody request with any body
BatchJobsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
BatchJobs(ctx context.Context, body BatchJobsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// Ping request
Ping(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// RemapJobsWithBody request with any body
RemapJobsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
RemapJobs(ctx context.Context, body RemapJobsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListRepos request
ListRepos(ctx context.Context, params *ListReposParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// RegisterRepoWithBody request with any body
RegisterRepoWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
RegisterRepo(ctx context.Context, body RegisterRepoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetReview request
GetReview(ctx context.Context, params *GetReviewParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CloseReviewWithBody request with any body
CloseReviewWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CloseReview(ctx context.Context, body CloseReviewJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetStatus request
GetStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// StreamEvents request
StreamEvents(ctx context.Context, params *StreamEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetSummary request
GetSummary(ctx context.Context, params *GetSummaryParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// SyncNow request
SyncNow(ctx context.Context, params *SyncNowParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetSyncStatus request
GetSyncStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) AddCommentWithBodyWithResponse ¶
func (c *ClientWithResponses) AddCommentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddCommentResponse, error)
AddCommentWithBodyWithResponse request with arbitrary body returning *AddCommentResponse
func (*ClientWithResponses) AddCommentWithResponse ¶
func (c *ClientWithResponses) AddCommentWithResponse(ctx context.Context, body AddCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*AddCommentResponse, error)
func (*ClientWithResponses) BatchJobsWithBodyWithResponse ¶
func (c *ClientWithResponses) BatchJobsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BatchJobsResponse, error)
BatchJobsWithBodyWithResponse request with arbitrary body returning *BatchJobsResponse
func (*ClientWithResponses) BatchJobsWithResponse ¶
func (c *ClientWithResponses) BatchJobsWithResponse(ctx context.Context, body BatchJobsJSONRequestBody, reqEditors ...RequestEditorFn) (*BatchJobsResponse, error)
func (*ClientWithResponses) CancelJobWithBodyWithResponse ¶
func (c *ClientWithResponses) CancelJobWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CancelJobResponse, error)
CancelJobWithBodyWithResponse request with arbitrary body returning *CancelJobResponse
func (*ClientWithResponses) CancelJobWithResponse ¶
func (c *ClientWithResponses) CancelJobWithResponse(ctx context.Context, body CancelJobJSONRequestBody, reqEditors ...RequestEditorFn) (*CancelJobResponse, error)
func (*ClientWithResponses) CloseReviewWithBodyWithResponse ¶
func (c *ClientWithResponses) CloseReviewWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CloseReviewResponse, error)
CloseReviewWithBodyWithResponse request with arbitrary body returning *CloseReviewResponse
func (*ClientWithResponses) CloseReviewWithResponse ¶
func (c *ClientWithResponses) CloseReviewWithResponse(ctx context.Context, body CloseReviewJSONRequestBody, reqEditors ...RequestEditorFn) (*CloseReviewResponse, error)
func (*ClientWithResponses) CreateFixJobWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateFixJobWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFixJobResponse, error)
CreateFixJobWithBodyWithResponse request with arbitrary body returning *CreateFixJobResponse
func (*ClientWithResponses) CreateFixJobWithResponse ¶
func (c *ClientWithResponses) CreateFixJobWithResponse(ctx context.Context, body CreateFixJobJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFixJobResponse, error)
func (*ClientWithResponses) EnqueueJobWithBodyWithResponse ¶
func (c *ClientWithResponses) EnqueueJobWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EnqueueJobResponse, error)
EnqueueJobWithBodyWithResponse request with arbitrary body returning *EnqueueJobResponse
func (*ClientWithResponses) EnqueueJobWithResponse ¶
func (c *ClientWithResponses) EnqueueJobWithResponse(ctx context.Context, body EnqueueJobJSONRequestBody, reqEditors ...RequestEditorFn) (*EnqueueJobResponse, error)
func (*ClientWithResponses) GetHealthWithResponse ¶
func (c *ClientWithResponses) GetHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthResponse, error)
GetHealthWithResponse request returning *GetHealthResponse
func (*ClientWithResponses) GetJobLogWithResponse ¶
func (c *ClientWithResponses) GetJobLogWithResponse(ctx context.Context, params *GetJobLogParams, reqEditors ...RequestEditorFn) (*GetJobLogResponse, error)
GetJobLogWithResponse request returning *GetJobLogResponse
func (*ClientWithResponses) GetJobOutputWithResponse ¶
func (c *ClientWithResponses) GetJobOutputWithResponse(ctx context.Context, params *GetJobOutputParams, reqEditors ...RequestEditorFn) (*GetJobOutputResponse, error)
GetJobOutputWithResponse request returning *GetJobOutputResponse
func (*ClientWithResponses) GetJobPatchWithResponse ¶
func (c *ClientWithResponses) GetJobPatchWithResponse(ctx context.Context, params *GetJobPatchParams, reqEditors ...RequestEditorFn) (*GetJobPatchResponse, error)
GetJobPatchWithResponse request returning *GetJobPatchResponse
func (*ClientWithResponses) GetReviewWithResponse ¶
func (c *ClientWithResponses) GetReviewWithResponse(ctx context.Context, params *GetReviewParams, reqEditors ...RequestEditorFn) (*GetReviewResponse, error)
GetReviewWithResponse request returning *GetReviewResponse
func (*ClientWithResponses) GetStatusWithResponse ¶
func (c *ClientWithResponses) GetStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetStatusResponse, error)
GetStatusWithResponse request returning *GetStatusResponse
func (*ClientWithResponses) GetSummaryWithResponse ¶
func (c *ClientWithResponses) GetSummaryWithResponse(ctx context.Context, params *GetSummaryParams, reqEditors ...RequestEditorFn) (*GetSummaryResponse, error)
GetSummaryWithResponse request returning *GetSummaryResponse
func (*ClientWithResponses) GetSyncStatusWithResponse ¶
func (c *ClientWithResponses) GetSyncStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSyncStatusResponse, error)
GetSyncStatusWithResponse request returning *GetSyncStatusResponse
func (*ClientWithResponses) ListActivityWithResponse ¶
func (c *ClientWithResponses) ListActivityWithResponse(ctx context.Context, params *ListActivityParams, reqEditors ...RequestEditorFn) (*ListActivityResponse, error)
ListActivityWithResponse request returning *ListActivityResponse
func (*ClientWithResponses) ListBranchesWithResponse ¶
func (c *ClientWithResponses) ListBranchesWithResponse(ctx context.Context, params *ListBranchesParams, reqEditors ...RequestEditorFn) (*ListBranchesResponse, error)
ListBranchesWithResponse request returning *ListBranchesResponse
func (*ClientWithResponses) ListCommentsWithResponse ¶
func (c *ClientWithResponses) ListCommentsWithResponse(ctx context.Context, params *ListCommentsParams, reqEditors ...RequestEditorFn) (*ListCommentsResponse, error)
ListCommentsWithResponse request returning *ListCommentsResponse
func (*ClientWithResponses) ListJobsWithResponse ¶
func (c *ClientWithResponses) ListJobsWithResponse(ctx context.Context, params *ListJobsParams, reqEditors ...RequestEditorFn) (*ListJobsResponse, error)
ListJobsWithResponse request returning *ListJobsResponse
func (*ClientWithResponses) ListReposWithResponse ¶
func (c *ClientWithResponses) ListReposWithResponse(ctx context.Context, params *ListReposParams, reqEditors ...RequestEditorFn) (*ListReposResponse, error)
ListReposWithResponse request returning *ListReposResponse
func (*ClientWithResponses) MarkJobAppliedWithBodyWithResponse ¶
func (c *ClientWithResponses) MarkJobAppliedWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MarkJobAppliedResponse, error)
MarkJobAppliedWithBodyWithResponse request with arbitrary body returning *MarkJobAppliedResponse
func (*ClientWithResponses) MarkJobAppliedWithResponse ¶
func (c *ClientWithResponses) MarkJobAppliedWithResponse(ctx context.Context, body MarkJobAppliedJSONRequestBody, reqEditors ...RequestEditorFn) (*MarkJobAppliedResponse, error)
func (*ClientWithResponses) MarkJobRebasedWithBodyWithResponse ¶
func (c *ClientWithResponses) MarkJobRebasedWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MarkJobRebasedResponse, error)
MarkJobRebasedWithBodyWithResponse request with arbitrary body returning *MarkJobRebasedResponse
func (*ClientWithResponses) MarkJobRebasedWithResponse ¶
func (c *ClientWithResponses) MarkJobRebasedWithResponse(ctx context.Context, body MarkJobRebasedJSONRequestBody, reqEditors ...RequestEditorFn) (*MarkJobRebasedResponse, error)
func (*ClientWithResponses) PingWithResponse ¶
func (c *ClientWithResponses) PingWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PingResponse, error)
PingWithResponse request returning *PingResponse
func (*ClientWithResponses) RegisterRepoWithBodyWithResponse ¶
func (c *ClientWithResponses) RegisterRepoWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RegisterRepoResponse, error)
RegisterRepoWithBodyWithResponse request with arbitrary body returning *RegisterRepoResponse
func (*ClientWithResponses) RegisterRepoWithResponse ¶
func (c *ClientWithResponses) RegisterRepoWithResponse(ctx context.Context, body RegisterRepoJSONRequestBody, reqEditors ...RequestEditorFn) (*RegisterRepoResponse, error)
func (*ClientWithResponses) RemapJobsWithBodyWithResponse ¶
func (c *ClientWithResponses) RemapJobsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemapJobsResponse, error)
RemapJobsWithBodyWithResponse request with arbitrary body returning *RemapJobsResponse
func (*ClientWithResponses) RemapJobsWithResponse ¶
func (c *ClientWithResponses) RemapJobsWithResponse(ctx context.Context, body RemapJobsJSONRequestBody, reqEditors ...RequestEditorFn) (*RemapJobsResponse, error)
func (*ClientWithResponses) RerunJobWithBodyWithResponse ¶
func (c *ClientWithResponses) RerunJobWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RerunJobResponse, error)
RerunJobWithBodyWithResponse request with arbitrary body returning *RerunJobResponse
func (*ClientWithResponses) RerunJobWithResponse ¶
func (c *ClientWithResponses) RerunJobWithResponse(ctx context.Context, body RerunJobJSONRequestBody, reqEditors ...RequestEditorFn) (*RerunJobResponse, error)
func (*ClientWithResponses) StreamEventsWithResponse ¶
func (c *ClientWithResponses) StreamEventsWithResponse(ctx context.Context, params *StreamEventsParams, reqEditors ...RequestEditorFn) (*StreamEventsResponse, error)
StreamEventsWithResponse request returning *StreamEventsResponse
func (*ClientWithResponses) SyncNowWithResponse ¶
func (c *ClientWithResponses) SyncNowWithResponse(ctx context.Context, params *SyncNowParams, reqEditors ...RequestEditorFn) (*SyncNowResponse, error)
SyncNowWithResponse request returning *SyncNowResponse
func (*ClientWithResponses) UpdateJobBranchWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateJobBranchWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateJobBranchResponse, error)
UpdateJobBranchWithBodyWithResponse request with arbitrary body returning *UpdateJobBranchResponse
func (*ClientWithResponses) UpdateJobBranchWithResponse ¶
func (c *ClientWithResponses) UpdateJobBranchWithResponse(ctx context.Context, body UpdateJobBranchJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateJobBranchResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// ListActivityWithResponse request
ListActivityWithResponse(ctx context.Context, params *ListActivityParams, reqEditors ...RequestEditorFn) (*ListActivityResponse, error)
// ListBranchesWithResponse request
ListBranchesWithResponse(ctx context.Context, params *ListBranchesParams, reqEditors ...RequestEditorFn) (*ListBranchesResponse, error)
// AddCommentWithBodyWithResponse request with any body
AddCommentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddCommentResponse, error)
AddCommentWithResponse(ctx context.Context, body AddCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*AddCommentResponse, error)
// ListCommentsWithResponse request
ListCommentsWithResponse(ctx context.Context, params *ListCommentsParams, reqEditors ...RequestEditorFn) (*ListCommentsResponse, error)
// EnqueueJobWithBodyWithResponse request with any body
EnqueueJobWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EnqueueJobResponse, error)
EnqueueJobWithResponse(ctx context.Context, body EnqueueJobJSONRequestBody, reqEditors ...RequestEditorFn) (*EnqueueJobResponse, error)
// GetHealthWithResponse request
GetHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthResponse, error)
// MarkJobAppliedWithBodyWithResponse request with any body
MarkJobAppliedWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MarkJobAppliedResponse, error)
MarkJobAppliedWithResponse(ctx context.Context, body MarkJobAppliedJSONRequestBody, reqEditors ...RequestEditorFn) (*MarkJobAppliedResponse, error)
// CancelJobWithBodyWithResponse request with any body
CancelJobWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CancelJobResponse, error)
CancelJobWithResponse(ctx context.Context, body CancelJobJSONRequestBody, reqEditors ...RequestEditorFn) (*CancelJobResponse, error)
// CreateFixJobWithBodyWithResponse request with any body
CreateFixJobWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFixJobResponse, error)
CreateFixJobWithResponse(ctx context.Context, body CreateFixJobJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFixJobResponse, error)
// GetJobLogWithResponse request
GetJobLogWithResponse(ctx context.Context, params *GetJobLogParams, reqEditors ...RequestEditorFn) (*GetJobLogResponse, error)
// GetJobOutputWithResponse request
GetJobOutputWithResponse(ctx context.Context, params *GetJobOutputParams, reqEditors ...RequestEditorFn) (*GetJobOutputResponse, error)
// GetJobPatchWithResponse request
GetJobPatchWithResponse(ctx context.Context, params *GetJobPatchParams, reqEditors ...RequestEditorFn) (*GetJobPatchResponse, error)
// MarkJobRebasedWithBodyWithResponse request with any body
MarkJobRebasedWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MarkJobRebasedResponse, error)
MarkJobRebasedWithResponse(ctx context.Context, body MarkJobRebasedJSONRequestBody, reqEditors ...RequestEditorFn) (*MarkJobRebasedResponse, error)
// RerunJobWithBodyWithResponse request with any body
RerunJobWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RerunJobResponse, error)
RerunJobWithResponse(ctx context.Context, body RerunJobJSONRequestBody, reqEditors ...RequestEditorFn) (*RerunJobResponse, error)
// UpdateJobBranchWithBodyWithResponse request with any body
UpdateJobBranchWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateJobBranchResponse, error)
UpdateJobBranchWithResponse(ctx context.Context, body UpdateJobBranchJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateJobBranchResponse, error)
// ListJobsWithResponse request
ListJobsWithResponse(ctx context.Context, params *ListJobsParams, reqEditors ...RequestEditorFn) (*ListJobsResponse, error)
// BatchJobsWithBodyWithResponse request with any body
BatchJobsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BatchJobsResponse, error)
BatchJobsWithResponse(ctx context.Context, body BatchJobsJSONRequestBody, reqEditors ...RequestEditorFn) (*BatchJobsResponse, error)
// PingWithResponse request
PingWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PingResponse, error)
// RemapJobsWithBodyWithResponse request with any body
RemapJobsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemapJobsResponse, error)
RemapJobsWithResponse(ctx context.Context, body RemapJobsJSONRequestBody, reqEditors ...RequestEditorFn) (*RemapJobsResponse, error)
// ListReposWithResponse request
ListReposWithResponse(ctx context.Context, params *ListReposParams, reqEditors ...RequestEditorFn) (*ListReposResponse, error)
// RegisterRepoWithBodyWithResponse request with any body
RegisterRepoWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RegisterRepoResponse, error)
RegisterRepoWithResponse(ctx context.Context, body RegisterRepoJSONRequestBody, reqEditors ...RequestEditorFn) (*RegisterRepoResponse, error)
// GetReviewWithResponse request
GetReviewWithResponse(ctx context.Context, params *GetReviewParams, reqEditors ...RequestEditorFn) (*GetReviewResponse, error)
// CloseReviewWithBodyWithResponse request with any body
CloseReviewWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CloseReviewResponse, error)
CloseReviewWithResponse(ctx context.Context, body CloseReviewJSONRequestBody, reqEditors ...RequestEditorFn) (*CloseReviewResponse, error)
// GetStatusWithResponse request
GetStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetStatusResponse, error)
// StreamEventsWithResponse request
StreamEventsWithResponse(ctx context.Context, params *StreamEventsParams, reqEditors ...RequestEditorFn) (*StreamEventsResponse, error)
// GetSummaryWithResponse request
GetSummaryWithResponse(ctx context.Context, params *GetSummaryParams, reqEditors ...RequestEditorFn) (*GetSummaryResponse, error)
// SyncNowWithResponse request
SyncNowWithResponse(ctx context.Context, params *SyncNowParams, reqEditors ...RequestEditorFn) (*SyncNowResponse, error)
// GetSyncStatusWithResponse request
GetSyncStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSyncStatusResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CloseReviewJSONRequestBody ¶
type CloseReviewJSONRequestBody = CloseReviewRequest
CloseReviewJSONRequestBody defines body for CloseReview for application/json ContentType.
type CloseReviewOutputBody ¶
type CloseReviewOutputBody struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
Success bool `json:"success"`
}
CloseReviewOutputBody defines model for CloseReviewOutputBody.
type CloseReviewRequest ¶
type CloseReviewRequest struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
Closed bool `json:"closed"`
JobId int64 `json:"job_id"`
}
CloseReviewRequest defines model for CloseReviewRequest.
type CloseReviewResponse ¶
type CloseReviewResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CloseReviewOutputBody
ApplicationproblemJSONDefault *ErrorModel
}
func ParseCloseReviewResponse ¶
func ParseCloseReviewResponse(rsp *http.Response) (*CloseReviewResponse, error)
ParseCloseReviewResponse parses an HTTP response from a CloseReviewWithResponse call
func (CloseReviewResponse) Status ¶
func (r CloseReviewResponse) Status() string
Status returns HTTPResponse.Status
func (CloseReviewResponse) StatusCode ¶
func (r CloseReviewResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ComponentHealth ¶
type ComponentHealth struct {
Healthy bool `json:"healthy"`
Message *string `json:"message,omitempty"`
Name string `json:"name"`
}
ComponentHealth defines model for ComponentHealth.
type CreateFixJobJSONRequestBody ¶
type CreateFixJobJSONRequestBody = FixJobRequest
CreateFixJobJSONRequestBody defines body for CreateFixJob for application/json ContentType.
type CreateFixJobResponse ¶
type CreateFixJobResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *ReviewJob
JSON400 *ErrorResponse
JSON404 *ErrorResponse
JSON500 *ErrorResponse
JSON503 *ErrorResponse
}
func ParseCreateFixJobResponse ¶
func ParseCreateFixJobResponse(rsp *http.Response) (*CreateFixJobResponse, error)
ParseCreateFixJobResponse parses an HTTP response from a CreateFixJobWithResponse call
func (CreateFixJobResponse) Status ¶
func (r CreateFixJobResponse) Status() string
Status returns HTTPResponse.Status
func (CreateFixJobResponse) StatusCode ¶
func (r CreateFixJobResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DaemonStatus ¶
type DaemonStatus struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
ActiveWorkers int64 `json:"active_workers"`
AppliedJobs int64 `json:"applied_jobs"`
AutoDesign *AutoDesignStatus `json:"auto_design,omitempty"`
CanceledJobs int64 `json:"canceled_jobs"`
CompletedJobs int64 `json:"completed_jobs"`
ConfigReloadCounter *int64 `json:"config_reload_counter,omitempty"`
ConfigReloadedAt *string `json:"config_reloaded_at,omitempty"`
FailedJobs int64 `json:"failed_jobs"`
MachineId *string `json:"machine_id,omitempty"`
MaxWorkers int64 `json:"max_workers"`
QueuedJobs int64 `json:"queued_jobs"`
RebasedJobs int64 `json:"rebased_jobs"`
RunningJobs int64 `json:"running_jobs"`
SkippedJobs int64 `json:"skipped_jobs"`
Version string `json:"version"`
}
DaemonStatus defines model for DaemonStatus.
type DurationStats ¶
type DurationStats struct {
QueueP50Secs float64 `json:"queue_p50_secs"`
QueueP90Secs float64 `json:"queue_p90_secs"`
QueueP99Secs float64 `json:"queue_p99_secs"`
ReviewP50Secs float64 `json:"review_p50_secs"`
ReviewP90Secs float64 `json:"review_p90_secs"`
ReviewP99Secs float64 `json:"review_p99_secs"`
}
DurationStats defines model for DurationStats.
type EnqueueJobJSONRequestBody ¶
type EnqueueJobJSONRequestBody = EnqueueRequest
EnqueueJobJSONRequestBody defines body for EnqueueJob for application/json ContentType.
type EnqueueJobResponse ¶
type EnqueueJobResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
// contains filtered or unexported fields
}
JSON201 *struct {
// contains filtered or unexported fields
}
JSON400 *ErrorResponse
JSON413 *ErrorResponse
JSON500 *ErrorResponse
JSON503 *ErrorResponse
}
func ParseEnqueueJobResponse ¶
func ParseEnqueueJobResponse(rsp *http.Response) (*EnqueueJobResponse, error)
ParseEnqueueJobResponse parses an HTTP response from a EnqueueJobWithResponse call
func (EnqueueJobResponse) Status ¶
func (r EnqueueJobResponse) Status() string
Status returns HTTPResponse.Status
func (EnqueueJobResponse) StatusCode ¶
func (r EnqueueJobResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type EnqueueRequest ¶
type EnqueueRequest struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
Agent *string `json:"agent,omitempty"`
Agentic *bool `json:"agentic,omitempty"`
Branch *string `json:"branch,omitempty"`
CommitSha *string `json:"commit_sha,omitempty"`
CustomPrompt *string `json:"custom_prompt,omitempty"`
DiffContent *string `json:"diff_content,omitempty"`
GitRef *string `json:"git_ref,omitempty"`
JobType *string `json:"job_type,omitempty"`
MinSeverity *string `json:"min_severity,omitempty"`
Model *string `json:"model,omitempty"`
OutputPrefix *string `json:"output_prefix,omitempty"`
Provider *string `json:"provider,omitempty"`
Reasoning *string `json:"reasoning,omitempty"`
RepoPath string `json:"repo_path"`
ReviewType *string `json:"review_type,omitempty"`
Since *string `json:"since,omitempty"`
}
EnqueueRequest defines model for EnqueueRequest.
type EnqueueSkippedResponse ¶
EnqueueSkippedResponse defines model for EnqueueSkippedResponse.
type ErrorDetail ¶
type ErrorDetail struct {
// Location Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'
Location *string `json:"location,omitempty"`
// Message Error message text
Message *string `json:"message,omitempty"`
// Value The value at the given location
Value interface{} `json:"value,omitempty"`
}
ErrorDetail defines model for ErrorDetail.
type ErrorEntry ¶
type ErrorEntry struct {
Component string `json:"component"`
JobId *int64 `json:"job_id,omitempty"`
Level string `json:"level"`
Message string `json:"message"`
Ts time.Time `json:"ts"`
}
ErrorEntry defines model for ErrorEntry.
type ErrorModel ¶
type ErrorModel struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
// Detail A human-readable explanation specific to this occurrence of the problem.
Detail *string `json:"detail,omitempty"`
// Errors Optional list of individual error details
Errors *[]ErrorDetail `json:"errors,omitempty"`
// Instance A URI reference that identifies the specific occurrence of the problem.
Instance *string `json:"instance,omitempty"`
// Status HTTP status code
Status *int64 `json:"status,omitempty"`
// Title A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
Title *string `json:"title,omitempty"`
// Type A URI reference to human-readable documentation for the error.
Type *string `json:"type,omitempty"`
}
ErrorModel defines model for ErrorModel.
type ErrorResponse ¶
type ErrorResponse struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
Error string `json:"error"`
}
ErrorResponse defines model for ErrorResponse.
type FailureStats ¶
type FailureStats struct {
Errors map[string]int64 `json:"errors"`
Retries int64 `json:"retries"`
Total int64 `json:"total"`
}
FailureStats defines model for FailureStats.
type FixJobRequest ¶
type FixJobRequest struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
GitRef *string `json:"git_ref,omitempty"`
ParentJobId int64 `json:"parent_job_id"`
Prompt *string `json:"prompt,omitempty"`
StaleJobId *int64 `json:"stale_job_id,omitempty"`
}
FixJobRequest defines model for FixJobRequest.
type GetHealthResponse ¶
type GetHealthResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *HealthStatus
ApplicationproblemJSONDefault *ErrorModel
}
func ParseGetHealthResponse ¶
func ParseGetHealthResponse(rsp *http.Response) (*GetHealthResponse, error)
ParseGetHealthResponse parses an HTTP response from a GetHealthWithResponse call
func (GetHealthResponse) Status ¶
func (r GetHealthResponse) Status() string
Status returns HTTPResponse.Status
func (GetHealthResponse) StatusCode ¶
func (r GetHealthResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetJobLogParams ¶
type GetJobLogParams struct {
// JobId Job ID
JobId *string `form:"job_id,omitempty" json:"job_id,omitempty"`
// Offset Byte offset into the log file
Offset *string `form:"offset,omitempty" json:"offset,omitempty"`
}
GetJobLogParams defines parameters for GetJobLog.
type GetJobLogResponse ¶
type GetJobLogResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSONDefault *ErrorModel
}
func ParseGetJobLogResponse ¶
func ParseGetJobLogResponse(rsp *http.Response) (*GetJobLogResponse, error)
ParseGetJobLogResponse parses an HTTP response from a GetJobLogWithResponse call
func (GetJobLogResponse) Status ¶
func (r GetJobLogResponse) Status() string
Status returns HTTPResponse.Status
func (GetJobLogResponse) StatusCode ¶
func (r GetJobLogResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetJobOutputParams ¶
type GetJobOutputParams struct {
// JobId Job ID
JobId *string `form:"job_id,omitempty" json:"job_id,omitempty"`
// Stream Stream output as NDJSON when set to 1
Stream *string `form:"stream,omitempty" json:"stream,omitempty"`
}
GetJobOutputParams defines parameters for GetJobOutput.
type GetJobOutputResponse ¶
type GetJobOutputResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSONDefault *ErrorModel
}
func ParseGetJobOutputResponse ¶
func ParseGetJobOutputResponse(rsp *http.Response) (*GetJobOutputResponse, error)
ParseGetJobOutputResponse parses an HTTP response from a GetJobOutputWithResponse call
func (GetJobOutputResponse) Status ¶
func (r GetJobOutputResponse) Status() string
Status returns HTTPResponse.Status
func (GetJobOutputResponse) StatusCode ¶
func (r GetJobOutputResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetJobPatchParams ¶
type GetJobPatchParams struct {
// JobId Job ID
JobId *string `form:"job_id,omitempty" json:"job_id,omitempty"`
}
GetJobPatchParams defines parameters for GetJobPatch.
type GetJobPatchResponse ¶
type GetJobPatchResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSONDefault *ErrorModel
}
func ParseGetJobPatchResponse ¶
func ParseGetJobPatchResponse(rsp *http.Response) (*GetJobPatchResponse, error)
ParseGetJobPatchResponse parses an HTTP response from a GetJobPatchWithResponse call
func (GetJobPatchResponse) Status ¶
func (r GetJobPatchResponse) Status() string
Status returns HTTPResponse.Status
func (GetJobPatchResponse) StatusCode ¶
func (r GetJobPatchResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetReviewParams ¶
type GetReviewParams struct {
// JobId Look up review by job ID
JobId *int64 `form:"job_id,omitempty" json:"job_id,omitempty"`
// Sha Look up review by commit SHA
Sha *string `form:"sha,omitempty" json:"sha,omitempty"`
}
GetReviewParams defines parameters for GetReview.
type GetReviewResponse ¶
type GetReviewResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Review
ApplicationproblemJSONDefault *ErrorModel
}
func ParseGetReviewResponse ¶
func ParseGetReviewResponse(rsp *http.Response) (*GetReviewResponse, error)
ParseGetReviewResponse parses an HTTP response from a GetReviewWithResponse call
func (GetReviewResponse) Status ¶
func (r GetReviewResponse) Status() string
Status returns HTTPResponse.Status
func (GetReviewResponse) StatusCode ¶
func (r GetReviewResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetStatusResponse ¶
type GetStatusResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *DaemonStatus
ApplicationproblemJSONDefault *ErrorModel
}
func ParseGetStatusResponse ¶
func ParseGetStatusResponse(rsp *http.Response) (*GetStatusResponse, error)
ParseGetStatusResponse parses an HTTP response from a GetStatusWithResponse call
func (GetStatusResponse) Status ¶
func (r GetStatusResponse) Status() string
Status returns HTTPResponse.Status
func (GetStatusResponse) StatusCode ¶
func (r GetStatusResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSummaryParams ¶
type GetSummaryParams struct {
// Since Time window (e.g. 7d, 24h). Default: 7d
Since *string `form:"since,omitempty" json:"since,omitempty"`
// Repo Filter by repo root path
Repo *string `form:"repo,omitempty" json:"repo,omitempty"`
// Branch Filter by branch name
Branch *string `form:"branch,omitempty" json:"branch,omitempty"`
// All Include per-repo breakdown
All *GetSummaryParamsAll `form:"all,omitempty" json:"all,omitempty"`
}
GetSummaryParams defines parameters for GetSummary.
type GetSummaryParamsAll ¶
type GetSummaryParamsAll string
GetSummaryParamsAll defines parameters for GetSummary.
const ( False GetSummaryParamsAll = "false" True GetSummaryParamsAll = "true" )
Defines values for GetSummaryParamsAll.
func (GetSummaryParamsAll) Valid ¶
func (e GetSummaryParamsAll) Valid() bool
Valid indicates whether the value is a known member of the GetSummaryParamsAll enum.
type GetSummaryResponse ¶
type GetSummaryResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Summary
ApplicationproblemJSONDefault *ErrorModel
}
func ParseGetSummaryResponse ¶
func ParseGetSummaryResponse(rsp *http.Response) (*GetSummaryResponse, error)
ParseGetSummaryResponse parses an HTTP response from a GetSummaryWithResponse call
func (GetSummaryResponse) Status ¶
func (r GetSummaryResponse) Status() string
Status returns HTTPResponse.Status
func (GetSummaryResponse) StatusCode ¶
func (r GetSummaryResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSyncStatusResponse ¶
type GetSyncStatusResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SyncStatusOutputBody
ApplicationproblemJSONDefault *ErrorModel
}
func ParseGetSyncStatusResponse ¶
func ParseGetSyncStatusResponse(rsp *http.Response) (*GetSyncStatusResponse, error)
ParseGetSyncStatusResponse parses an HTTP response from a GetSyncStatusWithResponse call
func (GetSyncStatusResponse) Status ¶
func (r GetSyncStatusResponse) Status() string
Status returns HTTPResponse.Status
func (GetSyncStatusResponse) StatusCode ¶
func (r GetSyncStatusResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HealthStatus ¶
type HealthStatus struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
Components *[]ComponentHealth `json:"components"`
ErrorCount24h int64 `json:"error_count_24h"`
Healthy bool `json:"healthy"`
RecentErrors *[]ErrorEntry `json:"recent_errors"`
Uptime string `json:"uptime"`
Version string `json:"version"`
}
HealthStatus defines model for HealthStatus.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type JobIDRequest ¶
type JobIDRequest struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
JobId int64 `json:"job_id"`
}
JobIDRequest defines model for JobIDRequest.
type JobStats ¶
type JobStats struct {
Closed int64 `json:"closed"`
Done int64 `json:"done"`
Open int64 `json:"open"`
}
JobStats defines model for JobStats.
type JobStatusOutputBody ¶
type JobStatusOutputBody struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
Status string `json:"status"`
}
JobStatusOutputBody defines model for JobStatusOutputBody.
type JobTypeStats ¶
type JobTypeStats struct {
Applied *int64 `json:"applied,omitempty"`
Count int64 `json:"count"`
Rebased *int64 `json:"rebased,omitempty"`
Type string `json:"type"`
}
JobTypeStats defines model for JobTypeStats.
type JobWithReview ¶
JobWithReview defines model for JobWithReview.
type ListActivityParams ¶
type ListActivityParams struct {
// Limit Maximum entries to return
Limit *string `form:"limit,omitempty" json:"limit,omitempty"`
}
ListActivityParams defines parameters for ListActivity.
type ListActivityResponse ¶
type ListActivityResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ActivityOutputBody
ApplicationproblemJSONDefault *ErrorModel
}
func ParseListActivityResponse ¶
func ParseListActivityResponse(rsp *http.Response) (*ListActivityResponse, error)
ParseListActivityResponse parses an HTTP response from a ListActivityWithResponse call
func (ListActivityResponse) Status ¶
func (r ListActivityResponse) Status() string
Status returns HTTPResponse.Status
func (ListActivityResponse) StatusCode ¶
func (r ListActivityResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListBranchesOutputBody ¶
type ListBranchesOutputBody struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
Branches *[]BranchWithCount `json:"branches"`
NullsRemaining int64 `json:"nulls_remaining"`
TotalCount int64 `json:"total_count"`
}
ListBranchesOutputBody defines model for ListBranchesOutputBody.
type ListBranchesParams ¶
type ListBranchesParams struct {
// Repo Filter to branches in these repo paths
Repo *[]string `form:"repo,omitempty" json:"repo,omitempty"`
}
ListBranchesParams defines parameters for ListBranches.
type ListBranchesResponse ¶
type ListBranchesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListBranchesOutputBody
ApplicationproblemJSONDefault *ErrorModel
}
func ParseListBranchesResponse ¶
func ParseListBranchesResponse(rsp *http.Response) (*ListBranchesResponse, error)
ParseListBranchesResponse parses an HTTP response from a ListBranchesWithResponse call
func (ListBranchesResponse) Status ¶
func (r ListBranchesResponse) Status() string
Status returns HTTPResponse.Status
func (ListBranchesResponse) StatusCode ¶
func (r ListBranchesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListCommentsOutputBody ¶
type ListCommentsOutputBody struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
Responses *[]Response `json:"responses"`
}
ListCommentsOutputBody defines model for ListCommentsOutputBody.
type ListCommentsParams ¶
type ListCommentsParams struct {
// JobId List comments by job ID
JobId *int64 `form:"job_id,omitempty" json:"job_id,omitempty"`
// CommitId List comments by commit ID
CommitId *int64 `form:"commit_id,omitempty" json:"commit_id,omitempty"`
// Sha List comments by commit SHA
Sha *string `form:"sha,omitempty" json:"sha,omitempty"`
}
ListCommentsParams defines parameters for ListComments.
type ListCommentsResponse ¶
type ListCommentsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListCommentsOutputBody
ApplicationproblemJSONDefault *ErrorModel
}
func ParseListCommentsResponse ¶
func ParseListCommentsResponse(rsp *http.Response) (*ListCommentsResponse, error)
ParseListCommentsResponse parses an HTTP response from a ListCommentsWithResponse call
func (ListCommentsResponse) Status ¶
func (r ListCommentsResponse) Status() string
Status returns HTTPResponse.Status
func (ListCommentsResponse) StatusCode ¶
func (r ListCommentsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListJobsOutputBody ¶
type ListJobsOutputBody struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
HasMore bool `json:"has_more"`
Jobs *[]ReviewJob `json:"jobs"`
Stats *JobStats `json:"stats,omitempty"`
}
ListJobsOutputBody defines model for ListJobsOutputBody.
type ListJobsParams ¶
type ListJobsParams struct {
// Id Return a single job by ID
Id *int64 `form:"id,omitempty" json:"id,omitempty"`
// Status Filter by job status
Status *string `form:"status,omitempty" json:"status,omitempty"`
// Repo Filter by repo root path
Repo *string `form:"repo,omitempty" json:"repo,omitempty"`
// GitRef Filter by git ref
GitRef *string `form:"git_ref,omitempty" json:"git_ref,omitempty"`
// Branch Filter by branch name
Branch *string `form:"branch,omitempty" json:"branch,omitempty"`
// BranchIncludeEmpty Include jobs with no branch when filtering by branch
BranchIncludeEmpty *ListJobsParamsBranchIncludeEmpty `form:"branch_include_empty,omitempty" json:"branch_include_empty,omitempty"`
// Closed Filter by review closed state
Closed *ListJobsParamsClosed `form:"closed,omitempty" json:"closed,omitempty"`
// JobType Filter by job type
JobType *string `form:"job_type,omitempty" json:"job_type,omitempty"`
// ExcludeJobType Exclude jobs of this type
ExcludeJobType *string `form:"exclude_job_type,omitempty" json:"exclude_job_type,omitempty"`
// RepoPrefix Filter repos by path prefix
RepoPrefix *string `form:"repo_prefix,omitempty" json:"repo_prefix,omitempty"`
// Limit Max results (default 50, 0=unlimited, max 10000)
Limit *int64 `form:"limit,omitempty" json:"limit,omitempty"`
// Offset Skip N results (requires limit>0)
Offset *int64 `form:"offset,omitempty" json:"offset,omitempty"`
// Before Cursor: return jobs with ID < this value
Before *int64 `form:"before,omitempty" json:"before,omitempty"`
}
ListJobsParams defines parameters for ListJobs.
type ListJobsParamsBranchIncludeEmpty ¶
type ListJobsParamsBranchIncludeEmpty string
ListJobsParamsBranchIncludeEmpty defines parameters for ListJobs.
const ( ListJobsParamsBranchIncludeEmptyEmpty ListJobsParamsBranchIncludeEmpty = "" ListJobsParamsBranchIncludeEmptyFalse ListJobsParamsBranchIncludeEmpty = "false" ListJobsParamsBranchIncludeEmptyTrue ListJobsParamsBranchIncludeEmpty = "true" )
Defines values for ListJobsParamsBranchIncludeEmpty.
func (ListJobsParamsBranchIncludeEmpty) Valid ¶
func (e ListJobsParamsBranchIncludeEmpty) Valid() bool
Valid indicates whether the value is a known member of the ListJobsParamsBranchIncludeEmpty enum.
type ListJobsParamsClosed ¶
type ListJobsParamsClosed string
ListJobsParamsClosed defines parameters for ListJobs.
const ( ListJobsParamsClosedEmpty ListJobsParamsClosed = "" ListJobsParamsClosedFalse ListJobsParamsClosed = "false" ListJobsParamsClosedTrue ListJobsParamsClosed = "true" )
Defines values for ListJobsParamsClosed.
func (ListJobsParamsClosed) Valid ¶
func (e ListJobsParamsClosed) Valid() bool
Valid indicates whether the value is a known member of the ListJobsParamsClosed enum.
type ListJobsResponse ¶
type ListJobsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListJobsOutputBody
ApplicationproblemJSONDefault *ErrorModel
}
func ParseListJobsResponse ¶
func ParseListJobsResponse(rsp *http.Response) (*ListJobsResponse, error)
ParseListJobsResponse parses an HTTP response from a ListJobsWithResponse call
func (ListJobsResponse) Status ¶
func (r ListJobsResponse) Status() string
Status returns HTTPResponse.Status
func (ListJobsResponse) StatusCode ¶
func (r ListJobsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListReposOutputBody ¶
type ListReposOutputBody struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
Repos *[]RepoWithCount `json:"repos"`
TotalCount int64 `json:"total_count"`
}
ListReposOutputBody defines model for ListReposOutputBody.
type ListReposParams ¶
type ListReposParams struct {
// Branch Filter to repos with jobs on this branch
Branch *string `form:"branch,omitempty" json:"branch,omitempty"`
// Prefix Filter repos by path prefix
Prefix *string `form:"prefix,omitempty" json:"prefix,omitempty"`
}
ListReposParams defines parameters for ListRepos.
type ListReposResponse ¶
type ListReposResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListReposOutputBody
ApplicationproblemJSONDefault *ErrorModel
}
func ParseListReposResponse ¶
func ParseListReposResponse(rsp *http.Response) (*ListReposResponse, error)
ParseListReposResponse parses an HTTP response from a ListReposWithResponse call
func (ListReposResponse) Status ¶
func (r ListReposResponse) Status() string
Status returns HTTPResponse.Status
func (ListReposResponse) StatusCode ¶
func (r ListReposResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type MarkJobAppliedJSONRequestBody ¶
type MarkJobAppliedJSONRequestBody = JobIDRequest
MarkJobAppliedJSONRequestBody defines body for MarkJobApplied for application/json ContentType.
type MarkJobAppliedResponse ¶
type MarkJobAppliedResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *JobStatusOutputBody
ApplicationproblemJSONDefault *ErrorModel
}
func ParseMarkJobAppliedResponse ¶
func ParseMarkJobAppliedResponse(rsp *http.Response) (*MarkJobAppliedResponse, error)
ParseMarkJobAppliedResponse parses an HTTP response from a MarkJobAppliedWithResponse call
func (MarkJobAppliedResponse) Status ¶
func (r MarkJobAppliedResponse) Status() string
Status returns HTTPResponse.Status
func (MarkJobAppliedResponse) StatusCode ¶
func (r MarkJobAppliedResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type MarkJobRebasedJSONRequestBody ¶
type MarkJobRebasedJSONRequestBody = JobIDRequest
MarkJobRebasedJSONRequestBody defines body for MarkJobRebased for application/json ContentType.
type MarkJobRebasedResponse ¶
type MarkJobRebasedResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *JobStatusOutputBody
ApplicationproblemJSONDefault *ErrorModel
}
func ParseMarkJobRebasedResponse ¶
func ParseMarkJobRebasedResponse(rsp *http.Response) (*MarkJobRebasedResponse, error)
ParseMarkJobRebasedResponse parses an HTTP response from a MarkJobRebasedWithResponse call
func (MarkJobRebasedResponse) Status ¶
func (r MarkJobRebasedResponse) Status() string
Status returns HTTPResponse.Status
func (MarkJobRebasedResponse) StatusCode ¶
func (r MarkJobRebasedResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type OverviewStats ¶
type OverviewStats struct {
Applied int64 `json:"applied"`
Canceled int64 `json:"canceled"`
Done int64 `json:"done"`
Failed int64 `json:"failed"`
Queued int64 `json:"queued"`
Rebased int64 `json:"rebased"`
Running int64 `json:"running"`
Total int64 `json:"total"`
}
OverviewStats defines model for OverviewStats.
type PingInfo ¶
type PingInfo struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
Pid *int64 `json:"pid,omitempty"`
Service string `json:"service"`
Version string `json:"version"`
}
PingInfo defines model for PingInfo.
type PingResponse ¶
type PingResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PingInfo
ApplicationproblemJSONDefault *ErrorModel
}
func ParsePingResponse ¶
func ParsePingResponse(rsp *http.Response) (*PingResponse, error)
ParsePingResponse parses an HTTP response from a PingWithResponse call
func (PingResponse) Status ¶
func (r PingResponse) Status() string
Status returns HTTPResponse.Status
func (PingResponse) StatusCode ¶
func (r PingResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RegisterRepoJSONRequestBody ¶
type RegisterRepoJSONRequestBody = RegisterRepoRequest
RegisterRepoJSONRequestBody defines body for RegisterRepo for application/json ContentType.
type RegisterRepoRequest ¶
type RegisterRepoRequest struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
RepoPath string `json:"repo_path"`
}
RegisterRepoRequest defines model for RegisterRepoRequest.
type RegisterRepoResponse ¶
type RegisterRepoResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Repo
ApplicationproblemJSONDefault *ErrorModel
}
func ParseRegisterRepoResponse ¶
func ParseRegisterRepoResponse(rsp *http.Response) (*RegisterRepoResponse, error)
ParseRegisterRepoResponse parses an HTTP response from a RegisterRepoWithResponse call
func (RegisterRepoResponse) Status ¶
func (r RegisterRepoResponse) Status() string
Status returns HTTPResponse.Status
func (RegisterRepoResponse) StatusCode ¶
func (r RegisterRepoResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RemapJobsJSONRequestBody ¶
type RemapJobsJSONRequestBody = RemapRequest
RemapJobsJSONRequestBody defines body for RemapJobs for application/json ContentType.
type RemapJobsResponse ¶
type RemapJobsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *RemapResult
ApplicationproblemJSONDefault *ErrorModel
}
func ParseRemapJobsResponse ¶
func ParseRemapJobsResponse(rsp *http.Response) (*RemapJobsResponse, error)
ParseRemapJobsResponse parses an HTTP response from a RemapJobsWithResponse call
func (RemapJobsResponse) Status ¶
func (r RemapJobsResponse) Status() string
Status returns HTTPResponse.Status
func (RemapJobsResponse) StatusCode ¶
func (r RemapJobsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RemapMapping ¶
type RemapMapping struct {
Author string `json:"author"`
NewSha string `json:"new_sha"`
OldSha string `json:"old_sha"`
PatchId string `json:"patch_id"`
Subject string `json:"subject"`
Timestamp string `json:"timestamp"`
}
RemapMapping defines model for RemapMapping.
type RemapRequest ¶
type RemapRequest struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
Mappings *[]RemapMapping `json:"mappings"`
RepoPath string `json:"repo_path"`
}
RemapRequest defines model for RemapRequest.
type RemapResult ¶
type RemapResult struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
Remapped int64 `json:"remapped"`
Skipped int64 `json:"skipped"`
}
RemapResult defines model for RemapResult.
type Repo ¶
type Repo struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
CreatedAt time.Time `json:"created_at"`
Id int64 `json:"id"`
Identity *string `json:"identity,omitempty"`
Name string `json:"name"`
RootPath string `json:"root_path"`
}
Repo defines model for Repo.
type RepoSummary ¶
type RepoSummary struct {
Addressed int64 `json:"addressed"`
Failed int64 `json:"failed"`
Name string `json:"name"`
Passed int64 `json:"passed"`
Path string `json:"path"`
Total int64 `json:"total"`
}
RepoSummary defines model for RepoSummary.
type RepoWithCount ¶
type RepoWithCount struct {
Count int64 `json:"count"`
Name string `json:"name"`
RootPath string `json:"root_path"`
}
RepoWithCount defines model for RepoWithCount.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type RerunJobJSONRequestBody ¶
type RerunJobJSONRequestBody = RerunJobRequest
RerunJobJSONRequestBody defines body for RerunJob for application/json ContentType.
type RerunJobOutputBody ¶
type RerunJobOutputBody struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
Success bool `json:"success"`
}
RerunJobOutputBody defines model for RerunJobOutputBody.
type RerunJobRequest ¶
type RerunJobRequest struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
JobId int64 `json:"job_id"`
}
RerunJobRequest defines model for RerunJobRequest.
type RerunJobResponse ¶
type RerunJobResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *RerunJobOutputBody
ApplicationproblemJSONDefault *ErrorModel
}
func ParseRerunJobResponse ¶
func ParseRerunJobResponse(rsp *http.Response) (*RerunJobResponse, error)
ParseRerunJobResponse parses an HTTP response from a RerunJobWithResponse call
func (RerunJobResponse) Status ¶
func (r RerunJobResponse) Status() string
Status returns HTTPResponse.Status
func (RerunJobResponse) StatusCode ¶
func (r RerunJobResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Response ¶
type Response struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
CommitId *int64 `json:"commit_id,omitempty"`
CreatedAt time.Time `json:"created_at"`
Id int64 `json:"id"`
JobId *int64 `json:"job_id,omitempty"`
Responder string `json:"responder"`
Response string `json:"response"`
SourceMachineId *string `json:"source_machine_id,omitempty"`
SyncedAt *time.Time `json:"synced_at,omitempty"`
Uuid *string `json:"uuid,omitempty"`
}
Response defines model for Response.
type Review ¶
type Review struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
Agent string `json:"agent"`
Closed bool `json:"closed"`
CreatedAt time.Time `json:"created_at"`
Id int64 `json:"id"`
Job *ReviewJob `json:"job,omitempty"`
JobId int64 `json:"job_id"`
Output string `json:"output"`
Prompt string `json:"prompt"`
SyncedAt *time.Time `json:"synced_at,omitempty"`
UpdatedAt *time.Time `json:"updated_at,omitempty"`
UpdatedByMachineId *string `json:"updated_by_machine_id,omitempty"`
Uuid *string `json:"uuid,omitempty"`
VerdictBool *int64 `json:"verdict_bool,omitempty"`
}
Review defines model for Review.
type ReviewJob ¶
type ReviewJob struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
Agent string `json:"agent"`
Agentic bool `json:"agentic"`
Branch *string `json:"branch,omitempty"`
Closed *bool `json:"closed,omitempty"`
CommandLine *string `json:"command_line,omitempty"`
CommitId *int64 `json:"commit_id,omitempty"`
CommitSubject *string `json:"commit_subject,omitempty"`
DiffContent *string `json:"diff_content,omitempty"`
EnqueuedAt time.Time `json:"enqueued_at"`
Error *string `json:"error,omitempty"`
FinishedAt *time.Time `json:"finished_at,omitempty"`
GitRef string `json:"git_ref"`
Id int64 `json:"id"`
JobType string `json:"job_type"`
MinSeverity *string `json:"min_severity,omitempty"`
Model *string `json:"model,omitempty"`
OutputPrefix *string `json:"output_prefix,omitempty"`
ParentJobId *int64 `json:"parent_job_id,omitempty"`
Patch *string `json:"patch,omitempty"`
PatchId *string `json:"patch_id,omitempty"`
Prompt *string `json:"prompt,omitempty"`
PromptPrebuilt bool `json:"prompt_prebuilt"`
Provider *string `json:"provider,omitempty"`
Reasoning *string `json:"reasoning,omitempty"`
RepoId int64 `json:"repo_id"`
RepoName *string `json:"repo_name,omitempty"`
RepoPath *string `json:"repo_path,omitempty"`
RequestedModel *string `json:"requested_model,omitempty"`
RequestedProvider *string `json:"requested_provider,omitempty"`
RetryCount int64 `json:"retry_count"`
ReviewType *string `json:"review_type,omitempty"`
SessionId *string `json:"session_id,omitempty"`
SkipReason *string `json:"skip_reason,omitempty"`
Source *string `json:"source,omitempty"`
SourceMachineId *string `json:"source_machine_id,omitempty"`
StartedAt *time.Time `json:"started_at,omitempty"`
Status string `json:"status"`
SyncedAt *time.Time `json:"synced_at,omitempty"`
TokenUsage *string `json:"token_usage,omitempty"`
UpdatedAt *time.Time `json:"updated_at,omitempty"`
Uuid *string `json:"uuid,omitempty"`
Verdict *string `json:"verdict,omitempty"`
WorkerId *string `json:"worker_id,omitempty"`
WorktreePath *string `json:"worktree_path,omitempty"`
}
ReviewJob defines model for ReviewJob.
type StreamEventsParams ¶
type StreamEventsParams struct {
// Repo Filter events by repo root path
Repo *string `form:"repo,omitempty" json:"repo,omitempty"`
}
StreamEventsParams defines parameters for StreamEvents.
type StreamEventsResponse ¶
type StreamEventsResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSONDefault *ErrorModel
}
func ParseStreamEventsResponse ¶
func ParseStreamEventsResponse(rsp *http.Response) (*StreamEventsResponse, error)
ParseStreamEventsResponse parses an HTTP response from a StreamEventsWithResponse call
func (StreamEventsResponse) Status ¶
func (r StreamEventsResponse) Status() string
Status returns HTTPResponse.Status
func (StreamEventsResponse) StatusCode ¶
func (r StreamEventsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Summary ¶
type Summary struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
Agents *[]AgentStats `json:"agents"`
Branch *string `json:"branch,omitempty"`
Duration DurationStats `json:"duration"`
Failures FailureStats `json:"failures"`
JobTypes *[]JobTypeStats `json:"job_types"`
Overview OverviewStats `json:"overview"`
RepoPath *string `json:"repo_path,omitempty"`
Repos *[]RepoSummary `json:"repos,omitempty"`
Since time.Time `json:"since"`
Verdicts VerdictStats `json:"verdicts"`
}
Summary defines model for Summary.
type SyncNowParams ¶
type SyncNowParams struct {
// Stream Stream sync progress as NDJSON when set to 1
Stream *string `form:"stream,omitempty" json:"stream,omitempty"`
}
SyncNowParams defines parameters for SyncNow.
type SyncNowResponse ¶
type SyncNowResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSONDefault *ErrorModel
}
func ParseSyncNowResponse ¶
func ParseSyncNowResponse(rsp *http.Response) (*SyncNowResponse, error)
ParseSyncNowResponse parses an HTTP response from a SyncNowWithResponse call
func (SyncNowResponse) Status ¶
func (r SyncNowResponse) Status() string
Status returns HTTPResponse.Status
func (SyncNowResponse) StatusCode ¶
func (r SyncNowResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SyncStatusOutputBody ¶
type SyncStatusOutputBody struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
Connected bool `json:"connected"`
Enabled bool `json:"enabled"`
Message string `json:"message"`
}
SyncStatusOutputBody defines model for SyncStatusOutputBody.
type UpdateJobBranchJSONRequestBody ¶
type UpdateJobBranchJSONRequestBody = UpdateJobBranchRequest
UpdateJobBranchJSONRequestBody defines body for UpdateJobBranch for application/json ContentType.
type UpdateJobBranchOutputBody ¶
type UpdateJobBranchOutputBody struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
Success bool `json:"success"`
Updated bool `json:"updated"`
}
UpdateJobBranchOutputBody defines model for UpdateJobBranchOutputBody.
type UpdateJobBranchRequest ¶
type UpdateJobBranchRequest struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
Branch string `json:"branch"`
JobId int64 `json:"job_id"`
}
UpdateJobBranchRequest defines model for UpdateJobBranchRequest.
type UpdateJobBranchResponse ¶
type UpdateJobBranchResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *UpdateJobBranchOutputBody
ApplicationproblemJSONDefault *ErrorModel
}
func ParseUpdateJobBranchResponse ¶
func ParseUpdateJobBranchResponse(rsp *http.Response) (*UpdateJobBranchResponse, error)
ParseUpdateJobBranchResponse parses an HTTP response from a UpdateJobBranchWithResponse call
func (UpdateJobBranchResponse) Status ¶
func (r UpdateJobBranchResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateJobBranchResponse) StatusCode ¶
func (r UpdateJobBranchResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode