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 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) 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) 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 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 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) 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)
// 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) 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)
// 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 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 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 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