Documentation
¶
Overview ¶
Package ingestionclient provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.9.0 DO NOT EDIT.
Package ingestionclient provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.9.0 DO NOT EDIT.
Package ingestionclient provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.9.0 DO NOT EDIT.
Index ¶
- Constants
- Variables
- func AcceptResource(_ context.Context, req *http.Request) error
- func Handler(si ServerInterface) http.Handler
- func HandlerFromMux(si ServerInterface, m ServeMux) http.Handler
- func HandlerFromMuxWithBaseURL(si ServerInterface, m ServeMux, baseURL string) http.Handler
- func HandlerWithOptions(si ServerInterface, options StdHTTPServerOptions) http.Handler
- func NewApplyDeclarationsRequest(server string, body ApplyDeclarationsJSONRequestBody) (*http.Request, error)
- func NewApplyDeclarationsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewArchiveItemRequest(server string, key string, body ArchiveItemJSONRequestBody) (*http.Request, error)
- func NewArchiveItemRequestWithBody(server string, key string, contentType string, body io.Reader) (*http.Request, error)
- func NewClaimTasksRequest(server string, body ClaimTasksJSONRequestBody) (*http.Request, error)
- func NewClaimTasksRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDropItemRequest(server string, key string, body DropItemJSONRequestBody) (*http.Request, error)
- func NewDropItemRequestWithBody(server string, key string, contentType string, body io.Reader) (*http.Request, error)
- func NewHeartbeatTaskRequest(server string, id string, body HeartbeatTaskJSONRequestBody) (*http.Request, error)
- func NewHeartbeatTaskRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
- func NewHoldConnectorRequest(server string, name string) (*http.Request, error)
- func NewListConnectorsRequest(server string) (*http.Request, error)
- func NewListGateTrustRequest(server string) (*http.Request, error)
- func NewListItemsRequest(server string, params *ListItemsParams) (*http.Request, error)
- func NewListReviewRequest(server string) (*http.Request, error)
- func NewListRoutingRulesRequest(server string) (*http.Request, error)
- func NewListTasksRequest(server string, params *ListTasksParams) (*http.Request, error)
- func NewListUnpairedBlobsRequest(server string) (*http.Request, error)
- func NewMarkItemRequest(server string, key string, body MarkItemJSONRequestBody) (*http.Request, error)
- func NewMarkItemRequestWithBody(server string, key string, contentType string, body io.Reader) (*http.Request, error)
- func NewPlaceItemRequest(server string, key string, body PlaceItemJSONRequestBody) (*http.Request, error)
- func NewPlaceItemRequestWithBody(server string, key string, contentType string, body io.Reader) (*http.Request, error)
- func NewPromoteGateFamilyRequest(server string, family string, body PromoteGateFamilyJSONRequestBody) (*http.Request, error)
- func NewPromoteGateFamilyRequestWithBody(server string, family string, contentType string, body io.Reader) (*http.Request, error)
- func NewPushItemRequest(server string, params *PushItemParams, body PushItemJSONRequestBody) (*http.Request, error)
- func NewPushItemRequestWithBody(server string, params *PushItemParams, contentType string, body io.Reader) (*http.Request, error)
- func NewPutRoutingRuleRequest(server string, name string, body PutRoutingRuleJSONRequestBody) (*http.Request, error)
- func NewPutRoutingRuleRequestWithBody(server string, name string, contentType string, body io.Reader) (*http.Request, error)
- func NewReadItemCommentsRequest(server string, key string) (*http.Request, error)
- func NewReleaseConnectorRequest(server string, name string) (*http.Request, error)
- func NewReplayStageRequest(server string, params *ReplayStageParams, body ReplayStageJSONRequestBody) (*http.Request, error)
- func NewReplayStageRequestWithBody(server string, params *ReplayStageParams, contentType string, body io.Reader) (*http.Request, error)
- func NewReportTaskRequest(server string, id string, body ReportTaskJSONRequestBody) (*http.Request, error)
- func NewReportTaskRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
- func NewRetireRoutingRuleRequest(server string, name string, body RetireRoutingRuleJSONRequestBody) (*http.Request, error)
- func NewRetireRoutingRuleRequestWithBody(server string, name string, contentType string, body io.Reader) (*http.Request, error)
- func NewRetryTaskRequest(server string, id string) (*http.Request, error)
- func NewRunConnectorRequest(server string, name string, params *RunConnectorParams) (*http.Request, error)
- func NewShowConnectorRequest(server string, name string) (*http.Request, error)
- func NewShowItemParseRequest(server string, key string, params *ShowItemParseParams) (*http.Request, error)
- func NewShowItemRequest(server string, key string) (*http.Request, error)
- func NewShowTaskParseRequest(server string, id string, params *ShowTaskParseParams) (*http.Request, error)
- func NewShowVersionRequest(server string) (*http.Request, error)
- type ApplyDeclarations200JSONResponse
- type ApplyDeclarationsJSONRequestBody
- type ApplyDeclarationsRequestObject
- type ApplyDeclarationsResponse
- func (r ApplyDeclarationsResponse) Bytes() []byte
- func (r ApplyDeclarationsResponse) ContentType() string
- func (r ApplyDeclarationsResponse) GetBody() []byte
- func (r ApplyDeclarationsResponse) GetJSON200() *DeclarationsAnswer
- func (r ApplyDeclarationsResponse) GetJSONDefault() *Refusal
- func (r ApplyDeclarationsResponse) Status() string
- func (r ApplyDeclarationsResponse) StatusCode() int
- type ApplyDeclarationsResponseObject
- type ApplyDeclarationsdefaultJSONResponse
- type ArchiveItem200JSONResponse
- type ArchiveItemJSONRequestBody
- type ArchiveItemRequestObject
- type ArchiveItemResponse
- func (r ArchiveItemResponse) Bytes() []byte
- func (r ArchiveItemResponse) ContentType() string
- func (r ArchiveItemResponse) GetBody() []byte
- func (r ArchiveItemResponse) GetJSON200() *PlacementAnswer
- func (r ArchiveItemResponse) GetJSONDefault() *Refusal
- func (r ArchiveItemResponse) Status() string
- func (r ArchiveItemResponse) StatusCode() int
- type ArchiveItemResponseObject
- type ArchiveItemdefaultJSONResponse
- type ArchiveRequest
- type BlobAnswer
- type ChapterInBook
- type ClaimAnswer
- type ClaimRequest
- type ClaimTasks200JSONResponse
- type ClaimTasksJSONRequestBody
- type ClaimTasksRequestObject
- type ClaimTasksResponse
- func (r ClaimTasksResponse) Bytes() []byte
- func (r ClaimTasksResponse) ContentType() string
- func (r ClaimTasksResponse) GetBody() []byte
- func (r ClaimTasksResponse) GetJSON200() *ClaimAnswer
- func (r ClaimTasksResponse) GetJSONDefault() *Refusal
- func (r ClaimTasksResponse) Status() string
- func (r ClaimTasksResponse) StatusCode() int
- type ClaimTasksResponseObject
- type ClaimTasksdefaultJSONResponse
- type Client
- func (c *Client) ApplyDeclarations(ctx context.Context, body ApplyDeclarationsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ApplyDeclarationsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ArchiveItem(ctx context.Context, key string, body ArchiveItemJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ArchiveItemWithBody(ctx context.Context, key string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ClaimTasks(ctx context.Context, body ClaimTasksJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ClaimTasksWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DropItem(ctx context.Context, key string, body DropItemJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) DropItemWithBody(ctx context.Context, key string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) HeartbeatTask(ctx context.Context, id string, body HeartbeatTaskJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) HeartbeatTaskWithBody(ctx context.Context, id string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) HoldConnector(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListConnectors(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListGateTrust(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListItems(ctx context.Context, params *ListItemsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListReview(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListRoutingRules(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListTasks(ctx context.Context, params *ListTasksParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListUnpairedBlobs(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) MarkItem(ctx context.Context, key string, body MarkItemJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) MarkItemWithBody(ctx context.Context, key string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PlaceItem(ctx context.Context, key string, body PlaceItemJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PlaceItemWithBody(ctx context.Context, key string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PromoteGateFamily(ctx context.Context, family string, body PromoteGateFamilyJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PromoteGateFamilyWithBody(ctx context.Context, family string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PushItem(ctx context.Context, params *PushItemParams, body PushItemJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PushItemWithBody(ctx context.Context, params *PushItemParams, contentType string, ...) (*http.Response, error)
- func (c *Client) PutRoutingRule(ctx context.Context, name string, body PutRoutingRuleJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PutRoutingRuleWithBody(ctx context.Context, name string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ReadItemComments(ctx context.Context, key string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ReleaseConnector(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ReplayStage(ctx context.Context, params *ReplayStageParams, ...) (*http.Response, error)
- func (c *Client) ReplayStageWithBody(ctx context.Context, params *ReplayStageParams, contentType string, ...) (*http.Response, error)
- func (c *Client) ReportTask(ctx context.Context, id string, body ReportTaskJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ReportTaskWithBody(ctx context.Context, id string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) RetireRoutingRule(ctx context.Context, name string, body RetireRoutingRuleJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) RetireRoutingRuleWithBody(ctx context.Context, name string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) RetryTask(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) RunConnector(ctx context.Context, name string, params *RunConnectorParams, ...) (*http.Response, error)
- func (c *Client) ShowConnector(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ShowItem(ctx context.Context, key string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ShowItemParse(ctx context.Context, key string, params *ShowItemParseParams, ...) (*http.Response, error)
- func (c *Client) ShowTaskParse(ctx context.Context, id string, params *ShowTaskParseParams, ...) (*http.Response, error)
- func (c *Client) ShowVersion(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) ApplyDeclarationsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ApplyDeclarationsResponse, error)
- func (c *ClientWithResponses) ApplyDeclarationsWithResponse(ctx context.Context, body ApplyDeclarationsJSONRequestBody, ...) (*ApplyDeclarationsResponse, error)
- func (c *ClientWithResponses) ArchiveItemWithBodyWithResponse(ctx context.Context, key string, contentType string, body io.Reader, ...) (*ArchiveItemResponse, error)
- func (c *ClientWithResponses) ArchiveItemWithResponse(ctx context.Context, key string, body ArchiveItemJSONRequestBody, ...) (*ArchiveItemResponse, error)
- func (c *ClientWithResponses) ClaimTasksWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ClaimTasksResponse, error)
- func (c *ClientWithResponses) ClaimTasksWithResponse(ctx context.Context, body ClaimTasksJSONRequestBody, ...) (*ClaimTasksResponse, error)
- func (c *ClientWithResponses) DropItemWithBodyWithResponse(ctx context.Context, key string, contentType string, body io.Reader, ...) (*DropItemResponse, error)
- func (c *ClientWithResponses) DropItemWithResponse(ctx context.Context, key string, body DropItemJSONRequestBody, ...) (*DropItemResponse, error)
- func (c *ClientWithResponses) HeartbeatTaskWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, ...) (*HeartbeatTaskResponse, error)
- func (c *ClientWithResponses) HeartbeatTaskWithResponse(ctx context.Context, id string, body HeartbeatTaskJSONRequestBody, ...) (*HeartbeatTaskResponse, error)
- func (c *ClientWithResponses) HoldConnectorWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*HoldConnectorResponse, error)
- func (c *ClientWithResponses) ListConnectorsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListConnectorsResponse, error)
- func (c *ClientWithResponses) ListGateTrustWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListGateTrustResponse, error)
- func (c *ClientWithResponses) ListItemsWithResponse(ctx context.Context, params *ListItemsParams, reqEditors ...RequestEditorFn) (*ListItemsResponse, error)
- func (c *ClientWithResponses) ListReviewWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListReviewResponse, error)
- func (c *ClientWithResponses) ListRoutingRulesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListRoutingRulesResponse, error)
- func (c *ClientWithResponses) ListTasksWithResponse(ctx context.Context, params *ListTasksParams, reqEditors ...RequestEditorFn) (*ListTasksResponse, error)
- func (c *ClientWithResponses) ListUnpairedBlobsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListUnpairedBlobsResponse, error)
- func (c *ClientWithResponses) MarkItemWithBodyWithResponse(ctx context.Context, key string, contentType string, body io.Reader, ...) (*MarkItemResponse, error)
- func (c *ClientWithResponses) MarkItemWithResponse(ctx context.Context, key string, body MarkItemJSONRequestBody, ...) (*MarkItemResponse, error)
- func (c *ClientWithResponses) PlaceItemWithBodyWithResponse(ctx context.Context, key string, contentType string, body io.Reader, ...) (*PlaceItemResponse, error)
- func (c *ClientWithResponses) PlaceItemWithResponse(ctx context.Context, key string, body PlaceItemJSONRequestBody, ...) (*PlaceItemResponse, error)
- func (c *ClientWithResponses) PromoteGateFamilyWithBodyWithResponse(ctx context.Context, family string, contentType string, body io.Reader, ...) (*PromoteGateFamilyResponse, error)
- func (c *ClientWithResponses) PromoteGateFamilyWithResponse(ctx context.Context, family string, body PromoteGateFamilyJSONRequestBody, ...) (*PromoteGateFamilyResponse, error)
- func (c *ClientWithResponses) PushItemWithBodyWithResponse(ctx context.Context, params *PushItemParams, contentType string, ...) (*PushItemResponse, error)
- func (c *ClientWithResponses) PushItemWithResponse(ctx context.Context, params *PushItemParams, body PushItemJSONRequestBody, ...) (*PushItemResponse, error)
- func (c *ClientWithResponses) PutRoutingRuleWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, ...) (*PutRoutingRuleResponse, error)
- func (c *ClientWithResponses) PutRoutingRuleWithResponse(ctx context.Context, name string, body PutRoutingRuleJSONRequestBody, ...) (*PutRoutingRuleResponse, error)
- func (c *ClientWithResponses) ReadItemCommentsWithResponse(ctx context.Context, key string, reqEditors ...RequestEditorFn) (*ReadItemCommentsResponse, error)
- func (c *ClientWithResponses) ReleaseConnectorWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*ReleaseConnectorResponse, error)
- func (c *ClientWithResponses) ReplayStageWithBodyWithResponse(ctx context.Context, params *ReplayStageParams, contentType string, ...) (*ReplayStageResponse, error)
- func (c *ClientWithResponses) ReplayStageWithResponse(ctx context.Context, params *ReplayStageParams, ...) (*ReplayStageResponse, error)
- func (c *ClientWithResponses) ReportTaskWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, ...) (*ReportTaskResponse, error)
- func (c *ClientWithResponses) ReportTaskWithResponse(ctx context.Context, id string, body ReportTaskJSONRequestBody, ...) (*ReportTaskResponse, error)
- func (c *ClientWithResponses) RetireRoutingRuleWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, ...) (*RetireRoutingRuleResponse, error)
- func (c *ClientWithResponses) RetireRoutingRuleWithResponse(ctx context.Context, name string, body RetireRoutingRuleJSONRequestBody, ...) (*RetireRoutingRuleResponse, error)
- func (c *ClientWithResponses) RetryTaskWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RetryTaskResponse, error)
- func (c *ClientWithResponses) RunConnectorWithResponse(ctx context.Context, name string, params *RunConnectorParams, ...) (*RunConnectorResponse, error)
- func (c *ClientWithResponses) ShowConnectorWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*ShowConnectorResponse, error)
- func (c *ClientWithResponses) ShowItemParseWithResponse(ctx context.Context, key string, params *ShowItemParseParams, ...) (*ShowItemParseResponse, error)
- func (c *ClientWithResponses) ShowItemWithResponse(ctx context.Context, key string, reqEditors ...RequestEditorFn) (*ShowItemResponse, error)
- func (c *ClientWithResponses) ShowTaskParseWithResponse(ctx context.Context, id string, params *ShowTaskParseParams, ...) (*ShowTaskParseResponse, error)
- func (c *ClientWithResponses) ShowVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ShowVersionResponse, error)
- type ClientWithResponsesInterface
- type Condition
- type Connector
- type ConnectorView
- type ConnectorsAnswer
- type DecidedView
- type DecisionView
- type DeclarationsAnswer
- type DeclarationsRequest
- type DeliveryView
- type Destination
- type DropItem200JSONResponse
- type DropItemJSONRequestBody
- type DropItemRequestObject
- type DropItemResponse
- func (r DropItemResponse) Bytes() []byte
- func (r DropItemResponse) ContentType() string
- func (r DropItemResponse) GetBody() []byte
- func (r DropItemResponse) GetJSON200() *PlacementAnswer
- func (r DropItemResponse) GetJSONDefault() *Refusal
- func (r DropItemResponse) Status() string
- func (r DropItemResponse) StatusCode() int
- type DropItemResponseObject
- type DropItemdefaultJSONResponse
- type DropRequest
- type Finding
- type FindingView
- type FirstFillView
- type GateTrust
- type GateTrustAnswer
- type HeartbeatRequest
- type HeartbeatTask200JSONResponse
- type HeartbeatTaskJSONRequestBody
- type HeartbeatTaskRequestObject
- type HeartbeatTaskResponse
- func (r HeartbeatTaskResponse) Bytes() []byte
- func (r HeartbeatTaskResponse) ContentType() string
- func (r HeartbeatTaskResponse) GetBody() []byte
- func (r HeartbeatTaskResponse) GetJSON200() *TaskView
- func (r HeartbeatTaskResponse) GetJSONDefault() *Refusal
- func (r HeartbeatTaskResponse) Status() string
- func (r HeartbeatTaskResponse) StatusCode() int
- type HeartbeatTaskResponseObject
- type HeartbeatTaskdefaultJSONResponse
- type HoldAnswer
- type HoldConnector200JSONResponse
- type HoldConnectorRequestObject
- type HoldConnectorResponse
- func (r HoldConnectorResponse) Bytes() []byte
- func (r HoldConnectorResponse) ContentType() string
- func (r HoldConnectorResponse) GetBody() []byte
- func (r HoldConnectorResponse) GetJSON200() *HoldAnswer
- func (r HoldConnectorResponse) GetJSONDefault() *Refusal
- func (r HoldConnectorResponse) Status() string
- func (r HoldConnectorResponse) StatusCode() int
- type HoldConnectorResponseObject
- type HoldConnectordefaultJSONResponse
- type HomeView
- type HttpRequestDoer
- type InvalidParamFormatError
- type ItemAnswer
- type ItemCommentsAnswer
- type ItemListed
- type ItemResource
- type ItemResourceIdentifiers
- type ItemResourceMetadata
- type ItemResourceSpec
- type ItemResourceStatus
- type ItemView
- type ItemsAnswer
- type LeasedProposal
- type LeasedSighting
- type LeasedTask
- type ListConnectors200JSONResponse
- type ListConnectorsRequestObject
- type ListConnectorsResponse
- func (r ListConnectorsResponse) Bytes() []byte
- func (r ListConnectorsResponse) ContentType() string
- func (r ListConnectorsResponse) GetBody() []byte
- func (r ListConnectorsResponse) GetJSON200() *ConnectorsAnswer
- func (r ListConnectorsResponse) GetJSONDefault() *Refusal
- func (r ListConnectorsResponse) Status() string
- func (r ListConnectorsResponse) StatusCode() int
- type ListConnectorsResponseObject
- type ListConnectorsdefaultJSONResponse
- type ListGateTrust200JSONResponse
- type ListGateTrustRequestObject
- type ListGateTrustResponse
- func (r ListGateTrustResponse) Bytes() []byte
- func (r ListGateTrustResponse) ContentType() string
- func (r ListGateTrustResponse) GetBody() []byte
- func (r ListGateTrustResponse) GetJSON200() *GateTrustAnswer
- func (r ListGateTrustResponse) GetJSONDefault() *Refusal
- func (r ListGateTrustResponse) Status() string
- func (r ListGateTrustResponse) StatusCode() int
- type ListGateTrustResponseObject
- type ListGateTrustdefaultJSONResponse
- type ListItems200JSONResponse
- type ListItemsParams
- type ListItemsRequestObject
- type ListItemsResponse
- func (r ListItemsResponse) Bytes() []byte
- func (r ListItemsResponse) ContentType() string
- func (r ListItemsResponse) GetBody() []byte
- func (r ListItemsResponse) GetJSON200() *ItemsAnswer
- func (r ListItemsResponse) GetJSONDefault() *Refusal
- func (r ListItemsResponse) Status() string
- func (r ListItemsResponse) StatusCode() int
- type ListItemsResponseObject
- type ListItemsdefaultJSONResponse
- type ListReview200JSONResponse
- type ListReviewRequestObject
- type ListReviewResponse
- func (r ListReviewResponse) Bytes() []byte
- func (r ListReviewResponse) ContentType() string
- func (r ListReviewResponse) GetBody() []byte
- func (r ListReviewResponse) GetJSON200() *ReviewAnswer
- func (r ListReviewResponse) GetJSONDefault() *Refusal
- func (r ListReviewResponse) Status() string
- func (r ListReviewResponse) StatusCode() int
- type ListReviewResponseObject
- type ListReviewdefaultJSONResponse
- type ListRoutingRules200JSONResponse
- type ListRoutingRulesRequestObject
- type ListRoutingRulesResponse
- func (r ListRoutingRulesResponse) Bytes() []byte
- func (r ListRoutingRulesResponse) ContentType() string
- func (r ListRoutingRulesResponse) GetBody() []byte
- func (r ListRoutingRulesResponse) GetJSON200() *RoutingRulesAnswer
- func (r ListRoutingRulesResponse) GetJSONDefault() *Refusal
- func (r ListRoutingRulesResponse) Status() string
- func (r ListRoutingRulesResponse) StatusCode() int
- type ListRoutingRulesResponseObject
- type ListRoutingRulesdefaultJSONResponse
- type ListTasks200JSONResponse
- type ListTasksParams
- type ListTasksRequestObject
- type ListTasksResponse
- func (r ListTasksResponse) Bytes() []byte
- func (r ListTasksResponse) ContentType() string
- func (r ListTasksResponse) GetBody() []byte
- func (r ListTasksResponse) GetJSON200() *TasksAnswer
- func (r ListTasksResponse) GetJSONDefault() *Refusal
- func (r ListTasksResponse) Status() string
- func (r ListTasksResponse) StatusCode() int
- type ListTasksResponseObject
- type ListTasksdefaultJSONResponse
- type ListUnpairedBlobs200JSONResponse
- type ListUnpairedBlobsRequestObject
- type ListUnpairedBlobsResponse
- func (r ListUnpairedBlobsResponse) Bytes() []byte
- func (r ListUnpairedBlobsResponse) ContentType() string
- func (r ListUnpairedBlobsResponse) GetBody() []byte
- func (r ListUnpairedBlobsResponse) GetJSON200() *UnpairedAnswer
- func (r ListUnpairedBlobsResponse) GetJSONDefault() *Refusal
- func (r ListUnpairedBlobsResponse) Status() string
- func (r ListUnpairedBlobsResponse) StatusCode() int
- type ListUnpairedBlobsResponseObject
- type ListUnpairedBlobsdefaultJSONResponse
- type Mark
- type MarkAnswer
- type MarkItem200JSONResponse
- type MarkItemJSONRequestBody
- type MarkItemRequestObject
- type MarkItemResponse
- func (r MarkItemResponse) Bytes() []byte
- func (r MarkItemResponse) ContentType() string
- func (r MarkItemResponse) GetBody() []byte
- func (r MarkItemResponse) GetJSON200() *MarkAnswer
- func (r MarkItemResponse) GetJSONDefault() *Refusal
- func (r MarkItemResponse) Status() string
- func (r MarkItemResponse) StatusCode() int
- type MarkItemResponseObject
- type MarkItemdefaultJSONResponse
- type MarkRequest
- type MarkRequestMark
- type Match
- type MiddlewareFunc
- type OutputView
- type ParseAnswer
- type ParseFinding
- type ParseRef
- type PlaceItem200JSONResponse
- type PlaceItemJSONRequestBody
- type PlaceItemRequestObject
- type PlaceItemResponse
- func (r PlaceItemResponse) Bytes() []byte
- func (r PlaceItemResponse) ContentType() string
- func (r PlaceItemResponse) GetBody() []byte
- func (r PlaceItemResponse) GetJSON200() *PlacementAnswer
- func (r PlaceItemResponse) GetJSONDefault() *Refusal
- func (r PlaceItemResponse) Status() string
- func (r PlaceItemResponse) StatusCode() int
- type PlaceItemResponseObject
- type PlaceItemdefaultJSONResponse
- type PlaceRequest
- type PlacementAnswer
- type Presented
- type PromoteGateFamily200JSONResponse
- type PromoteGateFamilyJSONRequestBody
- type PromoteGateFamilyRequestObject
- type PromoteGateFamilyResponse
- func (r PromoteGateFamilyResponse) Bytes() []byte
- func (r PromoteGateFamilyResponse) ContentType() string
- func (r PromoteGateFamilyResponse) GetBody() []byte
- func (r PromoteGateFamilyResponse) GetJSON200() *PromotionAnswer
- func (r PromoteGateFamilyResponse) GetJSONDefault() *Refusal
- func (r PromoteGateFamilyResponse) Status() string
- func (r PromoteGateFamilyResponse) StatusCode() int
- type PromoteGateFamilyResponseObject
- type PromoteGateFamilydefaultJSONResponse
- type PromoteRequest
- type PromotionAnswer
- type PushAnswer
- type PushItem200JSONResponse
- type PushItem201JSONResponse
- type PushItemJSONRequestBody
- type PushItemParams
- type PushItemRequestObject
- type PushItemResponse
- func (r PushItemResponse) Bytes() []byte
- func (r PushItemResponse) ContentType() string
- func (r PushItemResponse) GetBody() []byte
- func (r PushItemResponse) GetJSON200() *PushAnswer
- func (r PushItemResponse) GetJSON201() *PushAnswer
- func (r PushItemResponse) GetJSONDefault() *Refusal
- func (r PushItemResponse) Status() string
- func (r PushItemResponse) StatusCode() int
- type PushItemResponseObject
- type PushItemdefaultJSONResponse
- type PushRequest
- type PushedItem
- type PutRoutingRule200JSONResponse
- type PutRoutingRuleJSONRequestBody
- type PutRoutingRuleRequestObject
- type PutRoutingRuleResponse
- func (r PutRoutingRuleResponse) Bytes() []byte
- func (r PutRoutingRuleResponse) ContentType() string
- func (r PutRoutingRuleResponse) GetBody() []byte
- func (r PutRoutingRuleResponse) GetJSON200() *RoutingRuleAnswer
- func (r PutRoutingRuleResponse) GetJSONDefault() *Refusal
- func (r PutRoutingRuleResponse) Status() string
- func (r PutRoutingRuleResponse) StatusCode() int
- type PutRoutingRuleResponseObject
- type PutRoutingRuledefaultJSONResponse
- type ReadItemComments200JSONResponse
- type ReadItemCommentsRequestObject
- type ReadItemCommentsResponse
- func (r ReadItemCommentsResponse) Bytes() []byte
- func (r ReadItemCommentsResponse) ContentType() string
- func (r ReadItemCommentsResponse) GetBody() []byte
- func (r ReadItemCommentsResponse) GetJSON200() *ItemCommentsAnswer
- func (r ReadItemCommentsResponse) GetJSONDefault() *Refusal
- func (r ReadItemCommentsResponse) Status() string
- func (r ReadItemCommentsResponse) StatusCode() int
- type ReadItemCommentsResponseObject
- type ReadItemCommentsdefaultJSONResponse
- type Refusal
- type ReleaseAnswer
- type ReleaseConnector200JSONResponse
- type ReleaseConnectorRequestObject
- type ReleaseConnectorResponse
- func (r ReleaseConnectorResponse) Bytes() []byte
- func (r ReleaseConnectorResponse) ContentType() string
- func (r ReleaseConnectorResponse) GetBody() []byte
- func (r ReleaseConnectorResponse) GetJSON200() *ReleaseAnswer
- func (r ReleaseConnectorResponse) GetJSONDefault() *Refusal
- func (r ReleaseConnectorResponse) Status() string
- func (r ReleaseConnectorResponse) StatusCode() int
- type ReleaseConnectorResponseObject
- type ReleaseConnectordefaultJSONResponse
- type ReplayAnswer
- type ReplayRequest
- type ReplayStage200JSONResponse
- type ReplayStage201JSONResponse
- type ReplayStageJSONRequestBody
- type ReplayStageParams
- type ReplayStageRequestObject
- type ReplayStageResponse
- func (r ReplayStageResponse) Bytes() []byte
- func (r ReplayStageResponse) ContentType() string
- func (r ReplayStageResponse) GetBody() []byte
- func (r ReplayStageResponse) GetJSON200() *ReplayAnswer
- func (r ReplayStageResponse) GetJSON201() *ReplayAnswer
- func (r ReplayStageResponse) GetJSONDefault() *Refusal
- func (r ReplayStageResponse) Status() string
- func (r ReplayStageResponse) StatusCode() int
- type ReplayStageResponseObject
- type ReplayStagedefaultJSONResponse
- type ReportArrival
- type ReportDelivery
- type ReportMetrics
- type ReportOutput
- type ReportPage
- type ReportRequest
- type ReportTask200JSONResponse
- type ReportTaskJSONRequestBody
- type ReportTaskRequestObject
- type ReportTaskResponse
- func (r ReportTaskResponse) Bytes() []byte
- func (r ReportTaskResponse) ContentType() string
- func (r ReportTaskResponse) GetBody() []byte
- func (r ReportTaskResponse) GetJSON200() *TaskView
- func (r ReportTaskResponse) GetJSONDefault() *Refusal
- func (r ReportTaskResponse) Status() string
- func (r ReportTaskResponse) StatusCode() int
- type ReportTaskResponseObject
- type ReportTaskdefaultJSONResponse
- type RequestEditorFn
- type RequiredHeaderError
- type RequiredParamError
- type RetireRoutingRule200JSONResponse
- type RetireRoutingRuleJSONRequestBody
- type RetireRoutingRuleRequestObject
- type RetireRoutingRuleResponse
- func (r RetireRoutingRuleResponse) Bytes() []byte
- func (r RetireRoutingRuleResponse) ContentType() string
- func (r RetireRoutingRuleResponse) GetBody() []byte
- func (r RetireRoutingRuleResponse) GetJSON200() *RoutingRuleAnswer
- func (r RetireRoutingRuleResponse) GetJSONDefault() *Refusal
- func (r RetireRoutingRuleResponse) Status() string
- func (r RetireRoutingRuleResponse) StatusCode() int
- type RetireRoutingRuleResponseObject
- type RetireRoutingRuledefaultJSONResponse
- type RetireRuleRequest
- type RetryTask200JSONResponse
- type RetryTaskRequestObject
- type RetryTaskResponse
- func (r RetryTaskResponse) Bytes() []byte
- func (r RetryTaskResponse) ContentType() string
- func (r RetryTaskResponse) GetBody() []byte
- func (r RetryTaskResponse) GetJSON200() *TaskRetryAnswer
- func (r RetryTaskResponse) GetJSONDefault() *Refusal
- func (r RetryTaskResponse) Status() string
- func (r RetryTaskResponse) StatusCode() int
- type RetryTaskResponseObject
- type RetryTaskdefaultJSONResponse
- type ReviewAnswer
- type ReviewChoice
- type ReviewComments
- type ReviewDestination
- type ReviewGuess
- type ReviewItem
- type ReviewRule
- type ReviewSighting
- type RoutingRule
- type RoutingRuleAnswer
- type RoutingRuleRequest
- type RoutingRuleRequestAction
- type RoutingRuleView
- type RoutingRulesAnswer
- type RuleMatch
- type RunAnswer
- type RunConnector200JSONResponse
- type RunConnector201JSONResponse
- type RunConnector202JSONResponse
- type RunConnectorParams
- type RunConnectorRequestObject
- type RunConnectorResponse
- func (r RunConnectorResponse) Bytes() []byte
- func (r RunConnectorResponse) ContentType() string
- func (r RunConnectorResponse) GetBody() []byte
- func (r RunConnectorResponse) GetJSON200() *RunAnswer
- func (r RunConnectorResponse) GetJSON201() *RunAnswer
- func (r RunConnectorResponse) GetJSON202() *RunAnswer
- func (r RunConnectorResponse) GetJSONDefault() *Refusal
- func (r RunConnectorResponse) Status() string
- func (r RunConnectorResponse) StatusCode() int
- type RunConnectorResponseObject
- type RunConnectordefaultJSONResponse
- type SectionView
- type ServeMux
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) ApplyDeclarations(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ArchiveItem(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ClaimTasks(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DropItem(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) HeartbeatTask(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) HoldConnector(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListConnectors(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListGateTrust(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListItems(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListReview(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListRoutingRules(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListTasks(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListUnpairedBlobs(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) MarkItem(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PlaceItem(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PromoteGateFamily(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PushItem(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PutRoutingRule(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ReadItemComments(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ReleaseConnector(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ReplayStage(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ReportTask(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) RetireRoutingRule(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) RetryTask(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) RunConnector(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ShowConnector(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ShowItem(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ShowItemParse(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ShowTaskParse(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ShowVersion(w http.ResponseWriter, r *http.Request)
- type ShowConnector200JSONResponse
- type ShowConnectorRequestObject
- type ShowConnectorResponse
- func (r ShowConnectorResponse) Bytes() []byte
- func (r ShowConnectorResponse) ContentType() string
- func (r ShowConnectorResponse) GetBody() []byte
- func (r ShowConnectorResponse) GetJSON200() *ConnectorView
- func (r ShowConnectorResponse) GetJSONDefault() *Refusal
- func (r ShowConnectorResponse) Status() string
- func (r ShowConnectorResponse) StatusCode() int
- type ShowConnectorResponseObject
- type ShowConnectordefaultJSONResponse
- type ShowItem200ApplicationVndFleetResourcePlusJSONResponse
- type ShowItem200JSONResponse
- type ShowItemParse200JSONResponse
- type ShowItemParseParams
- type ShowItemParseRequestObject
- type ShowItemParseResponse
- func (r ShowItemParseResponse) Bytes() []byte
- func (r ShowItemParseResponse) ContentType() string
- func (r ShowItemParseResponse) GetBody() []byte
- func (r ShowItemParseResponse) GetJSON200() *ParseAnswer
- func (r ShowItemParseResponse) GetJSONDefault() *Refusal
- func (r ShowItemParseResponse) Status() string
- func (r ShowItemParseResponse) StatusCode() int
- type ShowItemParseResponseObject
- type ShowItemParsedefaultJSONResponse
- type ShowItemRequestObject
- type ShowItemResponse
- func (r ShowItemResponse) Bytes() []byte
- func (r ShowItemResponse) ContentType() string
- func (r ShowItemResponse) GetApplicationVndFleetResourceJSON200() *ItemResource
- func (r ShowItemResponse) GetBody() []byte
- func (r ShowItemResponse) GetJSON200() *ItemAnswer
- func (r ShowItemResponse) GetJSONDefault() *Refusal
- func (r ShowItemResponse) Status() string
- func (r ShowItemResponse) StatusCode() int
- type ShowItemResponseObject
- type ShowItemdefaultJSONResponse
- type ShowTaskParse200JSONResponse
- type ShowTaskParseParams
- type ShowTaskParseRequestObject
- type ShowTaskParseResponse
- func (r ShowTaskParseResponse) Bytes() []byte
- func (r ShowTaskParseResponse) ContentType() string
- func (r ShowTaskParseResponse) GetBody() []byte
- func (r ShowTaskParseResponse) GetJSON200() *TaskParseAnswer
- func (r ShowTaskParseResponse) GetJSONDefault() *Refusal
- func (r ShowTaskParseResponse) Status() string
- func (r ShowTaskParseResponse) StatusCode() int
- type ShowTaskParseResponseObject
- type ShowTaskParsedefaultJSONResponse
- type ShowVersion200JSONResponse
- type ShowVersionRequestObject
- type ShowVersionResponse
- func (r ShowVersionResponse) Bytes() []byte
- func (r ShowVersionResponse) ContentType() string
- func (r ShowVersionResponse) GetBody() []byte
- func (r ShowVersionResponse) GetJSON200() *VersionAnswer
- func (r ShowVersionResponse) GetJSONDefault() *Refusal
- func (r ShowVersionResponse) Status() string
- func (r ShowVersionResponse) StatusCode() int
- type ShowVersionResponseObject
- type ShowVersiondefaultJSONResponse
- type SightingView
- type SlotGroup
- type Span
- type StageOutput
- type StageProgress
- type StdHTTPServerOptions
- type StrictHTTPServerOptions
- type StrictHandlerFunc
- type StrictMiddlewareFunc
- type StrictServerInterface
- type SuggestionFindingView
- type SuggestionView
- type TaskParseAnswer
- type TaskRetryAnswer
- type TaskView
- type TasksAnswer
- type Tokens
- type TooManyValuesForParamError
- type TrustRule
- type UndeliveredView
- type UnescapedCookieParamError
- type Unit
- type UnmarshalingParamError
- type UnpairedAnswer
- type UnpairedFile
- type VersionAnswer
- type WaitingView
- type Worker
Constants ¶
const ( ApplyDeclarationsScope = "ingestion.declarations.apply" ArchiveItemScope = "ingestion.review.place" ClaimTasksScope = "ingestion.tasks.claim" DropItemScope = "ingestion.review.place" HeartbeatTaskScope = "ingestion.tasks.claim" HoldConnectorScope = "ingestion.connectors.hold" ListConnectorsScope = "ingestion.connectors.read" ListGateTrustScope = "ingestion.items.read" ListItemsScope = "ingestion.items.read" ListReviewScope = "ingestion.review.read" ListRoutingRulesScope = "ingestion.items.read" MarkItemScope = "ingestion.marks.write" PlaceItemScope = "ingestion.review.place" PromoteGateFamilyScope = "ingestion.trust.promote" PushItemScope = "ingestion.items.push" PutRoutingRuleScope = "ingestion.routing-rules.write" ReadItemCommentsScope = "ingestion.comments.read" ReleaseConnectorScope = "ingestion.connectors.release" ReplayStageScope = "ingestion.items.replay" ReportTaskScope = "ingestion.tasks.claim" RetireRoutingRuleScope = "ingestion.routing-rules.write" RunConnectorScope = "ingestion.connectors.run" ShowConnectorScope = "ingestion.connectors.read" ShowItemScope = "ingestion.items.read" ShowItemParseScope = "ingestion.items.read" ShowTaskParseScope = "ingestion.tasks.claim" ShowVersionScope = "ingestion.tasks.claim" )
The scope that a service's token carries to reach each operation, as its x-ingestion-scope names it.
Variables ¶
var OpenAPIDocument []byte
OpenAPIDocument is ingestion's openapi.json, which this module's types, client and server interface are generated from. ingestionfake checks each request body against it.
Functions ¶
func AcceptResource ¶
AcceptResource asks a route for its resource rather than its own shape, by naming gofleetresources.MediaType in Accept. The answer then decodes into the response's ApplicationVndFleetResourceJSON200:
answer, err := client.ShowItemWithResponse(ctx, "reddit/t3_aq7ggd", ingestionclient.AcceptResource) item := answer.ApplicationVndFleetResourceJSON200
func Handler ¶
func Handler(si ServerInterface) http.Handler
Handler creates http.Handler with routing matching OpenAPI spec.
func HandlerFromMux ¶
func HandlerFromMux(si ServerInterface, m ServeMux) http.Handler
HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.
func HandlerFromMuxWithBaseURL ¶
func HandlerFromMuxWithBaseURL(si ServerInterface, m ServeMux, baseURL string) http.Handler
func HandlerWithOptions ¶
func HandlerWithOptions(si ServerInterface, options StdHTTPServerOptions) http.Handler
HandlerWithOptions creates http.Handler with additional options
func NewApplyDeclarationsRequest ¶
func NewApplyDeclarationsRequest(server string, body ApplyDeclarationsJSONRequestBody) (*http.Request, error)
NewApplyDeclarationsRequest calls the generic ApplyDeclarations builder with application/json body
func NewApplyDeclarationsRequestWithBody ¶
func NewApplyDeclarationsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewApplyDeclarationsRequestWithBody constructs an http.Request for the ApplyDeclarations method, with any body, and a specified content type
func NewArchiveItemRequest ¶
func NewArchiveItemRequest(server string, key string, body ArchiveItemJSONRequestBody) (*http.Request, error)
NewArchiveItemRequest calls the generic ArchiveItem builder with application/json body
func NewArchiveItemRequestWithBody ¶
func NewArchiveItemRequestWithBody(server string, key string, contentType string, body io.Reader) (*http.Request, error)
NewArchiveItemRequestWithBody constructs an http.Request for the ArchiveItem method, with any body, and a specified content type
func NewClaimTasksRequest ¶
func NewClaimTasksRequest(server string, body ClaimTasksJSONRequestBody) (*http.Request, error)
NewClaimTasksRequest calls the generic ClaimTasks builder with application/json body
func NewClaimTasksRequestWithBody ¶
func NewClaimTasksRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewClaimTasksRequestWithBody constructs an http.Request for the ClaimTasks method, with any body, and a specified content type
func NewDropItemRequest ¶
func NewDropItemRequest(server string, key string, body DropItemJSONRequestBody) (*http.Request, error)
NewDropItemRequest calls the generic DropItem builder with application/json body
func NewDropItemRequestWithBody ¶
func NewDropItemRequestWithBody(server string, key string, contentType string, body io.Reader) (*http.Request, error)
NewDropItemRequestWithBody constructs an http.Request for the DropItem method, with any body, and a specified content type
func NewHeartbeatTaskRequest ¶
func NewHeartbeatTaskRequest(server string, id string, body HeartbeatTaskJSONRequestBody) (*http.Request, error)
NewHeartbeatTaskRequest calls the generic HeartbeatTask builder with application/json body
func NewHeartbeatTaskRequestWithBody ¶
func NewHeartbeatTaskRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
NewHeartbeatTaskRequestWithBody constructs an http.Request for the HeartbeatTask method, with any body, and a specified content type
func NewHoldConnectorRequest ¶
NewHoldConnectorRequest constructs an http.Request for the HoldConnector method
func NewListConnectorsRequest ¶
NewListConnectorsRequest constructs an http.Request for the ListConnectors method
func NewListGateTrustRequest ¶
NewListGateTrustRequest constructs an http.Request for the ListGateTrust method
func NewListItemsRequest ¶
func NewListItemsRequest(server string, params *ListItemsParams) (*http.Request, error)
NewListItemsRequest constructs an http.Request for the ListItems method
func NewListReviewRequest ¶
NewListReviewRequest constructs an http.Request for the ListReview method
func NewListRoutingRulesRequest ¶
NewListRoutingRulesRequest constructs an http.Request for the ListRoutingRules method
func NewListTasksRequest ¶
func NewListTasksRequest(server string, params *ListTasksParams) (*http.Request, error)
NewListTasksRequest constructs an http.Request for the ListTasks method
func NewListUnpairedBlobsRequest ¶
NewListUnpairedBlobsRequest constructs an http.Request for the ListUnpairedBlobs method
func NewMarkItemRequest ¶
func NewMarkItemRequest(server string, key string, body MarkItemJSONRequestBody) (*http.Request, error)
NewMarkItemRequest calls the generic MarkItem builder with application/json body
func NewMarkItemRequestWithBody ¶
func NewMarkItemRequestWithBody(server string, key string, contentType string, body io.Reader) (*http.Request, error)
NewMarkItemRequestWithBody constructs an http.Request for the MarkItem method, with any body, and a specified content type
func NewPlaceItemRequest ¶
func NewPlaceItemRequest(server string, key string, body PlaceItemJSONRequestBody) (*http.Request, error)
NewPlaceItemRequest calls the generic PlaceItem builder with application/json body
func NewPlaceItemRequestWithBody ¶
func NewPlaceItemRequestWithBody(server string, key string, contentType string, body io.Reader) (*http.Request, error)
NewPlaceItemRequestWithBody constructs an http.Request for the PlaceItem method, with any body, and a specified content type
func NewPromoteGateFamilyRequest ¶
func NewPromoteGateFamilyRequest(server string, family string, body PromoteGateFamilyJSONRequestBody) (*http.Request, error)
NewPromoteGateFamilyRequest calls the generic PromoteGateFamily builder with application/json body
func NewPromoteGateFamilyRequestWithBody ¶
func NewPromoteGateFamilyRequestWithBody(server string, family string, contentType string, body io.Reader) (*http.Request, error)
NewPromoteGateFamilyRequestWithBody constructs an http.Request for the PromoteGateFamily method, with any body, and a specified content type
func NewPushItemRequest ¶
func NewPushItemRequest(server string, params *PushItemParams, body PushItemJSONRequestBody) (*http.Request, error)
NewPushItemRequest calls the generic PushItem builder with application/json body
func NewPushItemRequestWithBody ¶
func NewPushItemRequestWithBody(server string, params *PushItemParams, contentType string, body io.Reader) (*http.Request, error)
NewPushItemRequestWithBody constructs an http.Request for the PushItem method, with any body, and a specified content type
func NewPutRoutingRuleRequest ¶
func NewPutRoutingRuleRequest(server string, name string, body PutRoutingRuleJSONRequestBody) (*http.Request, error)
NewPutRoutingRuleRequest calls the generic PutRoutingRule builder with application/json body
func NewPutRoutingRuleRequestWithBody ¶
func NewPutRoutingRuleRequestWithBody(server string, name string, contentType string, body io.Reader) (*http.Request, error)
NewPutRoutingRuleRequestWithBody constructs an http.Request for the PutRoutingRule method, with any body, and a specified content type
func NewReadItemCommentsRequest ¶
NewReadItemCommentsRequest constructs an http.Request for the ReadItemComments method
func NewReleaseConnectorRequest ¶
NewReleaseConnectorRequest constructs an http.Request for the ReleaseConnector method
func NewReplayStageRequest ¶
func NewReplayStageRequest(server string, params *ReplayStageParams, body ReplayStageJSONRequestBody) (*http.Request, error)
NewReplayStageRequest calls the generic ReplayStage builder with application/json body
func NewReplayStageRequestWithBody ¶
func NewReplayStageRequestWithBody(server string, params *ReplayStageParams, contentType string, body io.Reader) (*http.Request, error)
NewReplayStageRequestWithBody constructs an http.Request for the ReplayStage method, with any body, and a specified content type
func NewReportTaskRequest ¶
func NewReportTaskRequest(server string, id string, body ReportTaskJSONRequestBody) (*http.Request, error)
NewReportTaskRequest calls the generic ReportTask builder with application/json body
func NewReportTaskRequestWithBody ¶
func NewReportTaskRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
NewReportTaskRequestWithBody constructs an http.Request for the ReportTask method, with any body, and a specified content type
func NewRetireRoutingRuleRequest ¶
func NewRetireRoutingRuleRequest(server string, name string, body RetireRoutingRuleJSONRequestBody) (*http.Request, error)
NewRetireRoutingRuleRequest calls the generic RetireRoutingRule builder with application/json body
func NewRetireRoutingRuleRequestWithBody ¶
func NewRetireRoutingRuleRequestWithBody(server string, name string, contentType string, body io.Reader) (*http.Request, error)
NewRetireRoutingRuleRequestWithBody constructs an http.Request for the RetireRoutingRule method, with any body, and a specified content type
func NewRetryTaskRequest ¶
NewRetryTaskRequest constructs an http.Request for the RetryTask method
func NewRunConnectorRequest ¶
func NewRunConnectorRequest(server string, name string, params *RunConnectorParams) (*http.Request, error)
NewRunConnectorRequest constructs an http.Request for the RunConnector method
func NewShowConnectorRequest ¶
NewShowConnectorRequest constructs an http.Request for the ShowConnector method
func NewShowItemParseRequest ¶
func NewShowItemParseRequest(server string, key string, params *ShowItemParseParams) (*http.Request, error)
NewShowItemParseRequest constructs an http.Request for the ShowItemParse method
func NewShowItemRequest ¶
NewShowItemRequest constructs an http.Request for the ShowItem method
func NewShowTaskParseRequest ¶
func NewShowTaskParseRequest(server string, id string, params *ShowTaskParseParams) (*http.Request, error)
NewShowTaskParseRequest constructs an http.Request for the ShowTaskParse method
Types ¶
type ApplyDeclarations200JSONResponse ¶
type ApplyDeclarations200JSONResponse DeclarationsAnswer
func (ApplyDeclarations200JSONResponse) VisitApplyDeclarationsResponse ¶
func (response ApplyDeclarations200JSONResponse) VisitApplyDeclarationsResponse(w http.ResponseWriter) error
type ApplyDeclarationsJSONRequestBody ¶
type ApplyDeclarationsJSONRequestBody = DeclarationsRequest
ApplyDeclarationsJSONRequestBody defines body for ApplyDeclarations for application/json ContentType.
type ApplyDeclarationsRequestObject ¶
type ApplyDeclarationsRequestObject struct {
Body *ApplyDeclarationsJSONRequestBody
}
type ApplyDeclarationsResponse ¶
type ApplyDeclarationsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DeclarationsAnswer
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Refusal
}
func ParseApplyDeclarationsResponse ¶
func ParseApplyDeclarationsResponse(rsp *http.Response) (*ApplyDeclarationsResponse, error)
ParseApplyDeclarationsResponse parses an HTTP response from a ApplyDeclarationsWithResponse call
func (ApplyDeclarationsResponse) Bytes ¶
func (r ApplyDeclarationsResponse) Bytes() []byte
Bytes is a convenience method to retrieve the raw bytes from the HTTP response
func (ApplyDeclarationsResponse) ContentType ¶
func (r ApplyDeclarationsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ApplyDeclarationsResponse) GetBody ¶
func (r ApplyDeclarationsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ApplyDeclarationsResponse) GetJSON200 ¶
func (r ApplyDeclarationsResponse) GetJSON200() *DeclarationsAnswer
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ApplyDeclarationsResponse) GetJSONDefault ¶
func (r ApplyDeclarationsResponse) GetJSONDefault() *Refusal
GetJSONDefault returns the response for an HTTP default `application/json` response
func (ApplyDeclarationsResponse) Status ¶
func (r ApplyDeclarationsResponse) Status() string
Status returns HTTPResponse.Status
func (ApplyDeclarationsResponse) StatusCode ¶
func (r ApplyDeclarationsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ApplyDeclarationsResponseObject ¶
type ApplyDeclarationsResponseObject interface {
VisitApplyDeclarationsResponse(w http.ResponseWriter) error
}
type ApplyDeclarationsdefaultJSONResponse ¶
func (ApplyDeclarationsdefaultJSONResponse) VisitApplyDeclarationsResponse ¶
func (response ApplyDeclarationsdefaultJSONResponse) VisitApplyDeclarationsResponse(w http.ResponseWriter) error
type ArchiveItem200JSONResponse ¶
type ArchiveItem200JSONResponse PlacementAnswer
func (ArchiveItem200JSONResponse) VisitArchiveItemResponse ¶
func (response ArchiveItem200JSONResponse) VisitArchiveItemResponse(w http.ResponseWriter) error
type ArchiveItemJSONRequestBody ¶
type ArchiveItemJSONRequestBody = ArchiveRequest
ArchiveItemJSONRequestBody defines body for ArchiveItem for application/json ContentType.
type ArchiveItemRequestObject ¶
type ArchiveItemRequestObject struct {
Key string `json:"key"`
Body *ArchiveItemJSONRequestBody
}
type ArchiveItemResponse ¶
type ArchiveItemResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PlacementAnswer
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Refusal
}
func ParseArchiveItemResponse ¶
func ParseArchiveItemResponse(rsp *http.Response) (*ArchiveItemResponse, error)
ParseArchiveItemResponse parses an HTTP response from a ArchiveItemWithResponse call
func (ArchiveItemResponse) Bytes ¶
func (r ArchiveItemResponse) Bytes() []byte
Bytes is a convenience method to retrieve the raw bytes from the HTTP response
func (ArchiveItemResponse) ContentType ¶
func (r ArchiveItemResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ArchiveItemResponse) GetBody ¶
func (r ArchiveItemResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ArchiveItemResponse) GetJSON200 ¶
func (r ArchiveItemResponse) GetJSON200() *PlacementAnswer
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ArchiveItemResponse) GetJSONDefault ¶
func (r ArchiveItemResponse) GetJSONDefault() *Refusal
GetJSONDefault returns the response for an HTTP default `application/json` response
func (ArchiveItemResponse) Status ¶
func (r ArchiveItemResponse) Status() string
Status returns HTTPResponse.Status
func (ArchiveItemResponse) StatusCode ¶
func (r ArchiveItemResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ArchiveItemResponseObject ¶
type ArchiveItemResponseObject interface {
VisitArchiveItemResponse(w http.ResponseWriter) error
}
type ArchiveItemdefaultJSONResponse ¶
func (ArchiveItemdefaultJSONResponse) VisitArchiveItemResponse ¶
func (response ArchiveItemdefaultJSONResponse) VisitArchiveItemResponse(w http.ResponseWriter) error
type ArchiveRequest ¶
type ArchiveRequest struct {
DecidedAfterMs *int `json:"decided_after_ms,omitempty"`
Liked *string `json:"liked,omitempty"`
Login *string `json:"login,omitempty"`
// Presented Presented is a review card as a person saw it when they decided: the sort and grouping in force, the card's rank under that sort and its position among the rows shown, how many rows were shown, the quality gate's quality, fit, verdict and side guess with their confidences, and when the card was drawn.
Presented *Presented `json:"presented,omitempty"`
}
ArchiveRequest ArchiveRequest archives an item: done, its record kept with no destination, and the read mark written where the caller may write marks.
type BlobAnswer ¶
type BlobAnswer struct {
CreatedTS string `json:"created_ts"`
Md5 string `json:"md5"`
MediaType string `json:"media_type"`
SchemaVersion int `json:"schema_version"`
Sha256 string `json:"sha256"`
SizeBytes int `json:"size_bytes"`
}
BlobAnswer BlobAnswer is what a blob write answers: schemas/blob.schema.json.
type ChapterInBook ¶
type ChapterInBook struct {
BookDestinationID string `json:"book_destination_id"`
PdfPageEnd int `json:"pdf_page_end"`
PdfPageStart int `json:"pdf_page_start"`
PrintedPageEnd *string `json:"printed_page_end"`
PrintedPageStart *string `json:"printed_page_start"`
}
ChapterInBook ChapterInBook is where a book's chapter sits in its destination: the destination's id for its book's record, from the book's settled delivery, and the chapter's pages in the book, from the newest sections that name it.
type ClaimAnswer ¶
type ClaimAnswer struct {
Tasks *[]LeasedTask `json:"tasks"`
}
ClaimAnswer ClaimAnswer is every task that the claim leased, and none where nothing waits.
type ClaimRequest ¶
type ClaimRequest struct {
Capabilities *[]string `json:"capabilities"`
LeaseSeconds int `json:"lease_seconds"`
Max int `json:"max"`
MaxByCapability *map[string]int `json:"max_by_capability,omitempty"`
SlotGroups *map[string]SlotGroup `json:"slot_groups,omitempty"`
StartedTS string `json:"started_ts"`
Version string `json:"version"`
WorkerID string `json:"worker_id"`
}
ClaimRequest ClaimRequest is a worker asking for up to Max tasks whose capability it holds, each leased for LeaseSeconds.
type ClaimTasks200JSONResponse ¶
type ClaimTasks200JSONResponse ClaimAnswer
func (ClaimTasks200JSONResponse) VisitClaimTasksResponse ¶
func (response ClaimTasks200JSONResponse) VisitClaimTasksResponse(w http.ResponseWriter) error
type ClaimTasksJSONRequestBody ¶
type ClaimTasksJSONRequestBody = ClaimRequest
ClaimTasksJSONRequestBody defines body for ClaimTasks for application/json ContentType.
type ClaimTasksRequestObject ¶
type ClaimTasksRequestObject struct {
Body *ClaimTasksJSONRequestBody
}
type ClaimTasksResponse ¶
type ClaimTasksResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ClaimAnswer
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Refusal
}
func ParseClaimTasksResponse ¶
func ParseClaimTasksResponse(rsp *http.Response) (*ClaimTasksResponse, error)
ParseClaimTasksResponse parses an HTTP response from a ClaimTasksWithResponse call
func (ClaimTasksResponse) Bytes ¶
func (r ClaimTasksResponse) Bytes() []byte
Bytes is a convenience method to retrieve the raw bytes from the HTTP response
func (ClaimTasksResponse) ContentType ¶
func (r ClaimTasksResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ClaimTasksResponse) GetBody ¶
func (r ClaimTasksResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ClaimTasksResponse) GetJSON200 ¶
func (r ClaimTasksResponse) GetJSON200() *ClaimAnswer
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ClaimTasksResponse) GetJSONDefault ¶
func (r ClaimTasksResponse) GetJSONDefault() *Refusal
GetJSONDefault returns the response for an HTTP default `application/json` response
func (ClaimTasksResponse) Status ¶
func (r ClaimTasksResponse) Status() string
Status returns HTTPResponse.Status
func (ClaimTasksResponse) StatusCode ¶
func (r ClaimTasksResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ClaimTasksResponseObject ¶
type ClaimTasksResponseObject interface {
VisitClaimTasksResponse(w http.ResponseWriter) error
}
type ClaimTasksdefaultJSONResponse ¶
func (ClaimTasksdefaultJSONResponse) VisitClaimTasksResponse ¶
func (response ClaimTasksdefaultJSONResponse) VisitClaimTasksResponse(w http.ResponseWriter) error
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) ApplyDeclarations ¶
func (c *Client) ApplyDeclarations(ctx context.Context, body ApplyDeclarationsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
ApplyDeclarations Put a declaration set in force
Takes a body of the `application/json` content type.
Corresponds with PUT /api/v1/declarations (the `ApplyDeclarations` operationId).
func (*Client) ApplyDeclarationsWithBody ¶
func (c *Client) ApplyDeclarationsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ApplyDeclarationsWithBody Put a declaration set in force
Takes any type of body and a specified content type.
Corresponds with PUT /api/v1/declarations (the `ApplyDeclarations` operationId).
func (*Client) ArchiveItem ¶
func (c *Client) ArchiveItem(ctx context.Context, key string, body ArchiveItemJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
ArchiveItem Keep an item on the personal side with no destination
Takes a body of the `application/json` content type.
Corresponds with POST /api/v1/review/{key}/archive (the `ArchiveItem` operationId).
func (*Client) ArchiveItemWithBody ¶
func (c *Client) ArchiveItemWithBody(ctx context.Context, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ArchiveItemWithBody Keep an item on the personal side with no destination
Takes any type of body and a specified content type.
Corresponds with POST /api/v1/review/{key}/archive (the `ArchiveItem` operationId).
func (*Client) ClaimTasks ¶
func (c *Client) ClaimTasks(ctx context.Context, body ClaimTasksJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
ClaimTasks Lease the tasks that a worker's capabilities take
Takes a body of the `application/json` content type.
Corresponds with POST /api/v1/tasks/claims (the `ClaimTasks` operationId).
func (*Client) ClaimTasksWithBody ¶
func (c *Client) ClaimTasksWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ClaimTasksWithBody Lease the tasks that a worker's capabilities take
Takes any type of body and a specified content type.
Corresponds with POST /api/v1/tasks/claims (the `ClaimTasks` operationId).
func (*Client) DropItem ¶
func (c *Client) DropItem(ctx context.Context, key string, body DropItemJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
DropItem Drop an item from review
Takes a body of the `application/json` content type.
Corresponds with POST /api/v1/review/{key}/drop (the `DropItem` operationId).
func (*Client) DropItemWithBody ¶
func (c *Client) DropItemWithBody(ctx context.Context, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
DropItemWithBody Drop an item from review
Takes any type of body and a specified content type.
Corresponds with POST /api/v1/review/{key}/drop (the `DropItem` operationId).
func (*Client) HeartbeatTask ¶
func (c *Client) HeartbeatTask(ctx context.Context, id string, body HeartbeatTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
HeartbeatTask Extend the lease that a worker holds on a task
Takes a body of the `application/json` content type.
Corresponds with POST /api/v1/tasks/{id}/heartbeats (the `HeartbeatTask` operationId).
func (*Client) HeartbeatTaskWithBody ¶
func (c *Client) HeartbeatTaskWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
HeartbeatTaskWithBody Extend the lease that a worker holds on a task
Takes any type of body and a specified content type.
Corresponds with POST /api/v1/tasks/{id}/heartbeats (the `HeartbeatTask` operationId).
func (*Client) HoldConnector ¶
func (c *Client) HoldConnector(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
HoldConnector Hold a connector's model stages for a person
Corresponds with POST /api/v1/connectors/{name}/hold (the `HoldConnector` operationId).
func (*Client) ListConnectors ¶
func (c *Client) ListConnectors(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
ListConnectors Each connector in the set in force
Corresponds with GET /api/v1/connectors (the `ListConnectors` operationId).
func (*Client) ListGateTrust ¶
func (c *Client) ListGateTrust(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
ListGateTrust The trust ladder, and each quality gate family's standing on it
Corresponds with GET /api/v1/gates/trust (the `ListGateTrust` operationId).
func (*Client) ListItems ¶
func (c *Client) ListItems(ctx context.Context, params *ListItemsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListItems A page of items, newest first
Corresponds with GET /api/v1/items (the `ListItems` operationId).
func (*Client) ListReview ¶
func (c *Client) ListReview(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
ListReview Each item that waits on a person, the longest waiting first
Corresponds with GET /api/v1/review (the `ListReview` operationId).
func (*Client) ListRoutingRules ¶
func (c *Client) ListRoutingRules(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
ListRoutingRules The newest version of each routing rule that a person accepted
Corresponds with GET /api/v1/routing-rules (the `ListRoutingRules` operationId).
func (*Client) ListTasks ¶
func (c *Client) ListTasks(ctx context.Context, params *ListTasksParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListTasks The tasks in the states asked for, and the workers heard from
Corresponds with GET /api/v1/tasks (the `ListTasks` operationId).
func (*Client) ListUnpairedBlobs ¶
func (c *Client) ListUnpairedBlobs(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
ListUnpairedBlobs Each blob that no row names, and each row whose bytes are gone
Corresponds with GET /api/v1/blobs/unpaired (the `ListUnpairedBlobs` operationId).
func (*Client) MarkItem ¶
func (c *Client) MarkItem(ctx context.Context, key string, body MarkItemJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
MarkItem Mark an item low-quality or read
Takes a body of the `application/json` content type.
Corresponds with POST /api/v1/items/{key}/marks (the `MarkItem` operationId).
func (*Client) MarkItemWithBody ¶
func (c *Client) MarkItemWithBody(ctx context.Context, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
MarkItemWithBody Mark an item low-quality or read
Takes any type of body and a specified content type.
Corresponds with POST /api/v1/items/{key}/marks (the `MarkItem` operationId).
func (*Client) PlaceItem ¶
func (c *Client) PlaceItem(ctx context.Context, key string, body PlaceItemJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PlaceItem Place an item by a review choice or on a destination
Takes a body of the `application/json` content type.
Corresponds with POST /api/v1/review/{key}/place (the `PlaceItem` operationId).
func (*Client) PlaceItemWithBody ¶
func (c *Client) PlaceItemWithBody(ctx context.Context, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PlaceItemWithBody Place an item by a review choice or on a destination
Takes any type of body and a specified content type.
Corresponds with POST /api/v1/review/{key}/place (the `PlaceItem` operationId).
func (*Client) PromoteGateFamily ¶
func (c *Client) PromoteGateFamily(ctx context.Context, family string, body PromoteGateFamilyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PromoteGateFamily Promote a quality gate family a rung
Takes a body of the `application/json` content type.
Corresponds with POST /api/v1/gates/trust/{family}/promote (the `PromoteGateFamily` operationId).
func (*Client) PromoteGateFamilyWithBody ¶
func (c *Client) PromoteGateFamilyWithBody(ctx context.Context, family string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PromoteGateFamilyWithBody Promote a quality gate family a rung
Takes any type of body and a specified content type.
Corresponds with POST /api/v1/gates/trust/{family}/promote (the `PromoteGateFamily` operationId).
func (*Client) PushItem ¶
func (c *Client) PushItem(ctx context.Context, params *PushItemParams, body PushItemJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PushItem Land a link through a push connector. A memo's audio lands here too, as its body rather than JSON
Takes a body of the `application/json` content type.
Corresponds with POST /api/v1/items (the `PushItem` operationId).
func (*Client) PushItemWithBody ¶
func (c *Client) PushItemWithBody(ctx context.Context, params *PushItemParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PushItemWithBody Land a link through a push connector. A memo's audio lands here too, as its body rather than JSON
Takes any type of body and a specified content type.
Corresponds with POST /api/v1/items (the `PushItem` operationId).
func (*Client) PutRoutingRule ¶
func (c *Client) PutRoutingRule(ctx context.Context, name string, body PutRoutingRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PutRoutingRule Write a version of an accepted routing rule
Takes a body of the `application/json` content type.
Corresponds with PUT /api/v1/routing-rules/{name} (the `PutRoutingRule` operationId).
func (*Client) PutRoutingRuleWithBody ¶
func (c *Client) PutRoutingRuleWithBody(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PutRoutingRuleWithBody Write a version of an accepted routing rule
Takes any type of body and a specified content type.
Corresponds with PUT /api/v1/routing-rules/{name} (the `PutRoutingRule` operationId).
func (*Client) ReadItemComments ¶
func (c *Client) ReadItemComments(ctx context.Context, key string, reqEditors ...RequestEditorFn) (*http.Response, error)
ReadItemComments Ask for the read of an item's top comments, and how it stands
Corresponds with POST /api/v1/items/{key}/comments (the `ReadItemComments` operationId).
func (*Client) ReleaseConnector ¶
func (c *Client) ReleaseConnector(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
ReleaseConnector Lift a connector's hold and release its first fill
Corresponds with POST /api/v1/connectors/{name}/release (the `ReleaseConnector` operationId).
func (*Client) ReplayStage ¶
func (c *Client) ReplayStage(ctx context.Context, params *ReplayStageParams, body ReplayStageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
ReplayStage Run a stage again over the items a replay selects, or estimate a model stage's replay
Takes a body of the `application/json` content type.
Corresponds with POST /api/v1/replays (the `ReplayStage` operationId).
func (*Client) ReplayStageWithBody ¶
func (c *Client) ReplayStageWithBody(ctx context.Context, params *ReplayStageParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ReplayStageWithBody Run a stage again over the items a replay selects, or estimate a model stage's replay
Takes any type of body and a specified content type.
Corresponds with POST /api/v1/replays (the `ReplayStage` operationId).
func (*Client) ReportTask ¶
func (c *Client) ReportTask(ctx context.Context, id string, body ReportTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
ReportTask End a leased task with what its worker found
Takes a body of the `application/json` content type.
Corresponds with POST /api/v1/tasks/{id}/reports (the `ReportTask` operationId).
func (*Client) ReportTaskWithBody ¶
func (c *Client) ReportTaskWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ReportTaskWithBody End a leased task with what its worker found
Takes any type of body and a specified content type.
Corresponds with POST /api/v1/tasks/{id}/reports (the `ReportTask` operationId).
func (*Client) RetireRoutingRule ¶
func (c *Client) RetireRoutingRule(ctx context.Context, name string, body RetireRoutingRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
RetireRoutingRule Retire an accepted routing rule
Takes a body of the `application/json` content type.
Corresponds with POST /api/v1/routing-rules/{name}/retire (the `RetireRoutingRule` operationId).
func (*Client) RetireRoutingRuleWithBody ¶
func (c *Client) RetireRoutingRuleWithBody(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
RetireRoutingRuleWithBody Retire an accepted routing rule
Takes any type of body and a specified content type.
Corresponds with POST /api/v1/routing-rules/{name}/retire (the `RetireRoutingRule` operationId).
func (*Client) RetryTask ¶
func (c *Client) RetryTask(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
RetryTask Queue a failed task again
Corresponds with POST /api/v1/tasks/{id}/retries (the `RetryTask` operationId).
func (*Client) RunConnector ¶
func (c *Client) RunConnector(ctx context.Context, name string, params *RunConnectorParams, reqEditors ...RequestEditorFn) (*http.Response, error)
RunConnector Run a scheduled connector now
Corresponds with POST /api/v1/connectors/{name}/runs (the `RunConnector` operationId).
func (*Client) ShowConnector ¶
func (c *Client) ShowConnector(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
ShowConnector One connector in the set in force
Corresponds with GET /api/v1/connectors/{name} (the `ShowConnector` operationId).
func (*Client) ShowItem ¶
func (c *Client) ShowItem(ctx context.Context, key string, reqEditors ...RequestEditorFn) (*http.Response, error)
ShowItem One item with every record of it, or the item as a resource
Corresponds with GET /api/v1/items/{key} (the `ShowItem` operationId).
func (*Client) ShowItemParse ¶
func (c *Client) ShowItemParse(ctx context.Context, key string, params *ShowItemParseParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ShowItemParse The item's newest done parse, or the one that the query picks
Corresponds with GET /api/v1/items/{key}/parse (the `ShowItemParse` operationId).
func (*Client) ShowTaskParse ¶
func (c *Client) ShowTaskParse(ctx context.Context, id string, params *ShowTaskParseParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ShowTaskParse The newest done parse of the item whose task the caller leases
Corresponds with GET /api/v1/tasks/{id}/parse (the `ShowTaskParse` operationId).
func (*Client) ShowVersion ¶
func (c *Client) ShowVersion(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
ShowVersion The version of the serve that answers
Corresponds with GET /api/v1/version (the `ShowVersion` operationId).
type ClientInterface ¶
type ClientInterface interface {
// ListUnpairedBlobs Each blob that no row names, and each row whose bytes are gone
//
// Corresponds with GET /api/v1/blobs/unpaired (the `ListUnpairedBlobs` operationId).
ListUnpairedBlobs(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListConnectors Each connector in the set in force
//
// Corresponds with GET /api/v1/connectors (the `ListConnectors` operationId).
ListConnectors(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ShowConnector One connector in the set in force
//
// Corresponds with GET /api/v1/connectors/{name} (the `ShowConnector` operationId).
ShowConnector(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
// HoldConnector Hold a connector's model stages for a person
//
// Corresponds with POST /api/v1/connectors/{name}/hold (the `HoldConnector` operationId).
HoldConnector(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ReleaseConnector Lift a connector's hold and release its first fill
//
// Corresponds with POST /api/v1/connectors/{name}/release (the `ReleaseConnector` operationId).
ReleaseConnector(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
// RunConnector Run a scheduled connector now
//
// Corresponds with POST /api/v1/connectors/{name}/runs (the `RunConnector` operationId).
RunConnector(ctx context.Context, name string, params *RunConnectorParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ApplyDeclarationsWithBody Put a declaration set in force
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /api/v1/declarations (the `ApplyDeclarations` operationId).
ApplyDeclarationsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// ApplyDeclarations Put a declaration set in force
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /api/v1/declarations (the `ApplyDeclarations` operationId).
ApplyDeclarations(ctx context.Context, body ApplyDeclarationsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListGateTrust The trust ladder, and each quality gate family's standing on it
//
// Corresponds with GET /api/v1/gates/trust (the `ListGateTrust` operationId).
ListGateTrust(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// PromoteGateFamilyWithBody Promote a quality gate family a rung
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/v1/gates/trust/{family}/promote (the `PromoteGateFamily` operationId).
PromoteGateFamilyWithBody(ctx context.Context, family string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PromoteGateFamily Promote a quality gate family a rung
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/v1/gates/trust/{family}/promote (the `PromoteGateFamily` operationId).
PromoteGateFamily(ctx context.Context, family string, body PromoteGateFamilyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListItems A page of items, newest first
//
// Corresponds with GET /api/v1/items (the `ListItems` operationId).
ListItems(ctx context.Context, params *ListItemsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PushItemWithBody Land a link through a push connector. A memo's audio lands here too, as its body rather than JSON
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/v1/items (the `PushItem` operationId).
PushItemWithBody(ctx context.Context, params *PushItemParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PushItem Land a link through a push connector. A memo's audio lands here too, as its body rather than JSON
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/v1/items (the `PushItem` operationId).
PushItem(ctx context.Context, params *PushItemParams, body PushItemJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ShowItem One item with every record of it, or the item as a resource
//
// Corresponds with GET /api/v1/items/{key} (the `ShowItem` operationId).
ShowItem(ctx context.Context, key string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ReadItemComments Ask for the read of an item's top comments, and how it stands
//
// Corresponds with POST /api/v1/items/{key}/comments (the `ReadItemComments` operationId).
ReadItemComments(ctx context.Context, key string, reqEditors ...RequestEditorFn) (*http.Response, error)
// MarkItemWithBody Mark an item low-quality or read
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/v1/items/{key}/marks (the `MarkItem` operationId).
MarkItemWithBody(ctx context.Context, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// MarkItem Mark an item low-quality or read
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/v1/items/{key}/marks (the `MarkItem` operationId).
MarkItem(ctx context.Context, key string, body MarkItemJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ShowItemParse The item's newest done parse, or the one that the query picks
//
// Corresponds with GET /api/v1/items/{key}/parse (the `ShowItemParse` operationId).
ShowItemParse(ctx context.Context, key string, params *ShowItemParseParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ReplayStageWithBody Run a stage again over the items a replay selects, or estimate a model stage's replay
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/v1/replays (the `ReplayStage` operationId).
ReplayStageWithBody(ctx context.Context, params *ReplayStageParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// ReplayStage Run a stage again over the items a replay selects, or estimate a model stage's replay
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/v1/replays (the `ReplayStage` operationId).
ReplayStage(ctx context.Context, params *ReplayStageParams, body ReplayStageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListReview Each item that waits on a person, the longest waiting first
//
// Corresponds with GET /api/v1/review (the `ListReview` operationId).
ListReview(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ArchiveItemWithBody Keep an item on the personal side with no destination
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/v1/review/{key}/archive (the `ArchiveItem` operationId).
ArchiveItemWithBody(ctx context.Context, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// ArchiveItem Keep an item on the personal side with no destination
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/v1/review/{key}/archive (the `ArchiveItem` operationId).
ArchiveItem(ctx context.Context, key string, body ArchiveItemJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DropItemWithBody Drop an item from review
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/v1/review/{key}/drop (the `DropItem` operationId).
DropItemWithBody(ctx context.Context, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// DropItem Drop an item from review
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/v1/review/{key}/drop (the `DropItem` operationId).
DropItem(ctx context.Context, key string, body DropItemJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PlaceItemWithBody Place an item by a review choice or on a destination
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/v1/review/{key}/place (the `PlaceItem` operationId).
PlaceItemWithBody(ctx context.Context, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PlaceItem Place an item by a review choice or on a destination
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/v1/review/{key}/place (the `PlaceItem` operationId).
PlaceItem(ctx context.Context, key string, body PlaceItemJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListRoutingRules The newest version of each routing rule that a person accepted
//
// Corresponds with GET /api/v1/routing-rules (the `ListRoutingRules` operationId).
ListRoutingRules(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutRoutingRuleWithBody Write a version of an accepted routing rule
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /api/v1/routing-rules/{name} (the `PutRoutingRule` operationId).
PutRoutingRuleWithBody(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutRoutingRule Write a version of an accepted routing rule
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /api/v1/routing-rules/{name} (the `PutRoutingRule` operationId).
PutRoutingRule(ctx context.Context, name string, body PutRoutingRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// RetireRoutingRuleWithBody Retire an accepted routing rule
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/v1/routing-rules/{name}/retire (the `RetireRoutingRule` operationId).
RetireRoutingRuleWithBody(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// RetireRoutingRule Retire an accepted routing rule
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/v1/routing-rules/{name}/retire (the `RetireRoutingRule` operationId).
RetireRoutingRule(ctx context.Context, name string, body RetireRoutingRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListTasks The tasks in the states asked for, and the workers heard from
//
// Corresponds with GET /api/v1/tasks (the `ListTasks` operationId).
ListTasks(ctx context.Context, params *ListTasksParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ClaimTasksWithBody Lease the tasks that a worker's capabilities take
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/v1/tasks/claims (the `ClaimTasks` operationId).
ClaimTasksWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// ClaimTasks Lease the tasks that a worker's capabilities take
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/v1/tasks/claims (the `ClaimTasks` operationId).
ClaimTasks(ctx context.Context, body ClaimTasksJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// HeartbeatTaskWithBody Extend the lease that a worker holds on a task
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/v1/tasks/{id}/heartbeats (the `HeartbeatTask` operationId).
HeartbeatTaskWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// HeartbeatTask Extend the lease that a worker holds on a task
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/v1/tasks/{id}/heartbeats (the `HeartbeatTask` operationId).
HeartbeatTask(ctx context.Context, id string, body HeartbeatTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ShowTaskParse The newest done parse of the item whose task the caller leases
//
// Corresponds with GET /api/v1/tasks/{id}/parse (the `ShowTaskParse` operationId).
ShowTaskParse(ctx context.Context, id string, params *ShowTaskParseParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ReportTaskWithBody End a leased task with what its worker found
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/v1/tasks/{id}/reports (the `ReportTask` operationId).
ReportTaskWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// ReportTask End a leased task with what its worker found
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/v1/tasks/{id}/reports (the `ReportTask` operationId).
ReportTask(ctx context.Context, id string, body ReportTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// RetryTask Queue a failed task again
//
// Corresponds with POST /api/v1/tasks/{id}/retries (the `RetryTask` operationId).
RetryTask(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ShowVersion The version of the serve that answers
//
// Corresponds with GET /api/v1/version (the `ShowVersion` operationId).
ShowVersion(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) ApplyDeclarationsWithBodyWithResponse ¶
func (c *ClientWithResponses) ApplyDeclarationsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApplyDeclarationsResponse, error)
ApplyDeclarationsWithBodyWithResponse Put a declaration set in force
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/v1/declarations (the `ApplyDeclarations` operationId).
func (*ClientWithResponses) ApplyDeclarationsWithResponse ¶
func (c *ClientWithResponses) ApplyDeclarationsWithResponse(ctx context.Context, body ApplyDeclarationsJSONRequestBody, reqEditors ...RequestEditorFn) (*ApplyDeclarationsResponse, error)
ApplyDeclarationsWithResponse Put a declaration set in force
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/v1/declarations (the `ApplyDeclarations` operationId).
func (*ClientWithResponses) ArchiveItemWithBodyWithResponse ¶
func (c *ClientWithResponses) ArchiveItemWithBodyWithResponse(ctx context.Context, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ArchiveItemResponse, error)
ArchiveItemWithBodyWithResponse Keep an item on the personal side with no destination
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/review/{key}/archive (the `ArchiveItem` operationId).
func (*ClientWithResponses) ArchiveItemWithResponse ¶
func (c *ClientWithResponses) ArchiveItemWithResponse(ctx context.Context, key string, body ArchiveItemJSONRequestBody, reqEditors ...RequestEditorFn) (*ArchiveItemResponse, error)
ArchiveItemWithResponse Keep an item on the personal side with no destination
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/review/{key}/archive (the `ArchiveItem` operationId).
func (*ClientWithResponses) ClaimTasksWithBodyWithResponse ¶
func (c *ClientWithResponses) ClaimTasksWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ClaimTasksResponse, error)
ClaimTasksWithBodyWithResponse Lease the tasks that a worker's capabilities take
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/tasks/claims (the `ClaimTasks` operationId).
func (*ClientWithResponses) ClaimTasksWithResponse ¶
func (c *ClientWithResponses) ClaimTasksWithResponse(ctx context.Context, body ClaimTasksJSONRequestBody, reqEditors ...RequestEditorFn) (*ClaimTasksResponse, error)
ClaimTasksWithResponse Lease the tasks that a worker's capabilities take
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/tasks/claims (the `ClaimTasks` operationId).
func (*ClientWithResponses) DropItemWithBodyWithResponse ¶
func (c *ClientWithResponses) DropItemWithBodyWithResponse(ctx context.Context, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DropItemResponse, error)
DropItemWithBodyWithResponse Drop an item from review
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/review/{key}/drop (the `DropItem` operationId).
func (*ClientWithResponses) DropItemWithResponse ¶
func (c *ClientWithResponses) DropItemWithResponse(ctx context.Context, key string, body DropItemJSONRequestBody, reqEditors ...RequestEditorFn) (*DropItemResponse, error)
DropItemWithResponse Drop an item from review
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/review/{key}/drop (the `DropItem` operationId).
func (*ClientWithResponses) HeartbeatTaskWithBodyWithResponse ¶
func (c *ClientWithResponses) HeartbeatTaskWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*HeartbeatTaskResponse, error)
HeartbeatTaskWithBodyWithResponse Extend the lease that a worker holds on a task
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/tasks/{id}/heartbeats (the `HeartbeatTask` operationId).
func (*ClientWithResponses) HeartbeatTaskWithResponse ¶
func (c *ClientWithResponses) HeartbeatTaskWithResponse(ctx context.Context, id string, body HeartbeatTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*HeartbeatTaskResponse, error)
HeartbeatTaskWithResponse Extend the lease that a worker holds on a task
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/tasks/{id}/heartbeats (the `HeartbeatTask` operationId).
func (*ClientWithResponses) HoldConnectorWithResponse ¶
func (c *ClientWithResponses) HoldConnectorWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*HoldConnectorResponse, error)
HoldConnectorWithResponse Hold a connector's model stages for a person
Returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/connectors/{name}/hold (the `HoldConnector` operationId).
func (*ClientWithResponses) ListConnectorsWithResponse ¶
func (c *ClientWithResponses) ListConnectorsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListConnectorsResponse, error)
ListConnectorsWithResponse Each connector in the set in force
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v1/connectors (the `ListConnectors` operationId).
func (*ClientWithResponses) ListGateTrustWithResponse ¶
func (c *ClientWithResponses) ListGateTrustWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListGateTrustResponse, error)
ListGateTrustWithResponse The trust ladder, and each quality gate family's standing on it
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v1/gates/trust (the `ListGateTrust` operationId).
func (*ClientWithResponses) ListItemsWithResponse ¶
func (c *ClientWithResponses) ListItemsWithResponse(ctx context.Context, params *ListItemsParams, reqEditors ...RequestEditorFn) (*ListItemsResponse, error)
ListItemsWithResponse A page of items, newest first
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v1/items (the `ListItems` operationId).
func (*ClientWithResponses) ListReviewWithResponse ¶
func (c *ClientWithResponses) ListReviewWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListReviewResponse, error)
ListReviewWithResponse Each item that waits on a person, the longest waiting first
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v1/review (the `ListReview` operationId).
func (*ClientWithResponses) ListRoutingRulesWithResponse ¶
func (c *ClientWithResponses) ListRoutingRulesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListRoutingRulesResponse, error)
ListRoutingRulesWithResponse The newest version of each routing rule that a person accepted
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v1/routing-rules (the `ListRoutingRules` operationId).
func (*ClientWithResponses) ListTasksWithResponse ¶
func (c *ClientWithResponses) ListTasksWithResponse(ctx context.Context, params *ListTasksParams, reqEditors ...RequestEditorFn) (*ListTasksResponse, error)
ListTasksWithResponse The tasks in the states asked for, and the workers heard from
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v1/tasks (the `ListTasks` operationId).
func (*ClientWithResponses) ListUnpairedBlobsWithResponse ¶
func (c *ClientWithResponses) ListUnpairedBlobsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListUnpairedBlobsResponse, error)
ListUnpairedBlobsWithResponse Each blob that no row names, and each row whose bytes are gone
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v1/blobs/unpaired (the `ListUnpairedBlobs` operationId).
func (*ClientWithResponses) MarkItemWithBodyWithResponse ¶
func (c *ClientWithResponses) MarkItemWithBodyWithResponse(ctx context.Context, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MarkItemResponse, error)
MarkItemWithBodyWithResponse Mark an item low-quality or read
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/items/{key}/marks (the `MarkItem` operationId).
func (*ClientWithResponses) MarkItemWithResponse ¶
func (c *ClientWithResponses) MarkItemWithResponse(ctx context.Context, key string, body MarkItemJSONRequestBody, reqEditors ...RequestEditorFn) (*MarkItemResponse, error)
MarkItemWithResponse Mark an item low-quality or read
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/items/{key}/marks (the `MarkItem` operationId).
func (*ClientWithResponses) PlaceItemWithBodyWithResponse ¶
func (c *ClientWithResponses) PlaceItemWithBodyWithResponse(ctx context.Context, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PlaceItemResponse, error)
PlaceItemWithBodyWithResponse Place an item by a review choice or on a destination
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/review/{key}/place (the `PlaceItem` operationId).
func (*ClientWithResponses) PlaceItemWithResponse ¶
func (c *ClientWithResponses) PlaceItemWithResponse(ctx context.Context, key string, body PlaceItemJSONRequestBody, reqEditors ...RequestEditorFn) (*PlaceItemResponse, error)
PlaceItemWithResponse Place an item by a review choice or on a destination
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/review/{key}/place (the `PlaceItem` operationId).
func (*ClientWithResponses) PromoteGateFamilyWithBodyWithResponse ¶
func (c *ClientWithResponses) PromoteGateFamilyWithBodyWithResponse(ctx context.Context, family string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PromoteGateFamilyResponse, error)
PromoteGateFamilyWithBodyWithResponse Promote a quality gate family a rung
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/gates/trust/{family}/promote (the `PromoteGateFamily` operationId).
func (*ClientWithResponses) PromoteGateFamilyWithResponse ¶
func (c *ClientWithResponses) PromoteGateFamilyWithResponse(ctx context.Context, family string, body PromoteGateFamilyJSONRequestBody, reqEditors ...RequestEditorFn) (*PromoteGateFamilyResponse, error)
PromoteGateFamilyWithResponse Promote a quality gate family a rung
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/gates/trust/{family}/promote (the `PromoteGateFamily` operationId).
func (*ClientWithResponses) PushItemWithBodyWithResponse ¶
func (c *ClientWithResponses) PushItemWithBodyWithResponse(ctx context.Context, params *PushItemParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PushItemResponse, error)
PushItemWithBodyWithResponse Land a link through a push connector. A memo's audio lands here too, as its body rather than JSON
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/items (the `PushItem` operationId).
func (*ClientWithResponses) PushItemWithResponse ¶
func (c *ClientWithResponses) PushItemWithResponse(ctx context.Context, params *PushItemParams, body PushItemJSONRequestBody, reqEditors ...RequestEditorFn) (*PushItemResponse, error)
PushItemWithResponse Land a link through a push connector. A memo's audio lands here too, as its body rather than JSON
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/items (the `PushItem` operationId).
func (*ClientWithResponses) PutRoutingRuleWithBodyWithResponse ¶
func (c *ClientWithResponses) PutRoutingRuleWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutRoutingRuleResponse, error)
PutRoutingRuleWithBodyWithResponse Write a version of an accepted routing rule
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/v1/routing-rules/{name} (the `PutRoutingRule` operationId).
func (*ClientWithResponses) PutRoutingRuleWithResponse ¶
func (c *ClientWithResponses) PutRoutingRuleWithResponse(ctx context.Context, name string, body PutRoutingRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*PutRoutingRuleResponse, error)
PutRoutingRuleWithResponse Write a version of an accepted routing rule
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/v1/routing-rules/{name} (the `PutRoutingRule` operationId).
func (*ClientWithResponses) ReadItemCommentsWithResponse ¶
func (c *ClientWithResponses) ReadItemCommentsWithResponse(ctx context.Context, key string, reqEditors ...RequestEditorFn) (*ReadItemCommentsResponse, error)
ReadItemCommentsWithResponse Ask for the read of an item's top comments, and how it stands
Returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/items/{key}/comments (the `ReadItemComments` operationId).
func (*ClientWithResponses) ReleaseConnectorWithResponse ¶
func (c *ClientWithResponses) ReleaseConnectorWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*ReleaseConnectorResponse, error)
ReleaseConnectorWithResponse Lift a connector's hold and release its first fill
Returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/connectors/{name}/release (the `ReleaseConnector` operationId).
func (*ClientWithResponses) ReplayStageWithBodyWithResponse ¶
func (c *ClientWithResponses) ReplayStageWithBodyWithResponse(ctx context.Context, params *ReplayStageParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReplayStageResponse, error)
ReplayStageWithBodyWithResponse Run a stage again over the items a replay selects, or estimate a model stage's replay
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/replays (the `ReplayStage` operationId).
func (*ClientWithResponses) ReplayStageWithResponse ¶
func (c *ClientWithResponses) ReplayStageWithResponse(ctx context.Context, params *ReplayStageParams, body ReplayStageJSONRequestBody, reqEditors ...RequestEditorFn) (*ReplayStageResponse, error)
ReplayStageWithResponse Run a stage again over the items a replay selects, or estimate a model stage's replay
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/replays (the `ReplayStage` operationId).
func (*ClientWithResponses) ReportTaskWithBodyWithResponse ¶
func (c *ClientWithResponses) ReportTaskWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReportTaskResponse, error)
ReportTaskWithBodyWithResponse End a leased task with what its worker found
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/tasks/{id}/reports (the `ReportTask` operationId).
func (*ClientWithResponses) ReportTaskWithResponse ¶
func (c *ClientWithResponses) ReportTaskWithResponse(ctx context.Context, id string, body ReportTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*ReportTaskResponse, error)
ReportTaskWithResponse End a leased task with what its worker found
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/tasks/{id}/reports (the `ReportTask` operationId).
func (*ClientWithResponses) RetireRoutingRuleWithBodyWithResponse ¶
func (c *ClientWithResponses) RetireRoutingRuleWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RetireRoutingRuleResponse, error)
RetireRoutingRuleWithBodyWithResponse Retire an accepted routing rule
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/routing-rules/{name}/retire (the `RetireRoutingRule` operationId).
func (*ClientWithResponses) RetireRoutingRuleWithResponse ¶
func (c *ClientWithResponses) RetireRoutingRuleWithResponse(ctx context.Context, name string, body RetireRoutingRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*RetireRoutingRuleResponse, error)
RetireRoutingRuleWithResponse Retire an accepted routing rule
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/routing-rules/{name}/retire (the `RetireRoutingRule` operationId).
func (*ClientWithResponses) RetryTaskWithResponse ¶
func (c *ClientWithResponses) RetryTaskWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RetryTaskResponse, error)
RetryTaskWithResponse Queue a failed task again
Returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/tasks/{id}/retries (the `RetryTask` operationId).
func (*ClientWithResponses) RunConnectorWithResponse ¶
func (c *ClientWithResponses) RunConnectorWithResponse(ctx context.Context, name string, params *RunConnectorParams, reqEditors ...RequestEditorFn) (*RunConnectorResponse, error)
RunConnectorWithResponse Run a scheduled connector now
Returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/connectors/{name}/runs (the `RunConnector` operationId).
func (*ClientWithResponses) ShowConnectorWithResponse ¶
func (c *ClientWithResponses) ShowConnectorWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*ShowConnectorResponse, error)
ShowConnectorWithResponse One connector in the set in force
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v1/connectors/{name} (the `ShowConnector` operationId).
func (*ClientWithResponses) ShowItemParseWithResponse ¶
func (c *ClientWithResponses) ShowItemParseWithResponse(ctx context.Context, key string, params *ShowItemParseParams, reqEditors ...RequestEditorFn) (*ShowItemParseResponse, error)
ShowItemParseWithResponse The item's newest done parse, or the one that the query picks
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v1/items/{key}/parse (the `ShowItemParse` operationId).
func (*ClientWithResponses) ShowItemWithResponse ¶
func (c *ClientWithResponses) ShowItemWithResponse(ctx context.Context, key string, reqEditors ...RequestEditorFn) (*ShowItemResponse, error)
ShowItemWithResponse One item with every record of it, or the item as a resource
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v1/items/{key} (the `ShowItem` operationId).
func (*ClientWithResponses) ShowTaskParseWithResponse ¶
func (c *ClientWithResponses) ShowTaskParseWithResponse(ctx context.Context, id string, params *ShowTaskParseParams, reqEditors ...RequestEditorFn) (*ShowTaskParseResponse, error)
ShowTaskParseWithResponse The newest done parse of the item whose task the caller leases
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v1/tasks/{id}/parse (the `ShowTaskParse` operationId).
func (*ClientWithResponses) ShowVersionWithResponse ¶
func (c *ClientWithResponses) ShowVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ShowVersionResponse, error)
ShowVersionWithResponse The version of the serve that answers
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v1/version (the `ShowVersion` operationId).
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// ListUnpairedBlobsWithResponse Each blob that no row names, and each row whose bytes are gone
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v1/blobs/unpaired (the `ListUnpairedBlobs` operationId).
ListUnpairedBlobsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListUnpairedBlobsResponse, error)
// ListConnectorsWithResponse Each connector in the set in force
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v1/connectors (the `ListConnectors` operationId).
ListConnectorsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListConnectorsResponse, error)
// ShowConnectorWithResponse One connector in the set in force
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v1/connectors/{name} (the `ShowConnector` operationId).
ShowConnectorWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*ShowConnectorResponse, error)
// HoldConnectorWithResponse Hold a connector's model stages for a person
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/connectors/{name}/hold (the `HoldConnector` operationId).
HoldConnectorWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*HoldConnectorResponse, error)
// ReleaseConnectorWithResponse Lift a connector's hold and release its first fill
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/connectors/{name}/release (the `ReleaseConnector` operationId).
ReleaseConnectorWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*ReleaseConnectorResponse, error)
// RunConnectorWithResponse Run a scheduled connector now
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/connectors/{name}/runs (the `RunConnector` operationId).
RunConnectorWithResponse(ctx context.Context, name string, params *RunConnectorParams, reqEditors ...RequestEditorFn) (*RunConnectorResponse, error)
// ApplyDeclarationsWithBodyWithResponse Put a declaration set in force
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/v1/declarations (the `ApplyDeclarations` operationId).
ApplyDeclarationsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApplyDeclarationsResponse, error)
// ApplyDeclarationsWithResponse Put a declaration set in force
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/v1/declarations (the `ApplyDeclarations` operationId).
ApplyDeclarationsWithResponse(ctx context.Context, body ApplyDeclarationsJSONRequestBody, reqEditors ...RequestEditorFn) (*ApplyDeclarationsResponse, error)
// ListGateTrustWithResponse The trust ladder, and each quality gate family's standing on it
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v1/gates/trust (the `ListGateTrust` operationId).
ListGateTrustWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListGateTrustResponse, error)
// PromoteGateFamilyWithBodyWithResponse Promote a quality gate family a rung
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/gates/trust/{family}/promote (the `PromoteGateFamily` operationId).
PromoteGateFamilyWithBodyWithResponse(ctx context.Context, family string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PromoteGateFamilyResponse, error)
// PromoteGateFamilyWithResponse Promote a quality gate family a rung
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/gates/trust/{family}/promote (the `PromoteGateFamily` operationId).
PromoteGateFamilyWithResponse(ctx context.Context, family string, body PromoteGateFamilyJSONRequestBody, reqEditors ...RequestEditorFn) (*PromoteGateFamilyResponse, error)
// ListItemsWithResponse A page of items, newest first
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v1/items (the `ListItems` operationId).
ListItemsWithResponse(ctx context.Context, params *ListItemsParams, reqEditors ...RequestEditorFn) (*ListItemsResponse, error)
// PushItemWithBodyWithResponse Land a link through a push connector. A memo's audio lands here too, as its body rather than JSON
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/items (the `PushItem` operationId).
PushItemWithBodyWithResponse(ctx context.Context, params *PushItemParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PushItemResponse, error)
// PushItemWithResponse Land a link through a push connector. A memo's audio lands here too, as its body rather than JSON
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/items (the `PushItem` operationId).
PushItemWithResponse(ctx context.Context, params *PushItemParams, body PushItemJSONRequestBody, reqEditors ...RequestEditorFn) (*PushItemResponse, error)
// ShowItemWithResponse One item with every record of it, or the item as a resource
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v1/items/{key} (the `ShowItem` operationId).
ShowItemWithResponse(ctx context.Context, key string, reqEditors ...RequestEditorFn) (*ShowItemResponse, error)
// ReadItemCommentsWithResponse Ask for the read of an item's top comments, and how it stands
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/items/{key}/comments (the `ReadItemComments` operationId).
ReadItemCommentsWithResponse(ctx context.Context, key string, reqEditors ...RequestEditorFn) (*ReadItemCommentsResponse, error)
// MarkItemWithBodyWithResponse Mark an item low-quality or read
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/items/{key}/marks (the `MarkItem` operationId).
MarkItemWithBodyWithResponse(ctx context.Context, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MarkItemResponse, error)
// MarkItemWithResponse Mark an item low-quality or read
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/items/{key}/marks (the `MarkItem` operationId).
MarkItemWithResponse(ctx context.Context, key string, body MarkItemJSONRequestBody, reqEditors ...RequestEditorFn) (*MarkItemResponse, error)
// ShowItemParseWithResponse The item's newest done parse, or the one that the query picks
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v1/items/{key}/parse (the `ShowItemParse` operationId).
ShowItemParseWithResponse(ctx context.Context, key string, params *ShowItemParseParams, reqEditors ...RequestEditorFn) (*ShowItemParseResponse, error)
// ReplayStageWithBodyWithResponse Run a stage again over the items a replay selects, or estimate a model stage's replay
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/replays (the `ReplayStage` operationId).
ReplayStageWithBodyWithResponse(ctx context.Context, params *ReplayStageParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReplayStageResponse, error)
// ReplayStageWithResponse Run a stage again over the items a replay selects, or estimate a model stage's replay
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/replays (the `ReplayStage` operationId).
ReplayStageWithResponse(ctx context.Context, params *ReplayStageParams, body ReplayStageJSONRequestBody, reqEditors ...RequestEditorFn) (*ReplayStageResponse, error)
// ListReviewWithResponse Each item that waits on a person, the longest waiting first
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v1/review (the `ListReview` operationId).
ListReviewWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListReviewResponse, error)
// ArchiveItemWithBodyWithResponse Keep an item on the personal side with no destination
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/review/{key}/archive (the `ArchiveItem` operationId).
ArchiveItemWithBodyWithResponse(ctx context.Context, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ArchiveItemResponse, error)
// ArchiveItemWithResponse Keep an item on the personal side with no destination
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/review/{key}/archive (the `ArchiveItem` operationId).
ArchiveItemWithResponse(ctx context.Context, key string, body ArchiveItemJSONRequestBody, reqEditors ...RequestEditorFn) (*ArchiveItemResponse, error)
// DropItemWithBodyWithResponse Drop an item from review
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/review/{key}/drop (the `DropItem` operationId).
DropItemWithBodyWithResponse(ctx context.Context, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DropItemResponse, error)
// DropItemWithResponse Drop an item from review
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/review/{key}/drop (the `DropItem` operationId).
DropItemWithResponse(ctx context.Context, key string, body DropItemJSONRequestBody, reqEditors ...RequestEditorFn) (*DropItemResponse, error)
// PlaceItemWithBodyWithResponse Place an item by a review choice or on a destination
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/review/{key}/place (the `PlaceItem` operationId).
PlaceItemWithBodyWithResponse(ctx context.Context, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PlaceItemResponse, error)
// PlaceItemWithResponse Place an item by a review choice or on a destination
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/review/{key}/place (the `PlaceItem` operationId).
PlaceItemWithResponse(ctx context.Context, key string, body PlaceItemJSONRequestBody, reqEditors ...RequestEditorFn) (*PlaceItemResponse, error)
// ListRoutingRulesWithResponse The newest version of each routing rule that a person accepted
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v1/routing-rules (the `ListRoutingRules` operationId).
ListRoutingRulesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListRoutingRulesResponse, error)
// PutRoutingRuleWithBodyWithResponse Write a version of an accepted routing rule
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/v1/routing-rules/{name} (the `PutRoutingRule` operationId).
PutRoutingRuleWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutRoutingRuleResponse, error)
// PutRoutingRuleWithResponse Write a version of an accepted routing rule
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/v1/routing-rules/{name} (the `PutRoutingRule` operationId).
PutRoutingRuleWithResponse(ctx context.Context, name string, body PutRoutingRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*PutRoutingRuleResponse, error)
// RetireRoutingRuleWithBodyWithResponse Retire an accepted routing rule
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/routing-rules/{name}/retire (the `RetireRoutingRule` operationId).
RetireRoutingRuleWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RetireRoutingRuleResponse, error)
// RetireRoutingRuleWithResponse Retire an accepted routing rule
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/routing-rules/{name}/retire (the `RetireRoutingRule` operationId).
RetireRoutingRuleWithResponse(ctx context.Context, name string, body RetireRoutingRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*RetireRoutingRuleResponse, error)
// ListTasksWithResponse The tasks in the states asked for, and the workers heard from
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v1/tasks (the `ListTasks` operationId).
ListTasksWithResponse(ctx context.Context, params *ListTasksParams, reqEditors ...RequestEditorFn) (*ListTasksResponse, error)
// ClaimTasksWithBodyWithResponse Lease the tasks that a worker's capabilities take
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/tasks/claims (the `ClaimTasks` operationId).
ClaimTasksWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ClaimTasksResponse, error)
// ClaimTasksWithResponse Lease the tasks that a worker's capabilities take
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/tasks/claims (the `ClaimTasks` operationId).
ClaimTasksWithResponse(ctx context.Context, body ClaimTasksJSONRequestBody, reqEditors ...RequestEditorFn) (*ClaimTasksResponse, error)
// HeartbeatTaskWithBodyWithResponse Extend the lease that a worker holds on a task
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/tasks/{id}/heartbeats (the `HeartbeatTask` operationId).
HeartbeatTaskWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*HeartbeatTaskResponse, error)
// HeartbeatTaskWithResponse Extend the lease that a worker holds on a task
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/tasks/{id}/heartbeats (the `HeartbeatTask` operationId).
HeartbeatTaskWithResponse(ctx context.Context, id string, body HeartbeatTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*HeartbeatTaskResponse, error)
// ShowTaskParseWithResponse The newest done parse of the item whose task the caller leases
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v1/tasks/{id}/parse (the `ShowTaskParse` operationId).
ShowTaskParseWithResponse(ctx context.Context, id string, params *ShowTaskParseParams, reqEditors ...RequestEditorFn) (*ShowTaskParseResponse, error)
// ReportTaskWithBodyWithResponse End a leased task with what its worker found
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/tasks/{id}/reports (the `ReportTask` operationId).
ReportTaskWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReportTaskResponse, error)
// ReportTaskWithResponse End a leased task with what its worker found
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/tasks/{id}/reports (the `ReportTask` operationId).
ReportTaskWithResponse(ctx context.Context, id string, body ReportTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*ReportTaskResponse, error)
// RetryTaskWithResponse Queue a failed task again
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/tasks/{id}/retries (the `RetryTask` operationId).
RetryTaskWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RetryTaskResponse, error)
// ShowVersionWithResponse The version of the serve that answers
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v1/version (the `ShowVersion` operationId).
ShowVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ShowVersionResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type Condition ¶
type Condition struct {
Message *string `json:"message,omitempty"`
Reason string `json:"reason"`
Status string `json:"status"`
Type string `json:"type"`
}
Condition defines model for Condition.
type Connector ¶
type Connector struct {
// AfterLanding AfterLanding is a poll's AfterLandingDelete, which removes each item
// from its source once it has landed. Left out, the source keeps it.
AfterLanding *string `json:"after_landing,omitempty"`
// Contract Contract names the contract the source's payloads hold to.
Contract *string `json:"contract,omitempty"`
// DueInterval DueInterval is how long after its last delivery a drop or a push is
// due again, such as 30d.
DueInterval *string `json:"due_interval,omitempty"`
// Format Format names the drop handler that splits a drop connector's file into
// items, as RegisterDropHandler registered it. Left out, a dropped file
// lands as one item.
Format *string `json:"format,omitempty"`
// Freshness Freshness is how long a poll or a folder may go without a delivery
// before it reads overdue.
Freshness *string `json:"freshness,omitempty"`
Mode string `json:"mode"`
Name string `json:"name"`
Path *string `json:"path,omitempty"`
// PersonSorts PersonSorts keeps the quality gate's side guess from placing an item
// the connector sighted, which then waits in review with the guess beside
// it. A tag or a rule still places it first.
PersonSorts *bool `json:"person_sorts,omitempty"`
ReadRule *string `json:"read_rule,omitempty"`
// Root Root names the [serve.homes] root a folder connector reads, and Path
// the directory below it.
Root *string `json:"root,omitempty"`
// Schedule Schedule is a poll's or a folder's cron expression, or a poll's
// ScheduleOnce.
Schedule *string `json:"schedule,omitempty"`
// Source Source names the external feed the connector reads, as the data
// catalog names it.
Source string `json:"source"`
// SourceParameters SourceParameters are the source's own settings for this connector, such
// as the playlist that a video source reads. The source names the keys it
// takes and checks their values through its Source's Rules.
SourceParameters *map[string]string `json:"source_parameters,omitempty"`
Tags *[]string `json:"tags"`
// Zone Zone is who writes what the connector carries, as its items' default.
// A push connector names none, because the route sets each item's zone by
// what the push carries: a link lands outside, and a memo as the owner's.
Zone *string `json:"zone,omitempty"`
}
Connector Connector is one connector's declaration, as connectors/<name>.yml holds it: schemas/connector.schema.json.
type ConnectorView ¶
type ConnectorView struct {
AppliedCommit string `json:"applied_commit"`
DueAt string `json:"due_at"`
DueInterval *string `json:"due_interval"`
Failed int `json:"failed"`
Failures int `json:"failures"`
// FinishedTS FinishedTS is when a connector scheduled once ran a poll that ended
// done, after which the scheduler never runs it, and null until then.
FinishedTS *string `json:"finished_ts"`
// FirstFill FirstFill is answered on one connector alone.
FirstFill *FirstFillView `json:"first_fill,omitempty"`
Freshness *string `json:"freshness"`
// HeldTasks HeldTasks counts the queued tasks held by the connector, through a
// person's hold or its first fill.
HeldTasks int `json:"held_tasks"`
// HeldTS HeldTS is when a person held the connector, and HoldDecidedBy who held
// it. Both are null while it is not held.
HeldTS *string `json:"held_ts"`
HoldDecidedBy *string `json:"hold_decided_by"`
Items int `json:"items"`
LastDeliveryTS *string `json:"last_delivery_ts"`
// LastError LastError is why the last run failed, null since one succeeded, and
// Failures counts the failed runs since then.
LastError *string `json:"last_error"`
LastErrorTS *string `json:"last_error_ts"`
LastRunTS *string `json:"last_run_ts"`
Mode string `json:"mode"`
Name string `json:"name"`
Overdue bool `json:"overdue"`
// OverdueSince OverdueSince is when the connector went overdue, and null while it is not.
OverdueSince *string `json:"overdue_since"`
Review int `json:"review"`
Schedule *string `json:"schedule"`
Source string `json:"source"`
Tags *[]string `json:"tags"`
Waiting int `json:"waiting"`
// Zone Zone is nil for a push connector, whatever the stored set holds, because
// the route sets each item's zone by what the push carries: a link lands
// outside, and a memo as the owner's.
Zone *string `json:"zone"`
}
ConnectorView ConnectorView is one applied connector, its counts and its due time.
type ConnectorsAnswer ¶
type ConnectorsAnswer struct {
// AppliedCommit AppliedCommit is the commit of the set in force, and null where no set
// has been applied.
AppliedCommit *string `json:"applied_commit"`
Connectors *[]ConnectorView `json:"connectors"`
SchemaVersion int `json:"schema_version"`
}
ConnectorsAnswer ConnectorsAnswer is what GET /api/v1/connectors answers: schemas/connectors-list.schema.json.
type DecidedView ¶
type DecidedView struct {
Cause string `json:"cause"`
Confidence *float64 `json:"confidence"`
DecidedBy string `json:"decided_by"`
DecidedTS string `json:"decided_ts"`
Decider string `json:"decider"`
Destination *string `json:"destination"`
Gate string `json:"gate"`
Playlist *string `json:"playlist"`
Rule *string `json:"rule"`
Verdict string `json:"verdict"`
}
DecidedView DecidedView is the decision that left an item at its outcome: its gate and verdict, who made it, as store.Decision.Decider names them and as decided_by spells it, the rule's name where a rule made it, why, the destination and playlist it placed the item on, and when.
type DecisionView ¶
type DecisionView struct {
Cause string `json:"cause"`
ClientID *string `json:"client_id"`
Confidence *float64 `json:"confidence"`
DecidedAfterMs *int `json:"decided_after_ms"`
DecidedBy string `json:"decided_by"`
DecidedTS string `json:"decided_ts"`
Destination *string `json:"destination"`
Gate string `json:"gate"`
Lens *string `json:"lens"`
LikedMatch *RuleMatch `json:"liked_match"`
Note *string `json:"note"`
Playlist *string `json:"playlist"`
Presented *Presented `json:"presented"`
Verdict string `json:"verdict"`
}
DecisionView DecisionView is one gate's decision.
type DeclarationsAnswer ¶
type DeclarationsAnswer struct {
AppliedBy string `json:"applied_by"`
AppliedTS string `json:"applied_ts"`
Commit string `json:"commit"`
Connectors int `json:"connectors"`
Destinations int `json:"destinations"`
RoutingRules int `json:"routing_rules"`
SchemaVersion int `json:"schema_version"`
Unchanged bool `json:"unchanged"`
}
DeclarationsAnswer DeclarationsAnswer is what an apply answers: schemas/declarations-applied.schema.json.
type DeclarationsRequest ¶
type DeclarationsRequest struct {
Commit string `json:"commit"`
Connectors *[]Connector `json:"connectors"`
Destinations *[]Destination `json:"destinations"`
// Replaces Replaces is the commit the caller saw in force, and null where it saw
// none. An apply that replaces another commit is refused.
Replaces *string `json:"replaces"`
RoutingRules *[]RoutingRule `json:"routing_rules"`
}
DeclarationsRequest DeclarationsRequest is what PUT /api/v1/declarations reads: schemas/declarations.schema.json.
type DeliveryView ¶
type DeliveryView struct {
Attempts int `json:"attempts"`
Destination string `json:"destination"`
DestinationID *string `json:"destination_id"`
LastError *string `json:"last_error"`
Outcome string `json:"outcome"`
Playlist *string `json:"playlist"`
// UnclaimedCapability UnclaimedCapability is the capability of the delivery's queued task
// where no worker heard from lately holds it, and null otherwise.
UnclaimedCapability *string `json:"unclaimed_capability"`
}
DeliveryView DeliveryView is one delivery to one destination.
type Destination ¶
type Destination struct {
// DefaultForSide DefaultForSide makes this the destination of an item placed on its side
// with no destination named, as the quality gate's guess places one.
DefaultForSide *bool `json:"default_for_side,omitempty"`
// Deliverer Deliverer names the deliverer that writes each item placed here, as
// deliver.Register registered it. Left out, nothing is delivered, as for
// a destination whose reader pulls its items itself.
Deliverer *string `json:"deliverer,omitempty"`
Name string `json:"name"`
// PushOnly PushOnly makes this a destination that only a push places an item at,
// such as one whose program a person's push hands the item to. Review
// offers it nowhere, and no tag, rule or side default names it.
PushOnly *bool `json:"push_only,omitempty"`
// Side Side is personal or fleet, and empty for a destination on neither,
// such as one that drops what it takes.
Side *string `json:"side,omitempty"`
Tags *[]string `json:"tags"`
}
Destination Destination names a place that delivery writes items to, the side it takes, and the tags that place an item there.
type DropItem200JSONResponse ¶
type DropItem200JSONResponse PlacementAnswer
func (DropItem200JSONResponse) VisitDropItemResponse ¶
func (response DropItem200JSONResponse) VisitDropItemResponse(w http.ResponseWriter) error
type DropItemJSONRequestBody ¶
type DropItemJSONRequestBody = DropRequest
DropItemJSONRequestBody defines body for DropItem for application/json ContentType.
type DropItemRequestObject ¶
type DropItemRequestObject struct {
Key string `json:"key"`
Body *DropItemJSONRequestBody
}
type DropItemResponse ¶
type DropItemResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PlacementAnswer
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Refusal
}
func ParseDropItemResponse ¶
func ParseDropItemResponse(rsp *http.Response) (*DropItemResponse, error)
ParseDropItemResponse parses an HTTP response from a DropItemWithResponse call
func (DropItemResponse) Bytes ¶
func (r DropItemResponse) Bytes() []byte
Bytes is a convenience method to retrieve the raw bytes from the HTTP response
func (DropItemResponse) ContentType ¶
func (r DropItemResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DropItemResponse) GetBody ¶
func (r DropItemResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DropItemResponse) GetJSON200 ¶
func (r DropItemResponse) GetJSON200() *PlacementAnswer
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (DropItemResponse) GetJSONDefault ¶
func (r DropItemResponse) GetJSONDefault() *Refusal
GetJSONDefault returns the response for an HTTP default `application/json` response
func (DropItemResponse) Status ¶
func (r DropItemResponse) Status() string
Status returns HTTPResponse.Status
func (DropItemResponse) StatusCode ¶
func (r DropItemResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DropItemResponseObject ¶
type DropItemResponseObject interface {
VisitDropItemResponse(w http.ResponseWriter) error
}
type DropItemdefaultJSONResponse ¶
func (DropItemdefaultJSONResponse) VisitDropItemResponse ¶
func (response DropItemdefaultJSONResponse) VisitDropItemResponse(w http.ResponseWriter) error
type DropRequest ¶
type DropRequest struct {
Cause *string `json:"cause,omitempty"`
DecidedAfterMs *int `json:"decided_after_ms,omitempty"`
Login *string `json:"login,omitempty"`
Note *string `json:"note,omitempty"`
// Presented Presented is a review card as a person saw it when they decided: the sort and grouping in force, the card's rank under that sort and its position among the rows shown, how many rows were shown, the quality gate's quality, fit, verdict and side guess with their confidences, and when the card was drawn.
Presented *Presented `json:"presented,omitempty"`
}
DropRequest DropRequest drops an item, which keeps its row.
type Finding ¶
type Finding struct {
Length int `json:"length"`
Offset int `json:"offset"`
Rule string `json:"rule"`
Severity string `json:"severity"`
Unit *int `json:"unit"`
}
Finding Finding is one scanner rule's match, without its span: where it starts and how many bytes it covers.
type FindingView ¶
type FindingView struct {
Length int `json:"length"`
Offset int `json:"offset"`
Rule string `json:"rule"`
Severity string `json:"severity"`
Span *string `json:"span"`
Unit *int `json:"unit"`
}
FindingView FindingView is one scanner finding and the text it matched.
type FirstFillView ¶
type FirstFillView struct {
Held int `json:"held"`
ItemKey *string `json:"item_key"`
State string `json:"state"`
Tokens *map[string]Tokens `json:"tokens"`
}
FirstFillView FirstFillView is a connector's first fill: its state, the one item it ran end to end, the items held behind it, and that item's tokens by model stage.
type GateTrust ¶
type GateTrust struct {
AsksPromotion bool `json:"asks_promotion"`
Connector string `json:"connector"`
CreatedTS string `json:"created_ts"`
Effort string `json:"effort"`
Family string `json:"family"`
// LastChange LastChange names what moved the row last, and LastItemKey the item it
// moved on, where one did.
LastChange string `json:"last_change"`
LastItemKey *string `json:"last_item_key"`
// Model Model and Effort are what answered under the family, as the family's
// name holds them.
Model string `json:"model"`
// PromotedBy PromotedBy is person:<login> once a person said yes, and nil before.
PromotedBy *string `json:"promoted_by"`
PromotedClientID *string `json:"promoted_client_id"`
PromotedTS *string `json:"promoted_ts"`
PromptVersion string `json:"prompt_version"`
Run int `json:"run"`
Rung int `json:"rung"`
StraightRun int `json:"straight_run"`
Threshold int `json:"threshold"`
UpdatedTS string `json:"updated_ts"`
}
GateTrust GateTrust is one family's standing on the trust ladder, as gate_trust holds it.
type GateTrustAnswer ¶
type GateTrustAnswer struct {
Families *[]GateTrust `json:"families"`
// Rule TrustRule is the ladder that every family climbs, as a reader shows it.
Rule TrustRule `json:"rule"`
SchemaVersion int `json:"schema_version"`
}
GateTrustAnswer GateTrustAnswer is what GET /api/v1/gates/trust answers: schemas/gate-trust-list.schema.json.
type HeartbeatRequest ¶
HeartbeatRequest HeartbeatRequest extends a lease by LeaseSeconds from now.
type HeartbeatTask200JSONResponse ¶
type HeartbeatTask200JSONResponse TaskView
func (HeartbeatTask200JSONResponse) VisitHeartbeatTaskResponse ¶
func (response HeartbeatTask200JSONResponse) VisitHeartbeatTaskResponse(w http.ResponseWriter) error
type HeartbeatTaskJSONRequestBody ¶
type HeartbeatTaskJSONRequestBody = HeartbeatRequest
HeartbeatTaskJSONRequestBody defines body for HeartbeatTask for application/json ContentType.
type HeartbeatTaskRequestObject ¶
type HeartbeatTaskRequestObject struct {
ID string `json:"id"`
Body *HeartbeatTaskJSONRequestBody
}
type HeartbeatTaskResponse ¶
type HeartbeatTaskResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *TaskView
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Refusal
}
func ParseHeartbeatTaskResponse ¶
func ParseHeartbeatTaskResponse(rsp *http.Response) (*HeartbeatTaskResponse, error)
ParseHeartbeatTaskResponse parses an HTTP response from a HeartbeatTaskWithResponse call
func (HeartbeatTaskResponse) Bytes ¶
func (r HeartbeatTaskResponse) Bytes() []byte
Bytes is a convenience method to retrieve the raw bytes from the HTTP response
func (HeartbeatTaskResponse) ContentType ¶
func (r HeartbeatTaskResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (HeartbeatTaskResponse) GetBody ¶
func (r HeartbeatTaskResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (HeartbeatTaskResponse) GetJSON200 ¶
func (r HeartbeatTaskResponse) GetJSON200() *TaskView
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (HeartbeatTaskResponse) GetJSONDefault ¶
func (r HeartbeatTaskResponse) GetJSONDefault() *Refusal
GetJSONDefault returns the response for an HTTP default `application/json` response
func (HeartbeatTaskResponse) Status ¶
func (r HeartbeatTaskResponse) Status() string
Status returns HTTPResponse.Status
func (HeartbeatTaskResponse) StatusCode ¶
func (r HeartbeatTaskResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HeartbeatTaskResponseObject ¶
type HeartbeatTaskResponseObject interface {
VisitHeartbeatTaskResponse(w http.ResponseWriter) error
}
type HeartbeatTaskdefaultJSONResponse ¶
func (HeartbeatTaskdefaultJSONResponse) VisitHeartbeatTaskResponse ¶
func (response HeartbeatTaskdefaultJSONResponse) VisitHeartbeatTaskResponse(w http.ResponseWriter) error
type HoldAnswer ¶
type HoldAnswer struct {
Connector string `json:"connector"`
// Held Held counts the queued tasks held by the connector now.
Held int `json:"held"`
// HeldTS HeldTS and HoldDecidedBy are the first hold's, which a second hold
// keeps.
HeldTS string `json:"held_ts"`
HoldDecidedBy string `json:"hold_decided_by"`
SchemaVersion int `json:"schema_version"`
}
HoldAnswer HoldAnswer is what POST /api/v1/connectors/{name}/hold answers: schemas/connector-hold.schema.json.
type HoldConnector200JSONResponse ¶
type HoldConnector200JSONResponse HoldAnswer
func (HoldConnector200JSONResponse) VisitHoldConnectorResponse ¶
func (response HoldConnector200JSONResponse) VisitHoldConnectorResponse(w http.ResponseWriter) error
type HoldConnectorRequestObject ¶
type HoldConnectorRequestObject struct {
Name string `json:"name"`
}
type HoldConnectorResponse ¶
type HoldConnectorResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *HoldAnswer
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Refusal
}
func ParseHoldConnectorResponse ¶
func ParseHoldConnectorResponse(rsp *http.Response) (*HoldConnectorResponse, error)
ParseHoldConnectorResponse parses an HTTP response from a HoldConnectorWithResponse call
func (HoldConnectorResponse) Bytes ¶
func (r HoldConnectorResponse) Bytes() []byte
Bytes is a convenience method to retrieve the raw bytes from the HTTP response
func (HoldConnectorResponse) ContentType ¶
func (r HoldConnectorResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (HoldConnectorResponse) GetBody ¶
func (r HoldConnectorResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (HoldConnectorResponse) GetJSON200 ¶
func (r HoldConnectorResponse) GetJSON200() *HoldAnswer
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (HoldConnectorResponse) GetJSONDefault ¶
func (r HoldConnectorResponse) GetJSONDefault() *Refusal
GetJSONDefault returns the response for an HTTP default `application/json` response
func (HoldConnectorResponse) Status ¶
func (r HoldConnectorResponse) Status() string
Status returns HTTPResponse.Status
func (HoldConnectorResponse) StatusCode ¶
func (r HoldConnectorResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HoldConnectorResponseObject ¶
type HoldConnectorResponseObject interface {
VisitHoldConnectorResponse(w http.ResponseWriter) error
}
type HoldConnectordefaultJSONResponse ¶
func (HoldConnectordefaultJSONResponse) VisitHoldConnectorResponse ¶
func (response HoldConnectordefaultJSONResponse) VisitHoldConnectorResponse(w http.ResponseWriter) error
type HomeView ¶
type HomeView struct {
FoundTS string `json:"found_ts"`
GoneTS *string `json:"gone_ts"`
ModifiedTS *string `json:"modified_ts"`
Path string `json:"path"`
Root string `json:"root"`
}
HomeView HomeView names where the item's file lives under a named root.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type InvalidParamFormatError ¶
func (*InvalidParamFormatError) Error ¶
func (e *InvalidParamFormatError) Error() string
func (*InvalidParamFormatError) Unwrap ¶
func (e *InvalidParamFormatError) Unwrap() error
type ItemAnswer ¶
type ItemAnswer struct {
Decisions *[]DecisionView `json:"decisions"`
Deliveries *[]DeliveryView `json:"deliveries"`
Homes *[]HomeView `json:"homes"`
// Item ItemView is the item, with its bytes' size and MD5 and its derived phase.
Item ItemView `json:"item"`
// ModelRead ModelRead is the newest done model read, as store.NewestDone picks it,
// with the scanner's findings over its sentence, and null where none is
// done.
ModelRead *OutputView `json:"model_read"`
Outputs *[]OutputView `json:"outputs"`
// Progress Progress is the parse's and the scan's progress, as
// store.ItemRecords.Progress reads it from their tasks and outputs.
Progress *[]StageProgress `json:"progress"`
// QualityAnswer QualityAnswer is the quality gate's newest done answer, as
// store.NewestDone picks it and the review route serves it, and null where
// the gate gave none.
QualityAnswer any `json:"quality_answer"`
SchemaVersion int `json:"schema_version"`
// Sections Sections are the item's sections, each producer version's in order.
Sections *[]SectionView `json:"sections"`
Sightings *[]SightingView `json:"sightings"`
// Suggestion Suggestion is the item's latest suggestion, and null where no model
// read holds a sentence.
Suggestion *SuggestionView `json:"suggestion"`
// Undelivered Undelivered says why an item placed on a side and read as is reaches
// no deliverer, and is null where it does.
Undelivered *UndeliveredView `json:"undelivered"`
// Waiting Waiting says why the item waits at a model stage, and is null where it
// waits at none.
Waiting *WaitingView `json:"waiting"`
}
ItemAnswer ItemAnswer is what GET /api/v1/items/{key} answers: schemas/item.schema.json.
type ItemCommentsAnswer ¶
type ItemCommentsAnswer struct {
// Comments ReviewComments is how the read of an item's comments stands, and its answer once done.
Comments ReviewComments `json:"comments"`
Key string `json:"key"`
SchemaVersion int `json:"schema_version"`
}
ItemCommentsAnswer ItemCommentsAnswer is what POST /api/v1/items/{key}/comments answers: schemas/item-comments.schema.json.
type ItemListed ¶
type ItemListed struct {
// Channel Channel is who published the item, as its sightings name it, and null
// where none does.
Channel *string `json:"channel"`
Connectors *[]string `json:"connectors"`
CreatedTS string `json:"created_ts"`
Decided *DecidedView `json:"decided"`
Key string `json:"key"`
MediaType string `json:"media_type"`
// Outcome Outcome is where the item's decisions leave it, as
// store.ItemRecords.Outcome decides it, and Decided the decision that left
// it there, null where it waits.
Outcome string `json:"outcome"`
Phase string `json:"phase"`
// ReviewReason ReviewReason is why the item waits in review, as route.ReviewReasons
// names it, and null where it waits on no person.
ReviewReason *string `json:"review_reason"`
Side *string `json:"side"`
Title *string `json:"title"`
URL *string `json:"url"`
WaitingAt *string `json:"waiting_at"`
Zone string `json:"zone"`
}
ItemListed ItemListed is one item as the list shows it.
type ItemResource ¶
type ItemResource struct {
Kind string `json:"kind"`
// Metadata ItemResourceMetadata is what an item carries as every resource does, in UTC.
Metadata ItemResourceMetadata `json:"metadata"`
Name string `json:"name"`
SchemaVersion int `json:"schema_version"`
// Spec ItemResourceSpec is what the item's source gave it as it landed.
Spec ItemResourceSpec `json:"spec"`
// Status ItemResourceStatus is where the item stands: its phase as its state, the conditions derived from its records on this read, and where its decisions leave it.
Status ItemResourceStatus `json:"status"`
}
ItemResource ItemResource is an item as resource-shape-schema.json holds it.
type ItemResourceIdentifiers ¶
type ItemResourceIdentifiers struct {
Flow *string `json:"flow,omitempty"`
IngestionItem string `json:"ingestion-item"`
}
ItemResourceIdentifiers ItemResourceIdentifiers is each identity of an item that another store joins on, under its name in identifiers-shared-across-stores-schema.json.
type ItemResourceMetadata ¶
type ItemResourceMetadata struct {
// Created Created is when the item landed.
Created time.Time `json:"created"`
// Identifiers ItemResourceIdentifiers is each identity of an item that another store joins on, under its name in identifiers-shared-across-stores-schema.json.
Identifiers ItemResourceIdentifiers `json:"identifiers"`
// Owners Owners names the item's parent: a chapter's book, or a topic's memo.
Owners *[]string `json:"owners,omitempty"`
// Updated Updated is the newest of when the item's row, a sighting, an output and a
// decision changed.
Updated time.Time `json:"updated"`
}
ItemResourceMetadata ItemResourceMetadata is what an item carries as every resource does, in UTC.
type ItemResourceSpec ¶
type ItemResourceSpec struct {
// Connectors Connectors names each connector that sighted the item, first first.
Connectors *[]string `json:"connectors"`
Key string `json:"key"`
MediaType string `json:"media_type"`
// SourceTS SourceTS is when the artifact was made at its source, where the source
// gives a time.
SourceTS *time.Time `json:"source_ts,omitempty"`
Title *string `json:"title,omitempty"`
URL *string `json:"url,omitempty"`
Zone string `json:"zone"`
}
ItemResourceSpec ItemResourceSpec is what the item's source gave it as it landed.
type ItemResourceStatus ¶
type ItemResourceStatus struct {
// Children Children names each item the item produced: a book's chapters and a
// memo's topics.
Children *[]string `json:"children,omitempty"`
Conditions *[]Condition `json:"conditions"`
// Outcome Outcome is where the item's decisions leave it, as store.Outcomes names
// it.
Outcome string `json:"outcome"`
// ReviewReason ReviewReason is why the item waits in review, as route.ReviewReasons
// names it.
ReviewReason *string `json:"review_reason,omitempty"`
// Side Side is the side that the item's newest side decision placed it on.
Side *string `json:"side,omitempty"`
State string `json:"state"`
// WaitingAt WaitingAt names the model stage where the item waits.
WaitingAt *string `json:"waiting_at,omitempty"`
}
ItemResourceStatus ItemResourceStatus is where the item stands: its phase as its state, the conditions derived from its records on this read, and where its decisions leave it.
type ItemView ¶
type ItemView struct {
BlobSha256 *string `json:"blob_sha256"`
CreatedTS string `json:"created_ts"`
FlowID string `json:"flow_id"`
Key string `json:"key"`
Md5 *string `json:"md5"`
MediaType string `json:"media_type"`
ParentKey *string `json:"parent_key"`
Phase string `json:"phase"`
SizeBytes *int `json:"size_bytes"`
SourceTS *string `json:"source_ts"`
Title *string `json:"title"`
URL *string `json:"url"`
WaitingAt *string `json:"waiting_at"`
Zone string `json:"zone"`
}
ItemView ItemView is the item, with its bytes' size and MD5 and its derived phase.
type ItemsAnswer ¶
type ItemsAnswer struct {
Items *[]ItemListed `json:"items"`
Next *string `json:"next"`
SchemaVersion int `json:"schema_version"`
}
ItemsAnswer ItemsAnswer is what GET /api/v1/items answers: schemas/items-list.schema.json.
type LeasedProposal ¶
type LeasedProposal struct {
LabeledAfter *string `json:"labeled_after"`
LabeledThrough string `json:"labeled_through"`
MissCount int `json:"miss_count"`
Misses any `json:"misses"`
Prompt string `json:"prompt"`
// PromptText PromptText is the template of the prompt at PromptVersion, which the
// draft's edits apply to.
PromptText string `json:"prompt_text"`
PromptVersion string `json:"prompt_version"`
}
LeasedProposal LeasedProposal is the prompt proposal that a prompt-proposal task drafts: the prompt it changes, at the version it changes, and the misses labeled after LabeledAfter, through LabeledThrough, as one JSON array.
type LeasedSighting ¶
type LeasedSighting struct {
Connector string `json:"connector"`
ExternalKey string `json:"external_key"`
Fields *map[string]string `json:"fields"`
}
LeasedSighting LeasedSighting is one connector's sighting of a delete task's item, which the task removes from that connector's source: the source's own key for the item, and the fields read from its payload, such as a playlist item's id.
type LeasedTask ¶
type LeasedTask struct {
Attempts int `json:"attempts"`
BlobSha256 *string `json:"blob_sha256"`
Capability string `json:"capability"`
// Chapter Chapter is a deliver task's of a book's chapter, kept the same way:
// the destination's id for its book's record, and where the chapter
// sits in the book. Every other task carries none.
Chapter *ChapterInBook `json:"chapter,omitempty"`
Connector *string `json:"connector"`
// Cursor Cursor and Declaration are a poll's: its connector's position, where an
// earlier poll moved it, and the connector's declaration as the set in
// force holds it, so the source's handler reads what its connector names.
// Declaration is absent where the connector is missing from the set in
// force. Every other task carries neither.
Cursor *string `json:"cursor,omitempty"`
Declaration any `json:"declaration,omitempty"`
// Destination Destination names where a deliver task writes its item, and is null
// for every other task.
Destination *string `json:"destination"`
// FlowID FlowID is the flow of the task's item, a W3C trace id, which each call
// that the task makes for the item carries in its traceparent. A task
// that names no item carries none.
FlowID *string `json:"flow_id,omitempty"`
ID string `json:"id"`
ItemKey *string `json:"item_key"`
// Keys Keys are a refresh-metrics task's: the key of each item in review that
// a connector of its source sighted, as the claim read them, whose
// metrics the task reads again. Every other task carries none.
Keys *[]string `json:"keys,omitempty"`
LandedTS *string `json:"landed_ts,omitempty"`
LeaseExpiresTS string `json:"lease_expires_ts"`
LeaseToken int `json:"lease_token"`
// Lens Lens, Note and NoteDraft are a model read's task's: the lens of the
// item's newest read decision, the note that a person wrote on it, and
// the note stage's draft where the decision took one instead. A draft
// never rides in Note, so a reader that knows only Note never reads a
// model's draft as the owner's. A note task carries Lens alone, and every
// other task none of them.
Lens *string `json:"lens,omitempty"`
// MediaType MediaType and BlobSHA256 are the item's, so a worker reads its bytes
// holding no scope to read items. A poll carries neither, and BlobSHA256
// is null where the item holds no bytes.
MediaType string `json:"media_type"`
// Model Model is a measurement arm's task's. The task asks its run for this
// model in place of the worker's configured one. Every other task
// carries none.
Model *string `json:"model,omitempty"`
Note *string `json:"note,omitempty"`
NoteDraft *string `json:"note_draft,omitempty"`
// Parse Parse is the done parse that the prompt of a model stage's task quotes,
// as the claim read it: the item's reading parse, or the one extractor's
// that the stage reads. The task's call reads it, and its output names it.
// It is absent where the stage quotes no parse or the item holds none.
Parse *ParseRef `json:"parse,omitempty"`
Path *string `json:"path,omitempty"`
// Playlist Playlist is a watch's deliver task's: the playlist that the delivery
// adds the video to, kept the same way. Every other task carries none.
Playlist *string `json:"playlist,omitempty"`
// Proposal LeasedProposal is the prompt proposal that a prompt-proposal task drafts: the prompt it changes, at the version it changes, and the misses labeled after LabeledAfter, through LabeledThrough, as one JSON array.
Proposal *LeasedProposal `json:"proposal,omitempty"`
// ProposalID ProposalID and Proposal are a prompt-proposal task's: the prompt proposal that
// it drafts, and the misses that the draft reads. Its StageOutputs hold
// the proposal's run, once one was sent. Every other task carries
// neither.
ProposalID *string `json:"proposal_id,omitempty"`
// Sighting Sighting is a delete task's: the sighting whose source the task removes
// the item from. Every other task carries none.
Sighting *LeasedSighting `json:"sighting,omitempty"`
Source *string `json:"source,omitempty"`
SourceTS *string `json:"source_ts,omitempty"`
Stage string `json:"stage"`
// StageOutputs StageOutputs are the item's outputs at a model stage's task's stage,
// so a task whose run is already dispatched follows that run rather than
// starting another. Every other task carries none.
StageOutputs *[]StageOutput `json:"stage_outputs,omitempty"`
Title *string `json:"title"`
URL *string `json:"url"`
// WaitedSeconds WaitedSeconds is how long before this claim a report first said the
// task waits, and 0 where none has.
WaitedSeconds *int `json:"waited_seconds,omitempty"`
// Zone Zone, Title, URL and LandedTS are the item's too, so a deliverer writes
// it holding no scope to read items. A deliver task's Title, URL and
// SourceTS are its delivery's, as they were when it was first queued, so
// a retry sends what the first attempt sent. SourceTS is when the item
// was made at its source, and null where its source gave no time. Path
// is a deliver task's file below its deliverer's root, kept the same way,
// and absent for a deliverer that writes no file. A poll carries none of
// them.
Zone *string `json:"zone,omitempty"`
}
LeasedTask LeasedTask is one leased task, with the token for every heartbeat and report on it.
type ListConnectors200JSONResponse ¶
type ListConnectors200JSONResponse ConnectorsAnswer
func (ListConnectors200JSONResponse) VisitListConnectorsResponse ¶
func (response ListConnectors200JSONResponse) VisitListConnectorsResponse(w http.ResponseWriter) error
type ListConnectorsRequestObject ¶
type ListConnectorsRequestObject struct {
}
type ListConnectorsResponse ¶
type ListConnectorsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ConnectorsAnswer
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Refusal
}
func ParseListConnectorsResponse ¶
func ParseListConnectorsResponse(rsp *http.Response) (*ListConnectorsResponse, error)
ParseListConnectorsResponse parses an HTTP response from a ListConnectorsWithResponse call
func (ListConnectorsResponse) Bytes ¶
func (r ListConnectorsResponse) Bytes() []byte
Bytes is a convenience method to retrieve the raw bytes from the HTTP response
func (ListConnectorsResponse) ContentType ¶
func (r ListConnectorsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListConnectorsResponse) GetBody ¶
func (r ListConnectorsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListConnectorsResponse) GetJSON200 ¶
func (r ListConnectorsResponse) GetJSON200() *ConnectorsAnswer
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListConnectorsResponse) GetJSONDefault ¶
func (r ListConnectorsResponse) GetJSONDefault() *Refusal
GetJSONDefault returns the response for an HTTP default `application/json` response
func (ListConnectorsResponse) Status ¶
func (r ListConnectorsResponse) Status() string
Status returns HTTPResponse.Status
func (ListConnectorsResponse) StatusCode ¶
func (r ListConnectorsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListConnectorsResponseObject ¶
type ListConnectorsResponseObject interface {
VisitListConnectorsResponse(w http.ResponseWriter) error
}
type ListConnectorsdefaultJSONResponse ¶
func (ListConnectorsdefaultJSONResponse) VisitListConnectorsResponse ¶
func (response ListConnectorsdefaultJSONResponse) VisitListConnectorsResponse(w http.ResponseWriter) error
type ListGateTrust200JSONResponse ¶
type ListGateTrust200JSONResponse GateTrustAnswer
func (ListGateTrust200JSONResponse) VisitListGateTrustResponse ¶
func (response ListGateTrust200JSONResponse) VisitListGateTrustResponse(w http.ResponseWriter) error
type ListGateTrustRequestObject ¶
type ListGateTrustRequestObject struct {
}
type ListGateTrustResponse ¶
type ListGateTrustResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *GateTrustAnswer
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Refusal
}
func ParseListGateTrustResponse ¶
func ParseListGateTrustResponse(rsp *http.Response) (*ListGateTrustResponse, error)
ParseListGateTrustResponse parses an HTTP response from a ListGateTrustWithResponse call
func (ListGateTrustResponse) Bytes ¶
func (r ListGateTrustResponse) Bytes() []byte
Bytes is a convenience method to retrieve the raw bytes from the HTTP response
func (ListGateTrustResponse) ContentType ¶
func (r ListGateTrustResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListGateTrustResponse) GetBody ¶
func (r ListGateTrustResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListGateTrustResponse) GetJSON200 ¶
func (r ListGateTrustResponse) GetJSON200() *GateTrustAnswer
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListGateTrustResponse) GetJSONDefault ¶
func (r ListGateTrustResponse) GetJSONDefault() *Refusal
GetJSONDefault returns the response for an HTTP default `application/json` response
func (ListGateTrustResponse) Status ¶
func (r ListGateTrustResponse) Status() string
Status returns HTTPResponse.Status
func (ListGateTrustResponse) StatusCode ¶
func (r ListGateTrustResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListGateTrustResponseObject ¶
type ListGateTrustResponseObject interface {
VisitListGateTrustResponse(w http.ResponseWriter) error
}
type ListGateTrustdefaultJSONResponse ¶
func (ListGateTrustdefaultJSONResponse) VisitListGateTrustResponse ¶
func (response ListGateTrustdefaultJSONResponse) VisitListGateTrustResponse(w http.ResponseWriter) error
type ListItems200JSONResponse ¶
type ListItems200JSONResponse ItemsAnswer
func (ListItems200JSONResponse) VisitListItemsResponse ¶
func (response ListItems200JSONResponse) VisitListItemsResponse(w http.ResponseWriter) error
type ListItemsParams ¶
type ListItemsParams struct {
// After After is the next cursor that an earlier page answered, and the page after it answers.
After *string `form:"after,omitempty" json:"after,omitempty"`
// Outcome Outcome keeps the items at one outcome, as store.Outcomes names them.
Outcome *string `form:"outcome,omitempty" json:"outcome,omitempty"`
// Chapters Chapters keeps each chapter of a book, which the list leaves out without it.
Chapters *bool `form:"chapters,omitempty" json:"chapters,omitempty"`
// Limit Limit caps the page at 1 or more. DefaultItemsListed caps it where it names none, and
// MaxItemsListed caps every page.
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}
ListItemsParams defines parameters for ListItems.
type ListItemsRequestObject ¶
type ListItemsRequestObject struct {
Params ListItemsParams
}
type ListItemsResponse ¶
type ListItemsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ItemsAnswer
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Refusal
}
func ParseListItemsResponse ¶
func ParseListItemsResponse(rsp *http.Response) (*ListItemsResponse, error)
ParseListItemsResponse parses an HTTP response from a ListItemsWithResponse call
func (ListItemsResponse) Bytes ¶
func (r ListItemsResponse) Bytes() []byte
Bytes is a convenience method to retrieve the raw bytes from the HTTP response
func (ListItemsResponse) ContentType ¶
func (r ListItemsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListItemsResponse) GetBody ¶
func (r ListItemsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListItemsResponse) GetJSON200 ¶
func (r ListItemsResponse) GetJSON200() *ItemsAnswer
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListItemsResponse) GetJSONDefault ¶
func (r ListItemsResponse) GetJSONDefault() *Refusal
GetJSONDefault returns the response for an HTTP default `application/json` response
func (ListItemsResponse) Status ¶
func (r ListItemsResponse) Status() string
Status returns HTTPResponse.Status
func (ListItemsResponse) StatusCode ¶
func (r ListItemsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListItemsResponseObject ¶
type ListItemsResponseObject interface {
VisitListItemsResponse(w http.ResponseWriter) error
}
type ListItemsdefaultJSONResponse ¶
func (ListItemsdefaultJSONResponse) VisitListItemsResponse ¶
func (response ListItemsdefaultJSONResponse) VisitListItemsResponse(w http.ResponseWriter) error
type ListReview200JSONResponse ¶
type ListReview200JSONResponse ReviewAnswer
func (ListReview200JSONResponse) VisitListReviewResponse ¶
func (response ListReview200JSONResponse) VisitListReviewResponse(w http.ResponseWriter) error
type ListReviewRequestObject ¶
type ListReviewRequestObject struct {
}
type ListReviewResponse ¶
type ListReviewResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ReviewAnswer
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Refusal
}
func ParseListReviewResponse ¶
func ParseListReviewResponse(rsp *http.Response) (*ListReviewResponse, error)
ParseListReviewResponse parses an HTTP response from a ListReviewWithResponse call
func (ListReviewResponse) Bytes ¶
func (r ListReviewResponse) Bytes() []byte
Bytes is a convenience method to retrieve the raw bytes from the HTTP response
func (ListReviewResponse) ContentType ¶
func (r ListReviewResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListReviewResponse) GetBody ¶
func (r ListReviewResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListReviewResponse) GetJSON200 ¶
func (r ListReviewResponse) GetJSON200() *ReviewAnswer
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListReviewResponse) GetJSONDefault ¶
func (r ListReviewResponse) GetJSONDefault() *Refusal
GetJSONDefault returns the response for an HTTP default `application/json` response
func (ListReviewResponse) Status ¶
func (r ListReviewResponse) Status() string
Status returns HTTPResponse.Status
func (ListReviewResponse) StatusCode ¶
func (r ListReviewResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListReviewResponseObject ¶
type ListReviewResponseObject interface {
VisitListReviewResponse(w http.ResponseWriter) error
}
type ListReviewdefaultJSONResponse ¶
func (ListReviewdefaultJSONResponse) VisitListReviewResponse ¶
func (response ListReviewdefaultJSONResponse) VisitListReviewResponse(w http.ResponseWriter) error
type ListRoutingRules200JSONResponse ¶
type ListRoutingRules200JSONResponse RoutingRulesAnswer
func (ListRoutingRules200JSONResponse) VisitListRoutingRulesResponse ¶
func (response ListRoutingRules200JSONResponse) VisitListRoutingRulesResponse(w http.ResponseWriter) error
type ListRoutingRulesRequestObject ¶
type ListRoutingRulesRequestObject struct {
}
type ListRoutingRulesResponse ¶
type ListRoutingRulesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *RoutingRulesAnswer
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Refusal
}
func ParseListRoutingRulesResponse ¶
func ParseListRoutingRulesResponse(rsp *http.Response) (*ListRoutingRulesResponse, error)
ParseListRoutingRulesResponse parses an HTTP response from a ListRoutingRulesWithResponse call
func (ListRoutingRulesResponse) Bytes ¶
func (r ListRoutingRulesResponse) Bytes() []byte
Bytes is a convenience method to retrieve the raw bytes from the HTTP response
func (ListRoutingRulesResponse) ContentType ¶
func (r ListRoutingRulesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListRoutingRulesResponse) GetBody ¶
func (r ListRoutingRulesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListRoutingRulesResponse) GetJSON200 ¶
func (r ListRoutingRulesResponse) GetJSON200() *RoutingRulesAnswer
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListRoutingRulesResponse) GetJSONDefault ¶
func (r ListRoutingRulesResponse) GetJSONDefault() *Refusal
GetJSONDefault returns the response for an HTTP default `application/json` response
func (ListRoutingRulesResponse) Status ¶
func (r ListRoutingRulesResponse) Status() string
Status returns HTTPResponse.Status
func (ListRoutingRulesResponse) StatusCode ¶
func (r ListRoutingRulesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListRoutingRulesResponseObject ¶
type ListRoutingRulesResponseObject interface {
VisitListRoutingRulesResponse(w http.ResponseWriter) error
}
type ListRoutingRulesdefaultJSONResponse ¶
func (ListRoutingRulesdefaultJSONResponse) VisitListRoutingRulesResponse ¶
func (response ListRoutingRulesdefaultJSONResponse) VisitListRoutingRulesResponse(w http.ResponseWriter) error
type ListTasks200JSONResponse ¶
type ListTasks200JSONResponse TasksAnswer
func (ListTasks200JSONResponse) VisitListTasksResponse ¶
func (response ListTasks200JSONResponse) VisitListTasksResponse(w http.ResponseWriter) error
type ListTasksParams ¶
type ListTasksParams struct {
// State State keeps the tasks in each state named, repeated, such as queued or failed.
State *[]string `form:"state,omitempty" json:"state,omitempty"`
// Limit Limit caps the list at 1 to MaxListed tasks.
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
// Workers Workers is all to answer every worker, and absent to answer those heard from within
// WorkersHeardWithin.
Workers *string `form:"workers,omitempty" json:"workers,omitempty"`
}
ListTasksParams defines parameters for ListTasks.
type ListTasksRequestObject ¶
type ListTasksRequestObject struct {
Params ListTasksParams
}
type ListTasksResponse ¶
type ListTasksResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *TasksAnswer
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Refusal
}
func ParseListTasksResponse ¶
func ParseListTasksResponse(rsp *http.Response) (*ListTasksResponse, error)
ParseListTasksResponse parses an HTTP response from a ListTasksWithResponse call
func (ListTasksResponse) Bytes ¶
func (r ListTasksResponse) Bytes() []byte
Bytes is a convenience method to retrieve the raw bytes from the HTTP response
func (ListTasksResponse) ContentType ¶
func (r ListTasksResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListTasksResponse) GetBody ¶
func (r ListTasksResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListTasksResponse) GetJSON200 ¶
func (r ListTasksResponse) GetJSON200() *TasksAnswer
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListTasksResponse) GetJSONDefault ¶
func (r ListTasksResponse) GetJSONDefault() *Refusal
GetJSONDefault returns the response for an HTTP default `application/json` response
func (ListTasksResponse) Status ¶
func (r ListTasksResponse) Status() string
Status returns HTTPResponse.Status
func (ListTasksResponse) StatusCode ¶
func (r ListTasksResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListTasksResponseObject ¶
type ListTasksResponseObject interface {
VisitListTasksResponse(w http.ResponseWriter) error
}
type ListTasksdefaultJSONResponse ¶
func (ListTasksdefaultJSONResponse) VisitListTasksResponse ¶
func (response ListTasksdefaultJSONResponse) VisitListTasksResponse(w http.ResponseWriter) error
type ListUnpairedBlobs200JSONResponse ¶
type ListUnpairedBlobs200JSONResponse UnpairedAnswer
func (ListUnpairedBlobs200JSONResponse) VisitListUnpairedBlobsResponse ¶
func (response ListUnpairedBlobs200JSONResponse) VisitListUnpairedBlobsResponse(w http.ResponseWriter) error
type ListUnpairedBlobsRequestObject ¶
type ListUnpairedBlobsRequestObject struct {
}
type ListUnpairedBlobsResponse ¶
type ListUnpairedBlobsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *UnpairedAnswer
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Refusal
}
func ParseListUnpairedBlobsResponse ¶
func ParseListUnpairedBlobsResponse(rsp *http.Response) (*ListUnpairedBlobsResponse, error)
ParseListUnpairedBlobsResponse parses an HTTP response from a ListUnpairedBlobsWithResponse call
func (ListUnpairedBlobsResponse) Bytes ¶
func (r ListUnpairedBlobsResponse) Bytes() []byte
Bytes is a convenience method to retrieve the raw bytes from the HTTP response
func (ListUnpairedBlobsResponse) ContentType ¶
func (r ListUnpairedBlobsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListUnpairedBlobsResponse) GetBody ¶
func (r ListUnpairedBlobsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListUnpairedBlobsResponse) GetJSON200 ¶
func (r ListUnpairedBlobsResponse) GetJSON200() *UnpairedAnswer
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListUnpairedBlobsResponse) GetJSONDefault ¶
func (r ListUnpairedBlobsResponse) GetJSONDefault() *Refusal
GetJSONDefault returns the response for an HTTP default `application/json` response
func (ListUnpairedBlobsResponse) Status ¶
func (r ListUnpairedBlobsResponse) Status() string
Status returns HTTPResponse.Status
func (ListUnpairedBlobsResponse) StatusCode ¶
func (r ListUnpairedBlobsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListUnpairedBlobsResponseObject ¶
type ListUnpairedBlobsResponseObject interface {
VisitListUnpairedBlobsResponse(w http.ResponseWriter) error
}
type ListUnpairedBlobsdefaultJSONResponse ¶
func (ListUnpairedBlobsdefaultJSONResponse) VisitListUnpairedBlobsResponse ¶
func (response ListUnpairedBlobsdefaultJSONResponse) VisitListUnpairedBlobsResponse(w http.ResponseWriter) error
type Mark ¶
type Mark struct {
// Agreement Agreement is agreed, disagreed or neither, as the mark read against
// GateVerdict.
Agreement string `json:"agreement"`
ClientID *string `json:"client_id"`
DecidedBy string `json:"decided_by"`
// Families Families names each family whose standing the mark moved.
Families *[]string `json:"families"`
GateDecidedBy *string `json:"gate_decided_by"`
// GateVerdict GateVerdict and GateDecidedBy are the quality gate's newest decision on
// the item when the mark was made, and PromptVersion the version of the
// prompt that answered it. Each is nil where the gate had decided nothing.
GateVerdict *string `json:"gate_verdict"`
ItemKey string `json:"item_key"`
Mark string `json:"mark"`
MarkedTS string `json:"marked_ts"`
PromptVersion *string `json:"prompt_version"`
Sequence int `json:"sequence"`
}
Mark Mark is a person's word on an item, as marks holds it.
type MarkAnswer ¶
type MarkAnswer struct {
Families *[]GateTrust `json:"families"`
// Mark Mark is a person's word on an item, as marks holds it.
Mark Mark `json:"mark"`
SchemaVersion int `json:"schema_version"`
}
MarkAnswer MarkAnswer is what a mark answers: schemas/item-mark.schema.json.
type MarkItem200JSONResponse ¶
type MarkItem200JSONResponse MarkAnswer
func (MarkItem200JSONResponse) VisitMarkItemResponse ¶
func (response MarkItem200JSONResponse) VisitMarkItemResponse(w http.ResponseWriter) error
type MarkItemJSONRequestBody ¶
type MarkItemJSONRequestBody = MarkRequest
MarkItemJSONRequestBody defines body for MarkItem for application/json ContentType.
type MarkItemRequestObject ¶
type MarkItemRequestObject struct {
Key string `json:"key"`
Body *MarkItemJSONRequestBody
}
type MarkItemResponse ¶
type MarkItemResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *MarkAnswer
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Refusal
}
func ParseMarkItemResponse ¶
func ParseMarkItemResponse(rsp *http.Response) (*MarkItemResponse, error)
ParseMarkItemResponse parses an HTTP response from a MarkItemWithResponse call
func (MarkItemResponse) Bytes ¶
func (r MarkItemResponse) Bytes() []byte
Bytes is a convenience method to retrieve the raw bytes from the HTTP response
func (MarkItemResponse) ContentType ¶
func (r MarkItemResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (MarkItemResponse) GetBody ¶
func (r MarkItemResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (MarkItemResponse) GetJSON200 ¶
func (r MarkItemResponse) GetJSON200() *MarkAnswer
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (MarkItemResponse) GetJSONDefault ¶
func (r MarkItemResponse) GetJSONDefault() *Refusal
GetJSONDefault returns the response for an HTTP default `application/json` response
func (MarkItemResponse) Status ¶
func (r MarkItemResponse) Status() string
Status returns HTTPResponse.Status
func (MarkItemResponse) StatusCode ¶
func (r MarkItemResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type MarkItemResponseObject ¶
type MarkItemResponseObject interface {
VisitMarkItemResponse(w http.ResponseWriter) error
}
type MarkItemdefaultJSONResponse ¶
func (MarkItemdefaultJSONResponse) VisitMarkItemResponse ¶
func (response MarkItemdefaultJSONResponse) VisitMarkItemResponse(w http.ResponseWriter) error
type MarkRequest ¶
type MarkRequest struct {
Login *string `json:"login,omitempty"`
Mark MarkRequestMark `json:"mark"`
}
MarkRequest MarkRequest marks an item low-quality or read.
type MarkRequestMark ¶
type MarkRequestMark string
MarkRequestMark defines model for MarkRequest.Mark.
const ( MarkRequestMarkLowQuality MarkRequestMark = "low-quality" MarkRequestMarkRead MarkRequestMark = "read" )
Defines values for MarkRequestMark.
func (MarkRequestMark) Valid ¶
func (e MarkRequestMark) Valid() bool
Valid indicates whether the value is a known member of the MarkRequestMark enum.
type Match ¶
type Match struct {
// Connector Connector holds for an item that connector sighted.
Connector *string `json:"connector,omitempty"`
// Field Field names a field of the source's payload, such as a Reddit save's
// subreddit, and Values the values it holds for.
Field *string `json:"field,omitempty"`
// Tag Tag holds for an item a sighting tagged with it.
Tag *string `json:"tag,omitempty"`
Values *[]string `json:"values,omitempty"`
}
Match Match is what a routing rule holds for.
type OutputView ¶
type OutputView struct {
Answer any `json:"answer"`
AnsweredModel *string `json:"answered_model"`
DispatchID *string `json:"dispatch_id"`
Effort *string `json:"effort"`
Error *string `json:"error"`
Findings *[]FindingView `json:"findings"`
InputProducer *string `json:"input_producer"`
InputVersion *string `json:"input_version"`
Lens *string `json:"lens"`
LensVersion *string `json:"lens_version"`
Model *string `json:"model"`
NoteDigest *string `json:"note_digest"`
Producer string `json:"producer"`
ProducerVersion string `json:"producer_version"`
RulesVersion *string `json:"rules_version"`
RunID *string `json:"run_id"`
Stage string `json:"stage"`
State string `json:"state"`
Tokens *Tokens `json:"tokens"`
Units *int `json:"units"`
}
OutputView OutputView is one stage's output, with a parse's units counted and each finding beside its span.
type ParseAnswer ¶
type ParseAnswer struct {
Extractor string `json:"extractor"`
ExtractorVersion string `json:"extractor_version"`
Findings *[]ParseFinding `json:"findings"`
Key string `json:"key"`
MediaType string `json:"media_type"`
RulesVersion *string `json:"rules_version"`
SchemaVersion int `json:"schema_version"`
Text string `json:"text"`
Title *string `json:"title"`
Units *[]Unit `json:"units"`
URL *string `json:"url"`
Zone string `json:"zone"`
}
ParseAnswer ParseAnswer is what GET /api/v1/items/{key}/parse answers: schemas/item-parse.schema.json.
type ParseFinding ¶
type ParseFinding struct {
Length int `json:"length"`
Offset int `json:"offset"`
Rule string `json:"rule"`
Severity string `json:"severity"`
Span string `json:"span"`
Unit *int `json:"unit"`
}
ParseFinding ParseFinding is one finding of the newest scan of the parse, with the text it matched.
type PlaceItem200JSONResponse ¶
type PlaceItem200JSONResponse PlacementAnswer
func (PlaceItem200JSONResponse) VisitPlaceItemResponse ¶
func (response PlaceItem200JSONResponse) VisitPlaceItemResponse(w http.ResponseWriter) error
type PlaceItemJSONRequestBody ¶
type PlaceItemJSONRequestBody = PlaceRequest
PlaceItemJSONRequestBody defines body for PlaceItem for application/json ContentType.
type PlaceItemRequestObject ¶
type PlaceItemRequestObject struct {
Key string `json:"key"`
Body *PlaceItemJSONRequestBody
}
type PlaceItemResponse ¶
type PlaceItemResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PlacementAnswer
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Refusal
}
func ParsePlaceItemResponse ¶
func ParsePlaceItemResponse(rsp *http.Response) (*PlaceItemResponse, error)
ParsePlaceItemResponse parses an HTTP response from a PlaceItemWithResponse call
func (PlaceItemResponse) Bytes ¶
func (r PlaceItemResponse) Bytes() []byte
Bytes is a convenience method to retrieve the raw bytes from the HTTP response
func (PlaceItemResponse) ContentType ¶
func (r PlaceItemResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PlaceItemResponse) GetBody ¶
func (r PlaceItemResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PlaceItemResponse) GetJSON200 ¶
func (r PlaceItemResponse) GetJSON200() *PlacementAnswer
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PlaceItemResponse) GetJSONDefault ¶
func (r PlaceItemResponse) GetJSONDefault() *Refusal
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PlaceItemResponse) Status ¶
func (r PlaceItemResponse) Status() string
Status returns HTTPResponse.Status
func (PlaceItemResponse) StatusCode ¶
func (r PlaceItemResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PlaceItemResponseObject ¶
type PlaceItemResponseObject interface {
VisitPlaceItemResponse(w http.ResponseWriter) error
}
type PlaceItemdefaultJSONResponse ¶
func (PlaceItemdefaultJSONResponse) VisitPlaceItemResponse ¶
func (response PlaceItemdefaultJSONResponse) VisitPlaceItemResponse(w http.ResponseWriter) error
type PlaceRequest ¶
type PlaceRequest struct {
Cause *string `json:"cause,omitempty"`
Choice *string `json:"choice,omitempty"`
DecidedAfterMs *int `json:"decided_after_ms,omitempty"`
Destination *string `json:"destination,omitempty"`
Login *string `json:"login,omitempty"`
Note *string `json:"note,omitempty"`
Playlist *string `json:"playlist,omitempty"`
// Presented Presented is a review card as a person saw it when they decided: the sort and grouping in force, the card's rank under that sort and its position among the rows shown, how many rows were shown, the quality gate's quality, fit, verdict and side guess with their confidences, and when the card was drawn.
Presented *Presented `json:"presented,omitempty"`
}
PlaceRequest PlaceRequest places an item on Destination, one the set in force declares, or by Choice, one of review's placing choices, and names one of the two.
type PlacementAnswer ¶
type PlacementAnswer struct {
Decisions *[]DecisionView `json:"decisions"`
Key string `json:"key"`
SchemaVersion int `json:"schema_version"`
}
PlacementAnswer PlacementAnswer is what a placement, an archive or a drop answers: schemas/review-placement.schema.json.
type Presented ¶
type Presented struct {
DrawnTS string `json:"drawn_ts"`
Fit *int `json:"fit"`
Grouping string `json:"grouping"`
Position int `json:"position"`
Quality *int `json:"quality"`
Rank int `json:"rank"`
Shown int `json:"shown"`
Side *string `json:"side"`
SideConfidence *float64 `json:"side_confidence"`
Sort string `json:"sort"`
Verdict *string `json:"verdict"`
VerdictConfidence *float64 `json:"verdict_confidence"`
}
Presented Presented is a review card as a person saw it when they decided: the sort and grouping in force, the card's rank under that sort and its position among the rows shown, how many rows were shown, the quality gate's quality, fit, verdict and side guess with their confidences, and when the card was drawn.
type PromoteGateFamily200JSONResponse ¶
type PromoteGateFamily200JSONResponse PromotionAnswer
func (PromoteGateFamily200JSONResponse) VisitPromoteGateFamilyResponse ¶
func (response PromoteGateFamily200JSONResponse) VisitPromoteGateFamilyResponse(w http.ResponseWriter) error
type PromoteGateFamilyJSONRequestBody ¶
type PromoteGateFamilyJSONRequestBody = PromoteRequest
PromoteGateFamilyJSONRequestBody defines body for PromoteGateFamily for application/json ContentType.
type PromoteGateFamilyRequestObject ¶
type PromoteGateFamilyRequestObject struct {
Family string `json:"family"`
Body *PromoteGateFamilyJSONRequestBody
}
type PromoteGateFamilyResponse ¶
type PromoteGateFamilyResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PromotionAnswer
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Refusal
}
func ParsePromoteGateFamilyResponse ¶
func ParsePromoteGateFamilyResponse(rsp *http.Response) (*PromoteGateFamilyResponse, error)
ParsePromoteGateFamilyResponse parses an HTTP response from a PromoteGateFamilyWithResponse call
func (PromoteGateFamilyResponse) Bytes ¶
func (r PromoteGateFamilyResponse) Bytes() []byte
Bytes is a convenience method to retrieve the raw bytes from the HTTP response
func (PromoteGateFamilyResponse) ContentType ¶
func (r PromoteGateFamilyResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PromoteGateFamilyResponse) GetBody ¶
func (r PromoteGateFamilyResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PromoteGateFamilyResponse) GetJSON200 ¶
func (r PromoteGateFamilyResponse) GetJSON200() *PromotionAnswer
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PromoteGateFamilyResponse) GetJSONDefault ¶
func (r PromoteGateFamilyResponse) GetJSONDefault() *Refusal
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PromoteGateFamilyResponse) Status ¶
func (r PromoteGateFamilyResponse) Status() string
Status returns HTTPResponse.Status
func (PromoteGateFamilyResponse) StatusCode ¶
func (r PromoteGateFamilyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PromoteGateFamilyResponseObject ¶
type PromoteGateFamilyResponseObject interface {
VisitPromoteGateFamilyResponse(w http.ResponseWriter) error
}
type PromoteGateFamilydefaultJSONResponse ¶
func (PromoteGateFamilydefaultJSONResponse) VisitPromoteGateFamilyResponse ¶
func (response PromoteGateFamilydefaultJSONResponse) VisitPromoteGateFamilyResponse(w http.ResponseWriter) error
type PromoteRequest ¶
type PromoteRequest struct {
Login *string `json:"login,omitempty"`
}
PromoteRequest PromoteRequest promotes a gate family.
type PromotionAnswer ¶
type PromotionAnswer struct {
// Family GateTrust is one family's standing on the trust ladder, as gate_trust holds it.
Family GateTrust `json:"family"`
SchemaVersion int `json:"schema_version"`
}
PromotionAnswer PromotionAnswer is what a promotion answers: schemas/gate-trust-promotion.schema.json.
type PushAnswer ¶
type PushAnswer struct {
Items *[]PushedItem `json:"items"`
SchemaVersion int `json:"schema_version"`
}
PushAnswer PushAnswer is what a push or a drop answers: schemas/push.schema.json.
type PushItem200JSONResponse ¶
type PushItem200JSONResponse PushAnswer
func (PushItem200JSONResponse) VisitPushItemResponse ¶
func (response PushItem200JSONResponse) VisitPushItemResponse(w http.ResponseWriter) error
type PushItem201JSONResponse ¶
type PushItem201JSONResponse PushAnswer
func (PushItem201JSONResponse) VisitPushItemResponse ¶
func (response PushItem201JSONResponse) VisitPushItemResponse(w http.ResponseWriter) error
type PushItemJSONRequestBody ¶
type PushItemJSONRequestBody = PushRequest
PushItemJSONRequestBody defines body for PushItem for application/json ContentType.
type PushItemParams ¶
type PushItemParams struct {
// Connector Connector names the push connector that the memo lands through, such as phone. A memo names
// one, and a link names its connector in its body instead.
Connector *string `form:"connector,omitempty" json:"connector,omitempty"`
// RecordedAt RecordedAt is when the memo was recorded, as an RFC 3339 time, and becomes the item's source
// time.
RecordedAt *string `form:"recorded_at,omitempty" json:"recorded_at,omitempty"`
// IdempotencyKey Names the request across a retry, so a retry under the same key answers what the first attempt did.
IdempotencyKey string `json:"Idempotency-Key"`
}
PushItemParams defines parameters for PushItem.
type PushItemRequestObject ¶
type PushItemRequestObject struct {
Params PushItemParams
JSONBody *PushItemJSONRequestBody
Body io.Reader
}
type PushItemResponse ¶
type PushItemResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PushAnswer
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *PushAnswer
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Refusal
}
func ParsePushItemResponse ¶
func ParsePushItemResponse(rsp *http.Response) (*PushItemResponse, error)
ParsePushItemResponse parses an HTTP response from a PushItemWithResponse call
func (PushItemResponse) Bytes ¶
func (r PushItemResponse) Bytes() []byte
Bytes is a convenience method to retrieve the raw bytes from the HTTP response
func (PushItemResponse) ContentType ¶
func (r PushItemResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PushItemResponse) GetBody ¶
func (r PushItemResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PushItemResponse) GetJSON200 ¶
func (r PushItemResponse) GetJSON200() *PushAnswer
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PushItemResponse) GetJSON201 ¶
func (r PushItemResponse) GetJSON201() *PushAnswer
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (PushItemResponse) GetJSONDefault ¶
func (r PushItemResponse) GetJSONDefault() *Refusal
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PushItemResponse) Status ¶
func (r PushItemResponse) Status() string
Status returns HTTPResponse.Status
func (PushItemResponse) StatusCode ¶
func (r PushItemResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PushItemResponseObject ¶
type PushItemResponseObject interface {
VisitPushItemResponse(w http.ResponseWriter) error
}
type PushItemdefaultJSONResponse ¶
func (PushItemdefaultJSONResponse) VisitPushItemResponse ¶
func (response PushItemdefaultJSONResponse) VisitPushItemResponse(w http.ResponseWriter) error
type PushRequest ¶
type PushRequest struct {
// Connector Connector names the push connector that the link arrives through, one
// that the set in force declares.
Connector string `json:"connector"`
// Destination Destination is where the person places the item, one that the set in
// force declares. Empty leaves the item to the gates.
Destination *string `json:"destination,omitempty"`
// URL URL is the link, an http or https URL naming a host.
URL string `json:"url"`
}
PushRequest PushRequest is what POST /api/v1/items reads as a link.
type PushedItem ¶
type PushedItem struct {
// Created Created is false where the item was already landed, and this was one
// more sighting of it.
Created bool `json:"created"`
Key string `json:"key"`
Zone string `json:"zone"`
}
PushedItem PushedItem is one item a push or a drop landed.
type PutRoutingRule200JSONResponse ¶
type PutRoutingRule200JSONResponse RoutingRuleAnswer
func (PutRoutingRule200JSONResponse) VisitPutRoutingRuleResponse ¶
func (response PutRoutingRule200JSONResponse) VisitPutRoutingRuleResponse(w http.ResponseWriter) error
type PutRoutingRuleJSONRequestBody ¶
type PutRoutingRuleJSONRequestBody = RoutingRuleRequest
PutRoutingRuleJSONRequestBody defines body for PutRoutingRule for application/json ContentType.
type PutRoutingRuleRequestObject ¶
type PutRoutingRuleRequestObject struct {
Name string `json:"name"`
Body *PutRoutingRuleJSONRequestBody
}
type PutRoutingRuleResponse ¶
type PutRoutingRuleResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *RoutingRuleAnswer
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Refusal
}
func ParsePutRoutingRuleResponse ¶
func ParsePutRoutingRuleResponse(rsp *http.Response) (*PutRoutingRuleResponse, error)
ParsePutRoutingRuleResponse parses an HTTP response from a PutRoutingRuleWithResponse call
func (PutRoutingRuleResponse) Bytes ¶
func (r PutRoutingRuleResponse) Bytes() []byte
Bytes is a convenience method to retrieve the raw bytes from the HTTP response
func (PutRoutingRuleResponse) ContentType ¶
func (r PutRoutingRuleResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PutRoutingRuleResponse) GetBody ¶
func (r PutRoutingRuleResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PutRoutingRuleResponse) GetJSON200 ¶
func (r PutRoutingRuleResponse) GetJSON200() *RoutingRuleAnswer
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PutRoutingRuleResponse) GetJSONDefault ¶
func (r PutRoutingRuleResponse) GetJSONDefault() *Refusal
GetJSONDefault returns the response for an HTTP default `application/json` response
func (PutRoutingRuleResponse) Status ¶
func (r PutRoutingRuleResponse) Status() string
Status returns HTTPResponse.Status
func (PutRoutingRuleResponse) StatusCode ¶
func (r PutRoutingRuleResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PutRoutingRuleResponseObject ¶
type PutRoutingRuleResponseObject interface {
VisitPutRoutingRuleResponse(w http.ResponseWriter) error
}
type PutRoutingRuledefaultJSONResponse ¶
func (PutRoutingRuledefaultJSONResponse) VisitPutRoutingRuleResponse ¶
func (response PutRoutingRuledefaultJSONResponse) VisitPutRoutingRuleResponse(w http.ResponseWriter) error
type ReadItemComments200JSONResponse ¶
type ReadItemComments200JSONResponse ItemCommentsAnswer
func (ReadItemComments200JSONResponse) VisitReadItemCommentsResponse ¶
func (response ReadItemComments200JSONResponse) VisitReadItemCommentsResponse(w http.ResponseWriter) error
type ReadItemCommentsRequestObject ¶
type ReadItemCommentsRequestObject struct {
Key string `json:"key"`
}
type ReadItemCommentsResponse ¶
type ReadItemCommentsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ItemCommentsAnswer
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Refusal
}
func ParseReadItemCommentsResponse ¶
func ParseReadItemCommentsResponse(rsp *http.Response) (*ReadItemCommentsResponse, error)
ParseReadItemCommentsResponse parses an HTTP response from a ReadItemCommentsWithResponse call
func (ReadItemCommentsResponse) Bytes ¶
func (r ReadItemCommentsResponse) Bytes() []byte
Bytes is a convenience method to retrieve the raw bytes from the HTTP response
func (ReadItemCommentsResponse) ContentType ¶
func (r ReadItemCommentsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ReadItemCommentsResponse) GetBody ¶
func (r ReadItemCommentsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ReadItemCommentsResponse) GetJSON200 ¶
func (r ReadItemCommentsResponse) GetJSON200() *ItemCommentsAnswer
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ReadItemCommentsResponse) GetJSONDefault ¶
func (r ReadItemCommentsResponse) GetJSONDefault() *Refusal
GetJSONDefault returns the response for an HTTP default `application/json` response
func (ReadItemCommentsResponse) Status ¶
func (r ReadItemCommentsResponse) Status() string
Status returns HTTPResponse.Status
func (ReadItemCommentsResponse) StatusCode ¶
func (r ReadItemCommentsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ReadItemCommentsResponseObject ¶
type ReadItemCommentsResponseObject interface {
VisitReadItemCommentsResponse(w http.ResponseWriter) error
}
type ReadItemCommentsdefaultJSONResponse ¶
func (ReadItemCommentsdefaultJSONResponse) VisitReadItemCommentsResponse ¶
func (response ReadItemCommentsdefaultJSONResponse) VisitReadItemCommentsResponse(w http.ResponseWriter) error
type Refusal ¶
type Refusal struct {
Code string `json:"code"`
Error string `json:"error"`
Field *string `json:"field,omitempty"`
Message string `json:"message"`
}
Refusal Refusal is the body of every answer that refuses a request, as goapiauth's own refusals write it.
type ReleaseAnswer ¶
type ReleaseAnswer struct {
Connector string `json:"connector"`
// Released Released counts the held queued tasks that this request returned to the
// claims, which is 0 for a connector already released.
Released int `json:"released"`
SchemaVersion int `json:"schema_version"`
}
ReleaseAnswer ReleaseAnswer is what POST /api/v1/connectors/{name}/release answers: schemas/connector-release.schema.json.
type ReleaseConnector200JSONResponse ¶
type ReleaseConnector200JSONResponse ReleaseAnswer
func (ReleaseConnector200JSONResponse) VisitReleaseConnectorResponse ¶
func (response ReleaseConnector200JSONResponse) VisitReleaseConnectorResponse(w http.ResponseWriter) error
type ReleaseConnectorRequestObject ¶
type ReleaseConnectorRequestObject struct {
Name string `json:"name"`
}
type ReleaseConnectorResponse ¶
type ReleaseConnectorResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ReleaseAnswer
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Refusal
}
func ParseReleaseConnectorResponse ¶
func ParseReleaseConnectorResponse(rsp *http.Response) (*ReleaseConnectorResponse, error)
ParseReleaseConnectorResponse parses an HTTP response from a ReleaseConnectorWithResponse call
func (ReleaseConnectorResponse) Bytes ¶
func (r ReleaseConnectorResponse) Bytes() []byte
Bytes is a convenience method to retrieve the raw bytes from the HTTP response
func (ReleaseConnectorResponse) ContentType ¶
func (r ReleaseConnectorResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ReleaseConnectorResponse) GetBody ¶
func (r ReleaseConnectorResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ReleaseConnectorResponse) GetJSON200 ¶
func (r ReleaseConnectorResponse) GetJSON200() *ReleaseAnswer
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ReleaseConnectorResponse) GetJSONDefault ¶
func (r ReleaseConnectorResponse) GetJSONDefault() *Refusal
GetJSONDefault returns the response for an HTTP default `application/json` response
func (ReleaseConnectorResponse) Status ¶
func (r ReleaseConnectorResponse) Status() string
Status returns HTTPResponse.Status
func (ReleaseConnectorResponse) StatusCode ¶
func (r ReleaseConnectorResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ReleaseConnectorResponseObject ¶
type ReleaseConnectorResponseObject interface {
VisitReleaseConnectorResponse(w http.ResponseWriter) error
}
type ReleaseConnectordefaultJSONResponse ¶
func (ReleaseConnectordefaultJSONResponse) VisitReleaseConnectorResponse ¶
func (response ReleaseConnectordefaultJSONResponse) VisitReleaseConnectorResponse(w http.ResponseWriter) error
type ReplayAnswer ¶
type ReplayAnswer struct {
Connector *string `json:"connector"`
Estimate *Tokens `json:"estimate"`
Items int `json:"items"`
Key *string `json:"key"`
Model *string `json:"model"`
PlacedBy *string `json:"placed_by"`
Queued bool `json:"queued"`
SchemaVersion int `json:"schema_version"`
Stage string `json:"stage"`
}
ReplayAnswer ReplayAnswer is what POST /api/v1/replays answers: schemas/replay.schema.json.
type ReplayRequest ¶
type ReplayRequest struct {
Confirm bool `json:"confirm"`
Connector *string `json:"connector"`
Key *string `json:"key"`
Model *string `json:"model,omitempty"`
PlacedBy *string `json:"placed_by,omitempty"`
Stage string `json:"stage"`
}
ReplayRequest ReplayRequest asks to run Stage again over the items that Connector and Key select, each absent selecting every item.
type ReplayStage200JSONResponse ¶
type ReplayStage200JSONResponse ReplayAnswer
func (ReplayStage200JSONResponse) VisitReplayStageResponse ¶
func (response ReplayStage200JSONResponse) VisitReplayStageResponse(w http.ResponseWriter) error
type ReplayStage201JSONResponse ¶
type ReplayStage201JSONResponse ReplayAnswer
func (ReplayStage201JSONResponse) VisitReplayStageResponse ¶
func (response ReplayStage201JSONResponse) VisitReplayStageResponse(w http.ResponseWriter) error
type ReplayStageJSONRequestBody ¶
type ReplayStageJSONRequestBody = ReplayRequest
ReplayStageJSONRequestBody defines body for ReplayStage for application/json ContentType.
type ReplayStageParams ¶
type ReplayStageParams struct {
// IdempotencyKey Names the request across a retry, so a retry under the same key answers what the first attempt did.
IdempotencyKey string `json:"Idempotency-Key"`
}
ReplayStageParams defines parameters for ReplayStage.
type ReplayStageRequestObject ¶
type ReplayStageRequestObject struct {
Params ReplayStageParams
Body *ReplayStageJSONRequestBody
}
type ReplayStageResponse ¶
type ReplayStageResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ReplayAnswer
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *ReplayAnswer
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Refusal
}
func ParseReplayStageResponse ¶
func ParseReplayStageResponse(rsp *http.Response) (*ReplayStageResponse, error)
ParseReplayStageResponse parses an HTTP response from a ReplayStageWithResponse call
func (ReplayStageResponse) Bytes ¶
func (r ReplayStageResponse) Bytes() []byte
Bytes is a convenience method to retrieve the raw bytes from the HTTP response
func (ReplayStageResponse) ContentType ¶
func (r ReplayStageResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ReplayStageResponse) GetBody ¶
func (r ReplayStageResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ReplayStageResponse) GetJSON200 ¶
func (r ReplayStageResponse) GetJSON200() *ReplayAnswer
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ReplayStageResponse) GetJSON201 ¶
func (r ReplayStageResponse) GetJSON201() *ReplayAnswer
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (ReplayStageResponse) GetJSONDefault ¶
func (r ReplayStageResponse) GetJSONDefault() *Refusal
GetJSONDefault returns the response for an HTTP default `application/json` response
func (ReplayStageResponse) Status ¶
func (r ReplayStageResponse) Status() string
Status returns HTTPResponse.Status
func (ReplayStageResponse) StatusCode ¶
func (r ReplayStageResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ReplayStageResponseObject ¶
type ReplayStageResponseObject interface {
VisitReplayStageResponse(w http.ResponseWriter) error
}
type ReplayStagedefaultJSONResponse ¶
func (ReplayStagedefaultJSONResponse) VisitReplayStageResponse ¶
func (response ReplayStagedefaultJSONResponse) VisitReplayStageResponse(w http.ResponseWriter) error
type ReportArrival ¶
type ReportArrival struct {
// BlobSha256 BlobSHA256 names the item's bytes, which the worker kept through the
// blob route before it reported the arrival, such as a page's HTML.
BlobSha256 *string `json:"blob_sha256,omitempty"`
// ExternalKey ExternalKey is the source's own key for the item, such as a playlist
// item's id, which a deleter removes.
ExternalKey *string `json:"external_key,omitempty"`
Fields *map[string]string `json:"fields,omitempty"`
Key *string `json:"key,omitempty"`
MediaType string `json:"media_type"`
Metrics *map[string]int `json:"metrics,omitempty"`
SourceTS *string `json:"source_ts,omitempty"`
Title *string `json:"title,omitempty"`
URL *string `json:"url,omitempty"`
}
ReportArrival ReportArrival is one item that a poll found at its source.
type ReportDelivery ¶
type ReportDelivery struct {
DestinationID *string `json:"destination_id,omitempty"`
Error *string `json:"error,omitempty"`
Outcome string `json:"outcome"`
}
ReportDelivery ReportDelivery is how one write of a deliver task's item ended: its outcome, the destination's id for the record that holds the item, and the destination's answer where the delivery is pending or refused.
type ReportMetrics ¶
ReportMetrics ReportMetrics is one item's metrics as a refresh read them again at its source, by name, such as a video's views.
type ReportOutput ¶
type ReportOutput struct {
Answer any `json:"answer,omitempty"`
AnsweredModel *string `json:"answered_model,omitempty"`
BlobSha256 *string `json:"blob_sha256,omitempty"`
DispatchID *string `json:"dispatch_id,omitempty"`
Effort *string `json:"effort,omitempty"`
Error *string `json:"error,omitempty"`
// Findings Findings and Spans are a scan's, and a model read's over its
// suggestion sentence. A scan that found nothing sends an empty list,
// which reads apart from a stage that sends none. RulesVersion is the
// version of the rules that made them.
Findings *[]Finding `json:"findings"`
Fit *int `json:"fit,omitempty"`
// InputProducer InputProducer and InputVersion name the parse that a later stage read.
InputProducer *string `json:"input_producer,omitempty"`
InputVersion *string `json:"input_version,omitempty"`
Lens *string `json:"lens,omitempty"`
LensVersion *string `json:"lens_version,omitempty"`
Model *string `json:"model,omitempty"`
// NoteDigest NoteDigest is store.NoteDigest of the note that a model read answered.
NoteDigest *string `json:"note_digest,omitempty"`
Producer string `json:"producer"`
ProducerVersion string `json:"producer_version"`
Quality *int `json:"quality,omitempty"`
RulesVersion *string `json:"rules_version,omitempty"`
RunID *string `json:"run_id,omitempty"`
SideConfidence *float64 `json:"side_confidence,omitempty"`
SideGuess *string `json:"side_guess,omitempty"`
Spans *[]Span `json:"spans"`
State string `json:"state"`
// Tokens Tokens is a model run's tokens by kind.
Tokens *Tokens `json:"tokens,omitempty"`
// Units Units are a parse's, numbered from 1 in order, which the service writes
// as rows of parse_units under the producer and its version.
Units *[]Unit `json:"units,omitempty"`
}
ReportOutput ReportOutput is one output a worker reports: each field of an outputs row that the stage's work decides, and a parse's units.
type ReportPage ¶
type ReportPage struct {
BlobSha256 string `json:"blob_sha256"`
MediaType *string `json:"media_type,omitempty"`
Title *string `json:"title,omitempty"`
}
ReportPage ReportPage is the page that a parse GET at its item's URL, because the item held no bytes, and kept through the blob route before it reported.
type ReportRequest ¶
type ReportRequest struct {
Arrivals *[]ReportArrival `json:"arrivals,omitempty"`
Cursor *string `json:"cursor,omitempty"`
// Delivery ReportDelivery is how one write of a deliver task's item ended: its outcome, the destination's id for the record that holds the item, and the destination's answer where the delivery is pending or refused.
Delivery *ReportDelivery `json:"delivery,omitempty"`
Error *string `json:"error,omitempty"`
Metrics *[]ReportMetrics `json:"metrics,omitempty"`
// Outcome Outcome is OutcomeDone, OutcomeFailed or OutcomeRetry.
Outcome string `json:"outcome"`
Outputs *[]ReportOutput `json:"outputs,omitempty"`
// Page Page is the page that a parse fetched and kept for an item that held
// no bytes, which the service makes the item's bytes.
Page *ReportPage `json:"page,omitempty"`
RetryAfterSeconds *int `json:"retry_after_seconds,omitempty"`
Token int `json:"token"`
// Wait Wait marks a retry that waits on the far end, or on a stopping worker,
// rather than one that a fault in the run caused. Such a retry spends no
// attempt, and the service counts how long the task has waited since the
// first, as the claim's waited_seconds.
Wait *bool `json:"wait,omitempty"`
}
ReportRequest ReportRequest ends a lease with the result of the task's run, under the token that holds the lease.
type ReportTask200JSONResponse ¶
type ReportTask200JSONResponse TaskView
func (ReportTask200JSONResponse) VisitReportTaskResponse ¶
func (response ReportTask200JSONResponse) VisitReportTaskResponse(w http.ResponseWriter) error
type ReportTaskJSONRequestBody ¶
type ReportTaskJSONRequestBody = ReportRequest
ReportTaskJSONRequestBody defines body for ReportTask for application/json ContentType.
type ReportTaskRequestObject ¶
type ReportTaskRequestObject struct {
ID string `json:"id"`
Body *ReportTaskJSONRequestBody
}
type ReportTaskResponse ¶
type ReportTaskResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *TaskView
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Refusal
}
func ParseReportTaskResponse ¶
func ParseReportTaskResponse(rsp *http.Response) (*ReportTaskResponse, error)
ParseReportTaskResponse parses an HTTP response from a ReportTaskWithResponse call
func (ReportTaskResponse) Bytes ¶
func (r ReportTaskResponse) Bytes() []byte
Bytes is a convenience method to retrieve the raw bytes from the HTTP response
func (ReportTaskResponse) ContentType ¶
func (r ReportTaskResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ReportTaskResponse) GetBody ¶
func (r ReportTaskResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ReportTaskResponse) GetJSON200 ¶
func (r ReportTaskResponse) GetJSON200() *TaskView
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ReportTaskResponse) GetJSONDefault ¶
func (r ReportTaskResponse) GetJSONDefault() *Refusal
GetJSONDefault returns the response for an HTTP default `application/json` response
func (ReportTaskResponse) Status ¶
func (r ReportTaskResponse) Status() string
Status returns HTTPResponse.Status
func (ReportTaskResponse) StatusCode ¶
func (r ReportTaskResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ReportTaskResponseObject ¶
type ReportTaskResponseObject interface {
VisitReportTaskResponse(w http.ResponseWriter) error
}
type ReportTaskdefaultJSONResponse ¶
func (ReportTaskdefaultJSONResponse) VisitReportTaskResponse ¶
func (response ReportTaskdefaultJSONResponse) VisitReportTaskResponse(w http.ResponseWriter) error
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type RequiredHeaderError ¶
func (*RequiredHeaderError) Error ¶
func (e *RequiredHeaderError) Error() string
func (*RequiredHeaderError) Unwrap ¶
func (e *RequiredHeaderError) Unwrap() error
type RequiredParamError ¶
type RequiredParamError struct {
ParamName string
}
func (*RequiredParamError) Error ¶
func (e *RequiredParamError) Error() string
type RetireRoutingRule200JSONResponse ¶
type RetireRoutingRule200JSONResponse RoutingRuleAnswer
func (RetireRoutingRule200JSONResponse) VisitRetireRoutingRuleResponse ¶
func (response RetireRoutingRule200JSONResponse) VisitRetireRoutingRuleResponse(w http.ResponseWriter) error
type RetireRoutingRuleJSONRequestBody ¶
type RetireRoutingRuleJSONRequestBody = RetireRuleRequest
RetireRoutingRuleJSONRequestBody defines body for RetireRoutingRule for application/json ContentType.
type RetireRoutingRuleRequestObject ¶
type RetireRoutingRuleRequestObject struct {
Name string `json:"name"`
Body *RetireRoutingRuleJSONRequestBody
}
type RetireRoutingRuleResponse ¶
type RetireRoutingRuleResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *RoutingRuleAnswer
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Refusal
}
func ParseRetireRoutingRuleResponse ¶
func ParseRetireRoutingRuleResponse(rsp *http.Response) (*RetireRoutingRuleResponse, error)
ParseRetireRoutingRuleResponse parses an HTTP response from a RetireRoutingRuleWithResponse call
func (RetireRoutingRuleResponse) Bytes ¶
func (r RetireRoutingRuleResponse) Bytes() []byte
Bytes is a convenience method to retrieve the raw bytes from the HTTP response
func (RetireRoutingRuleResponse) ContentType ¶
func (r RetireRoutingRuleResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (RetireRoutingRuleResponse) GetBody ¶
func (r RetireRoutingRuleResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (RetireRoutingRuleResponse) GetJSON200 ¶
func (r RetireRoutingRuleResponse) GetJSON200() *RoutingRuleAnswer
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (RetireRoutingRuleResponse) GetJSONDefault ¶
func (r RetireRoutingRuleResponse) GetJSONDefault() *Refusal
GetJSONDefault returns the response for an HTTP default `application/json` response
func (RetireRoutingRuleResponse) Status ¶
func (r RetireRoutingRuleResponse) Status() string
Status returns HTTPResponse.Status
func (RetireRoutingRuleResponse) StatusCode ¶
func (r RetireRoutingRuleResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RetireRoutingRuleResponseObject ¶
type RetireRoutingRuleResponseObject interface {
VisitRetireRoutingRuleResponse(w http.ResponseWriter) error
}
type RetireRoutingRuledefaultJSONResponse ¶
func (RetireRoutingRuledefaultJSONResponse) VisitRetireRoutingRuleResponse ¶
func (response RetireRoutingRuledefaultJSONResponse) VisitRetireRoutingRuleResponse(w http.ResponseWriter) error
type RetireRuleRequest ¶
type RetireRuleRequest struct {
Login *string `json:"login,omitempty"`
}
RetireRuleRequest RetireRuleRequest retires a routing rule, for the person a service names.
type RetryTask200JSONResponse ¶
type RetryTask200JSONResponse TaskRetryAnswer
func (RetryTask200JSONResponse) VisitRetryTaskResponse ¶
func (response RetryTask200JSONResponse) VisitRetryTaskResponse(w http.ResponseWriter) error
type RetryTaskRequestObject ¶
type RetryTaskRequestObject struct {
ID string `json:"id"`
}
type RetryTaskResponse ¶
type RetryTaskResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *TaskRetryAnswer
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Refusal
}
func ParseRetryTaskResponse ¶
func ParseRetryTaskResponse(rsp *http.Response) (*RetryTaskResponse, error)
ParseRetryTaskResponse parses an HTTP response from a RetryTaskWithResponse call
func (RetryTaskResponse) Bytes ¶
func (r RetryTaskResponse) Bytes() []byte
Bytes is a convenience method to retrieve the raw bytes from the HTTP response
func (RetryTaskResponse) ContentType ¶
func (r RetryTaskResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (RetryTaskResponse) GetBody ¶
func (r RetryTaskResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (RetryTaskResponse) GetJSON200 ¶
func (r RetryTaskResponse) GetJSON200() *TaskRetryAnswer
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (RetryTaskResponse) GetJSONDefault ¶
func (r RetryTaskResponse) GetJSONDefault() *Refusal
GetJSONDefault returns the response for an HTTP default `application/json` response
func (RetryTaskResponse) Status ¶
func (r RetryTaskResponse) Status() string
Status returns HTTPResponse.Status
func (RetryTaskResponse) StatusCode ¶
func (r RetryTaskResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RetryTaskResponseObject ¶
type RetryTaskResponseObject interface {
VisitRetryTaskResponse(w http.ResponseWriter) error
}
type RetryTaskdefaultJSONResponse ¶
func (RetryTaskdefaultJSONResponse) VisitRetryTaskResponse ¶
func (response RetryTaskdefaultJSONResponse) VisitRetryTaskResponse(w http.ResponseWriter) error
type ReviewAnswer ¶
type ReviewAnswer struct {
Choices *[]ReviewChoice `json:"choices"`
Destinations *[]ReviewDestination `json:"destinations"`
Items *[]ReviewItem `json:"items"`
SchemaVersion int `json:"schema_version"`
WatchDefaultPlaylist *string `json:"watch_default_playlist"`
}
ReviewAnswer ReviewAnswer is what GET /api/v1/review answers: schemas/review-list.schema.json.
type ReviewChoice ¶
type ReviewChoice struct {
Choice string `json:"choice"`
Destination *string `json:"destination"`
Missing *string `json:"missing"`
Playlist bool `json:"playlist"`
RunsHere bool `json:"runs_here"`
Side *string `json:"side"`
}
ReviewChoice ReviewChoice is one of review's choices under the set in force: the side and the destination it places an item on, each nil for archive and drop, whether its pick names a playlist, whether the client that picks it runs psyche relate on its own machine, and why it places nothing where the set declares no destination it takes.
type ReviewComments ¶
type ReviewComments struct {
Answer any `json:"answer"`
Error *string `json:"error"`
State string `json:"state"`
TaskID *string `json:"task_id"`
}
ReviewComments ReviewComments is how the read of an item's comments stands, and its answer once done.
type ReviewDestination ¶
ReviewDestination ReviewDestination is a declared destination and the side it gives an item.
type ReviewGuess ¶
ReviewGuess ReviewGuess is the quality gate's side guess on an item.
type ReviewItem ¶
type ReviewItem struct {
// Channel Channel is who published the item, as its sightings name it, such as a
// video's channel or a save's subreddit as r/<name>, and null where none
// does. ChannelFields are the sighting fields that a drop decided by the
// channel stands for, empty where a drop names the channel's field as its
// own cause.
Channel *string `json:"channel"`
ChannelFields *[]string `json:"channel_fields"`
CommentCount *int `json:"comment_count"`
// Comments Comments is how the read of what the item's top comments say stands,
// and nil where no source of this build reads the item's comments.
Comments *ReviewComments `json:"comments"`
Connectors *[]string `json:"connectors"`
Guess *ReviewGuess `json:"guess"`
Key string `json:"key"`
// LengthS LengthS is how long the item runs in seconds, and Views, Likes and
// CommentCount how it was received, each null where no sighting carries
// it.
LengthS *int `json:"length_s"`
Likes *int `json:"likes"`
// MediaType MediaType is the item's, and SourceTS when its artifact was made at its
// source, such as a video's upload, and null where the source gave none.
MediaType string `json:"media_type"`
// NoteDraft NoteDraft is the note stage's newest done draft as the store keeps it,
// and null where none was drafted.
NoteDraft any `json:"note_draft"`
// QualityAnswer QualityAnswer is the quality gate's newest done answer as the store
// keeps it, and null where the gate gave none.
QualityAnswer any `json:"quality_answer"`
// Reason Reason is why the item waits, as schemas/review-list.schema.json
// enumerates it.
Reason string `json:"reason"`
// Rule Rule is the routing rule that would have decided an item that waits as
// rule-would-hide, and nil under any other reason.
Rule *ReviewRule `json:"rule"`
Sightings *[]ReviewSighting `json:"sightings"`
SourceTS *string `json:"source_ts"`
Title *string `json:"title"`
URL *string `json:"url"`
Views *int `json:"views"`
WaitingSinceTS string `json:"waiting_since_ts"`
Zone string `json:"zone"`
}
ReviewItem ReviewItem is one item that waits on a person's placement, and why.
type ReviewRule ¶
ReviewRule ReviewRule is the routing rule whose review share drew an item: its name, and the destination that a keep would place it on, which is nil where a block would drop it.
type ReviewSighting ¶
type ReviewSighting struct {
Connector string `json:"connector"`
Fields *map[string]string `json:"fields"`
Metrics *map[string]int `json:"metrics"`
Tags *[]string `json:"tags"`
}
ReviewSighting ReviewSighting is one connector's arrival of a waiting item: the tags the side gate read and the source's fields, such as a Reddit save's subreddit.
type RoutingRule ¶
type RoutingRule struct {
Destination string `json:"destination"`
// Match Match is what a routing rule holds for.
Match Match `json:"match"`
Name string `json:"name"`
}
RoutingRule RoutingRule names one destination for the items that match it.
type RoutingRuleAnswer ¶
type RoutingRuleAnswer struct {
Appended bool `json:"appended"`
// Rule RoutingRuleView is one version of an accepted routing rule: schemas/routing-rules.schema.json#/$defs/version.
Rule RoutingRuleView `json:"rule"`
SchemaVersion int `json:"schema_version"`
}
RoutingRuleAnswer RoutingRuleAnswer is what a write of a routing rule answers: schemas/routing-rule-version.schema.json.
type RoutingRuleRequest ¶
type RoutingRuleRequest struct {
Action RoutingRuleRequestAction `json:"action"`
Destination *string `json:"destination,omitempty"`
Login *string `json:"login,omitempty"`
// Match Match is what a routing rule holds for.
Match Match `json:"match"`
Proposal *string `json:"proposal,omitempty"`
}
RoutingRuleRequest RoutingRuleRequest accepts a routing rule: schemas/routing-rules.schema.json#/$defs/accepted.
type RoutingRuleRequestAction ¶
type RoutingRuleRequestAction string
RoutingRuleRequestAction defines model for RoutingRuleRequest.Action.
const ( RoutingRuleRequestActionBlock RoutingRuleRequestAction = "block" RoutingRuleRequestActionKeep RoutingRuleRequestAction = "keep" )
Defines values for RoutingRuleRequestAction.
func (RoutingRuleRequestAction) Valid ¶
func (e RoutingRuleRequestAction) Valid() bool
Valid indicates whether the value is a known member of the RoutingRuleRequestAction enum.
type RoutingRuleView ¶
type RoutingRuleView struct {
Action string `json:"action"`
ClientID *string `json:"client_id"`
DecidedBy string `json:"decided_by"`
DecidedTS string `json:"decided_ts"`
Destination *string `json:"destination"`
// Match Match is what a routing rule holds for.
Match Match `json:"match"`
Name string `json:"name"`
Proposal *string `json:"proposal"`
Retired bool `json:"retired"`
Sequence int `json:"sequence"`
}
RoutingRuleView RoutingRuleView is one version of an accepted routing rule: schemas/routing-rules.schema.json#/$defs/version.
type RoutingRulesAnswer ¶
type RoutingRulesAnswer struct {
Rules *[]RoutingRuleView `json:"rules"`
SchemaVersion int `json:"schema_version"`
}
RoutingRulesAnswer RoutingRulesAnswer is what GET /api/v1/routing-rules answers: schemas/routing-rules-list.schema.json.
type RuleMatch ¶
type RuleMatch struct {
Connector string `json:"connector"`
Field string `json:"field"`
Values *[]string `json:"values"`
}
RuleMatch RuleMatch is a match in a declared routing rule's shape, which a rule takes as it stands: it holds for an item that Connector sighted, where the sighting's Field holds one of Values.
type RunAnswer ¶
type RunAnswer struct {
Connector string `json:"connector"`
DueAt string `json:"due_at"`
Mode string `json:"mode"`
SchemaVersion int `json:"schema_version"`
TaskID *string `json:"task_id"`
}
RunAnswer RunAnswer is what POST /api/v1/connectors/{name}/runs answers: schemas/connector-run.schema.json.
type RunConnector200JSONResponse ¶
type RunConnector200JSONResponse RunAnswer
func (RunConnector200JSONResponse) VisitRunConnectorResponse ¶
func (response RunConnector200JSONResponse) VisitRunConnectorResponse(w http.ResponseWriter) error
type RunConnector201JSONResponse ¶
type RunConnector201JSONResponse RunAnswer
func (RunConnector201JSONResponse) VisitRunConnectorResponse ¶
func (response RunConnector201JSONResponse) VisitRunConnectorResponse(w http.ResponseWriter) error
type RunConnector202JSONResponse ¶
type RunConnector202JSONResponse RunAnswer
func (RunConnector202JSONResponse) VisitRunConnectorResponse ¶
func (response RunConnector202JSONResponse) VisitRunConnectorResponse(w http.ResponseWriter) error
type RunConnectorParams ¶
type RunConnectorParams struct {
// IdempotencyKey Names the request across a retry, so a retry under the same key answers what the first attempt did.
IdempotencyKey string `json:"Idempotency-Key"`
}
RunConnectorParams defines parameters for RunConnector.
type RunConnectorRequestObject ¶
type RunConnectorRequestObject struct {
Name string `json:"name"`
Params RunConnectorParams
}
type RunConnectorResponse ¶
type RunConnectorResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *RunAnswer
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *RunAnswer
// JSON202 the response for an HTTP 202 `application/json` response
JSON202 *RunAnswer
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Refusal
}
func ParseRunConnectorResponse ¶
func ParseRunConnectorResponse(rsp *http.Response) (*RunConnectorResponse, error)
ParseRunConnectorResponse parses an HTTP response from a RunConnectorWithResponse call
func (RunConnectorResponse) Bytes ¶
func (r RunConnectorResponse) Bytes() []byte
Bytes is a convenience method to retrieve the raw bytes from the HTTP response
func (RunConnectorResponse) ContentType ¶
func (r RunConnectorResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (RunConnectorResponse) GetBody ¶
func (r RunConnectorResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (RunConnectorResponse) GetJSON200 ¶
func (r RunConnectorResponse) GetJSON200() *RunAnswer
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (RunConnectorResponse) GetJSON201 ¶
func (r RunConnectorResponse) GetJSON201() *RunAnswer
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (RunConnectorResponse) GetJSON202 ¶
func (r RunConnectorResponse) GetJSON202() *RunAnswer
GetJSON202 returns the response for an HTTP 202 `application/json` response
func (RunConnectorResponse) GetJSONDefault ¶
func (r RunConnectorResponse) GetJSONDefault() *Refusal
GetJSONDefault returns the response for an HTTP default `application/json` response
func (RunConnectorResponse) Status ¶
func (r RunConnectorResponse) Status() string
Status returns HTTPResponse.Status
func (RunConnectorResponse) StatusCode ¶
func (r RunConnectorResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RunConnectorResponseObject ¶
type RunConnectorResponseObject interface {
VisitRunConnectorResponse(w http.ResponseWriter) error
}
type RunConnectordefaultJSONResponse ¶
func (RunConnectordefaultJSONResponse) VisitRunConnectorResponse ¶
func (response RunConnectordefaultJSONResponse) VisitRunConnectorResponse(w http.ResponseWriter) error
type SectionView ¶
type SectionView struct {
ChildKey *string `json:"child_key"`
Kind string `json:"kind"`
Level int `json:"level"`
N int `json:"n"`
ParentN *int `json:"parent_n"`
PdfPageEnd int `json:"pdf_page_end"`
PdfPageStart int `json:"pdf_page_start"`
PrintedPageEnd *string `json:"printed_page_end"`
PrintedPageStart *string `json:"printed_page_start"`
Producer string `json:"producer"`
ProducerVersion string `json:"producer_version"`
StartPlacedBy string `json:"start_placed_by"`
Title *string `json:"title"`
}
SectionView SectionView is one entry of an item's sections, as the sections table holds it.
type ServeMux ¶
type ServeMux interface {
HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request))
http.Handler
}
ServeMux is an abstraction of http.ServeMux.
type ServerInterface ¶
type ServerInterface interface {
// ListUnpairedBlobs Each blob that no row names, and each row whose bytes are gone
// (GET /api/v1/blobs/unpaired)
ListUnpairedBlobs(w http.ResponseWriter, r *http.Request)
// ListConnectors Each connector in the set in force
// (GET /api/v1/connectors)
ListConnectors(w http.ResponseWriter, r *http.Request)
// ShowConnector One connector in the set in force
// (GET /api/v1/connectors/{name})
ShowConnector(w http.ResponseWriter, r *http.Request, name string)
// HoldConnector Hold a connector's model stages for a person
// (POST /api/v1/connectors/{name}/hold)
HoldConnector(w http.ResponseWriter, r *http.Request, name string)
// ReleaseConnector Lift a connector's hold and release its first fill
// (POST /api/v1/connectors/{name}/release)
ReleaseConnector(w http.ResponseWriter, r *http.Request, name string)
// RunConnector Run a scheduled connector now
// (POST /api/v1/connectors/{name}/runs)
RunConnector(w http.ResponseWriter, r *http.Request, name string, params RunConnectorParams)
// ApplyDeclarations Put a declaration set in force
// (PUT /api/v1/declarations)
ApplyDeclarations(w http.ResponseWriter, r *http.Request)
// ListGateTrust The trust ladder, and each quality gate family's standing on it
// (GET /api/v1/gates/trust)
ListGateTrust(w http.ResponseWriter, r *http.Request)
// PromoteGateFamily Promote a quality gate family a rung
// (POST /api/v1/gates/trust/{family}/promote)
PromoteGateFamily(w http.ResponseWriter, r *http.Request, family string)
// ListItems A page of items, newest first
// (GET /api/v1/items)
ListItems(w http.ResponseWriter, r *http.Request, params ListItemsParams)
// PushItem Land a link through a push connector. A memo's audio lands here too, as its body rather than JSON
// (POST /api/v1/items)
PushItem(w http.ResponseWriter, r *http.Request, params PushItemParams)
// ShowItem One item with every record of it, or the item as a resource
// (GET /api/v1/items/{key})
ShowItem(w http.ResponseWriter, r *http.Request, key string)
// ReadItemComments Ask for the read of an item's top comments, and how it stands
// (POST /api/v1/items/{key}/comments)
ReadItemComments(w http.ResponseWriter, r *http.Request, key string)
// MarkItem Mark an item low-quality or read
// (POST /api/v1/items/{key}/marks)
MarkItem(w http.ResponseWriter, r *http.Request, key string)
// ShowItemParse The item's newest done parse, or the one that the query picks
// (GET /api/v1/items/{key}/parse)
ShowItemParse(w http.ResponseWriter, r *http.Request, key string, params ShowItemParseParams)
// ReplayStage Run a stage again over the items a replay selects, or estimate a model stage's replay
// (POST /api/v1/replays)
ReplayStage(w http.ResponseWriter, r *http.Request, params ReplayStageParams)
// ListReview Each item that waits on a person, the longest waiting first
// (GET /api/v1/review)
ListReview(w http.ResponseWriter, r *http.Request)
// ArchiveItem Keep an item on the personal side with no destination
// (POST /api/v1/review/{key}/archive)
ArchiveItem(w http.ResponseWriter, r *http.Request, key string)
// DropItem Drop an item from review
// (POST /api/v1/review/{key}/drop)
DropItem(w http.ResponseWriter, r *http.Request, key string)
// PlaceItem Place an item by a review choice or on a destination
// (POST /api/v1/review/{key}/place)
PlaceItem(w http.ResponseWriter, r *http.Request, key string)
// ListRoutingRules The newest version of each routing rule that a person accepted
// (GET /api/v1/routing-rules)
ListRoutingRules(w http.ResponseWriter, r *http.Request)
// PutRoutingRule Write a version of an accepted routing rule
// (PUT /api/v1/routing-rules/{name})
PutRoutingRule(w http.ResponseWriter, r *http.Request, name string)
// RetireRoutingRule Retire an accepted routing rule
// (POST /api/v1/routing-rules/{name}/retire)
RetireRoutingRule(w http.ResponseWriter, r *http.Request, name string)
// ListTasks The tasks in the states asked for, and the workers heard from
// (GET /api/v1/tasks)
ListTasks(w http.ResponseWriter, r *http.Request, params ListTasksParams)
// ClaimTasks Lease the tasks that a worker's capabilities take
// (POST /api/v1/tasks/claims)
ClaimTasks(w http.ResponseWriter, r *http.Request)
// HeartbeatTask Extend the lease that a worker holds on a task
// (POST /api/v1/tasks/{id}/heartbeats)
HeartbeatTask(w http.ResponseWriter, r *http.Request, id string)
// ShowTaskParse The newest done parse of the item whose task the caller leases
// (GET /api/v1/tasks/{id}/parse)
ShowTaskParse(w http.ResponseWriter, r *http.Request, id string, params ShowTaskParseParams)
// ReportTask End a leased task with what its worker found
// (POST /api/v1/tasks/{id}/reports)
ReportTask(w http.ResponseWriter, r *http.Request, id string)
// RetryTask Queue a failed task again
// (POST /api/v1/tasks/{id}/retries)
RetryTask(w http.ResponseWriter, r *http.Request, id string)
// ShowVersion The version of the serve that answers
// (GET /api/v1/version)
ShowVersion(w http.ResponseWriter, r *http.Request)
}
ServerInterface represents all server handlers.
func NewStrictHandler ¶
func NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface
func NewStrictHandlerWithOptions ¶
func NewStrictHandlerWithOptions(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc, options StrictHTTPServerOptions) ServerInterface
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct {
Handler ServerInterface
HandlerMiddlewares []MiddlewareFunc
ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
ServerInterfaceWrapper converts contexts to parameters.
func (*ServerInterfaceWrapper) ApplyDeclarations ¶
func (siw *ServerInterfaceWrapper) ApplyDeclarations(w http.ResponseWriter, r *http.Request)
ApplyDeclarations operation middleware
func (*ServerInterfaceWrapper) ArchiveItem ¶
func (siw *ServerInterfaceWrapper) ArchiveItem(w http.ResponseWriter, r *http.Request)
ArchiveItem operation middleware
func (*ServerInterfaceWrapper) ClaimTasks ¶
func (siw *ServerInterfaceWrapper) ClaimTasks(w http.ResponseWriter, r *http.Request)
ClaimTasks operation middleware
func (*ServerInterfaceWrapper) DropItem ¶
func (siw *ServerInterfaceWrapper) DropItem(w http.ResponseWriter, r *http.Request)
DropItem operation middleware
func (*ServerInterfaceWrapper) HeartbeatTask ¶
func (siw *ServerInterfaceWrapper) HeartbeatTask(w http.ResponseWriter, r *http.Request)
HeartbeatTask operation middleware
func (*ServerInterfaceWrapper) HoldConnector ¶
func (siw *ServerInterfaceWrapper) HoldConnector(w http.ResponseWriter, r *http.Request)
HoldConnector operation middleware
func (*ServerInterfaceWrapper) ListConnectors ¶
func (siw *ServerInterfaceWrapper) ListConnectors(w http.ResponseWriter, r *http.Request)
ListConnectors operation middleware
func (*ServerInterfaceWrapper) ListGateTrust ¶
func (siw *ServerInterfaceWrapper) ListGateTrust(w http.ResponseWriter, r *http.Request)
ListGateTrust operation middleware
func (*ServerInterfaceWrapper) ListItems ¶
func (siw *ServerInterfaceWrapper) ListItems(w http.ResponseWriter, r *http.Request)
ListItems operation middleware
func (*ServerInterfaceWrapper) ListReview ¶
func (siw *ServerInterfaceWrapper) ListReview(w http.ResponseWriter, r *http.Request)
ListReview operation middleware
func (*ServerInterfaceWrapper) ListRoutingRules ¶
func (siw *ServerInterfaceWrapper) ListRoutingRules(w http.ResponseWriter, r *http.Request)
ListRoutingRules operation middleware
func (*ServerInterfaceWrapper) ListTasks ¶
func (siw *ServerInterfaceWrapper) ListTasks(w http.ResponseWriter, r *http.Request)
ListTasks operation middleware
func (*ServerInterfaceWrapper) ListUnpairedBlobs ¶
func (siw *ServerInterfaceWrapper) ListUnpairedBlobs(w http.ResponseWriter, r *http.Request)
ListUnpairedBlobs operation middleware
func (*ServerInterfaceWrapper) MarkItem ¶
func (siw *ServerInterfaceWrapper) MarkItem(w http.ResponseWriter, r *http.Request)
MarkItem operation middleware
func (*ServerInterfaceWrapper) PlaceItem ¶
func (siw *ServerInterfaceWrapper) PlaceItem(w http.ResponseWriter, r *http.Request)
PlaceItem operation middleware
func (*ServerInterfaceWrapper) PromoteGateFamily ¶
func (siw *ServerInterfaceWrapper) PromoteGateFamily(w http.ResponseWriter, r *http.Request)
PromoteGateFamily operation middleware
func (*ServerInterfaceWrapper) PushItem ¶
func (siw *ServerInterfaceWrapper) PushItem(w http.ResponseWriter, r *http.Request)
PushItem operation middleware
func (*ServerInterfaceWrapper) PutRoutingRule ¶
func (siw *ServerInterfaceWrapper) PutRoutingRule(w http.ResponseWriter, r *http.Request)
PutRoutingRule operation middleware
func (*ServerInterfaceWrapper) ReadItemComments ¶
func (siw *ServerInterfaceWrapper) ReadItemComments(w http.ResponseWriter, r *http.Request)
ReadItemComments operation middleware
func (*ServerInterfaceWrapper) ReleaseConnector ¶
func (siw *ServerInterfaceWrapper) ReleaseConnector(w http.ResponseWriter, r *http.Request)
ReleaseConnector operation middleware
func (*ServerInterfaceWrapper) ReplayStage ¶
func (siw *ServerInterfaceWrapper) ReplayStage(w http.ResponseWriter, r *http.Request)
ReplayStage operation middleware
func (*ServerInterfaceWrapper) ReportTask ¶
func (siw *ServerInterfaceWrapper) ReportTask(w http.ResponseWriter, r *http.Request)
ReportTask operation middleware
func (*ServerInterfaceWrapper) RetireRoutingRule ¶
func (siw *ServerInterfaceWrapper) RetireRoutingRule(w http.ResponseWriter, r *http.Request)
RetireRoutingRule operation middleware
func (*ServerInterfaceWrapper) RetryTask ¶
func (siw *ServerInterfaceWrapper) RetryTask(w http.ResponseWriter, r *http.Request)
RetryTask operation middleware
func (*ServerInterfaceWrapper) RunConnector ¶
func (siw *ServerInterfaceWrapper) RunConnector(w http.ResponseWriter, r *http.Request)
RunConnector operation middleware
func (*ServerInterfaceWrapper) ShowConnector ¶
func (siw *ServerInterfaceWrapper) ShowConnector(w http.ResponseWriter, r *http.Request)
ShowConnector operation middleware
func (*ServerInterfaceWrapper) ShowItem ¶
func (siw *ServerInterfaceWrapper) ShowItem(w http.ResponseWriter, r *http.Request)
ShowItem operation middleware
func (*ServerInterfaceWrapper) ShowItemParse ¶
func (siw *ServerInterfaceWrapper) ShowItemParse(w http.ResponseWriter, r *http.Request)
ShowItemParse operation middleware
func (*ServerInterfaceWrapper) ShowTaskParse ¶
func (siw *ServerInterfaceWrapper) ShowTaskParse(w http.ResponseWriter, r *http.Request)
ShowTaskParse operation middleware
func (*ServerInterfaceWrapper) ShowVersion ¶
func (siw *ServerInterfaceWrapper) ShowVersion(w http.ResponseWriter, r *http.Request)
ShowVersion operation middleware
type ShowConnector200JSONResponse ¶
type ShowConnector200JSONResponse ConnectorView
func (ShowConnector200JSONResponse) VisitShowConnectorResponse ¶
func (response ShowConnector200JSONResponse) VisitShowConnectorResponse(w http.ResponseWriter) error
type ShowConnectorRequestObject ¶
type ShowConnectorRequestObject struct {
Name string `json:"name"`
}
type ShowConnectorResponse ¶
type ShowConnectorResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ConnectorView
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Refusal
}
func ParseShowConnectorResponse ¶
func ParseShowConnectorResponse(rsp *http.Response) (*ShowConnectorResponse, error)
ParseShowConnectorResponse parses an HTTP response from a ShowConnectorWithResponse call
func (ShowConnectorResponse) Bytes ¶
func (r ShowConnectorResponse) Bytes() []byte
Bytes is a convenience method to retrieve the raw bytes from the HTTP response
func (ShowConnectorResponse) ContentType ¶
func (r ShowConnectorResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ShowConnectorResponse) GetBody ¶
func (r ShowConnectorResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ShowConnectorResponse) GetJSON200 ¶
func (r ShowConnectorResponse) GetJSON200() *ConnectorView
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ShowConnectorResponse) GetJSONDefault ¶
func (r ShowConnectorResponse) GetJSONDefault() *Refusal
GetJSONDefault returns the response for an HTTP default `application/json` response
func (ShowConnectorResponse) Status ¶
func (r ShowConnectorResponse) Status() string
Status returns HTTPResponse.Status
func (ShowConnectorResponse) StatusCode ¶
func (r ShowConnectorResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ShowConnectorResponseObject ¶
type ShowConnectorResponseObject interface {
VisitShowConnectorResponse(w http.ResponseWriter) error
}
type ShowConnectordefaultJSONResponse ¶
func (ShowConnectordefaultJSONResponse) VisitShowConnectorResponse ¶
func (response ShowConnectordefaultJSONResponse) VisitShowConnectorResponse(w http.ResponseWriter) error
type ShowItem200ApplicationVndFleetResourcePlusJSONResponse ¶
type ShowItem200ApplicationVndFleetResourcePlusJSONResponse ItemResource
func (ShowItem200ApplicationVndFleetResourcePlusJSONResponse) VisitShowItemResponse ¶
func (response ShowItem200ApplicationVndFleetResourcePlusJSONResponse) VisitShowItemResponse(w http.ResponseWriter) error
type ShowItem200JSONResponse ¶
type ShowItem200JSONResponse ItemAnswer
func (ShowItem200JSONResponse) VisitShowItemResponse ¶
func (response ShowItem200JSONResponse) VisitShowItemResponse(w http.ResponseWriter) error
type ShowItemParse200JSONResponse ¶
type ShowItemParse200JSONResponse ParseAnswer
func (ShowItemParse200JSONResponse) VisitShowItemParseResponse ¶
func (response ShowItemParse200JSONResponse) VisitShowItemParseResponse(w http.ResponseWriter) error
type ShowItemParseParams ¶
type ShowItemParseParams struct {
// Extractor Extractor keeps the parses that one extractor wrote, such as pdf-text.
Extractor *string `form:"extractor,omitempty" json:"extractor,omitempty"`
// Version Version keeps the parses at one extractor version.
Version *string `form:"version,omitempty" json:"version,omitempty"`
}
ShowItemParseParams defines parameters for ShowItemParse.
type ShowItemParseRequestObject ¶
type ShowItemParseRequestObject struct {
Key string `json:"key"`
Params ShowItemParseParams
}
type ShowItemParseResponse ¶
type ShowItemParseResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ParseAnswer
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Refusal
}
func ParseShowItemParseResponse ¶
func ParseShowItemParseResponse(rsp *http.Response) (*ShowItemParseResponse, error)
ParseShowItemParseResponse parses an HTTP response from a ShowItemParseWithResponse call
func (ShowItemParseResponse) Bytes ¶
func (r ShowItemParseResponse) Bytes() []byte
Bytes is a convenience method to retrieve the raw bytes from the HTTP response
func (ShowItemParseResponse) ContentType ¶
func (r ShowItemParseResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ShowItemParseResponse) GetBody ¶
func (r ShowItemParseResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ShowItemParseResponse) GetJSON200 ¶
func (r ShowItemParseResponse) GetJSON200() *ParseAnswer
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ShowItemParseResponse) GetJSONDefault ¶
func (r ShowItemParseResponse) GetJSONDefault() *Refusal
GetJSONDefault returns the response for an HTTP default `application/json` response
func (ShowItemParseResponse) Status ¶
func (r ShowItemParseResponse) Status() string
Status returns HTTPResponse.Status
func (ShowItemParseResponse) StatusCode ¶
func (r ShowItemParseResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ShowItemParseResponseObject ¶
type ShowItemParseResponseObject interface {
VisitShowItemParseResponse(w http.ResponseWriter) error
}
type ShowItemParsedefaultJSONResponse ¶
func (ShowItemParsedefaultJSONResponse) VisitShowItemParseResponse ¶
func (response ShowItemParsedefaultJSONResponse) VisitShowItemParseResponse(w http.ResponseWriter) error
type ShowItemRequestObject ¶
type ShowItemRequestObject struct {
Key string `json:"key"`
}
type ShowItemResponse ¶
type ShowItemResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ItemAnswer
// ApplicationVndFleetResourceJSON200 the response for an HTTP 200 `application/vnd.fleet.resource+json` response
ApplicationVndFleetResourceJSON200 *ItemResource
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Refusal
}
func ParseShowItemResponse ¶
func ParseShowItemResponse(rsp *http.Response) (*ShowItemResponse, error)
ParseShowItemResponse parses an HTTP response from a ShowItemWithResponse call
func (ShowItemResponse) Bytes ¶
func (r ShowItemResponse) Bytes() []byte
Bytes is a convenience method to retrieve the raw bytes from the HTTP response
func (ShowItemResponse) ContentType ¶
func (r ShowItemResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ShowItemResponse) GetApplicationVndFleetResourceJSON200 ¶
func (r ShowItemResponse) GetApplicationVndFleetResourceJSON200() *ItemResource
GetApplicationVndFleetResourceJSON200 returns the response for an HTTP 200 `application/vnd.fleet.resource+json` response
func (ShowItemResponse) GetBody ¶
func (r ShowItemResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ShowItemResponse) GetJSON200 ¶
func (r ShowItemResponse) GetJSON200() *ItemAnswer
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ShowItemResponse) GetJSONDefault ¶
func (r ShowItemResponse) GetJSONDefault() *Refusal
GetJSONDefault returns the response for an HTTP default `application/json` response
func (ShowItemResponse) Status ¶
func (r ShowItemResponse) Status() string
Status returns HTTPResponse.Status
func (ShowItemResponse) StatusCode ¶
func (r ShowItemResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ShowItemResponseObject ¶
type ShowItemResponseObject interface {
VisitShowItemResponse(w http.ResponseWriter) error
}
type ShowItemdefaultJSONResponse ¶
func (ShowItemdefaultJSONResponse) VisitShowItemResponse ¶
func (response ShowItemdefaultJSONResponse) VisitShowItemResponse(w http.ResponseWriter) error
type ShowTaskParse200JSONResponse ¶
type ShowTaskParse200JSONResponse TaskParseAnswer
func (ShowTaskParse200JSONResponse) VisitShowTaskParseResponse ¶
func (response ShowTaskParse200JSONResponse) VisitShowTaskParseResponse(w http.ResponseWriter) error
type ShowTaskParseParams ¶
type ShowTaskParseParams struct {
// Token Token is the lease token of the task, which the claim that leased it answered.
Token int `form:"token" json:"token"`
// Extractor Extractor keeps the parses that one extractor wrote, such as pdf-text.
Extractor *string `form:"extractor,omitempty" json:"extractor,omitempty"`
// Version Version keeps the parses at one extractor version.
Version *string `form:"version,omitempty" json:"version,omitempty"`
}
ShowTaskParseParams defines parameters for ShowTaskParse.
type ShowTaskParseRequestObject ¶
type ShowTaskParseRequestObject struct {
ID string `json:"id"`
Params ShowTaskParseParams
}
type ShowTaskParseResponse ¶
type ShowTaskParseResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *TaskParseAnswer
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Refusal
}
func ParseShowTaskParseResponse ¶
func ParseShowTaskParseResponse(rsp *http.Response) (*ShowTaskParseResponse, error)
ParseShowTaskParseResponse parses an HTTP response from a ShowTaskParseWithResponse call
func (ShowTaskParseResponse) Bytes ¶
func (r ShowTaskParseResponse) Bytes() []byte
Bytes is a convenience method to retrieve the raw bytes from the HTTP response
func (ShowTaskParseResponse) ContentType ¶
func (r ShowTaskParseResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ShowTaskParseResponse) GetBody ¶
func (r ShowTaskParseResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ShowTaskParseResponse) GetJSON200 ¶
func (r ShowTaskParseResponse) GetJSON200() *TaskParseAnswer
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ShowTaskParseResponse) GetJSONDefault ¶
func (r ShowTaskParseResponse) GetJSONDefault() *Refusal
GetJSONDefault returns the response for an HTTP default `application/json` response
func (ShowTaskParseResponse) Status ¶
func (r ShowTaskParseResponse) Status() string
Status returns HTTPResponse.Status
func (ShowTaskParseResponse) StatusCode ¶
func (r ShowTaskParseResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ShowTaskParseResponseObject ¶
type ShowTaskParseResponseObject interface {
VisitShowTaskParseResponse(w http.ResponseWriter) error
}
type ShowTaskParsedefaultJSONResponse ¶
func (ShowTaskParsedefaultJSONResponse) VisitShowTaskParseResponse ¶
func (response ShowTaskParsedefaultJSONResponse) VisitShowTaskParseResponse(w http.ResponseWriter) error
type ShowVersion200JSONResponse ¶
type ShowVersion200JSONResponse VersionAnswer
func (ShowVersion200JSONResponse) VisitShowVersionResponse ¶
func (response ShowVersion200JSONResponse) VisitShowVersionResponse(w http.ResponseWriter) error
type ShowVersionRequestObject ¶
type ShowVersionRequestObject struct {
}
type ShowVersionResponse ¶
type ShowVersionResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *VersionAnswer
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *Refusal
}
func ParseShowVersionResponse ¶
func ParseShowVersionResponse(rsp *http.Response) (*ShowVersionResponse, error)
ParseShowVersionResponse parses an HTTP response from a ShowVersionWithResponse call
func (ShowVersionResponse) Bytes ¶
func (r ShowVersionResponse) Bytes() []byte
Bytes is a convenience method to retrieve the raw bytes from the HTTP response
func (ShowVersionResponse) ContentType ¶
func (r ShowVersionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ShowVersionResponse) GetBody ¶
func (r ShowVersionResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ShowVersionResponse) GetJSON200 ¶
func (r ShowVersionResponse) GetJSON200() *VersionAnswer
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ShowVersionResponse) GetJSONDefault ¶
func (r ShowVersionResponse) GetJSONDefault() *Refusal
GetJSONDefault returns the response for an HTTP default `application/json` response
func (ShowVersionResponse) Status ¶
func (r ShowVersionResponse) Status() string
Status returns HTTPResponse.Status
func (ShowVersionResponse) StatusCode ¶
func (r ShowVersionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ShowVersionResponseObject ¶
type ShowVersionResponseObject interface {
VisitShowVersionResponse(w http.ResponseWriter) error
}
type ShowVersiondefaultJSONResponse ¶
func (ShowVersiondefaultJSONResponse) VisitShowVersionResponse ¶
func (response ShowVersiondefaultJSONResponse) VisitShowVersionResponse(w http.ResponseWriter) error
type SightingView ¶
type SightingView struct {
Connector string `json:"connector"`
CursorPosition *string `json:"cursor_position"`
ExternalKey string `json:"external_key"`
Fields *map[string]string `json:"fields"`
FirstSeenTS string `json:"first_seen_ts"`
LastSeenTS string `json:"last_seen_ts"`
Metrics *map[string]int `json:"metrics"`
// MetricsReadTS MetricsReadTS is when the metrics were last taken from the source, by
// an arrival or by a refresh of an item in review, and null where no read
// stamped them.
MetricsReadTS *string `json:"metrics_read_ts"`
Tags *[]string `json:"tags"`
Zone string `json:"zone"`
}
SightingView SightingView is one connector's arrival of the item.
type SlotGroup ¶
SlotGroup SlotGroup is the capabilities of one slot group in a claim, and the most of them together that the claim leases.
type StageOutput ¶
type StageOutput struct {
DispatchID *string `json:"dispatch_id"`
Effort *string `json:"effort"`
Error *string `json:"error"`
InputProducer *string `json:"input_producer"`
InputVersion *string `json:"input_version"`
Model *string `json:"model"`
NoteDigest *string `json:"note_digest"`
Producer string `json:"producer"`
ProducerVersion string `json:"producer_version"`
State string `json:"state"`
}
StageOutput StageOutput is one output that a model stage's task carries: which prompt wrote it over which parse, how far it got, and the dispatch it waits on.
type StageProgress ¶
type StageProgress struct {
// Error Error is why the stage failed, from its newest task where that failed
// and from a failed output otherwise, and nil where neither says.
Error *string `json:"error"`
Stage string `json:"stage"`
// State State is running where a task of the stage is queued or leased, done
// where one of its outputs is done, and failed otherwise, since no task
// of it is left to run.
State string `json:"state"`
}
StageProgress StageProgress is how far one stage has gone with an item, read from the stage's tasks as well as its outputs.
type StdHTTPServerOptions ¶
type StdHTTPServerOptions struct {
BaseURL string
BaseRouter ServeMux
Middlewares []MiddlewareFunc
ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
type StrictHTTPServerOptions ¶
type StrictHTTPServerOptions struct {
RequestErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
ResponseErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
type StrictHandlerFunc ¶
type StrictHandlerFunc = func(ctx context.Context, w http.ResponseWriter, r *http.Request, request any) (any, error)
StrictHandlerFunc and StrictMiddlewareFunc are type aliases rather than distinct named types, so middleware written against one generated package can be shared with every other generated package using the same framework.
type StrictMiddlewareFunc ¶
type StrictMiddlewareFunc = func(f StrictHandlerFunc, operationID string) StrictHandlerFunc
type StrictServerInterface ¶
type StrictServerInterface interface {
// ListUnpairedBlobs Each blob that no row names, and each row whose bytes are gone
// (GET /api/v1/blobs/unpaired)
ListUnpairedBlobs(ctx context.Context, request ListUnpairedBlobsRequestObject) (ListUnpairedBlobsResponseObject, error)
// ListConnectors Each connector in the set in force
// (GET /api/v1/connectors)
ListConnectors(ctx context.Context, request ListConnectorsRequestObject) (ListConnectorsResponseObject, error)
// ShowConnector One connector in the set in force
// (GET /api/v1/connectors/{name})
ShowConnector(ctx context.Context, request ShowConnectorRequestObject) (ShowConnectorResponseObject, error)
// HoldConnector Hold a connector's model stages for a person
// (POST /api/v1/connectors/{name}/hold)
HoldConnector(ctx context.Context, request HoldConnectorRequestObject) (HoldConnectorResponseObject, error)
// ReleaseConnector Lift a connector's hold and release its first fill
// (POST /api/v1/connectors/{name}/release)
ReleaseConnector(ctx context.Context, request ReleaseConnectorRequestObject) (ReleaseConnectorResponseObject, error)
// RunConnector Run a scheduled connector now
// (POST /api/v1/connectors/{name}/runs)
RunConnector(ctx context.Context, request RunConnectorRequestObject) (RunConnectorResponseObject, error)
// ApplyDeclarations Put a declaration set in force
// (PUT /api/v1/declarations)
ApplyDeclarations(ctx context.Context, request ApplyDeclarationsRequestObject) (ApplyDeclarationsResponseObject, error)
// ListGateTrust The trust ladder, and each quality gate family's standing on it
// (GET /api/v1/gates/trust)
ListGateTrust(ctx context.Context, request ListGateTrustRequestObject) (ListGateTrustResponseObject, error)
// PromoteGateFamily Promote a quality gate family a rung
// (POST /api/v1/gates/trust/{family}/promote)
PromoteGateFamily(ctx context.Context, request PromoteGateFamilyRequestObject) (PromoteGateFamilyResponseObject, error)
// ListItems A page of items, newest first
// (GET /api/v1/items)
ListItems(ctx context.Context, request ListItemsRequestObject) (ListItemsResponseObject, error)
// PushItem Land a link through a push connector. A memo's audio lands here too, as its body rather than JSON
// (POST /api/v1/items)
PushItem(ctx context.Context, request PushItemRequestObject) (PushItemResponseObject, error)
// ShowItem One item with every record of it, or the item as a resource
// (GET /api/v1/items/{key})
ShowItem(ctx context.Context, request ShowItemRequestObject) (ShowItemResponseObject, error)
// ReadItemComments Ask for the read of an item's top comments, and how it stands
// (POST /api/v1/items/{key}/comments)
ReadItemComments(ctx context.Context, request ReadItemCommentsRequestObject) (ReadItemCommentsResponseObject, error)
// MarkItem Mark an item low-quality or read
// (POST /api/v1/items/{key}/marks)
MarkItem(ctx context.Context, request MarkItemRequestObject) (MarkItemResponseObject, error)
// ShowItemParse The item's newest done parse, or the one that the query picks
// (GET /api/v1/items/{key}/parse)
ShowItemParse(ctx context.Context, request ShowItemParseRequestObject) (ShowItemParseResponseObject, error)
// ReplayStage Run a stage again over the items a replay selects, or estimate a model stage's replay
// (POST /api/v1/replays)
ReplayStage(ctx context.Context, request ReplayStageRequestObject) (ReplayStageResponseObject, error)
// ListReview Each item that waits on a person, the longest waiting first
// (GET /api/v1/review)
ListReview(ctx context.Context, request ListReviewRequestObject) (ListReviewResponseObject, error)
// ArchiveItem Keep an item on the personal side with no destination
// (POST /api/v1/review/{key}/archive)
ArchiveItem(ctx context.Context, request ArchiveItemRequestObject) (ArchiveItemResponseObject, error)
// DropItem Drop an item from review
// (POST /api/v1/review/{key}/drop)
DropItem(ctx context.Context, request DropItemRequestObject) (DropItemResponseObject, error)
// PlaceItem Place an item by a review choice or on a destination
// (POST /api/v1/review/{key}/place)
PlaceItem(ctx context.Context, request PlaceItemRequestObject) (PlaceItemResponseObject, error)
// ListRoutingRules The newest version of each routing rule that a person accepted
// (GET /api/v1/routing-rules)
ListRoutingRules(ctx context.Context, request ListRoutingRulesRequestObject) (ListRoutingRulesResponseObject, error)
// PutRoutingRule Write a version of an accepted routing rule
// (PUT /api/v1/routing-rules/{name})
PutRoutingRule(ctx context.Context, request PutRoutingRuleRequestObject) (PutRoutingRuleResponseObject, error)
// RetireRoutingRule Retire an accepted routing rule
// (POST /api/v1/routing-rules/{name}/retire)
RetireRoutingRule(ctx context.Context, request RetireRoutingRuleRequestObject) (RetireRoutingRuleResponseObject, error)
// ListTasks The tasks in the states asked for, and the workers heard from
// (GET /api/v1/tasks)
ListTasks(ctx context.Context, request ListTasksRequestObject) (ListTasksResponseObject, error)
// ClaimTasks Lease the tasks that a worker's capabilities take
// (POST /api/v1/tasks/claims)
ClaimTasks(ctx context.Context, request ClaimTasksRequestObject) (ClaimTasksResponseObject, error)
// HeartbeatTask Extend the lease that a worker holds on a task
// (POST /api/v1/tasks/{id}/heartbeats)
HeartbeatTask(ctx context.Context, request HeartbeatTaskRequestObject) (HeartbeatTaskResponseObject, error)
// ShowTaskParse The newest done parse of the item whose task the caller leases
// (GET /api/v1/tasks/{id}/parse)
ShowTaskParse(ctx context.Context, request ShowTaskParseRequestObject) (ShowTaskParseResponseObject, error)
// ReportTask End a leased task with what its worker found
// (POST /api/v1/tasks/{id}/reports)
ReportTask(ctx context.Context, request ReportTaskRequestObject) (ReportTaskResponseObject, error)
// RetryTask Queue a failed task again
// (POST /api/v1/tasks/{id}/retries)
RetryTask(ctx context.Context, request RetryTaskRequestObject) (RetryTaskResponseObject, error)
// ShowVersion The version of the serve that answers
// (GET /api/v1/version)
ShowVersion(ctx context.Context, request ShowVersionRequestObject) (ShowVersionResponseObject, error)
}
StrictServerInterface represents all server handlers.
type SuggestionFindingView ¶
type SuggestionFindingView struct {
In string `json:"in"`
Rule string `json:"rule"`
Severity string `json:"severity"`
Span *string `json:"span"`
}
SuggestionFindingView SuggestionFindingView is one scanner finding beside a suggestion, in its source or in its sentence.
type SuggestionView ¶
type SuggestionView struct {
Findings *[]SuggestionFindingView `json:"findings"`
ItemKey string `json:"item_key"`
// Lens Lens names the read's lens and its version, as "fleet 1-9dcd3940".
Lens *string `json:"lens"`
PromptVersion string `json:"prompt_version"`
SchemaVersion int `json:"schema_version"`
Sentence string `json:"sentence"`
SuggestedTS string `json:"suggested_ts"`
// Summary Summary is the same read's summary, and nil where it answered a
// suggestion alone. The scanner reads only the sentence.
Summary *string `json:"summary"`
Title *string `json:"title"`
URL *string `json:"url"`
Zone string `json:"zone"`
}
SuggestionView SuggestionView is an item's latest suggestion, as schemas/suggestion.schema.json publishes it: its newest done model read whose answer holds a sentence, with the scanner's findings first.
type TaskParseAnswer ¶
type TaskParseAnswer struct {
Extractor string `json:"extractor"`
ExtractorVersion string `json:"extractor_version"`
Key string `json:"key"`
SchemaVersion int `json:"schema_version"`
Units *[]Unit `json:"units"`
}
TaskParseAnswer TaskParseAnswer is what GET /api/v1/tasks/{id}/parse answers: schemas/task-parse.schema.json.
type TaskRetryAnswer ¶
type TaskRetryAnswer struct {
SchemaVersion int `json:"schema_version"`
// Task TaskView is one task as the list shows it.
Task TaskView `json:"task"`
}
TaskRetryAnswer TaskRetryAnswer is what POST /api/v1/tasks/{id}/retries answers: schemas/task-retry.schema.json.
type TaskView ¶
type TaskView struct {
Attempts int `json:"attempts"`
Capability string `json:"capability"`
// Connector Connector names a poll's connector, and the connector whose sighting a
// delete removes from its source.
Connector *string `json:"connector"`
CreatedTS string `json:"created_ts"`
Destination *string `json:"destination"`
HasError bool `json:"has_error"`
HeldBy *string `json:"held_by"`
ID string `json:"id"`
ItemKey *string `json:"item_key"`
Lapsed bool `json:"lapsed"`
LeaseExpiresTS *string `json:"lease_expires_ts"`
LeaseHolder *string `json:"lease_holder"`
Model *string `json:"model"`
NotBeforeTS *string `json:"not_before_ts"`
// ProposalID ProposalID names the prompt proposal that a prompt-proposal task drafts.
ProposalID *string `json:"proposal_id"`
// Source Source names the source whose metrics a refresh-metrics task reads
// again.
Source *string `json:"source"`
Stage string `json:"stage"`
State string `json:"state"`
UpdatedTS string `json:"updated_ts"`
WaitingSinceTS *string `json:"waiting_since_ts"`
}
TaskView TaskView is one task as the list shows it.
type TasksAnswer ¶
type TasksAnswer struct {
Tasks *[]TaskView `json:"tasks"`
Workers *[]Worker `json:"workers"`
// WorkersHidden WorkersHidden counts the workers not heard from within
// WorkersHeardWithin, which the list leaves out unless asked for all.
WorkersHidden int `json:"workers_hidden"`
}
TasksAnswer TasksAnswer is what GET /api/v1/tasks answers: schemas/tasks-list.schema.json.
type Tokens ¶
type Tokens struct {
CacheRead int `json:"cache_read"`
CacheWrite int `json:"cache_write"`
Output int `json:"output"`
UncachedInput int `json:"uncached_input"`
}
Tokens Tokens is a model run's tokens by kind.
type TooManyValuesForParamError ¶
func (*TooManyValuesForParamError) Error ¶
func (e *TooManyValuesForParamError) Error() string
type TrustRule ¶
type TrustRule struct {
First float64 `json:"first"`
Floor float64 `json:"floor"`
Lower float64 `json:"lower"`
// Run Run is the straight run of a person's agreeing marks that earns asking,
// and climbs each rung above 1.
Run int `json:"run"`
Shares *[]float64 `json:"shares"`
}
TrustRule TrustRule is the ladder that every family climbs, as a reader shows it.
type UndeliveredView ¶
type UndeliveredView struct {
Destination *string `json:"destination"`
Message string `json:"message"`
Reason string `json:"reason"`
Side string `json:"side"`
}
UndeliveredView UndeliveredView is why an item reaches no deliverer, in the words of connectors.Undelivered.
type UnescapedCookieParamError ¶
func (*UnescapedCookieParamError) Error ¶
func (e *UnescapedCookieParamError) Error() string
func (*UnescapedCookieParamError) Unwrap ¶
func (e *UnescapedCookieParamError) Unwrap() error
type UnmarshalingParamError ¶
func (*UnmarshalingParamError) Error ¶
func (e *UnmarshalingParamError) Error() string
func (*UnmarshalingParamError) Unwrap ¶
func (e *UnmarshalingParamError) Unwrap() error
type UnpairedAnswer ¶
type UnpairedAnswer struct {
Files int `json:"files"`
Leftovers *[]UnpairedFile `json:"leftovers"`
Missing *[]BlobAnswer `json:"missing"`
Rows int `json:"rows"`
SchemaVersion int `json:"schema_version"`
Unnamed *[]BlobAnswer `json:"unnamed"`
Unrowed *[]UnpairedFile `json:"unrowed"`
}
UnpairedAnswer UnpairedAnswer is what GET /api/v1/blobs/unpaired answers: schemas/blobs-unpaired.schema.json.
type UnpairedFile ¶
type UnpairedFile struct {
ModifiedTS string `json:"modified_ts"`
Path *string `json:"path"`
Sha256 *string `json:"sha256"`
SizeBytes int `json:"size_bytes"`
}
UnpairedFile UnpairedFile is one file in the volume that no row pairs with.
type VersionAnswer ¶
type VersionAnswer struct {
Version string `json:"version"`
}
VersionAnswer VersionAnswer is what GET /api/v1/version answers: the version of the serve that answered.
type WaitingView ¶
type WaitingView struct {
Capability string `json:"capability"`
// DispatchID DispatchID is the run's dispatch, where the port started one.
DispatchID *string `json:"dispatch_id"`
// HeldBy HeldBy is the connector that holds the task, by a person's hold or its
// first fill.
HeldBy *string `json:"held_by"`
// LastError LastError is why the task's last try did not go through, such as a
// dispatch service that did not answer, where it ended so.
LastError *string `json:"last_error"`
Message string `json:"message"`
Reason string `json:"reason"`
Stage string `json:"stage"`
}
WaitingView WaitingView is why an item waits at a model stage.
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package ingestionfake serves ingestion's typed routes in a test from the answers the test supplies, through the strict server interface generated from ingestion's openapi.json.
|
Package ingestionfake serves ingestion's typed routes in a test from the answers the test supplies, through the strict server interface generated from ingestion's openapi.json. |