Documentation
¶
Overview ¶
Package restapi provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 DO NOT EDIT.
Index ¶
- Constants
- func NewConfigGetRequest(server string) (*http.Request, error)
- func NewConfigOidcRequest(server string) (*http.Request, error)
- func NewK8sGetRequest(server string, body K8sGetJSONRequestBody) (*http.Request, error)
- func NewK8sGetRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewK8sListRequest(server string, body K8sListJSONRequestBody) (*http.Request, error)
- func NewK8sListRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPipelineRunStartRequest(server string, body PipelineRunStartJSONRequestBody) (*http.Request, error)
- func NewPipelineRunStartRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewScaComponentsRequest(server string, params *ScaComponentsParams) (*http.Request, error)
- func NewScaFindingsRequest(server string, params *ScaFindingsParams) (*http.Request, error)
- func NewScaGetRequest(server string, params *ScaGetParams) (*http.Request, error)
- func NewScaListRequest(server string, params *ScaListParams) (*http.Request, error)
- func NewSonarGateRequest(server string, params *SonarGateParams) (*http.Request, error)
- func NewSonarGetRequest(server string, params *SonarGetParams) (*http.Request, error)
- func NewSonarIssuesRequest(server string, params *SonarIssuesParams) (*http.Request, error)
- func NewSonarListRequest(server string, params *SonarListParams) (*http.Request, error)
- func NewTektonResultsGetPipelineRunLogsRequest(server string, resultUid openapi_types.UUID, ...) (*http.Request, error)
- func NewTektonResultsGetPipelineRunResultsRequest(server string, params *TektonResultsGetPipelineRunResultsParams) (*http.Request, error)
- func NewTektonResultsGetTaskRunLogsRequest(server string, resultUid openapi_types.UUID, ...) (*http.Request, error)
- func NewTektonResultsGetTaskRunRecordsRequest(server string, resultUid openapi_types.UUID, ...) (*http.Request, error)
- type Client
- func (c *Client) ConfigGet(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ConfigOidc(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) K8sGet(ctx context.Context, body K8sGetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) K8sGetWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) K8sList(ctx context.Context, body K8sListJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) K8sListWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PipelineRunStart(ctx context.Context, body PipelineRunStartJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PipelineRunStartWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ScaComponents(ctx context.Context, params *ScaComponentsParams, ...) (*http.Response, error)
- func (c *Client) ScaFindings(ctx context.Context, params *ScaFindingsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ScaGet(ctx context.Context, params *ScaGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ScaList(ctx context.Context, params *ScaListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) SonarGate(ctx context.Context, params *SonarGateParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) SonarGet(ctx context.Context, params *SonarGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) SonarIssues(ctx context.Context, params *SonarIssuesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) SonarList(ctx context.Context, params *SonarListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) TektonResultsGetPipelineRunLogs(ctx context.Context, resultUid openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) TektonResultsGetPipelineRunResults(ctx context.Context, params *TektonResultsGetPipelineRunResultsParams, ...) (*http.Response, error)
- func (c *Client) TektonResultsGetTaskRunLogs(ctx context.Context, resultUid openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) TektonResultsGetTaskRunRecords(ctx context.Context, resultUid openapi_types.UUID, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) ConfigGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ConfigGetResponse, error)
- func (c *ClientWithResponses) ConfigOidcWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ConfigOidcResponse, error)
- func (c *ClientWithResponses) K8sGetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*K8sGetResponse, error)
- func (c *ClientWithResponses) K8sGetWithResponse(ctx context.Context, body K8sGetJSONRequestBody, reqEditors ...RequestEditorFn) (*K8sGetResponse, error)
- func (c *ClientWithResponses) K8sListWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*K8sListResponse, error)
- func (c *ClientWithResponses) K8sListWithResponse(ctx context.Context, body K8sListJSONRequestBody, ...) (*K8sListResponse, error)
- func (c *ClientWithResponses) PipelineRunStartWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PipelineRunStartResponse, error)
- func (c *ClientWithResponses) PipelineRunStartWithResponse(ctx context.Context, body PipelineRunStartJSONRequestBody, ...) (*PipelineRunStartResponse, error)
- func (c *ClientWithResponses) ScaComponentsWithResponse(ctx context.Context, params *ScaComponentsParams, ...) (*ScaComponentsResponse, error)
- func (c *ClientWithResponses) ScaFindingsWithResponse(ctx context.Context, params *ScaFindingsParams, reqEditors ...RequestEditorFn) (*ScaFindingsResponse, error)
- func (c *ClientWithResponses) ScaGetWithResponse(ctx context.Context, params *ScaGetParams, reqEditors ...RequestEditorFn) (*ScaGetResponse, error)
- func (c *ClientWithResponses) ScaListWithResponse(ctx context.Context, params *ScaListParams, reqEditors ...RequestEditorFn) (*ScaListResponse, error)
- func (c *ClientWithResponses) SonarGateWithResponse(ctx context.Context, params *SonarGateParams, reqEditors ...RequestEditorFn) (*SonarGateResponse, error)
- func (c *ClientWithResponses) SonarGetWithResponse(ctx context.Context, params *SonarGetParams, reqEditors ...RequestEditorFn) (*SonarGetResponse, error)
- func (c *ClientWithResponses) SonarIssuesWithResponse(ctx context.Context, params *SonarIssuesParams, reqEditors ...RequestEditorFn) (*SonarIssuesResponse, error)
- func (c *ClientWithResponses) SonarListWithResponse(ctx context.Context, params *SonarListParams, reqEditors ...RequestEditorFn) (*SonarListResponse, error)
- func (c *ClientWithResponses) TektonResultsGetPipelineRunLogsWithResponse(ctx context.Context, resultUid openapi_types.UUID, ...) (*TektonResultsGetPipelineRunLogsResponse, error)
- func (c *ClientWithResponses) TektonResultsGetPipelineRunResultsWithResponse(ctx context.Context, params *TektonResultsGetPipelineRunResultsParams, ...) (*TektonResultsGetPipelineRunResultsResponse, error)
- func (c *ClientWithResponses) TektonResultsGetTaskRunLogsWithResponse(ctx context.Context, resultUid openapi_types.UUID, ...) (*TektonResultsGetTaskRunLogsResponse, error)
- func (c *ClientWithResponses) TektonResultsGetTaskRunRecordsWithResponse(ctx context.Context, resultUid openapi_types.UUID, ...) (*TektonResultsGetTaskRunRecordsResponse, error)
- type ClientWithResponsesInterface
- type ConfigGetResponse
- type ConfigOidcResponse
- type ErrorBADREQUEST
- type ErrorCONFLICT
- type ErrorFORBIDDEN
- type ErrorINTERNALSERVERERROR
- type ErrorNOTFOUND
- type ErrorTIMEOUT
- type ErrorTOOMANYREQUESTS
- type ErrorUNAUTHORIZED
- type ErrorUNPROCESSABLECONTENT
- type HttpRequestDoer
- type K8sGetJSONBody
- type K8sGetJSONRequestBody
- type K8sGetResponse
- type K8sGet_200_Metadata
- type K8sListJSONBody
- type K8sListJSONRequestBody
- type K8sListResponse
- type K8sList_200_Items_Item
- type K8sList_200_Items_Metadata
- type PipelineRunStartCreatedResponse
- type PipelineRunStartCreatedResponseKind
- type PipelineRunStartDryRunResponse
- type PipelineRunStartDryRunResponseKind
- type PipelineRunStartJSONBody
- type PipelineRunStartJSONRequestBody
- type PipelineRunStartResponse
- type RequestEditorFn
- type SCAComponent
- type SCAComponentsResponse
- type SCAComponentsResponseStatus
- type SCAFinding
- type SCAFindingAnalysis
- type SCAFindingAttribution
- type SCAFindingComponent
- type SCAFindingVulnerability
- type SCAFindingVulnerabilitySeverity
- type SCAFindingsResponse
- type SCAFindingsResponseStatus
- type SCAGetResponse
- type SCAGetResponseStatus
- type SCAListResponse
- type SCAMetrics
- type SCAProject
- type ScaComponentsParams
- type ScaComponentsParamsOnlyDirect
- type ScaComponentsParamsOnlyOutdated
- type ScaComponentsResponse
- type ScaFindingsParams
- type ScaFindingsParamsSuppressed
- type ScaFindingsResponse
- type ScaGetParams
- type ScaGetResponse
- type ScaListParams
- type ScaListParamsExcludeInactive
- type ScaListParamsOnlyRoot
- type ScaListResponse
- type SonarGate
- type SonarGateCondition
- type SonarGateConditionStatus
- type SonarGateParams
- type SonarGateProjectStatusStatus
- type SonarGateResponse
- type SonarGetParams
- type SonarGetResponse
- type SonarIssue
- type SonarIssueComponent
- type SonarIssueList
- type SonarIssueRule
- type SonarIssueSeverity
- type SonarIssueStatus
- type SonarIssueType
- type SonarIssuesParams
- type SonarIssuesParamsAsc
- type SonarIssuesParamsResolved
- type SonarIssuesResponse
- type SonarListParams
- type SonarListResponse
- type SonarPaging
- type SonarProject
- type SonarProjectDetail
- type SonarProjectDetailQualityGateStatus
- type SonarProjectList
- type SonarProjectQualityGateStatus
- type StepTerminated
- type TaskRun
- type TaskRunCondition
- type TaskRunMetadata
- type TaskRunRecordsResponse
- type TaskRunStatus
- type TaskRunStep
- type TektonResultsGetPipelineRunLogsParams
- type TektonResultsGetPipelineRunLogsResponse
- type TektonResultsGetPipelineRunResults200ResultsSummaryStatus
- type TektonResultsGetPipelineRunResultsParams
- type TektonResultsGetPipelineRunResultsResponse
- type TektonResultsGetTaskRunLogsParams
- type TektonResultsGetTaskRunLogsResponse
- type TektonResultsGetTaskRunRecordsParams
- type TektonResultsGetTaskRunRecordsResponse
Constants ¶
const (
BearerAuthScopes = "bearerAuth.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func NewConfigGetRequest ¶
NewConfigGetRequest generates requests for ConfigGet
func NewConfigOidcRequest ¶
NewConfigOidcRequest generates requests for ConfigOidc
func NewK8sGetRequest ¶
func NewK8sGetRequest(server string, body K8sGetJSONRequestBody) (*http.Request, error)
NewK8sGetRequest calls the generic K8sGet builder with application/json body
func NewK8sGetRequestWithBody ¶
func NewK8sGetRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewK8sGetRequestWithBody generates requests for K8sGet with any type of body
func NewK8sListRequest ¶
func NewK8sListRequest(server string, body K8sListJSONRequestBody) (*http.Request, error)
NewK8sListRequest calls the generic K8sList builder with application/json body
func NewK8sListRequestWithBody ¶
func NewK8sListRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewK8sListRequestWithBody generates requests for K8sList with any type of body
func NewPipelineRunStartRequest ¶ added in v0.14.0
func NewPipelineRunStartRequest(server string, body PipelineRunStartJSONRequestBody) (*http.Request, error)
NewPipelineRunStartRequest calls the generic PipelineRunStart builder with application/json body
func NewPipelineRunStartRequestWithBody ¶ added in v0.14.0
func NewPipelineRunStartRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPipelineRunStartRequestWithBody generates requests for PipelineRunStart with any type of body
func NewScaComponentsRequest ¶ added in v0.10.0
func NewScaComponentsRequest(server string, params *ScaComponentsParams) (*http.Request, error)
NewScaComponentsRequest generates requests for ScaComponents
func NewScaFindingsRequest ¶ added in v0.10.0
func NewScaFindingsRequest(server string, params *ScaFindingsParams) (*http.Request, error)
NewScaFindingsRequest generates requests for ScaFindings
func NewScaGetRequest ¶ added in v0.10.0
func NewScaGetRequest(server string, params *ScaGetParams) (*http.Request, error)
NewScaGetRequest generates requests for ScaGet
func NewScaListRequest ¶ added in v0.10.0
func NewScaListRequest(server string, params *ScaListParams) (*http.Request, error)
NewScaListRequest generates requests for ScaList
func NewSonarGateRequest ¶ added in v0.8.0
func NewSonarGateRequest(server string, params *SonarGateParams) (*http.Request, error)
NewSonarGateRequest generates requests for SonarGate
func NewSonarGetRequest ¶ added in v0.8.0
func NewSonarGetRequest(server string, params *SonarGetParams) (*http.Request, error)
NewSonarGetRequest generates requests for SonarGet
func NewSonarIssuesRequest ¶ added in v0.8.0
func NewSonarIssuesRequest(server string, params *SonarIssuesParams) (*http.Request, error)
NewSonarIssuesRequest generates requests for SonarIssues
func NewSonarListRequest ¶ added in v0.8.0
func NewSonarListRequest(server string, params *SonarListParams) (*http.Request, error)
NewSonarListRequest generates requests for SonarList
func NewTektonResultsGetPipelineRunLogsRequest ¶
func NewTektonResultsGetPipelineRunLogsRequest(server string, resultUid openapi_types.UUID, params *TektonResultsGetPipelineRunLogsParams) (*http.Request, error)
NewTektonResultsGetPipelineRunLogsRequest generates requests for TektonResultsGetPipelineRunLogs
func NewTektonResultsGetPipelineRunResultsRequest ¶
func NewTektonResultsGetPipelineRunResultsRequest(server string, params *TektonResultsGetPipelineRunResultsParams) (*http.Request, error)
NewTektonResultsGetPipelineRunResultsRequest generates requests for TektonResultsGetPipelineRunResults
func NewTektonResultsGetTaskRunLogsRequest ¶
func NewTektonResultsGetTaskRunLogsRequest(server string, resultUid openapi_types.UUID, params *TektonResultsGetTaskRunLogsParams) (*http.Request, error)
NewTektonResultsGetTaskRunLogsRequest generates requests for TektonResultsGetTaskRunLogs
func NewTektonResultsGetTaskRunRecordsRequest ¶
func NewTektonResultsGetTaskRunRecordsRequest(server string, resultUid openapi_types.UUID, params *TektonResultsGetTaskRunRecordsParams) (*http.Request, error)
NewTektonResultsGetTaskRunRecordsRequest generates requests for TektonResultsGetTaskRunRecords
Types ¶
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) ConfigOidc ¶
func (*Client) K8sGet ¶
func (c *Client) K8sGet(ctx context.Context, body K8sGetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) K8sGetWithBody ¶
func (*Client) K8sList ¶
func (c *Client) K8sList(ctx context.Context, body K8sListJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) K8sListWithBody ¶
func (*Client) PipelineRunStart ¶ added in v0.14.0
func (c *Client) PipelineRunStart(ctx context.Context, body PipelineRunStartJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PipelineRunStartWithBody ¶ added in v0.14.0
func (*Client) ScaComponents ¶ added in v0.10.0
func (c *Client) ScaComponents(ctx context.Context, params *ScaComponentsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ScaFindings ¶ added in v0.10.0
func (c *Client) ScaFindings(ctx context.Context, params *ScaFindingsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ScaGet ¶ added in v0.10.0
func (c *Client) ScaGet(ctx context.Context, params *ScaGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ScaList ¶ added in v0.10.0
func (c *Client) ScaList(ctx context.Context, params *ScaListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SonarGate ¶ added in v0.8.0
func (c *Client) SonarGate(ctx context.Context, params *SonarGateParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SonarGet ¶ added in v0.8.0
func (c *Client) SonarGet(ctx context.Context, params *SonarGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SonarIssues ¶ added in v0.8.0
func (c *Client) SonarIssues(ctx context.Context, params *SonarIssuesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SonarList ¶ added in v0.8.0
func (c *Client) SonarList(ctx context.Context, params *SonarListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) TektonResultsGetPipelineRunLogs ¶
func (c *Client) TektonResultsGetPipelineRunLogs(ctx context.Context, resultUid openapi_types.UUID, params *TektonResultsGetPipelineRunLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) TektonResultsGetPipelineRunResults ¶
func (c *Client) TektonResultsGetPipelineRunResults(ctx context.Context, params *TektonResultsGetPipelineRunResultsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) TektonResultsGetTaskRunLogs ¶
func (c *Client) TektonResultsGetTaskRunLogs(ctx context.Context, resultUid openapi_types.UUID, params *TektonResultsGetTaskRunLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) TektonResultsGetTaskRunRecords ¶
func (c *Client) TektonResultsGetTaskRunRecords(ctx context.Context, resultUid openapi_types.UUID, params *TektonResultsGetTaskRunRecordsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface {
// ConfigGet request
ConfigGet(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ConfigOidc request
ConfigOidc(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// TektonResultsGetPipelineRunResults request
TektonResultsGetPipelineRunResults(ctx context.Context, params *TektonResultsGetPipelineRunResultsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// TektonResultsGetPipelineRunLogs request
TektonResultsGetPipelineRunLogs(ctx context.Context, resultUid openapi_types.UUID, params *TektonResultsGetPipelineRunLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// TektonResultsGetTaskRunRecords request
TektonResultsGetTaskRunRecords(ctx context.Context, resultUid openapi_types.UUID, params *TektonResultsGetTaskRunRecordsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PipelineRunStartWithBody request with any body
PipelineRunStartWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PipelineRunStart(ctx context.Context, body PipelineRunStartJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// K8sGetWithBody request with any body
K8sGetWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
K8sGet(ctx context.Context, body K8sGetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// K8sListWithBody request with any body
K8sListWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
K8sList(ctx context.Context, body K8sListJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ScaComponents request
ScaComponents(ctx context.Context, params *ScaComponentsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ScaFindings request
ScaFindings(ctx context.Context, params *ScaFindingsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ScaGet request
ScaGet(ctx context.Context, params *ScaGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ScaList request
ScaList(ctx context.Context, params *ScaListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// SonarGate request
SonarGate(ctx context.Context, params *SonarGateParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// SonarGet request
SonarGet(ctx context.Context, params *SonarGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// SonarIssues request
SonarIssues(ctx context.Context, params *SonarIssuesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// SonarList request
SonarList(ctx context.Context, params *SonarListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// TektonResultsGetTaskRunLogs request
TektonResultsGetTaskRunLogs(ctx context.Context, resultUid openapi_types.UUID, params *TektonResultsGetTaskRunLogsParams, 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) ConfigGetWithResponse ¶
func (c *ClientWithResponses) ConfigGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ConfigGetResponse, error)
ConfigGetWithResponse request returning *ConfigGetResponse
func (*ClientWithResponses) ConfigOidcWithResponse ¶
func (c *ClientWithResponses) ConfigOidcWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ConfigOidcResponse, error)
ConfigOidcWithResponse request returning *ConfigOidcResponse
func (*ClientWithResponses) K8sGetWithBodyWithResponse ¶
func (c *ClientWithResponses) K8sGetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*K8sGetResponse, error)
K8sGetWithBodyWithResponse request with arbitrary body returning *K8sGetResponse
func (*ClientWithResponses) K8sGetWithResponse ¶
func (c *ClientWithResponses) K8sGetWithResponse(ctx context.Context, body K8sGetJSONRequestBody, reqEditors ...RequestEditorFn) (*K8sGetResponse, error)
func (*ClientWithResponses) K8sListWithBodyWithResponse ¶
func (c *ClientWithResponses) K8sListWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*K8sListResponse, error)
K8sListWithBodyWithResponse request with arbitrary body returning *K8sListResponse
func (*ClientWithResponses) K8sListWithResponse ¶
func (c *ClientWithResponses) K8sListWithResponse(ctx context.Context, body K8sListJSONRequestBody, reqEditors ...RequestEditorFn) (*K8sListResponse, error)
func (*ClientWithResponses) PipelineRunStartWithBodyWithResponse ¶ added in v0.14.0
func (c *ClientWithResponses) PipelineRunStartWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PipelineRunStartResponse, error)
PipelineRunStartWithBodyWithResponse request with arbitrary body returning *PipelineRunStartResponse
func (*ClientWithResponses) PipelineRunStartWithResponse ¶ added in v0.14.0
func (c *ClientWithResponses) PipelineRunStartWithResponse(ctx context.Context, body PipelineRunStartJSONRequestBody, reqEditors ...RequestEditorFn) (*PipelineRunStartResponse, error)
func (*ClientWithResponses) ScaComponentsWithResponse ¶ added in v0.10.0
func (c *ClientWithResponses) ScaComponentsWithResponse(ctx context.Context, params *ScaComponentsParams, reqEditors ...RequestEditorFn) (*ScaComponentsResponse, error)
ScaComponentsWithResponse request returning *ScaComponentsResponse
func (*ClientWithResponses) ScaFindingsWithResponse ¶ added in v0.10.0
func (c *ClientWithResponses) ScaFindingsWithResponse(ctx context.Context, params *ScaFindingsParams, reqEditors ...RequestEditorFn) (*ScaFindingsResponse, error)
ScaFindingsWithResponse request returning *ScaFindingsResponse
func (*ClientWithResponses) ScaGetWithResponse ¶ added in v0.10.0
func (c *ClientWithResponses) ScaGetWithResponse(ctx context.Context, params *ScaGetParams, reqEditors ...RequestEditorFn) (*ScaGetResponse, error)
ScaGetWithResponse request returning *ScaGetResponse
func (*ClientWithResponses) ScaListWithResponse ¶ added in v0.10.0
func (c *ClientWithResponses) ScaListWithResponse(ctx context.Context, params *ScaListParams, reqEditors ...RequestEditorFn) (*ScaListResponse, error)
ScaListWithResponse request returning *ScaListResponse
func (*ClientWithResponses) SonarGateWithResponse ¶ added in v0.8.0
func (c *ClientWithResponses) SonarGateWithResponse(ctx context.Context, params *SonarGateParams, reqEditors ...RequestEditorFn) (*SonarGateResponse, error)
SonarGateWithResponse request returning *SonarGateResponse
func (*ClientWithResponses) SonarGetWithResponse ¶ added in v0.8.0
func (c *ClientWithResponses) SonarGetWithResponse(ctx context.Context, params *SonarGetParams, reqEditors ...RequestEditorFn) (*SonarGetResponse, error)
SonarGetWithResponse request returning *SonarGetResponse
func (*ClientWithResponses) SonarIssuesWithResponse ¶ added in v0.8.0
func (c *ClientWithResponses) SonarIssuesWithResponse(ctx context.Context, params *SonarIssuesParams, reqEditors ...RequestEditorFn) (*SonarIssuesResponse, error)
SonarIssuesWithResponse request returning *SonarIssuesResponse
func (*ClientWithResponses) SonarListWithResponse ¶ added in v0.8.0
func (c *ClientWithResponses) SonarListWithResponse(ctx context.Context, params *SonarListParams, reqEditors ...RequestEditorFn) (*SonarListResponse, error)
SonarListWithResponse request returning *SonarListResponse
func (*ClientWithResponses) TektonResultsGetPipelineRunLogsWithResponse ¶
func (c *ClientWithResponses) TektonResultsGetPipelineRunLogsWithResponse(ctx context.Context, resultUid openapi_types.UUID, params *TektonResultsGetPipelineRunLogsParams, reqEditors ...RequestEditorFn) (*TektonResultsGetPipelineRunLogsResponse, error)
TektonResultsGetPipelineRunLogsWithResponse request returning *TektonResultsGetPipelineRunLogsResponse
func (*ClientWithResponses) TektonResultsGetPipelineRunResultsWithResponse ¶
func (c *ClientWithResponses) TektonResultsGetPipelineRunResultsWithResponse(ctx context.Context, params *TektonResultsGetPipelineRunResultsParams, reqEditors ...RequestEditorFn) (*TektonResultsGetPipelineRunResultsResponse, error)
TektonResultsGetPipelineRunResultsWithResponse request returning *TektonResultsGetPipelineRunResultsResponse
func (*ClientWithResponses) TektonResultsGetTaskRunLogsWithResponse ¶
func (c *ClientWithResponses) TektonResultsGetTaskRunLogsWithResponse(ctx context.Context, resultUid openapi_types.UUID, params *TektonResultsGetTaskRunLogsParams, reqEditors ...RequestEditorFn) (*TektonResultsGetTaskRunLogsResponse, error)
TektonResultsGetTaskRunLogsWithResponse request returning *TektonResultsGetTaskRunLogsResponse
func (*ClientWithResponses) TektonResultsGetTaskRunRecordsWithResponse ¶
func (c *ClientWithResponses) TektonResultsGetTaskRunRecordsWithResponse(ctx context.Context, resultUid openapi_types.UUID, params *TektonResultsGetTaskRunRecordsParams, reqEditors ...RequestEditorFn) (*TektonResultsGetTaskRunRecordsResponse, error)
TektonResultsGetTaskRunRecordsWithResponse request returning *TektonResultsGetTaskRunRecordsResponse
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// ConfigGetWithResponse request
ConfigGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ConfigGetResponse, error)
// ConfigOidcWithResponse request
ConfigOidcWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ConfigOidcResponse, error)
// TektonResultsGetPipelineRunResultsWithResponse request
TektonResultsGetPipelineRunResultsWithResponse(ctx context.Context, params *TektonResultsGetPipelineRunResultsParams, reqEditors ...RequestEditorFn) (*TektonResultsGetPipelineRunResultsResponse, error)
// TektonResultsGetPipelineRunLogsWithResponse request
TektonResultsGetPipelineRunLogsWithResponse(ctx context.Context, resultUid openapi_types.UUID, params *TektonResultsGetPipelineRunLogsParams, reqEditors ...RequestEditorFn) (*TektonResultsGetPipelineRunLogsResponse, error)
// TektonResultsGetTaskRunRecordsWithResponse request
TektonResultsGetTaskRunRecordsWithResponse(ctx context.Context, resultUid openapi_types.UUID, params *TektonResultsGetTaskRunRecordsParams, reqEditors ...RequestEditorFn) (*TektonResultsGetTaskRunRecordsResponse, error)
// PipelineRunStartWithBodyWithResponse request with any body
PipelineRunStartWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PipelineRunStartResponse, error)
PipelineRunStartWithResponse(ctx context.Context, body PipelineRunStartJSONRequestBody, reqEditors ...RequestEditorFn) (*PipelineRunStartResponse, error)
// K8sGetWithBodyWithResponse request with any body
K8sGetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*K8sGetResponse, error)
K8sGetWithResponse(ctx context.Context, body K8sGetJSONRequestBody, reqEditors ...RequestEditorFn) (*K8sGetResponse, error)
// K8sListWithBodyWithResponse request with any body
K8sListWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*K8sListResponse, error)
K8sListWithResponse(ctx context.Context, body K8sListJSONRequestBody, reqEditors ...RequestEditorFn) (*K8sListResponse, error)
// ScaComponentsWithResponse request
ScaComponentsWithResponse(ctx context.Context, params *ScaComponentsParams, reqEditors ...RequestEditorFn) (*ScaComponentsResponse, error)
// ScaFindingsWithResponse request
ScaFindingsWithResponse(ctx context.Context, params *ScaFindingsParams, reqEditors ...RequestEditorFn) (*ScaFindingsResponse, error)
// ScaGetWithResponse request
ScaGetWithResponse(ctx context.Context, params *ScaGetParams, reqEditors ...RequestEditorFn) (*ScaGetResponse, error)
// ScaListWithResponse request
ScaListWithResponse(ctx context.Context, params *ScaListParams, reqEditors ...RequestEditorFn) (*ScaListResponse, error)
// SonarGateWithResponse request
SonarGateWithResponse(ctx context.Context, params *SonarGateParams, reqEditors ...RequestEditorFn) (*SonarGateResponse, error)
// SonarGetWithResponse request
SonarGetWithResponse(ctx context.Context, params *SonarGetParams, reqEditors ...RequestEditorFn) (*SonarGetResponse, error)
// SonarIssuesWithResponse request
SonarIssuesWithResponse(ctx context.Context, params *SonarIssuesParams, reqEditors ...RequestEditorFn) (*SonarIssuesResponse, error)
// SonarListWithResponse request
SonarListWithResponse(ctx context.Context, params *SonarListParams, reqEditors ...RequestEditorFn) (*SonarListResponse, error)
// TektonResultsGetTaskRunLogsWithResponse request
TektonResultsGetTaskRunLogsWithResponse(ctx context.Context, resultUid openapi_types.UUID, params *TektonResultsGetTaskRunLogsParams, reqEditors ...RequestEditorFn) (*TektonResultsGetTaskRunLogsResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type ConfigGetResponse ¶
type ConfigGetResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
ClusterName string `json:"clusterName"`
DefaultNamespace string `json:"defaultNamespace"`
DependencyTrackWebUrl string `json:"dependencyTrackWebUrl"`
SonarWebUrl string `json:"sonarWebUrl"`
}
JSON401 *ErrorUNAUTHORIZED
JSON403 *ErrorFORBIDDEN
JSON500 *ErrorINTERNALSERVERERROR
}
func ParseConfigGetResponse ¶
func ParseConfigGetResponse(rsp *http.Response) (*ConfigGetResponse, error)
ParseConfigGetResponse parses an HTTP response from a ConfigGetWithResponse call
func (ConfigGetResponse) Status ¶
func (r ConfigGetResponse) Status() string
Status returns HTTPResponse.Status
func (ConfigGetResponse) StatusCode ¶
func (r ConfigGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ConfigOidcResponse ¶
type ConfigOidcResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
OidcIssuerUrl string `json:"oidcIssuerUrl"`
}
JSON500 *ErrorINTERNALSERVERERROR
}
func ParseConfigOidcResponse ¶
func ParseConfigOidcResponse(rsp *http.Response) (*ConfigOidcResponse, error)
ParseConfigOidcResponse parses an HTTP response from a ConfigOidcWithResponse call
func (ConfigOidcResponse) Status ¶
func (r ConfigOidcResponse) Status() string
Status returns HTTPResponse.Status
func (ConfigOidcResponse) StatusCode ¶
func (r ConfigOidcResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ErrorBADREQUEST ¶
type ErrorBADREQUEST struct {
Error struct {
// Code tRPC error code (string literal)
Code string `json:"code"`
// Message Static HTTP status phrase
Message string `json:"message"`
// Reason Stable machine-readable disambiguator (omitted when none applies)
Reason *string `json:"reason,omitempty"`
} `json:"error"`
}
ErrorBADREQUEST REST error envelope emitted by handleTRPCError. `message` is the static HTTP status phrase; `reason` (when present) is a stable machine-readable disambiguator that consumers should key off rather than parsing the human message.
type ErrorCONFLICT ¶ added in v0.14.0
type ErrorCONFLICT struct {
Error struct {
// Code tRPC error code (string literal)
Code string `json:"code"`
// Message Static HTTP status phrase
Message string `json:"message"`
// Reason Stable machine-readable disambiguator (omitted when none applies)
Reason *string `json:"reason,omitempty"`
} `json:"error"`
}
ErrorCONFLICT REST error envelope emitted by handleTRPCError. `message` is the static HTTP status phrase; `reason` (when present) is a stable machine-readable disambiguator that consumers should key off rather than parsing the human message.
type ErrorFORBIDDEN ¶
type ErrorFORBIDDEN struct {
Error struct {
// Code tRPC error code (string literal)
Code string `json:"code"`
// Message Static HTTP status phrase
Message string `json:"message"`
// Reason Stable machine-readable disambiguator (omitted when none applies)
Reason *string `json:"reason,omitempty"`
} `json:"error"`
}
ErrorFORBIDDEN REST error envelope emitted by handleTRPCError. `message` is the static HTTP status phrase; `reason` (when present) is a stable machine-readable disambiguator that consumers should key off rather than parsing the human message.
type ErrorINTERNALSERVERERROR ¶
type ErrorINTERNALSERVERERROR struct {
Error struct {
// Code tRPC error code (string literal)
Code string `json:"code"`
// Message Static HTTP status phrase
Message string `json:"message"`
// Reason Stable machine-readable disambiguator (omitted when none applies)
Reason *string `json:"reason,omitempty"`
} `json:"error"`
}
ErrorINTERNALSERVERERROR REST error envelope emitted by handleTRPCError. `message` is the static HTTP status phrase; `reason` (when present) is a stable machine-readable disambiguator that consumers should key off rather than parsing the human message.
type ErrorNOTFOUND ¶
type ErrorNOTFOUND struct {
Error struct {
// Code tRPC error code (string literal)
Code string `json:"code"`
// Message Static HTTP status phrase
Message string `json:"message"`
// Reason Stable machine-readable disambiguator (omitted when none applies)
Reason *string `json:"reason,omitempty"`
} `json:"error"`
}
ErrorNOTFOUND REST error envelope emitted by handleTRPCError. `message` is the static HTTP status phrase; `reason` (when present) is a stable machine-readable disambiguator that consumers should key off rather than parsing the human message.
type ErrorTIMEOUT ¶ added in v0.14.0
type ErrorTIMEOUT struct {
Error struct {
// Code tRPC error code (string literal)
Code string `json:"code"`
// Message Static HTTP status phrase
Message string `json:"message"`
// Reason Stable machine-readable disambiguator (omitted when none applies)
Reason *string `json:"reason,omitempty"`
} `json:"error"`
}
ErrorTIMEOUT REST error envelope emitted by handleTRPCError. `message` is the static HTTP status phrase; `reason` (when present) is a stable machine-readable disambiguator that consumers should key off rather than parsing the human message.
type ErrorTOOMANYREQUESTS ¶ added in v0.14.0
type ErrorTOOMANYREQUESTS struct {
Error struct {
// Code tRPC error code (string literal)
Code string `json:"code"`
// Message Static HTTP status phrase
Message string `json:"message"`
// Reason Stable machine-readable disambiguator (omitted when none applies)
Reason *string `json:"reason,omitempty"`
} `json:"error"`
}
ErrorTOOMANYREQUESTS REST error envelope emitted by handleTRPCError. `message` is the static HTTP status phrase; `reason` (when present) is a stable machine-readable disambiguator that consumers should key off rather than parsing the human message.
type ErrorUNAUTHORIZED ¶
type ErrorUNAUTHORIZED struct {
Error struct {
// Code tRPC error code (string literal)
Code string `json:"code"`
// Message Static HTTP status phrase
Message string `json:"message"`
// Reason Stable machine-readable disambiguator (omitted when none applies)
Reason *string `json:"reason,omitempty"`
} `json:"error"`
}
ErrorUNAUTHORIZED REST error envelope emitted by handleTRPCError. `message` is the static HTTP status phrase; `reason` (when present) is a stable machine-readable disambiguator that consumers should key off rather than parsing the human message.
type ErrorUNPROCESSABLECONTENT ¶ added in v0.14.0
type ErrorUNPROCESSABLECONTENT struct {
Error struct {
// Code tRPC error code (string literal)
Code string `json:"code"`
// Message Static HTTP status phrase
Message string `json:"message"`
// Reason Stable machine-readable disambiguator (omitted when none applies)
Reason *string `json:"reason,omitempty"`
} `json:"error"`
}
ErrorUNPROCESSABLECONTENT REST error envelope emitted by handleTRPCError. `message` is the static HTTP status phrase; `reason` (when present) is a stable machine-readable disambiguator that consumers should key off rather than parsing the human message.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type K8sGetJSONBody ¶
type K8sGetJSONBody struct {
ClusterName string `json:"clusterName"`
Name string `json:"name"`
Namespace *string `json:"namespace,omitempty"`
ResourceConfig struct {
ApiVersion string `json:"apiVersion"`
ClusterScoped *bool `json:"clusterScoped,omitempty"`
Group string `json:"group"`
Kind string `json:"kind"`
Labels *map[string]string `json:"labels,omitempty"`
PluralName string `json:"pluralName"`
SingularName string `json:"singularName"`
Version string `json:"version"`
} `json:"resourceConfig"`
}
K8sGetJSONBody defines parameters for K8sGet.
type K8sGetJSONRequestBody ¶
type K8sGetJSONRequestBody K8sGetJSONBody
K8sGetJSONRequestBody defines body for K8sGet for application/json ContentType.
type K8sGetResponse ¶
type K8sGetResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
ApiVersion string `json:"apiVersion"`
Kind string `json:"kind"`
Metadata K8sGet_200_Metadata `json:"metadata"`
Spec *map[string]interface{} `json:"spec,omitempty"`
Status *map[string]interface{} `json:"status,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
JSON400 *ErrorBADREQUEST
JSON401 *ErrorUNAUTHORIZED
JSON403 *ErrorFORBIDDEN
JSON500 *ErrorINTERNALSERVERERROR
}
func ParseK8sGetResponse ¶
func ParseK8sGetResponse(rsp *http.Response) (*K8sGetResponse, error)
ParseK8sGetResponse parses an HTTP response from a K8sGetWithResponse call
func (K8sGetResponse) Status ¶
func (r K8sGetResponse) Status() string
Status returns HTTPResponse.Status
func (K8sGetResponse) StatusCode ¶
func (r K8sGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type K8sGet_200_Metadata ¶
type K8sGet_200_Metadata struct {
Annotations *map[string]string `json:"annotations,omitempty"`
CreationTimestamp *string `json:"creationTimestamp,omitempty"`
Labels *map[string]string `json:"labels,omitempty"`
Name string `json:"name"`
Namespace *string `json:"namespace,omitempty"`
ResourceVersion *string `json:"resourceVersion,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
type K8sListJSONBody ¶
type K8sListJSONBody struct {
ClusterName string `json:"clusterName"`
Labels *map[string]string `json:"labels,omitempty"`
Namespace *string `json:"namespace,omitempty"`
ResourceConfig struct {
ApiVersion string `json:"apiVersion"`
ClusterScoped *bool `json:"clusterScoped,omitempty"`
Group string `json:"group"`
Kind string `json:"kind"`
Labels *map[string]string `json:"labels,omitempty"`
PluralName string `json:"pluralName"`
SingularName string `json:"singularName"`
Version string `json:"version"`
} `json:"resourceConfig"`
}
K8sListJSONBody defines parameters for K8sList.
type K8sListJSONRequestBody ¶
type K8sListJSONRequestBody K8sListJSONBody
K8sListJSONRequestBody defines body for K8sList for application/json ContentType.
type K8sListResponse ¶
type K8sListResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
ApiVersion string `json:"apiVersion"`
Items []K8sList_200_Items_Item `json:"items"`
Kind string `json:"kind"`
Metadata map[string]interface{} `json:"metadata"`
}
JSON400 *ErrorBADREQUEST
JSON401 *ErrorUNAUTHORIZED
JSON403 *ErrorFORBIDDEN
JSON500 *ErrorINTERNALSERVERERROR
}
func ParseK8sListResponse ¶
func ParseK8sListResponse(rsp *http.Response) (*K8sListResponse, error)
ParseK8sListResponse parses an HTTP response from a K8sListWithResponse call
func (K8sListResponse) Status ¶
func (r K8sListResponse) Status() string
Status returns HTTPResponse.Status
func (K8sListResponse) StatusCode ¶
func (r K8sListResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type K8sList_200_Items_Item ¶
type K8sList_200_Items_Item struct {
ApiVersion *string `json:"apiVersion,omitempty"`
Kind *string `json:"kind,omitempty"`
Metadata K8sList_200_Items_Metadata `json:"metadata"`
Spec *map[string]interface{} `json:"spec,omitempty"`
Status *map[string]interface{} `json:"status,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
type K8sList_200_Items_Metadata ¶
type K8sList_200_Items_Metadata struct {
Annotations *map[string]string `json:"annotations,omitempty"`
CreationTimestamp *string `json:"creationTimestamp,omitempty"`
Labels *map[string]string `json:"labels,omitempty"`
Name string `json:"name"`
Namespace *string `json:"namespace,omitempty"`
ResourceVersion *string `json:"resourceVersion,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
type PipelineRunStartCreatedResponse ¶ added in v0.14.0
type PipelineRunStartCreatedResponse struct {
Kind PipelineRunStartCreatedResponseKind `json:"kind"`
Row struct {
Author string `json:"author"`
Duration string `json:"duration"`
Name string `json:"name"`
Pr string `json:"pr"`
Project string `json:"project"`
Started string `json:"started"`
Status string `json:"status"`
Type string `json:"type"`
} `json:"row"`
}
PipelineRunStartCreatedResponse defines model for PipelineRunStartCreatedResponse.
type PipelineRunStartCreatedResponseKind ¶ added in v0.14.0
type PipelineRunStartCreatedResponseKind string
PipelineRunStartCreatedResponseKind defines model for PipelineRunStartCreatedResponse.Kind.
const (
Created PipelineRunStartCreatedResponseKind = "created"
)
Defines values for PipelineRunStartCreatedResponseKind.
type PipelineRunStartDryRunResponse ¶ added in v0.14.0
type PipelineRunStartDryRunResponse struct {
Kind PipelineRunStartDryRunResponseKind `json:"kind"`
Manifest map[string]interface{} `json:"manifest"`
}
PipelineRunStartDryRunResponse defines model for PipelineRunStartDryRunResponse.
type PipelineRunStartDryRunResponseKind ¶ added in v0.14.0
type PipelineRunStartDryRunResponseKind string
PipelineRunStartDryRunResponseKind defines model for PipelineRunStartDryRunResponse.Kind.
const (
DryRun PipelineRunStartDryRunResponseKind = "dryRun"
)
Defines values for PipelineRunStartDryRunResponseKind.
type PipelineRunStartJSONBody ¶ added in v0.14.0
type PipelineRunStartJSONBody struct {
DryRun *bool `json:"dryRun,omitempty"`
Labels *map[string]string `json:"labels,omitempty"`
Namespace string `json:"namespace"`
Params *map[string]string `json:"params,omitempty"`
Pipeline string `json:"pipeline"`
}
PipelineRunStartJSONBody defines parameters for PipelineRunStart.
type PipelineRunStartJSONRequestBody ¶ added in v0.14.0
type PipelineRunStartJSONRequestBody PipelineRunStartJSONBody
PipelineRunStartJSONRequestBody defines body for PipelineRunStart for application/json ContentType.
type PipelineRunStartResponse ¶ added in v0.14.0
type PipelineRunStartResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
// contains filtered or unexported fields
}
JSON400 *ErrorBADREQUEST
JSON401 *ErrorUNAUTHORIZED
JSON403 *ErrorFORBIDDEN
JSON408 *ErrorTIMEOUT
JSON409 *ErrorCONFLICT
JSON422 *ErrorUNPROCESSABLECONTENT
JSON429 *ErrorTOOMANYREQUESTS
JSON500 *ErrorINTERNALSERVERERROR
}
func ParsePipelineRunStartResponse ¶ added in v0.14.0
func ParsePipelineRunStartResponse(rsp *http.Response) (*PipelineRunStartResponse, error)
ParsePipelineRunStartResponse parses an HTTP response from a PipelineRunStartWithResponse call
func (PipelineRunStartResponse) Status ¶ added in v0.14.0
func (r PipelineRunStartResponse) Status() string
Status returns HTTPResponse.Status
func (PipelineRunStartResponse) StatusCode ¶ added in v0.14.0
func (r PipelineRunStartResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type SCAComponent ¶ added in v0.10.0
type SCAComponent struct {
Group *string `json:"group,omitempty"`
IsInternal *bool `json:"isInternal,omitempty"`
LatestVersion *string `json:"latestVersion,omitempty"`
License *string `json:"license,omitempty"`
// Metrics Vulnerability-count metrics for a project or component.
Metrics *SCAMetrics `json:"metrics,omitempty"`
Name string `json:"name"`
Outdated *bool `json:"outdated,omitempty"`
RiskScore *float32 `json:"riskScore,omitempty"`
Uuid string `json:"uuid"`
Version string `json:"version"`
}
SCAComponent defines model for SCAComponent.
type SCAComponentsResponse ¶ added in v0.10.0
type SCAComponentsResponse struct {
Items []SCAComponent `json:"items"`
Status SCAComponentsResponseStatus `json:"status"`
TotalCount int `json:"totalCount"`
Truncated bool `json:"truncated"`
}
SCAComponentsResponse defines model for SCAComponentsResponse.
type SCAComponentsResponseStatus ¶ added in v0.10.0
type SCAComponentsResponseStatus string
SCAComponentsResponseStatus defines model for SCAComponentsResponse.Status.
const ( SCAComponentsResponseStatusNONE SCAComponentsResponseStatus = "NONE" SCAComponentsResponseStatusOK SCAComponentsResponseStatus = "OK" )
Defines values for SCAComponentsResponseStatus.
type SCAFinding ¶ added in v0.10.0
type SCAFinding struct {
Analysis SCAFindingAnalysis `json:"analysis"`
Attribution *SCAFindingAttribution `json:"attribution,omitempty"`
Component SCAFindingComponent `json:"component"`
Vulnerability SCAFindingVulnerability `json:"vulnerability"`
}
SCAFinding defines model for SCAFinding.
type SCAFindingAnalysis ¶ added in v0.10.0
type SCAFindingAnalysis struct {
IsSuppressed bool `json:"isSuppressed"`
State string `json:"state"`
}
SCAFindingAnalysis defines model for SCAFindingAnalysis.
type SCAFindingAttribution ¶ added in v0.10.0
type SCAFindingAttribution struct {
AnalyzerIdentity *string `json:"analyzerIdentity,omitempty"`
AttributedOn *int64 `json:"attributedOn,omitempty"`
}
SCAFindingAttribution defines model for SCAFindingAttribution.
type SCAFindingComponent ¶ added in v0.10.0
type SCAFindingComponent struct {
Group *string `json:"group,omitempty"`
Name string `json:"name"`
Uuid string `json:"uuid"`
Version *string `json:"version,omitempty"`
}
SCAFindingComponent defines model for SCAFindingComponent.
type SCAFindingVulnerability ¶ added in v0.10.0
type SCAFindingVulnerability struct {
CvssV2BaseScore *float32 `json:"cvssV2BaseScore,omitempty"`
CvssV3BaseScore *float32 `json:"cvssV3BaseScore,omitempty"`
Severity SCAFindingVulnerabilitySeverity `json:"severity"`
Source string `json:"source"`
VulnId string `json:"vulnId"`
}
SCAFindingVulnerability defines model for SCAFindingVulnerability.
type SCAFindingVulnerabilitySeverity ¶ added in v0.10.0
type SCAFindingVulnerabilitySeverity string
SCAFindingVulnerabilitySeverity defines model for SCAFindingVulnerability.Severity.
const ( SCAFindingVulnerabilitySeverityCRITICAL SCAFindingVulnerabilitySeverity = "CRITICAL" SCAFindingVulnerabilitySeverityHIGH SCAFindingVulnerabilitySeverity = "HIGH" SCAFindingVulnerabilitySeverityINFO SCAFindingVulnerabilitySeverity = "INFO" SCAFindingVulnerabilitySeverityLOW SCAFindingVulnerabilitySeverity = "LOW" SCAFindingVulnerabilitySeverityMEDIUM SCAFindingVulnerabilitySeverity = "MEDIUM" SCAFindingVulnerabilitySeverityUNASSIGNED SCAFindingVulnerabilitySeverity = "UNASSIGNED" )
Defines values for SCAFindingVulnerabilitySeverity.
type SCAFindingsResponse ¶ added in v0.10.0
type SCAFindingsResponse struct {
Items []SCAFinding `json:"items"`
Status SCAFindingsResponseStatus `json:"status"`
Truncated bool `json:"truncated"`
}
SCAFindingsResponse defines model for SCAFindingsResponse.
type SCAFindingsResponseStatus ¶ added in v0.10.0
type SCAFindingsResponseStatus string
SCAFindingsResponseStatus defines model for SCAFindingsResponse.Status.
const ( SCAFindingsResponseStatusNONE SCAFindingsResponseStatus = "NONE" SCAFindingsResponseStatusOK SCAFindingsResponseStatus = "OK" )
Defines values for SCAFindingsResponseStatus.
type SCAGetResponse ¶ added in v0.10.0
type SCAGetResponse struct {
// Metrics Vulnerability-count metrics for a project or component.
Metrics *SCAMetrics `json:"metrics,omitempty"`
Project *SCAProject `json:"project,omitempty"`
Status SCAGetResponseStatus `json:"status"`
}
SCAGetResponse Either `{ status: "OK", project, metrics }` or `{ status: "NONE" }` when the codebase has no Dep-Track binding.
type SCAGetResponseStatus ¶ added in v0.10.0
type SCAGetResponseStatus string
SCAGetResponseStatus defines model for SCAGetResponse.Status.
const ( SCAGetResponseStatusNONE SCAGetResponseStatus = "NONE" SCAGetResponseStatusOK SCAGetResponseStatus = "OK" )
Defines values for SCAGetResponseStatus.
type SCAListResponse ¶ added in v0.10.0
type SCAListResponse struct {
Items []SCAProject `json:"items"`
TotalCount int `json:"totalCount"`
}
SCAListResponse defines model for SCAListResponse.
type SCAMetrics ¶ added in v0.10.0
type SCAMetrics struct {
Components *int `json:"components,omitempty"`
Critical *int `json:"critical,omitempty"`
High *int `json:"high,omitempty"`
Low *int `json:"low,omitempty"`
Medium *int `json:"medium,omitempty"`
Unassigned *int `json:"unassigned,omitempty"`
Vulnerabilities *int `json:"vulnerabilities,omitempty"`
VulnerableComponents *int `json:"vulnerableComponents,omitempty"`
}
SCAMetrics Vulnerability-count metrics for a project or component.
type SCAProject ¶ added in v0.10.0
type SCAProject struct {
Active *bool `json:"active,omitempty"`
Classifier *string `json:"classifier,omitempty"`
IsLatest *bool `json:"isLatest,omitempty"`
LastBomImport *int64 `json:"lastBomImport,omitempty"`
LastBomImportFormat *string `json:"lastBomImportFormat,omitempty"`
LastVulnerabilityAnalysis *int64 `json:"lastVulnerabilityAnalysis,omitempty"`
// Metrics Vulnerability-count metrics for a project or component.
Metrics *SCAMetrics `json:"metrics,omitempty"`
Name string `json:"name"`
RiskScore *float32 `json:"riskScore,omitempty"`
Uuid string `json:"uuid"`
Version string `json:"version"`
}
SCAProject defines model for SCAProject.
type ScaComponentsParams ¶ added in v0.10.0
type ScaComponentsParams struct {
Codebase string `form:"codebase" json:"codebase"`
Branch *string `form:"branch,omitempty" json:"branch,omitempty"`
PageNumber *int `form:"pageNumber,omitempty" json:"pageNumber,omitempty"`
PageSize *int `form:"pageSize,omitempty" json:"pageSize,omitempty"`
OnlyOutdated *ScaComponentsParamsOnlyOutdated `form:"onlyOutdated,omitempty" json:"onlyOutdated,omitempty"`
OnlyDirect *ScaComponentsParamsOnlyDirect `form:"onlyDirect,omitempty" json:"onlyDirect,omitempty"`
// Severity Comma-separated canonical Dep-Track severity set (CRITICAL,HIGH,MEDIUM,LOW,INFO,UNASSIGNED). Filter applied server-side across all components in the project before paginating. When set, response may include truncated=true if the auto-paging safety cap is reached.
Severity *string `form:"severity,omitempty" json:"severity,omitempty"`
}
ScaComponentsParams defines parameters for ScaComponents.
type ScaComponentsParamsOnlyDirect ¶ added in v0.10.0
type ScaComponentsParamsOnlyDirect string
ScaComponentsParamsOnlyDirect defines parameters for ScaComponents.
const ( ScaComponentsParamsOnlyDirectFalse ScaComponentsParamsOnlyDirect = "false" ScaComponentsParamsOnlyDirectTrue ScaComponentsParamsOnlyDirect = "true" )
Defines values for ScaComponentsParamsOnlyDirect.
type ScaComponentsParamsOnlyOutdated ¶ added in v0.10.0
type ScaComponentsParamsOnlyOutdated string
ScaComponentsParamsOnlyOutdated defines parameters for ScaComponents.
const ( ScaComponentsParamsOnlyOutdatedFalse ScaComponentsParamsOnlyOutdated = "false" ScaComponentsParamsOnlyOutdatedTrue ScaComponentsParamsOnlyOutdated = "true" )
Defines values for ScaComponentsParamsOnlyOutdated.
type ScaComponentsResponse ¶ added in v0.10.0
type ScaComponentsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SCAComponentsResponse
JSON400 *ErrorBADREQUEST
JSON401 *ErrorUNAUTHORIZED
JSON404 *ErrorNOTFOUND
JSON500 *ErrorINTERNALSERVERERROR
JSON502 *ErrorINTERNALSERVERERROR
JSON503 *ErrorINTERNALSERVERERROR
}
func ParseScaComponentsResponse ¶ added in v0.10.0
func ParseScaComponentsResponse(rsp *http.Response) (*ScaComponentsResponse, error)
ParseScaComponentsResponse parses an HTTP response from a ScaComponentsWithResponse call
func (ScaComponentsResponse) Status ¶ added in v0.10.0
func (r ScaComponentsResponse) Status() string
Status returns HTTPResponse.Status
func (ScaComponentsResponse) StatusCode ¶ added in v0.10.0
func (r ScaComponentsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ScaFindingsParams ¶ added in v0.10.0
type ScaFindingsParams struct {
Codebase string `form:"codebase" json:"codebase"`
Branch *string `form:"branch,omitempty" json:"branch,omitempty"`
Suppressed *ScaFindingsParamsSuppressed `form:"suppressed,omitempty" json:"suppressed,omitempty"`
Source *string `form:"source,omitempty" json:"source,omitempty"`
// Severity Comma-separated canonical Dep-Track severity set (CRITICAL,HIGH,MEDIUM,LOW,INFO,UNASSIGNED). Filter applied server-side before the 1000-row cap, so truncated=true accurately reports more matching findings exist.
Severity *string `form:"severity,omitempty" json:"severity,omitempty"`
}
ScaFindingsParams defines parameters for ScaFindings.
type ScaFindingsParamsSuppressed ¶ added in v0.10.0
type ScaFindingsParamsSuppressed string
ScaFindingsParamsSuppressed defines parameters for ScaFindings.
const ( ScaFindingsParamsSuppressedFalse ScaFindingsParamsSuppressed = "false" ScaFindingsParamsSuppressedTrue ScaFindingsParamsSuppressed = "true" )
Defines values for ScaFindingsParamsSuppressed.
type ScaFindingsResponse ¶ added in v0.10.0
type ScaFindingsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SCAFindingsResponse
JSON400 *ErrorBADREQUEST
JSON401 *ErrorUNAUTHORIZED
JSON404 *ErrorNOTFOUND
JSON500 *ErrorINTERNALSERVERERROR
JSON502 *ErrorINTERNALSERVERERROR
JSON503 *ErrorINTERNALSERVERERROR
}
func ParseScaFindingsResponse ¶ added in v0.10.0
func ParseScaFindingsResponse(rsp *http.Response) (*ScaFindingsResponse, error)
ParseScaFindingsResponse parses an HTTP response from a ScaFindingsWithResponse call
func (ScaFindingsResponse) Status ¶ added in v0.10.0
func (r ScaFindingsResponse) Status() string
Status returns HTTPResponse.Status
func (ScaFindingsResponse) StatusCode ¶ added in v0.10.0
func (r ScaFindingsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ScaGetParams ¶ added in v0.10.0
type ScaGetParams struct {
Codebase string `form:"codebase" json:"codebase"`
Branch *string `form:"branch,omitempty" json:"branch,omitempty"`
}
ScaGetParams defines parameters for ScaGet.
type ScaGetResponse ¶ added in v0.10.0
type ScaGetResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SCAGetResponse
JSON400 *ErrorBADREQUEST
JSON401 *ErrorUNAUTHORIZED
JSON404 *ErrorNOTFOUND
JSON500 *ErrorINTERNALSERVERERROR
JSON502 *ErrorINTERNALSERVERERROR
JSON503 *ErrorINTERNALSERVERERROR
}
func ParseScaGetResponse ¶ added in v0.10.0
func ParseScaGetResponse(rsp *http.Response) (*ScaGetResponse, error)
ParseScaGetResponse parses an HTTP response from a ScaGetWithResponse call
func (ScaGetResponse) Status ¶ added in v0.10.0
func (r ScaGetResponse) Status() string
Status returns HTTPResponse.Status
func (ScaGetResponse) StatusCode ¶ added in v0.10.0
func (r ScaGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ScaListParams ¶ added in v0.10.0
type ScaListParams struct {
PageNumber *int `form:"pageNumber,omitempty" json:"pageNumber,omitempty"`
PageSize *int `form:"pageSize,omitempty" json:"pageSize,omitempty"`
SearchTerm *string `form:"searchTerm,omitempty" json:"searchTerm,omitempty"`
OnlyRoot *ScaListParamsOnlyRoot `form:"onlyRoot,omitempty" json:"onlyRoot,omitempty"`
ExcludeInactive *ScaListParamsExcludeInactive `form:"excludeInactive,omitempty" json:"excludeInactive,omitempty"`
}
ScaListParams defines parameters for ScaList.
type ScaListParamsExcludeInactive ¶ added in v0.10.0
type ScaListParamsExcludeInactive string
ScaListParamsExcludeInactive defines parameters for ScaList.
const ( ScaListParamsExcludeInactiveFalse ScaListParamsExcludeInactive = "false" ScaListParamsExcludeInactiveTrue ScaListParamsExcludeInactive = "true" )
Defines values for ScaListParamsExcludeInactive.
type ScaListParamsOnlyRoot ¶ added in v0.10.0
type ScaListParamsOnlyRoot string
ScaListParamsOnlyRoot defines parameters for ScaList.
const ( ScaListParamsOnlyRootFalse ScaListParamsOnlyRoot = "false" ScaListParamsOnlyRootTrue ScaListParamsOnlyRoot = "true" )
Defines values for ScaListParamsOnlyRoot.
type ScaListResponse ¶ added in v0.10.0
type ScaListResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SCAListResponse
JSON400 *ErrorBADREQUEST
JSON401 *ErrorUNAUTHORIZED
JSON500 *ErrorINTERNALSERVERERROR
JSON502 *ErrorINTERNALSERVERERROR
JSON503 *ErrorINTERNALSERVERERROR
}
func ParseScaListResponse ¶ added in v0.10.0
func ParseScaListResponse(rsp *http.Response) (*ScaListResponse, error)
ParseScaListResponse parses an HTTP response from a ScaListWithResponse call
func (ScaListResponse) Status ¶ added in v0.10.0
func (r ScaListResponse) Status() string
Status returns HTTPResponse.Status
func (ScaListResponse) StatusCode ¶ added in v0.10.0
func (r ScaListResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SonarGate ¶ added in v0.8.0
type SonarGate struct {
ProjectStatus struct {
Conditions *[]SonarGateCondition `json:"conditions,omitempty"`
IgnoredConditions *bool `json:"ignoredConditions,omitempty"`
Status SonarGateProjectStatusStatus `json:"status"`
} `json:"projectStatus"`
}
SonarGate defines model for SonarGate.
type SonarGateCondition ¶ added in v0.8.0
type SonarGateCondition struct {
ActualValue *string `json:"actualValue,omitempty"`
Comparator *string `json:"comparator,omitempty"`
ErrorThreshold *string `json:"errorThreshold,omitempty"`
MetricKey string `json:"metricKey"`
Status SonarGateConditionStatus `json:"status"`
}
SonarGateCondition defines model for SonarGateCondition.
type SonarGateConditionStatus ¶ added in v0.8.0
type SonarGateConditionStatus string
SonarGateConditionStatus defines model for SonarGateCondition.Status.
const ( SonarGateConditionStatusERROR SonarGateConditionStatus = "ERROR" SonarGateConditionStatusNONE SonarGateConditionStatus = "NONE" SonarGateConditionStatusOK SonarGateConditionStatus = "OK" SonarGateConditionStatusWARN SonarGateConditionStatus = "WARN" )
Defines values for SonarGateConditionStatus.
type SonarGateParams ¶ added in v0.8.0
type SonarGateParams struct {
ProjectKey string `form:"projectKey" json:"projectKey"`
PullRequest *string `form:"pullRequest,omitempty" json:"pullRequest,omitempty"`
Branch *string `form:"branch,omitempty" json:"branch,omitempty"`
}
SonarGateParams defines parameters for SonarGate.
type SonarGateProjectStatusStatus ¶ added in v0.8.0
type SonarGateProjectStatusStatus string
SonarGateProjectStatusStatus defines model for SonarGate.ProjectStatus.Status.
const ( SonarGateProjectStatusStatusERROR SonarGateProjectStatusStatus = "ERROR" SonarGateProjectStatusStatusNONE SonarGateProjectStatusStatus = "NONE" SonarGateProjectStatusStatusOK SonarGateProjectStatusStatus = "OK" SonarGateProjectStatusStatusWARN SonarGateProjectStatusStatus = "WARN" )
Defines values for SonarGateProjectStatusStatus.
type SonarGateResponse ¶ added in v0.8.0
type SonarGateResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SonarGate
JSON400 *ErrorBADREQUEST
JSON401 *ErrorUNAUTHORIZED
JSON403 *ErrorFORBIDDEN
JSON404 *ErrorNOTFOUND
JSON500 *ErrorINTERNALSERVERERROR
}
func ParseSonarGateResponse ¶ added in v0.8.0
func ParseSonarGateResponse(rsp *http.Response) (*SonarGateResponse, error)
ParseSonarGateResponse parses an HTTP response from a SonarGateWithResponse call
func (SonarGateResponse) Status ¶ added in v0.8.0
func (r SonarGateResponse) Status() string
Status returns HTTPResponse.Status
func (SonarGateResponse) StatusCode ¶ added in v0.8.0
func (r SonarGateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SonarGetParams ¶ added in v0.8.0
type SonarGetParams struct {
ProjectKey string `form:"projectKey" json:"projectKey"`
PullRequest *string `form:"pullRequest,omitempty" json:"pullRequest,omitempty"`
Branch *string `form:"branch,omitempty" json:"branch,omitempty"`
}
SonarGetParams defines parameters for SonarGet.
type SonarGetResponse ¶ added in v0.8.0
type SonarGetResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SonarProjectDetail
JSON400 *ErrorBADREQUEST
JSON401 *ErrorUNAUTHORIZED
JSON403 *ErrorFORBIDDEN
JSON404 *ErrorNOTFOUND
JSON500 *ErrorINTERNALSERVERERROR
}
func ParseSonarGetResponse ¶ added in v0.8.0
func ParseSonarGetResponse(rsp *http.Response) (*SonarGetResponse, error)
ParseSonarGetResponse parses an HTTP response from a SonarGetWithResponse call
func (SonarGetResponse) Status ¶ added in v0.8.0
func (r SonarGetResponse) Status() string
Status returns HTTPResponse.Status
func (SonarGetResponse) StatusCode ¶ added in v0.8.0
func (r SonarGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SonarIssue ¶ added in v0.8.0
type SonarIssue struct {
Author *string `json:"author,omitempty"`
Component string `json:"component"`
CreationDate string `json:"creationDate"`
Debt *string `json:"debt,omitempty"`
Effort *string `json:"effort,omitempty"`
Key string `json:"key"`
Line *int `json:"line,omitempty"`
Message string `json:"message"`
Project string `json:"project"`
Rule string `json:"rule"`
Severity SonarIssueSeverity `json:"severity"`
Status SonarIssueStatus `json:"status"`
Tags *[]string `json:"tags,omitempty"`
Type SonarIssueType `json:"type"`
UpdateDate *string `json:"updateDate,omitempty"`
}
SonarIssue defines model for SonarIssue.
type SonarIssueComponent ¶ added in v0.8.0
type SonarIssueComponent struct {
Enabled *bool `json:"enabled,omitempty"`
Key string `json:"key"`
LongName *string `json:"longName,omitempty"`
Name *string `json:"name,omitempty"`
Path *string `json:"path,omitempty"`
Qualifier *string `json:"qualifier,omitempty"`
}
SonarIssueComponent defines model for SonarIssueComponent.
type SonarIssueList ¶ added in v0.8.0
type SonarIssueList struct {
Components *[]SonarIssueComponent `json:"components,omitempty"`
Issues []SonarIssue `json:"issues"`
P int `json:"p"`
Paging SonarPaging `json:"paging"`
Ps int `json:"ps"`
Rules *[]SonarIssueRule `json:"rules,omitempty"`
Total int `json:"total"`
}
SonarIssueList defines model for SonarIssueList.
type SonarIssueRule ¶ added in v0.8.0
type SonarIssueRule struct {
Key string `json:"key"`
Lang *string `json:"lang,omitempty"`
LangName *string `json:"langName,omitempty"`
Name *string `json:"name,omitempty"`
Status *string `json:"status,omitempty"`
}
SonarIssueRule defines model for SonarIssueRule.
type SonarIssueSeverity ¶ added in v0.8.0
type SonarIssueSeverity string
SonarIssueSeverity defines model for SonarIssue.Severity.
const ( SonarIssueSeverityBLOCKER SonarIssueSeverity = "BLOCKER" SonarIssueSeverityCRITICAL SonarIssueSeverity = "CRITICAL" SonarIssueSeverityINFO SonarIssueSeverity = "INFO" SonarIssueSeverityMAJOR SonarIssueSeverity = "MAJOR" SonarIssueSeverityMINOR SonarIssueSeverity = "MINOR" )
Defines values for SonarIssueSeverity.
type SonarIssueStatus ¶ added in v0.8.0
type SonarIssueStatus string
SonarIssueStatus defines model for SonarIssue.Status.
const ( CLOSED SonarIssueStatus = "CLOSED" CONFIRMED SonarIssueStatus = "CONFIRMED" OPEN SonarIssueStatus = "OPEN" REOPENED SonarIssueStatus = "REOPENED" RESOLVED SonarIssueStatus = "RESOLVED" )
Defines values for SonarIssueStatus.
type SonarIssueType ¶ added in v0.8.0
type SonarIssueType string
SonarIssueType defines model for SonarIssue.Type.
const ( BUG SonarIssueType = "BUG" CODESMELL SonarIssueType = "CODE_SMELL" VULNERABILITY SonarIssueType = "VULNERABILITY" )
Defines values for SonarIssueType.
type SonarIssuesParams ¶ added in v0.8.0
type SonarIssuesParams struct {
ProjectKey string `form:"projectKey" json:"projectKey"`
PullRequest *string `form:"pullRequest,omitempty" json:"pullRequest,omitempty"`
Branch *string `form:"branch,omitempty" json:"branch,omitempty"`
Types *string `form:"types,omitempty" json:"types,omitempty"`
Severities *string `form:"severities,omitempty" json:"severities,omitempty"`
Statuses *string `form:"statuses,omitempty" json:"statuses,omitempty"`
Resolved *SonarIssuesParamsResolved `form:"resolved,omitempty" json:"resolved,omitempty"`
S *string `form:"s,omitempty" json:"s,omitempty"`
Asc *SonarIssuesParamsAsc `form:"asc,omitempty" json:"asc,omitempty"`
P *int `form:"p,omitempty" json:"p,omitempty"`
Ps *int `form:"ps,omitempty" json:"ps,omitempty"`
}
SonarIssuesParams defines parameters for SonarIssues.
type SonarIssuesParamsAsc ¶ added in v0.8.0
type SonarIssuesParamsAsc string
SonarIssuesParamsAsc defines parameters for SonarIssues.
const ( False SonarIssuesParamsAsc = "false" True SonarIssuesParamsAsc = "true" )
Defines values for SonarIssuesParamsAsc.
type SonarIssuesParamsResolved ¶ added in v0.8.0
type SonarIssuesParamsResolved string
SonarIssuesParamsResolved defines parameters for SonarIssues.
const ( SonarIssuesParamsResolvedFalse SonarIssuesParamsResolved = "false" SonarIssuesParamsResolvedTrue SonarIssuesParamsResolved = "true" )
Defines values for SonarIssuesParamsResolved.
type SonarIssuesResponse ¶ added in v0.8.0
type SonarIssuesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SonarIssueList
JSON400 *ErrorBADREQUEST
JSON401 *ErrorUNAUTHORIZED
JSON403 *ErrorFORBIDDEN
JSON404 *ErrorNOTFOUND
JSON500 *ErrorINTERNALSERVERERROR
}
func ParseSonarIssuesResponse ¶ added in v0.8.0
func ParseSonarIssuesResponse(rsp *http.Response) (*SonarIssuesResponse, error)
ParseSonarIssuesResponse parses an HTTP response from a SonarIssuesWithResponse call
func (SonarIssuesResponse) Status ¶ added in v0.8.0
func (r SonarIssuesResponse) Status() string
Status returns HTTPResponse.Status
func (SonarIssuesResponse) StatusCode ¶ added in v0.8.0
func (r SonarIssuesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SonarListParams ¶ added in v0.8.0
type SonarListParams struct {
Page *int `form:"page,omitempty" json:"page,omitempty"`
PageSize *int `form:"pageSize,omitempty" json:"pageSize,omitempty"`
SearchTerm *string `form:"searchTerm,omitempty" json:"searchTerm,omitempty"`
}
SonarListParams defines parameters for SonarList.
type SonarListResponse ¶ added in v0.8.0
type SonarListResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SonarProjectList
JSON400 *ErrorBADREQUEST
JSON401 *ErrorUNAUTHORIZED
JSON403 *ErrorFORBIDDEN
JSON404 *ErrorNOTFOUND
JSON500 *ErrorINTERNALSERVERERROR
}
func ParseSonarListResponse ¶ added in v0.8.0
func ParseSonarListResponse(rsp *http.Response) (*SonarListResponse, error)
ParseSonarListResponse parses an HTTP response from a SonarListWithResponse call
func (SonarListResponse) Status ¶ added in v0.8.0
func (r SonarListResponse) Status() string
Status returns HTTPResponse.Status
func (SonarListResponse) StatusCode ¶ added in v0.8.0
func (r SonarListResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SonarPaging ¶ added in v0.8.0
type SonarPaging struct {
PageIndex int `json:"pageIndex"`
PageSize int `json:"pageSize"`
Total int `json:"total"`
}
SonarPaging defines model for SonarPaging.
type SonarProject ¶ added in v0.8.0
type SonarProject struct {
Key string `json:"key"`
LastAnalysisDate *string `json:"lastAnalysisDate,omitempty"`
Managed *bool `json:"managed,omitempty"`
Name string `json:"name"`
Qualifier *string `json:"qualifier,omitempty"`
QualityGateStatus *SonarProjectQualityGateStatus `json:"qualityGateStatus,omitempty"`
Revision *string `json:"revision,omitempty"`
Visibility *string `json:"visibility,omitempty"`
}
SonarProject defines model for SonarProject.
type SonarProjectDetail ¶ added in v0.8.0
type SonarProjectDetail struct {
Key string `json:"key"`
LastAnalysisDate *string `json:"lastAnalysisDate,omitempty"`
Managed *bool `json:"managed,omitempty"`
Measures *map[string]string `json:"measures,omitempty"`
Name string `json:"name"`
Qualifier *string `json:"qualifier,omitempty"`
QualityGateStatus *SonarProjectDetailQualityGateStatus `json:"qualityGateStatus,omitempty"`
Revision *string `json:"revision,omitempty"`
Visibility *string `json:"visibility,omitempty"`
}
SonarProjectDetail defines model for SonarProjectDetail.
type SonarProjectDetailQualityGateStatus ¶ added in v0.8.0
type SonarProjectDetailQualityGateStatus string
SonarProjectDetailQualityGateStatus defines model for SonarProjectDetail.QualityGateStatus.
const ( ERROR SonarProjectDetailQualityGateStatus = "ERROR" NONE SonarProjectDetailQualityGateStatus = "NONE" OK SonarProjectDetailQualityGateStatus = "OK" WARN SonarProjectDetailQualityGateStatus = "WARN" )
Defines values for SonarProjectDetailQualityGateStatus.
type SonarProjectList ¶ added in v0.8.0
type SonarProjectList struct {
Paging SonarPaging `json:"paging"`
Projects []SonarProject `json:"projects"`
}
SonarProjectList defines model for SonarProjectList.
type SonarProjectQualityGateStatus ¶ added in v0.8.0
type SonarProjectQualityGateStatus string
SonarProjectQualityGateStatus defines model for SonarProject.QualityGateStatus.
const ( SonarProjectQualityGateStatusERROR SonarProjectQualityGateStatus = "ERROR" SonarProjectQualityGateStatusNONE SonarProjectQualityGateStatus = "NONE" SonarProjectQualityGateStatusOK SonarProjectQualityGateStatus = "OK" SonarProjectQualityGateStatusWARN SonarProjectQualityGateStatus = "WARN" )
Defines values for SonarProjectQualityGateStatus.
type StepTerminated ¶
type StepTerminated struct {
ContainerID *string `json:"containerID,omitempty"`
ExitCode int `json:"exitCode"`
FinishedAt *string `json:"finishedAt,omitempty"`
Message *string `json:"message,omitempty"`
Reason *string `json:"reason,omitempty"`
Signal *int `json:"signal,omitempty"`
StartedAt *string `json:"startedAt,omitempty"`
}
StepTerminated defines model for StepTerminated.
type TaskRun ¶
type TaskRun struct {
ApiVersion string `json:"apiVersion"`
Kind string `json:"kind"`
Metadata TaskRunMetadata `json:"metadata"`
Spec struct {
Params *[]struct {
Name string `json:"name"`
Value *interface{} `json:"value,omitempty"`
} `json:"params,omitempty"`
ServiceAccountName *string `json:"serviceAccountName,omitempty"`
TaskRef *struct {
ApiVersion *string `json:"apiVersion,omitempty"`
Kind *string `json:"kind,omitempty"`
Name *string `json:"name,omitempty"`
Resolver *string `json:"resolver,omitempty"`
} `json:"taskRef,omitempty"`
Timeout *string `json:"timeout,omitempty"`
Workspaces *[]map[string]interface{} `json:"workspaces,omitempty"`
} `json:"spec"`
Status TaskRunStatus `json:"status"`
}
TaskRun defines model for TaskRun.
type TaskRunCondition ¶
type TaskRunCondition struct {
LastTransitionTime *string `json:"lastTransitionTime,omitempty"`
Message *string `json:"message,omitempty"`
Reason *string `json:"reason,omitempty"`
Status string `json:"status"`
Type string `json:"type"`
}
TaskRunCondition defines model for TaskRunCondition.
type TaskRunMetadata ¶
type TaskRunMetadata struct {
Annotations *map[string]string `json:"annotations,omitempty"`
CreationTimestamp *string `json:"creationTimestamp,omitempty"`
Generation *int `json:"generation,omitempty"`
Labels *map[string]string `json:"labels,omitempty"`
Name string `json:"name"`
Namespace string `json:"namespace"`
ResourceVersion *string `json:"resourceVersion,omitempty"`
Uid string `json:"uid"`
}
TaskRunMetadata defines model for TaskRunMetadata.
type TaskRunRecordsResponse ¶
type TaskRunRecordsResponse struct {
TaskRuns []TaskRun `json:"taskRuns"`
}
TaskRunRecordsResponse defines model for TaskRunRecordsResponse.
type TaskRunStatus ¶
type TaskRunStatus struct {
Annotations *map[string]string `json:"annotations,omitempty"`
CompletionTime *string `json:"completionTime,omitempty"`
Conditions *[]TaskRunCondition `json:"conditions,omitempty"`
PodName string `json:"podName"`
Results *[]struct {
Name string `json:"name"`
Type *string `json:"type,omitempty"`
Value *interface{} `json:"value,omitempty"`
} `json:"results,omitempty"`
Sidecars *[]interface{} `json:"sidecars,omitempty"`
SpanContext *map[string]string `json:"spanContext,omitempty"`
StartTime *string `json:"startTime,omitempty"`
Steps *[]TaskRunStep `json:"steps,omitempty"`
TaskResults *[]struct {
Name string `json:"name"`
Type *string `json:"type,omitempty"`
Value *interface{} `json:"value,omitempty"`
} `json:"taskResults,omitempty"`
TaskSpec *interface{} `json:"taskSpec,omitempty"`
}
TaskRunStatus defines model for TaskRunStatus.
type TaskRunStep ¶
type TaskRunStep struct {
Container *string `json:"container,omitempty"`
ImageID *string `json:"imageID,omitempty"`
Name *string `json:"name,omitempty"`
Results *[]struct {
Name string `json:"name"`
Type *string `json:"type,omitempty"`
Value *interface{} `json:"value,omitempty"`
} `json:"results,omitempty"`
Running *struct {
StartedAt *string `json:"startedAt,omitempty"`
} `json:"running,omitempty"`
Terminated *StepTerminated `json:"terminated,omitempty"`
Waiting *struct {
Message *string `json:"message,omitempty"`
Reason *string `json:"reason,omitempty"`
} `json:"waiting,omitempty"`
}
TaskRunStep defines model for TaskRunStep.
type TektonResultsGetPipelineRunLogsParams ¶
type TektonResultsGetPipelineRunLogsParams struct {
Namespace string `form:"namespace" json:"namespace"`
RecordUid openapi_types.UUID `form:"recordUid" json:"recordUid"`
}
TektonResultsGetPipelineRunLogsParams defines parameters for TektonResultsGetPipelineRunLogs.
type TektonResultsGetPipelineRunLogsResponse ¶
type TektonResultsGetPipelineRunLogsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Logs string `json:"logs"`
}
JSON400 *ErrorBADREQUEST
JSON401 *ErrorUNAUTHORIZED
JSON403 *ErrorFORBIDDEN
JSON404 *ErrorNOTFOUND
JSON500 *ErrorINTERNALSERVERERROR
}
func ParseTektonResultsGetPipelineRunLogsResponse ¶
func ParseTektonResultsGetPipelineRunLogsResponse(rsp *http.Response) (*TektonResultsGetPipelineRunLogsResponse, error)
ParseTektonResultsGetPipelineRunLogsResponse parses an HTTP response from a TektonResultsGetPipelineRunLogsWithResponse call
func (TektonResultsGetPipelineRunLogsResponse) Status ¶
func (r TektonResultsGetPipelineRunLogsResponse) Status() string
Status returns HTTPResponse.Status
func (TektonResultsGetPipelineRunLogsResponse) StatusCode ¶
func (r TektonResultsGetPipelineRunLogsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type TektonResultsGetPipelineRunResults200ResultsSummaryStatus ¶ added in v0.11.0
type TektonResultsGetPipelineRunResults200ResultsSummaryStatus string
type TektonResultsGetPipelineRunResultsParams ¶
type TektonResultsGetPipelineRunResultsParams struct {
Namespace string `form:"namespace" json:"namespace"`
PageSize *float32 `form:"pageSize,omitempty" json:"pageSize,omitempty"`
PageToken *string `form:"pageToken,omitempty" json:"pageToken,omitempty"`
Filter *string `form:"filter,omitempty" json:"filter,omitempty"`
}
TektonResultsGetPipelineRunResultsParams defines parameters for TektonResultsGetPipelineRunResults.
type TektonResultsGetPipelineRunResultsResponse ¶
type TektonResultsGetPipelineRunResultsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
NextPageToken *string `json:"nextPageToken,omitempty"`
Results []struct {
Annotations *map[string]interface{} `json:"annotations,omitempty"`
CreateTime string `json:"create_time"`
Etag *string `json:"etag,omitempty"`
Name string `json:"name"`
Summary nullable.Nullable[struct {
Annotations *map[string]interface{} `json:"annotations,omitempty"`
EndTime nullable.Nullable[string] `json:"end_time,omitempty"`
Record string `json:"record"`
StartTime nullable.Nullable[string] `json:"start_time,omitempty"`
Status TektonResultsGetPipelineRunResults200ResultsSummaryStatus `json:"status"`
Type string `json:"type"`
}] `json:"summary,omitempty"`
Uid string `json:"uid"`
UpdateTime string `json:"update_time"`
} `json:"results"`
}
JSON400 *ErrorBADREQUEST
JSON401 *ErrorUNAUTHORIZED
JSON403 *ErrorFORBIDDEN
JSON404 *ErrorNOTFOUND
JSON500 *ErrorINTERNALSERVERERROR
}
func ParseTektonResultsGetPipelineRunResultsResponse ¶
func ParseTektonResultsGetPipelineRunResultsResponse(rsp *http.Response) (*TektonResultsGetPipelineRunResultsResponse, error)
ParseTektonResultsGetPipelineRunResultsResponse parses an HTTP response from a TektonResultsGetPipelineRunResultsWithResponse call
func (TektonResultsGetPipelineRunResultsResponse) Status ¶
func (r TektonResultsGetPipelineRunResultsResponse) Status() string
Status returns HTTPResponse.Status
func (TektonResultsGetPipelineRunResultsResponse) StatusCode ¶
func (r TektonResultsGetPipelineRunResultsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type TektonResultsGetTaskRunLogsParams ¶
type TektonResultsGetTaskRunLogsParams struct {
Namespace string `form:"namespace" json:"namespace"`
TaskRunName string `form:"taskRunName" json:"taskRunName"`
StepName *string `form:"stepName,omitempty" json:"stepName,omitempty"`
}
TektonResultsGetTaskRunLogsParams defines parameters for TektonResultsGetTaskRunLogs.
type TektonResultsGetTaskRunLogsResponse ¶
type TektonResultsGetTaskRunLogsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Error nullable.Nullable[string] `json:"error"`
HasLogs bool `json:"hasLogs"`
Logs string `json:"logs"`
StepFiltered *bool `json:"stepFiltered,omitempty"`
TaskRunName string `json:"taskRunName"`
}
JSON400 *ErrorBADREQUEST
JSON401 *ErrorUNAUTHORIZED
JSON403 *ErrorFORBIDDEN
JSON404 *ErrorNOTFOUND
JSON500 *ErrorINTERNALSERVERERROR
}
func ParseTektonResultsGetTaskRunLogsResponse ¶
func ParseTektonResultsGetTaskRunLogsResponse(rsp *http.Response) (*TektonResultsGetTaskRunLogsResponse, error)
ParseTektonResultsGetTaskRunLogsResponse parses an HTTP response from a TektonResultsGetTaskRunLogsWithResponse call
func (TektonResultsGetTaskRunLogsResponse) Status ¶
func (r TektonResultsGetTaskRunLogsResponse) Status() string
Status returns HTTPResponse.Status
func (TektonResultsGetTaskRunLogsResponse) StatusCode ¶
func (r TektonResultsGetTaskRunLogsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type TektonResultsGetTaskRunRecordsParams ¶
type TektonResultsGetTaskRunRecordsParams struct {
Namespace string `form:"namespace" json:"namespace"`
}
TektonResultsGetTaskRunRecordsParams defines parameters for TektonResultsGetTaskRunRecords.
type TektonResultsGetTaskRunRecordsResponse ¶
type TektonResultsGetTaskRunRecordsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *TaskRunRecordsResponse
JSON400 *ErrorBADREQUEST
JSON401 *ErrorUNAUTHORIZED
JSON403 *ErrorFORBIDDEN
JSON404 *ErrorNOTFOUND
JSON500 *ErrorINTERNALSERVERERROR
}
func ParseTektonResultsGetTaskRunRecordsResponse ¶
func ParseTektonResultsGetTaskRunRecordsResponse(rsp *http.Response) (*TektonResultsGetTaskRunRecordsResponse, error)
ParseTektonResultsGetTaskRunRecordsResponse parses an HTTP response from a TektonResultsGetTaskRunRecordsWithResponse call
func (TektonResultsGetTaskRunRecordsResponse) Status ¶
func (r TektonResultsGetTaskRunRecordsResponse) Status() string
Status returns HTTPResponse.Status
func (TektonResultsGetTaskRunRecordsResponse) StatusCode ¶
func (r TektonResultsGetTaskRunRecordsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode