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 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) 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) 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 ErrorFORBIDDEN
- type ErrorINTERNALSERVERERROR
- type ErrorNOTFOUND
- type ErrorUNAUTHORIZED
- 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 PipelineRunResultsResponse
- type RequestEditorFn
- 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 TektonResult
- type TektonResultSummary
- type TektonResultSummaryStatus
- type TektonResultsGetPipelineRunLogsParams
- type TektonResultsGetPipelineRunLogsResponse
- 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 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) 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)
// 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)
// 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) 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)
// 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)
// 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 {
// Code The error code
Code string `json:"code"`
// Issues An array of issues that were responsible for the error
Issues *[]struct {
Message string `json:"message"`
} `json:"issues,omitempty"`
// Message The error message
Message string `json:"message"`
}
ErrorBADREQUEST The error information
type ErrorFORBIDDEN ¶
type ErrorFORBIDDEN struct {
// Code The error code
Code string `json:"code"`
// Issues An array of issues that were responsible for the error
Issues *[]struct {
Message string `json:"message"`
} `json:"issues,omitempty"`
// Message The error message
Message string `json:"message"`
}
ErrorFORBIDDEN The error information
type ErrorINTERNALSERVERERROR ¶
type ErrorINTERNALSERVERERROR struct {
// Code The error code
Code string `json:"code"`
// Issues An array of issues that were responsible for the error
Issues *[]struct {
Message string `json:"message"`
} `json:"issues,omitempty"`
// Message The error message
Message string `json:"message"`
}
ErrorINTERNALSERVERERROR The error information
type ErrorNOTFOUND ¶
type ErrorNOTFOUND struct {
// Code The error code
Code string `json:"code"`
// Issues An array of issues that were responsible for the error
Issues *[]struct {
Message string `json:"message"`
} `json:"issues,omitempty"`
// Message The error message
Message string `json:"message"`
}
ErrorNOTFOUND The error information
type ErrorUNAUTHORIZED ¶
type ErrorUNAUTHORIZED struct {
// Code The error code
Code string `json:"code"`
// Issues An array of issues that were responsible for the error
Issues *[]struct {
Message string `json:"message"`
} `json:"issues,omitempty"`
// Message The error message
Message string `json:"message"`
}
ErrorUNAUTHORIZED The error information
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 PipelineRunResultsResponse ¶
type PipelineRunResultsResponse struct {
NextPageToken *string `json:"nextPageToken,omitempty"`
Results []TektonResult `json:"results"`
}
PipelineRunResultsResponse defines model for PipelineRunResultsResponse.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
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 ( BLOCKER SonarIssueSeverity = "BLOCKER" CRITICAL SonarIssueSeverity = "CRITICAL" INFO SonarIssueSeverity = "INFO" MAJOR SonarIssueSeverity = "MAJOR" MINOR 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 ( SonarIssuesParamsAscFalse SonarIssuesParamsAsc = "false" SonarIssuesParamsAscTrue 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 ( SonarProjectDetailQualityGateStatusERROR SonarProjectDetailQualityGateStatus = "ERROR" SonarProjectDetailQualityGateStatusNONE SonarProjectDetailQualityGateStatus = "NONE" SonarProjectDetailQualityGateStatusOK SonarProjectDetailQualityGateStatus = "OK" SonarProjectDetailQualityGateStatusWARN 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 TektonResult ¶
type TektonResult struct {
Annotations *map[string]interface{} `json:"annotations,omitempty"`
CreateTime string `json:"create_time"`
Etag *string `json:"etag,omitempty"`
Name string `json:"name"`
Summary *TektonResultSummary `json:"summary,omitempty"`
Uid string `json:"uid"`
UpdateTime string `json:"update_time"`
}
TektonResult defines model for TektonResult.
type TektonResultSummary ¶
type TektonResultSummary struct {
Annotations *map[string]interface{} `json:"annotations,omitempty"`
EndTime *string `json:"end_time,omitempty"`
Record string `json:"record"`
StartTime *string `json:"start_time,omitempty"`
Status TektonResultSummaryStatus `json:"status"`
Type string `json:"type"`
}
TektonResultSummary defines model for TektonResultSummary.
type TektonResultSummaryStatus ¶
type TektonResultSummaryStatus string
TektonResultSummaryStatus defines model for TektonResultSummary.Status.
const ( CANCELLED TektonResultSummaryStatus = "CANCELLED" FAILURE TektonResultSummaryStatus = "FAILURE" SUCCESS TektonResultSummaryStatus = "SUCCESS" TIMEOUT TektonResultSummaryStatus = "TIMEOUT" UNKNOWN TektonResultSummaryStatus = "UNKNOWN" )
Defines values for TektonResultSummaryStatus.
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 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 *PipelineRunResultsResponse
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"`
TaskName string `json:"taskName"`
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