Documentation ¶
Overview ¶
Package Openapi provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.12.4 DO NOT EDIT.
Index ¶
- Constants
- func GetSwagger() (swagger *openapi3.T, err error)
- func NewCreateJobRequest(server string, clusterId string, body CreateJobJSONRequestBody) (*http.Request, error)
- func NewCreateJobRequestWithBody(server string, clusterId string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateRemediationRequest(server string, clusterId string, params *CreateRemediationParams) (*http.Request, error)
- func NewCreateTestScriptRunRequest(server string, clusterId string, body CreateTestScriptRunJSONRequestBody) (*http.Request, error)
- func NewCreateTestScriptRunRequestWithBody(server string, clusterId string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteBackplaneClusterClusterIdRequest(server string, clusterId string) (*http.Request, error)
- func NewDeleteBackplaneRemediateClusterIdRemediationRequest(server string, clusterId string, remediation string) (*http.Request, error)
- func NewDeleteJobRequest(server string, clusterId string, jobId string) (*http.Request, error)
- func NewDeleteRemediationRequest(server string, clusterId string, params *DeleteRemediationParams) (*http.Request, error)
- func NewGetAllJobsRequest(server string, clusterId string) (*http.Request, error)
- func NewGetAssumeRoleSequenceRequest(server string, clusterId string) (*http.Request, error)
- func NewGetBackplaneClusterClusterIdRequest(server string, clusterId string) (*http.Request, error)
- func NewGetBackplaneRemediateClusterIdRemediationRequest(server string, clusterId string, remediation string) (*http.Request, error)
- func NewGetCloudConsoleRequest(server string, clusterId string) (*http.Request, error)
- func NewGetCloudCredentialsRequest(server string, clusterId string) (*http.Request, error)
- func NewGetJobLogsRequest(server string, clusterId string, jobId string, params *GetJobLogsParams) (*http.Request, error)
- func NewGetRunRequest(server string, clusterId string, jobId string) (*http.Request, error)
- func NewGetScriptsByClusterRequest(server string, clusterId string, params *GetScriptsByClusterParams) (*http.Request, error)
- func NewGetTestScriptRunLogsRequest(server string, clusterId string, testId string, ...) (*http.Request, error)
- func NewGetTestScriptRunRequest(server string, clusterId string, testId string) (*http.Request, error)
- func NewHeadBackplaneClusterClusterIdRequest(server string, clusterId string) (*http.Request, error)
- func NewHeadBackplaneRemediateClusterIdRemediationRequest(server string, clusterId string, remediation string) (*http.Request, error)
- func NewLoginClusterRequest(server string, clusterId string) (*http.Request, error)
- func NewOptionsBackplaneClusterClusterIdRequest(server string, clusterId string) (*http.Request, error)
- func NewOptionsBackplaneRemediateClusterIdRemediationRequest(server string, clusterId string, remediation string) (*http.Request, error)
- func NewPatchBackplaneClusterClusterIdRequest(server string, clusterId string) (*http.Request, error)
- func NewPatchBackplaneRemediateClusterIdRemediationRequest(server string, clusterId string, remediation string) (*http.Request, error)
- func NewPostBackplaneClusterClusterIdRequest(server string, clusterId string) (*http.Request, error)
- func NewPostBackplaneRemediateClusterIdRemediationRequest(server string, clusterId string, remediation string) (*http.Request, error)
- func NewPutBackplaneClusterClusterIdRequest(server string, clusterId string) (*http.Request, error)
- func NewPutBackplaneRemediateClusterIdRemediationRequest(server string, clusterId string, remediation string) (*http.Request, error)
- func NewTraceBackplaneClusterClusterIdRequest(server string, clusterId string) (*http.Request, error)
- func NewTraceBackplaneRemediateClusterIdRemediationRequest(server string, clusterId string, remediation string) (*http.Request, error)
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- type AssumableRole
- type AssumeRoleSequenceResponse
- type Client
- func (c *Client) CreateJob(ctx context.Context, clusterId string, body CreateJobJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateJobWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateRemediation(ctx context.Context, clusterId string, params *CreateRemediationParams, ...) (*http.Response, error)
- func (c *Client) CreateTestScriptRun(ctx context.Context, clusterId string, body CreateTestScriptRunJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateTestScriptRunWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteBackplaneClusterClusterId(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteBackplaneRemediateClusterIdRemediation(ctx context.Context, clusterId string, remediation string, ...) (*http.Response, error)
- func (c *Client) DeleteJob(ctx context.Context, clusterId string, jobId string, ...) (*http.Response, error)
- func (c *Client) DeleteRemediation(ctx context.Context, clusterId string, params *DeleteRemediationParams, ...) (*http.Response, error)
- func (c *Client) GetAllJobs(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetAssumeRoleSequence(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetBackplaneClusterClusterId(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetBackplaneRemediateClusterIdRemediation(ctx context.Context, clusterId string, remediation string, ...) (*http.Response, error)
- func (c *Client) GetCloudConsole(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetCloudCredentials(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetJobLogs(ctx context.Context, clusterId string, jobId string, params *GetJobLogsParams, ...) (*http.Response, error)
- func (c *Client) GetRun(ctx context.Context, clusterId string, jobId string, ...) (*http.Response, error)
- func (c *Client) GetScriptsByCluster(ctx context.Context, clusterId string, params *GetScriptsByClusterParams, ...) (*http.Response, error)
- func (c *Client) GetTestScriptRun(ctx context.Context, clusterId string, testId string, ...) (*http.Response, error)
- func (c *Client) GetTestScriptRunLogs(ctx context.Context, clusterId string, testId string, ...) (*http.Response, error)
- func (c *Client) HeadBackplaneClusterClusterId(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) HeadBackplaneRemediateClusterIdRemediation(ctx context.Context, clusterId string, remediation string, ...) (*http.Response, error)
- func (c *Client) LoginCluster(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) OptionsBackplaneClusterClusterId(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) OptionsBackplaneRemediateClusterIdRemediation(ctx context.Context, clusterId string, remediation string, ...) (*http.Response, error)
- func (c *Client) PatchBackplaneClusterClusterId(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PatchBackplaneRemediateClusterIdRemediation(ctx context.Context, clusterId string, remediation string, ...) (*http.Response, error)
- func (c *Client) PostBackplaneClusterClusterId(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PostBackplaneRemediateClusterIdRemediation(ctx context.Context, clusterId string, remediation string, ...) (*http.Response, error)
- func (c *Client) PutBackplaneClusterClusterId(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PutBackplaneRemediateClusterIdRemediation(ctx context.Context, clusterId string, remediation string, ...) (*http.Response, error)
- func (c *Client) TraceBackplaneClusterClusterId(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) TraceBackplaneRemediateClusterIdRemediation(ctx context.Context, clusterId string, remediation string, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) CreateJobWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader, ...) (*CreateJobResponse, error)
- func (c *ClientWithResponses) CreateJobWithResponse(ctx context.Context, clusterId string, body CreateJobJSONRequestBody, ...) (*CreateJobResponse, error)
- func (c *ClientWithResponses) CreateRemediationWithResponse(ctx context.Context, clusterId string, params *CreateRemediationParams, ...) (*CreateRemediationResponse, error)
- func (c *ClientWithResponses) CreateTestScriptRunWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader, ...) (*CreateTestScriptRunResponse, error)
- func (c *ClientWithResponses) CreateTestScriptRunWithResponse(ctx context.Context, clusterId string, body CreateTestScriptRunJSONRequestBody, ...) (*CreateTestScriptRunResponse, error)
- func (c *ClientWithResponses) DeleteBackplaneClusterClusterIdWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*DeleteBackplaneClusterClusterIdResponse, error)
- func (c *ClientWithResponses) DeleteBackplaneRemediateClusterIdRemediationWithResponse(ctx context.Context, clusterId string, remediation string, ...) (*DeleteBackplaneRemediateClusterIdRemediationResponse, error)
- func (c *ClientWithResponses) DeleteJobWithResponse(ctx context.Context, clusterId string, jobId string, ...) (*DeleteJobResponse, error)
- func (c *ClientWithResponses) DeleteRemediationWithResponse(ctx context.Context, clusterId string, params *DeleteRemediationParams, ...) (*DeleteRemediationResponse, error)
- func (c *ClientWithResponses) GetAllJobsWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*GetAllJobsResponse, error)
- func (c *ClientWithResponses) GetAssumeRoleSequenceWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*GetAssumeRoleSequenceResponse, error)
- func (c *ClientWithResponses) GetBackplaneClusterClusterIdWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*GetBackplaneClusterClusterIdResponse, error)
- func (c *ClientWithResponses) GetBackplaneRemediateClusterIdRemediationWithResponse(ctx context.Context, clusterId string, remediation string, ...) (*GetBackplaneRemediateClusterIdRemediationResponse, error)
- func (c *ClientWithResponses) GetCloudConsoleWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*GetCloudConsoleResponse, error)
- func (c *ClientWithResponses) GetCloudCredentialsWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*GetCloudCredentialsResponse, error)
- func (c *ClientWithResponses) GetJobLogsWithResponse(ctx context.Context, clusterId string, jobId string, params *GetJobLogsParams, ...) (*GetJobLogsResponse, error)
- func (c *ClientWithResponses) GetRunWithResponse(ctx context.Context, clusterId string, jobId string, ...) (*GetRunResponse, error)
- func (c *ClientWithResponses) GetScriptsByClusterWithResponse(ctx context.Context, clusterId string, params *GetScriptsByClusterParams, ...) (*GetScriptsByClusterResponse, error)
- func (c *ClientWithResponses) GetTestScriptRunLogsWithResponse(ctx context.Context, clusterId string, testId string, ...) (*GetTestScriptRunLogsResponse, error)
- func (c *ClientWithResponses) GetTestScriptRunWithResponse(ctx context.Context, clusterId string, testId string, ...) (*GetTestScriptRunResponse, error)
- func (c *ClientWithResponses) HeadBackplaneClusterClusterIdWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*HeadBackplaneClusterClusterIdResponse, error)
- func (c *ClientWithResponses) HeadBackplaneRemediateClusterIdRemediationWithResponse(ctx context.Context, clusterId string, remediation string, ...) (*HeadBackplaneRemediateClusterIdRemediationResponse, error)
- func (c *ClientWithResponses) LoginClusterWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*LoginClusterResponse, error)
- func (c *ClientWithResponses) OptionsBackplaneClusterClusterIdWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*OptionsBackplaneClusterClusterIdResponse, error)
- func (c *ClientWithResponses) OptionsBackplaneRemediateClusterIdRemediationWithResponse(ctx context.Context, clusterId string, remediation string, ...) (*OptionsBackplaneRemediateClusterIdRemediationResponse, error)
- func (c *ClientWithResponses) PatchBackplaneClusterClusterIdWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*PatchBackplaneClusterClusterIdResponse, error)
- func (c *ClientWithResponses) PatchBackplaneRemediateClusterIdRemediationWithResponse(ctx context.Context, clusterId string, remediation string, ...) (*PatchBackplaneRemediateClusterIdRemediationResponse, error)
- func (c *ClientWithResponses) PostBackplaneClusterClusterIdWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*PostBackplaneClusterClusterIdResponse, error)
- func (c *ClientWithResponses) PostBackplaneRemediateClusterIdRemediationWithResponse(ctx context.Context, clusterId string, remediation string, ...) (*PostBackplaneRemediateClusterIdRemediationResponse, error)
- func (c *ClientWithResponses) PutBackplaneClusterClusterIdWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*PutBackplaneClusterClusterIdResponse, error)
- func (c *ClientWithResponses) PutBackplaneRemediateClusterIdRemediationWithResponse(ctx context.Context, clusterId string, remediation string, ...) (*PutBackplaneRemediateClusterIdRemediationResponse, error)
- func (c *ClientWithResponses) TraceBackplaneClusterClusterIdWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*TraceBackplaneClusterClusterIdResponse, error)
- func (c *ClientWithResponses) TraceBackplaneRemediateClusterIdRemediationWithResponse(ctx context.Context, clusterId string, remediation string, ...) (*TraceBackplaneRemediateClusterIdRemediationResponse, error)
- type ClientWithResponsesInterface
- type CloudCredentialsResponse
- type CreateJob
- type CreateJobJSONRequestBody
- type CreateJobResponse
- type CreateRemediationParams
- type CreateRemediationResponse
- type CreateTestJob
- type CreateTestScriptRunJSONRequestBody
- type CreateTestScriptRunResponse
- type DeleteBackplaneClusterClusterIdResponse
- type DeleteBackplaneRemediateClusterIdRemediationResponse
- type DeleteJobResponse
- type DeleteRemediationParams
- type DeleteRemediationResponse
- type EnvDecl
- type EnvRealised
- type Error
- type GetAllJobsResponse
- type GetAssumeRoleSequenceResponse
- type GetBackplaneClusterClusterIdResponse
- type GetBackplaneRemediateClusterIdRemediationResponse
- type GetCloudConsoleResponse
- type GetCloudCredentialsResponse
- type GetJobLogsParams
- type GetJobLogsResponse
- type GetRunResponse
- type GetScriptsByClusterParams
- type GetScriptsByClusterResponse
- type GetTestScriptRunLogsParams
- type GetTestScriptRunLogsResponse
- type GetTestScriptRunResponse
- type HeadBackplaneClusterClusterIdResponse
- type HeadBackplaneRemediateClusterIdRemediationResponse
- type HttpRequestDoer
- type Job
- type JobStatus
- type JobStatusStatus
- type LabelDecl
- type LoginClusterResponse
- type LoginResponse
- type Logs
- type OptionsBackplaneClusterClusterIdResponse
- type OptionsBackplaneRemediateClusterIdRemediationResponse
- type PatchBackplaneClusterClusterIdResponse
- type PatchBackplaneRemediateClusterIdRemediationResponse
- type PolicyRule
- type PostBackplaneClusterClusterIdResponse
- type PostBackplaneRemediateClusterIdRemediationResponse
- type PutBackplaneClusterClusterIdResponse
- type PutBackplaneRemediateClusterIdRemediationResponse
- type RBAC
- type RequestEditorFn
- type RoleRbacDecl
- type Script
- type ScriptLanguage
- type ScriptMetadata
- type ScriptMetadataLanguage
- type Scripts
- type TestJobResult
- type TestJobResultStatus
- type TraceBackplaneClusterClusterIdResponse
- type TraceBackplaneRemediateClusterIdRemediationResponse
Constants ¶
const (
BearerAuthScopes = "BearerAuth.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func GetSwagger ¶
GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.
func NewCreateJobRequest ¶
func NewCreateJobRequest(server string, clusterId string, body CreateJobJSONRequestBody) (*http.Request, error)
NewCreateJobRequest calls the generic CreateJob builder with application/json body
func NewCreateJobRequestWithBody ¶
func NewCreateJobRequestWithBody(server string, clusterId string, contentType string, body io.Reader) (*http.Request, error)
NewCreateJobRequestWithBody generates requests for CreateJob with any type of body
func NewCreateRemediationRequest ¶
func NewCreateRemediationRequest(server string, clusterId string, params *CreateRemediationParams) (*http.Request, error)
NewCreateRemediationRequest generates requests for CreateRemediation
func NewCreateTestScriptRunRequest ¶
func NewCreateTestScriptRunRequest(server string, clusterId string, body CreateTestScriptRunJSONRequestBody) (*http.Request, error)
NewCreateTestScriptRunRequest calls the generic CreateTestScriptRun builder with application/json body
func NewCreateTestScriptRunRequestWithBody ¶
func NewCreateTestScriptRunRequestWithBody(server string, clusterId string, contentType string, body io.Reader) (*http.Request, error)
NewCreateTestScriptRunRequestWithBody generates requests for CreateTestScriptRun with any type of body
func NewDeleteBackplaneClusterClusterIdRequest ¶
func NewDeleteBackplaneClusterClusterIdRequest(server string, clusterId string) (*http.Request, error)
NewDeleteBackplaneClusterClusterIdRequest generates requests for DeleteBackplaneClusterClusterId
func NewDeleteBackplaneRemediateClusterIdRemediationRequest ¶
func NewDeleteBackplaneRemediateClusterIdRemediationRequest(server string, clusterId string, remediation string) (*http.Request, error)
NewDeleteBackplaneRemediateClusterIdRemediationRequest generates requests for DeleteBackplaneRemediateClusterIdRemediation
func NewDeleteJobRequest ¶
NewDeleteJobRequest generates requests for DeleteJob
func NewDeleteRemediationRequest ¶
func NewDeleteRemediationRequest(server string, clusterId string, params *DeleteRemediationParams) (*http.Request, error)
NewDeleteRemediationRequest generates requests for DeleteRemediation
func NewGetAllJobsRequest ¶
NewGetAllJobsRequest generates requests for GetAllJobs
func NewGetAssumeRoleSequenceRequest ¶
NewGetAssumeRoleSequenceRequest generates requests for GetAssumeRoleSequence
func NewGetBackplaneClusterClusterIdRequest ¶
NewGetBackplaneClusterClusterIdRequest generates requests for GetBackplaneClusterClusterId
func NewGetBackplaneRemediateClusterIdRemediationRequest ¶
func NewGetBackplaneRemediateClusterIdRemediationRequest(server string, clusterId string, remediation string) (*http.Request, error)
NewGetBackplaneRemediateClusterIdRemediationRequest generates requests for GetBackplaneRemediateClusterIdRemediation
func NewGetCloudConsoleRequest ¶
NewGetCloudConsoleRequest generates requests for GetCloudConsole
func NewGetCloudCredentialsRequest ¶
NewGetCloudCredentialsRequest generates requests for GetCloudCredentials
func NewGetJobLogsRequest ¶
func NewGetJobLogsRequest(server string, clusterId string, jobId string, params *GetJobLogsParams) (*http.Request, error)
NewGetJobLogsRequest generates requests for GetJobLogs
func NewGetRunRequest ¶
NewGetRunRequest generates requests for GetRun
func NewGetScriptsByClusterRequest ¶
func NewGetScriptsByClusterRequest(server string, clusterId string, params *GetScriptsByClusterParams) (*http.Request, error)
NewGetScriptsByClusterRequest generates requests for GetScriptsByCluster
func NewGetTestScriptRunLogsRequest ¶
func NewGetTestScriptRunLogsRequest(server string, clusterId string, testId string, params *GetTestScriptRunLogsParams) (*http.Request, error)
NewGetTestScriptRunLogsRequest generates requests for GetTestScriptRunLogs
func NewGetTestScriptRunRequest ¶
func NewGetTestScriptRunRequest(server string, clusterId string, testId string) (*http.Request, error)
NewGetTestScriptRunRequest generates requests for GetTestScriptRun
func NewHeadBackplaneClusterClusterIdRequest ¶
func NewHeadBackplaneClusterClusterIdRequest(server string, clusterId string) (*http.Request, error)
NewHeadBackplaneClusterClusterIdRequest generates requests for HeadBackplaneClusterClusterId
func NewHeadBackplaneRemediateClusterIdRemediationRequest ¶
func NewHeadBackplaneRemediateClusterIdRemediationRequest(server string, clusterId string, remediation string) (*http.Request, error)
NewHeadBackplaneRemediateClusterIdRemediationRequest generates requests for HeadBackplaneRemediateClusterIdRemediation
func NewLoginClusterRequest ¶
NewLoginClusterRequest generates requests for LoginCluster
func NewOptionsBackplaneClusterClusterIdRequest ¶
func NewOptionsBackplaneClusterClusterIdRequest(server string, clusterId string) (*http.Request, error)
NewOptionsBackplaneClusterClusterIdRequest generates requests for OptionsBackplaneClusterClusterId
func NewOptionsBackplaneRemediateClusterIdRemediationRequest ¶
func NewOptionsBackplaneRemediateClusterIdRemediationRequest(server string, clusterId string, remediation string) (*http.Request, error)
NewOptionsBackplaneRemediateClusterIdRemediationRequest generates requests for OptionsBackplaneRemediateClusterIdRemediation
func NewPatchBackplaneClusterClusterIdRequest ¶
func NewPatchBackplaneClusterClusterIdRequest(server string, clusterId string) (*http.Request, error)
NewPatchBackplaneClusterClusterIdRequest generates requests for PatchBackplaneClusterClusterId
func NewPatchBackplaneRemediateClusterIdRemediationRequest ¶
func NewPatchBackplaneRemediateClusterIdRemediationRequest(server string, clusterId string, remediation string) (*http.Request, error)
NewPatchBackplaneRemediateClusterIdRemediationRequest generates requests for PatchBackplaneRemediateClusterIdRemediation
func NewPostBackplaneClusterClusterIdRequest ¶
func NewPostBackplaneClusterClusterIdRequest(server string, clusterId string) (*http.Request, error)
NewPostBackplaneClusterClusterIdRequest generates requests for PostBackplaneClusterClusterId
func NewPostBackplaneRemediateClusterIdRemediationRequest ¶
func NewPostBackplaneRemediateClusterIdRemediationRequest(server string, clusterId string, remediation string) (*http.Request, error)
NewPostBackplaneRemediateClusterIdRemediationRequest generates requests for PostBackplaneRemediateClusterIdRemediation
func NewPutBackplaneClusterClusterIdRequest ¶
NewPutBackplaneClusterClusterIdRequest generates requests for PutBackplaneClusterClusterId
func NewPutBackplaneRemediateClusterIdRemediationRequest ¶
func NewPutBackplaneRemediateClusterIdRemediationRequest(server string, clusterId string, remediation string) (*http.Request, error)
NewPutBackplaneRemediateClusterIdRemediationRequest generates requests for PutBackplaneRemediateClusterIdRemediation
func NewTraceBackplaneClusterClusterIdRequest ¶
func NewTraceBackplaneClusterClusterIdRequest(server string, clusterId string) (*http.Request, error)
NewTraceBackplaneClusterClusterIdRequest generates requests for TraceBackplaneClusterClusterId
func NewTraceBackplaneRemediateClusterIdRemediationRequest ¶
func NewTraceBackplaneRemediateClusterIdRemediationRequest(server string, clusterId string, remediation string) (*http.Request, error)
NewTraceBackplaneRemediateClusterIdRemediationRequest generates requests for TraceBackplaneRemediateClusterIdRemediation
Types ¶
type AssumableRole ¶
type AssumableRole struct { // Arn ARN for the assumable role Arn string `json:"arn"` // Name Human readable Name string `json:"name"` }
AssumableRole Roles and there corresponding ARN
type AssumeRoleSequenceResponse ¶
type AssumeRoleSequenceResponse struct { // AssumptionSequence Role ARNs to assume in order AssumptionSequence []AssumableRole `json:"assumptionSequence"` }
AssumeRoleSequenceResponse Response for assume role handler
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) CreateJob ¶
func (c *Client) CreateJob(ctx context.Context, clusterId string, body CreateJobJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateJobWithBody ¶
func (*Client) CreateRemediation ¶
func (c *Client) CreateRemediation(ctx context.Context, clusterId string, params *CreateRemediationParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateTestScriptRun ¶
func (c *Client) CreateTestScriptRun(ctx context.Context, clusterId string, body CreateTestScriptRunJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateTestScriptRunWithBody ¶
func (*Client) DeleteBackplaneClusterClusterId ¶
func (*Client) DeleteBackplaneRemediateClusterIdRemediation ¶
func (*Client) DeleteRemediation ¶
func (c *Client) DeleteRemediation(ctx context.Context, clusterId string, params *DeleteRemediationParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetAllJobs ¶
func (*Client) GetAssumeRoleSequence ¶
func (*Client) GetBackplaneClusterClusterId ¶
func (*Client) GetBackplaneRemediateClusterIdRemediation ¶
func (*Client) GetCloudConsole ¶
func (*Client) GetCloudCredentials ¶
func (*Client) GetJobLogs ¶
func (c *Client) GetJobLogs(ctx context.Context, clusterId string, jobId string, params *GetJobLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetScriptsByCluster ¶
func (c *Client) GetScriptsByCluster(ctx context.Context, clusterId string, params *GetScriptsByClusterParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetTestScriptRun ¶
func (*Client) GetTestScriptRunLogs ¶
func (c *Client) GetTestScriptRunLogs(ctx context.Context, clusterId string, testId string, params *GetTestScriptRunLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) HeadBackplaneClusterClusterId ¶
func (*Client) HeadBackplaneRemediateClusterIdRemediation ¶
func (*Client) LoginCluster ¶
func (*Client) OptionsBackplaneClusterClusterId ¶
func (*Client) OptionsBackplaneRemediateClusterIdRemediation ¶
func (*Client) PatchBackplaneClusterClusterId ¶
func (*Client) PatchBackplaneRemediateClusterIdRemediation ¶
func (*Client) PostBackplaneClusterClusterId ¶
func (*Client) PostBackplaneRemediateClusterIdRemediation ¶
func (*Client) PutBackplaneClusterClusterId ¶
func (*Client) PutBackplaneRemediateClusterIdRemediation ¶
func (*Client) TraceBackplaneClusterClusterId ¶
type ClientInterface ¶
type ClientInterface interface { // GetCloudConsole request GetCloudConsole(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetAssumeRoleSequence request GetAssumeRoleSequence(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetCloudCredentials request GetCloudCredentials(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteBackplaneClusterClusterId request DeleteBackplaneClusterClusterId(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetBackplaneClusterClusterId request GetBackplaneClusterClusterId(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) // HeadBackplaneClusterClusterId request HeadBackplaneClusterClusterId(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) // OptionsBackplaneClusterClusterId request OptionsBackplaneClusterClusterId(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) // PatchBackplaneClusterClusterId request PatchBackplaneClusterClusterId(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) // PostBackplaneClusterClusterId request PostBackplaneClusterClusterId(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) // PutBackplaneClusterClusterId request PutBackplaneClusterClusterId(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) // TraceBackplaneClusterClusterId request TraceBackplaneClusterClusterId(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) // LoginCluster request LoginCluster(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteBackplaneRemediateClusterIdRemediation request DeleteBackplaneRemediateClusterIdRemediation(ctx context.Context, clusterId string, remediation string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetBackplaneRemediateClusterIdRemediation request GetBackplaneRemediateClusterIdRemediation(ctx context.Context, clusterId string, remediation string, reqEditors ...RequestEditorFn) (*http.Response, error) // HeadBackplaneRemediateClusterIdRemediation request HeadBackplaneRemediateClusterIdRemediation(ctx context.Context, clusterId string, remediation string, reqEditors ...RequestEditorFn) (*http.Response, error) // OptionsBackplaneRemediateClusterIdRemediation request OptionsBackplaneRemediateClusterIdRemediation(ctx context.Context, clusterId string, remediation string, reqEditors ...RequestEditorFn) (*http.Response, error) // PatchBackplaneRemediateClusterIdRemediation request PatchBackplaneRemediateClusterIdRemediation(ctx context.Context, clusterId string, remediation string, reqEditors ...RequestEditorFn) (*http.Response, error) // PostBackplaneRemediateClusterIdRemediation request PostBackplaneRemediateClusterIdRemediation(ctx context.Context, clusterId string, remediation string, reqEditors ...RequestEditorFn) (*http.Response, error) // PutBackplaneRemediateClusterIdRemediation request PutBackplaneRemediateClusterIdRemediation(ctx context.Context, clusterId string, remediation string, reqEditors ...RequestEditorFn) (*http.Response, error) // TraceBackplaneRemediateClusterIdRemediation request TraceBackplaneRemediateClusterIdRemediation(ctx context.Context, clusterId string, remediation string, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteRemediation request DeleteRemediation(ctx context.Context, clusterId string, params *DeleteRemediationParams, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateRemediation request CreateRemediation(ctx context.Context, clusterId string, params *CreateRemediationParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetScriptsByCluster request GetScriptsByCluster(ctx context.Context, clusterId string, params *GetScriptsByClusterParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetAllJobs request GetAllJobs(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateJob request with any body CreateJobWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreateJob(ctx context.Context, clusterId string, body CreateJobJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteJob request DeleteJob(ctx context.Context, clusterId string, jobId string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetRun request GetRun(ctx context.Context, clusterId string, jobId string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetJobLogs request GetJobLogs(ctx context.Context, clusterId string, jobId string, params *GetJobLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateTestScriptRun request with any body CreateTestScriptRunWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreateTestScriptRun(ctx context.Context, clusterId string, body CreateTestScriptRunJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetTestScriptRun request GetTestScriptRun(ctx context.Context, clusterId string, testId string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetTestScriptRunLogs request GetTestScriptRunLogs(ctx context.Context, clusterId string, testId string, params *GetTestScriptRunLogsParams, 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) CreateJobWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateJobWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateJobResponse, error)
CreateJobWithBodyWithResponse request with arbitrary body returning *CreateJobResponse
func (*ClientWithResponses) CreateJobWithResponse ¶
func (c *ClientWithResponses) CreateJobWithResponse(ctx context.Context, clusterId string, body CreateJobJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateJobResponse, error)
func (*ClientWithResponses) CreateRemediationWithResponse ¶
func (c *ClientWithResponses) CreateRemediationWithResponse(ctx context.Context, clusterId string, params *CreateRemediationParams, reqEditors ...RequestEditorFn) (*CreateRemediationResponse, error)
CreateRemediationWithResponse request returning *CreateRemediationResponse
func (*ClientWithResponses) CreateTestScriptRunWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateTestScriptRunWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTestScriptRunResponse, error)
CreateTestScriptRunWithBodyWithResponse request with arbitrary body returning *CreateTestScriptRunResponse
func (*ClientWithResponses) CreateTestScriptRunWithResponse ¶
func (c *ClientWithResponses) CreateTestScriptRunWithResponse(ctx context.Context, clusterId string, body CreateTestScriptRunJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTestScriptRunResponse, error)
func (*ClientWithResponses) DeleteBackplaneClusterClusterIdWithResponse ¶
func (c *ClientWithResponses) DeleteBackplaneClusterClusterIdWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*DeleteBackplaneClusterClusterIdResponse, error)
DeleteBackplaneClusterClusterIdWithResponse request returning *DeleteBackplaneClusterClusterIdResponse
func (*ClientWithResponses) DeleteBackplaneRemediateClusterIdRemediationWithResponse ¶
func (c *ClientWithResponses) DeleteBackplaneRemediateClusterIdRemediationWithResponse(ctx context.Context, clusterId string, remediation string, reqEditors ...RequestEditorFn) (*DeleteBackplaneRemediateClusterIdRemediationResponse, error)
DeleteBackplaneRemediateClusterIdRemediationWithResponse request returning *DeleteBackplaneRemediateClusterIdRemediationResponse
func (*ClientWithResponses) DeleteJobWithResponse ¶
func (c *ClientWithResponses) DeleteJobWithResponse(ctx context.Context, clusterId string, jobId string, reqEditors ...RequestEditorFn) (*DeleteJobResponse, error)
DeleteJobWithResponse request returning *DeleteJobResponse
func (*ClientWithResponses) DeleteRemediationWithResponse ¶
func (c *ClientWithResponses) DeleteRemediationWithResponse(ctx context.Context, clusterId string, params *DeleteRemediationParams, reqEditors ...RequestEditorFn) (*DeleteRemediationResponse, error)
DeleteRemediationWithResponse request returning *DeleteRemediationResponse
func (*ClientWithResponses) GetAllJobsWithResponse ¶
func (c *ClientWithResponses) GetAllJobsWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*GetAllJobsResponse, error)
GetAllJobsWithResponse request returning *GetAllJobsResponse
func (*ClientWithResponses) GetAssumeRoleSequenceWithResponse ¶
func (c *ClientWithResponses) GetAssumeRoleSequenceWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*GetAssumeRoleSequenceResponse, error)
GetAssumeRoleSequenceWithResponse request returning *GetAssumeRoleSequenceResponse
func (*ClientWithResponses) GetBackplaneClusterClusterIdWithResponse ¶
func (c *ClientWithResponses) GetBackplaneClusterClusterIdWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*GetBackplaneClusterClusterIdResponse, error)
GetBackplaneClusterClusterIdWithResponse request returning *GetBackplaneClusterClusterIdResponse
func (*ClientWithResponses) GetBackplaneRemediateClusterIdRemediationWithResponse ¶
func (c *ClientWithResponses) GetBackplaneRemediateClusterIdRemediationWithResponse(ctx context.Context, clusterId string, remediation string, reqEditors ...RequestEditorFn) (*GetBackplaneRemediateClusterIdRemediationResponse, error)
GetBackplaneRemediateClusterIdRemediationWithResponse request returning *GetBackplaneRemediateClusterIdRemediationResponse
func (*ClientWithResponses) GetCloudConsoleWithResponse ¶
func (c *ClientWithResponses) GetCloudConsoleWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*GetCloudConsoleResponse, error)
GetCloudConsoleWithResponse request returning *GetCloudConsoleResponse
func (*ClientWithResponses) GetCloudCredentialsWithResponse ¶
func (c *ClientWithResponses) GetCloudCredentialsWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*GetCloudCredentialsResponse, error)
GetCloudCredentialsWithResponse request returning *GetCloudCredentialsResponse
func (*ClientWithResponses) GetJobLogsWithResponse ¶
func (c *ClientWithResponses) GetJobLogsWithResponse(ctx context.Context, clusterId string, jobId string, params *GetJobLogsParams, reqEditors ...RequestEditorFn) (*GetJobLogsResponse, error)
GetJobLogsWithResponse request returning *GetJobLogsResponse
func (*ClientWithResponses) GetRunWithResponse ¶
func (c *ClientWithResponses) GetRunWithResponse(ctx context.Context, clusterId string, jobId string, reqEditors ...RequestEditorFn) (*GetRunResponse, error)
GetRunWithResponse request returning *GetRunResponse
func (*ClientWithResponses) GetScriptsByClusterWithResponse ¶
func (c *ClientWithResponses) GetScriptsByClusterWithResponse(ctx context.Context, clusterId string, params *GetScriptsByClusterParams, reqEditors ...RequestEditorFn) (*GetScriptsByClusterResponse, error)
GetScriptsByClusterWithResponse request returning *GetScriptsByClusterResponse
func (*ClientWithResponses) GetTestScriptRunLogsWithResponse ¶
func (c *ClientWithResponses) GetTestScriptRunLogsWithResponse(ctx context.Context, clusterId string, testId string, params *GetTestScriptRunLogsParams, reqEditors ...RequestEditorFn) (*GetTestScriptRunLogsResponse, error)
GetTestScriptRunLogsWithResponse request returning *GetTestScriptRunLogsResponse
func (*ClientWithResponses) GetTestScriptRunWithResponse ¶
func (c *ClientWithResponses) GetTestScriptRunWithResponse(ctx context.Context, clusterId string, testId string, reqEditors ...RequestEditorFn) (*GetTestScriptRunResponse, error)
GetTestScriptRunWithResponse request returning *GetTestScriptRunResponse
func (*ClientWithResponses) HeadBackplaneClusterClusterIdWithResponse ¶
func (c *ClientWithResponses) HeadBackplaneClusterClusterIdWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*HeadBackplaneClusterClusterIdResponse, error)
HeadBackplaneClusterClusterIdWithResponse request returning *HeadBackplaneClusterClusterIdResponse
func (*ClientWithResponses) HeadBackplaneRemediateClusterIdRemediationWithResponse ¶
func (c *ClientWithResponses) HeadBackplaneRemediateClusterIdRemediationWithResponse(ctx context.Context, clusterId string, remediation string, reqEditors ...RequestEditorFn) (*HeadBackplaneRemediateClusterIdRemediationResponse, error)
HeadBackplaneRemediateClusterIdRemediationWithResponse request returning *HeadBackplaneRemediateClusterIdRemediationResponse
func (*ClientWithResponses) LoginClusterWithResponse ¶
func (c *ClientWithResponses) LoginClusterWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*LoginClusterResponse, error)
LoginClusterWithResponse request returning *LoginClusterResponse
func (*ClientWithResponses) OptionsBackplaneClusterClusterIdWithResponse ¶
func (c *ClientWithResponses) OptionsBackplaneClusterClusterIdWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*OptionsBackplaneClusterClusterIdResponse, error)
OptionsBackplaneClusterClusterIdWithResponse request returning *OptionsBackplaneClusterClusterIdResponse
func (*ClientWithResponses) OptionsBackplaneRemediateClusterIdRemediationWithResponse ¶
func (c *ClientWithResponses) OptionsBackplaneRemediateClusterIdRemediationWithResponse(ctx context.Context, clusterId string, remediation string, reqEditors ...RequestEditorFn) (*OptionsBackplaneRemediateClusterIdRemediationResponse, error)
OptionsBackplaneRemediateClusterIdRemediationWithResponse request returning *OptionsBackplaneRemediateClusterIdRemediationResponse
func (*ClientWithResponses) PatchBackplaneClusterClusterIdWithResponse ¶
func (c *ClientWithResponses) PatchBackplaneClusterClusterIdWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*PatchBackplaneClusterClusterIdResponse, error)
PatchBackplaneClusterClusterIdWithResponse request returning *PatchBackplaneClusterClusterIdResponse
func (*ClientWithResponses) PatchBackplaneRemediateClusterIdRemediationWithResponse ¶
func (c *ClientWithResponses) PatchBackplaneRemediateClusterIdRemediationWithResponse(ctx context.Context, clusterId string, remediation string, reqEditors ...RequestEditorFn) (*PatchBackplaneRemediateClusterIdRemediationResponse, error)
PatchBackplaneRemediateClusterIdRemediationWithResponse request returning *PatchBackplaneRemediateClusterIdRemediationResponse
func (*ClientWithResponses) PostBackplaneClusterClusterIdWithResponse ¶
func (c *ClientWithResponses) PostBackplaneClusterClusterIdWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*PostBackplaneClusterClusterIdResponse, error)
PostBackplaneClusterClusterIdWithResponse request returning *PostBackplaneClusterClusterIdResponse
func (*ClientWithResponses) PostBackplaneRemediateClusterIdRemediationWithResponse ¶
func (c *ClientWithResponses) PostBackplaneRemediateClusterIdRemediationWithResponse(ctx context.Context, clusterId string, remediation string, reqEditors ...RequestEditorFn) (*PostBackplaneRemediateClusterIdRemediationResponse, error)
PostBackplaneRemediateClusterIdRemediationWithResponse request returning *PostBackplaneRemediateClusterIdRemediationResponse
func (*ClientWithResponses) PutBackplaneClusterClusterIdWithResponse ¶
func (c *ClientWithResponses) PutBackplaneClusterClusterIdWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*PutBackplaneClusterClusterIdResponse, error)
PutBackplaneClusterClusterIdWithResponse request returning *PutBackplaneClusterClusterIdResponse
func (*ClientWithResponses) PutBackplaneRemediateClusterIdRemediationWithResponse ¶
func (c *ClientWithResponses) PutBackplaneRemediateClusterIdRemediationWithResponse(ctx context.Context, clusterId string, remediation string, reqEditors ...RequestEditorFn) (*PutBackplaneRemediateClusterIdRemediationResponse, error)
PutBackplaneRemediateClusterIdRemediationWithResponse request returning *PutBackplaneRemediateClusterIdRemediationResponse
func (*ClientWithResponses) TraceBackplaneClusterClusterIdWithResponse ¶
func (c *ClientWithResponses) TraceBackplaneClusterClusterIdWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*TraceBackplaneClusterClusterIdResponse, error)
TraceBackplaneClusterClusterIdWithResponse request returning *TraceBackplaneClusterClusterIdResponse
func (*ClientWithResponses) TraceBackplaneRemediateClusterIdRemediationWithResponse ¶
func (c *ClientWithResponses) TraceBackplaneRemediateClusterIdRemediationWithResponse(ctx context.Context, clusterId string, remediation string, reqEditors ...RequestEditorFn) (*TraceBackplaneRemediateClusterIdRemediationResponse, error)
TraceBackplaneRemediateClusterIdRemediationWithResponse request returning *TraceBackplaneRemediateClusterIdRemediationResponse
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface { // GetCloudConsole request GetCloudConsoleWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*GetCloudConsoleResponse, error) // GetAssumeRoleSequence request GetAssumeRoleSequenceWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*GetAssumeRoleSequenceResponse, error) // GetCloudCredentials request GetCloudCredentialsWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*GetCloudCredentialsResponse, error) // DeleteBackplaneClusterClusterId request DeleteBackplaneClusterClusterIdWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*DeleteBackplaneClusterClusterIdResponse, error) // GetBackplaneClusterClusterId request GetBackplaneClusterClusterIdWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*GetBackplaneClusterClusterIdResponse, error) // HeadBackplaneClusterClusterId request HeadBackplaneClusterClusterIdWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*HeadBackplaneClusterClusterIdResponse, error) // OptionsBackplaneClusterClusterId request OptionsBackplaneClusterClusterIdWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*OptionsBackplaneClusterClusterIdResponse, error) // PatchBackplaneClusterClusterId request PatchBackplaneClusterClusterIdWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*PatchBackplaneClusterClusterIdResponse, error) // PostBackplaneClusterClusterId request PostBackplaneClusterClusterIdWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*PostBackplaneClusterClusterIdResponse, error) // PutBackplaneClusterClusterId request PutBackplaneClusterClusterIdWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*PutBackplaneClusterClusterIdResponse, error) // TraceBackplaneClusterClusterId request TraceBackplaneClusterClusterIdWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*TraceBackplaneClusterClusterIdResponse, error) // LoginCluster request LoginClusterWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*LoginClusterResponse, error) // DeleteBackplaneRemediateClusterIdRemediation request DeleteBackplaneRemediateClusterIdRemediationWithResponse(ctx context.Context, clusterId string, remediation string, reqEditors ...RequestEditorFn) (*DeleteBackplaneRemediateClusterIdRemediationResponse, error) // GetBackplaneRemediateClusterIdRemediation request GetBackplaneRemediateClusterIdRemediationWithResponse(ctx context.Context, clusterId string, remediation string, reqEditors ...RequestEditorFn) (*GetBackplaneRemediateClusterIdRemediationResponse, error) // HeadBackplaneRemediateClusterIdRemediation request HeadBackplaneRemediateClusterIdRemediationWithResponse(ctx context.Context, clusterId string, remediation string, reqEditors ...RequestEditorFn) (*HeadBackplaneRemediateClusterIdRemediationResponse, error) // OptionsBackplaneRemediateClusterIdRemediation request OptionsBackplaneRemediateClusterIdRemediationWithResponse(ctx context.Context, clusterId string, remediation string, reqEditors ...RequestEditorFn) (*OptionsBackplaneRemediateClusterIdRemediationResponse, error) // PatchBackplaneRemediateClusterIdRemediation request PatchBackplaneRemediateClusterIdRemediationWithResponse(ctx context.Context, clusterId string, remediation string, reqEditors ...RequestEditorFn) (*PatchBackplaneRemediateClusterIdRemediationResponse, error) // PostBackplaneRemediateClusterIdRemediation request PostBackplaneRemediateClusterIdRemediationWithResponse(ctx context.Context, clusterId string, remediation string, reqEditors ...RequestEditorFn) (*PostBackplaneRemediateClusterIdRemediationResponse, error) // PutBackplaneRemediateClusterIdRemediation request PutBackplaneRemediateClusterIdRemediationWithResponse(ctx context.Context, clusterId string, remediation string, reqEditors ...RequestEditorFn) (*PutBackplaneRemediateClusterIdRemediationResponse, error) // TraceBackplaneRemediateClusterIdRemediation request TraceBackplaneRemediateClusterIdRemediationWithResponse(ctx context.Context, clusterId string, remediation string, reqEditors ...RequestEditorFn) (*TraceBackplaneRemediateClusterIdRemediationResponse, error) // DeleteRemediation request DeleteRemediationWithResponse(ctx context.Context, clusterId string, params *DeleteRemediationParams, reqEditors ...RequestEditorFn) (*DeleteRemediationResponse, error) // CreateRemediation request CreateRemediationWithResponse(ctx context.Context, clusterId string, params *CreateRemediationParams, reqEditors ...RequestEditorFn) (*CreateRemediationResponse, error) // GetScriptsByCluster request GetScriptsByClusterWithResponse(ctx context.Context, clusterId string, params *GetScriptsByClusterParams, reqEditors ...RequestEditorFn) (*GetScriptsByClusterResponse, error) // GetAllJobs request GetAllJobsWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*GetAllJobsResponse, error) // CreateJob request with any body CreateJobWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateJobResponse, error) CreateJobWithResponse(ctx context.Context, clusterId string, body CreateJobJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateJobResponse, error) // DeleteJob request DeleteJobWithResponse(ctx context.Context, clusterId string, jobId string, reqEditors ...RequestEditorFn) (*DeleteJobResponse, error) // GetRun request GetRunWithResponse(ctx context.Context, clusterId string, jobId string, reqEditors ...RequestEditorFn) (*GetRunResponse, error) // GetJobLogs request GetJobLogsWithResponse(ctx context.Context, clusterId string, jobId string, params *GetJobLogsParams, reqEditors ...RequestEditorFn) (*GetJobLogsResponse, error) // CreateTestScriptRun request with any body CreateTestScriptRunWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTestScriptRunResponse, error) CreateTestScriptRunWithResponse(ctx context.Context, clusterId string, body CreateTestScriptRunJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTestScriptRunResponse, error) // GetTestScriptRun request GetTestScriptRunWithResponse(ctx context.Context, clusterId string, testId string, reqEditors ...RequestEditorFn) (*GetTestScriptRunResponse, error) // GetTestScriptRunLogs request GetTestScriptRunLogsWithResponse(ctx context.Context, clusterId string, testId string, params *GetTestScriptRunLogsParams, reqEditors ...RequestEditorFn) (*GetTestScriptRunLogsResponse, error) }
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CloudCredentialsResponse ¶
type CloudCredentialsResponse struct { // ClusterID ClusterID ClusterID string `json:"clusterID"` // ConsoleLink Link to the console, optional ConsoleLink *string `json:"consoleLink,omitempty"` // Credentials Cloud credentials, optional Credentials *string `json:"credentials,omitempty"` // Region Region, optional Region *string `json:"region,omitempty"` }
CloudCredentialsResponse Response for cloud handler
type CreateJob ¶
type CreateJob struct { // CanonicalName Name of the script to run CanonicalName *string `json:"canonicalName,omitempty"` // Parameters A map of parameters for the script, must be a flat object and matches // the parameters declared on the metadata Parameters *map[string]string `json:"parameters,omitempty"` }
CreateJob defines model for CreateJob.
type CreateJobJSONRequestBody ¶
type CreateJobJSONRequestBody = CreateJob
CreateJobJSONRequestBody defines body for CreateJob for application/json ContentType.
type CreateJobResponse ¶
func ParseCreateJobResponse ¶
func ParseCreateJobResponse(rsp *http.Response) (*CreateJobResponse, error)
ParseCreateJobResponse parses an HTTP response from a CreateJobWithResponse call
func (CreateJobResponse) Status ¶
func (r CreateJobResponse) Status() string
Status returns HTTPResponse.Status
func (CreateJobResponse) StatusCode ¶
func (r CreateJobResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateRemediationParams ¶
type CreateRemediationParams struct { // Remediation The name of a remediation for which RBAC should be created Remediation string `form:"remediation" json:"remediation"` }
CreateRemediationParams defines parameters for CreateRemediation.
type CreateRemediationResponse ¶
type CreateRemediationResponse struct { Body []byte HTTPResponse *http.Response JSON200 *LoginResponse }
func ParseCreateRemediationResponse ¶
func ParseCreateRemediationResponse(rsp *http.Response) (*CreateRemediationResponse, error)
ParseCreateRemediationResponse parses an HTTP response from a CreateRemediationWithResponse call
func (CreateRemediationResponse) Status ¶
func (r CreateRemediationResponse) Status() string
Status returns HTTPResponse.Status
func (CreateRemediationResponse) StatusCode ¶
func (r CreateRemediationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateTestJob ¶
type CreateTestJob struct { // BaseImageOverride Container image tag to override default managed-scripts base image during test job run. BaseImageOverride *string `json:"baseImageOverride,omitempty"` // DryRun Flag to indicate whether to generate a template or execute the script DryRun *bool `json:"dryRun,omitempty"` // Parameters A map of parameters for the script, must be a flat object and matches // the parameters declared on the metadata Parameters *map[string]string `json:"parameters,omitempty"` // ScriptBody Base64 encoded script body to run ScriptBody string `json:"scriptBody"` // ScriptMetadata Script metadata ScriptMetadata ScriptMetadata `json:"scriptMetadata"` }
CreateTestJob Body for creating a test job
type CreateTestScriptRunJSONRequestBody ¶
type CreateTestScriptRunJSONRequestBody = CreateTestJob
CreateTestScriptRunJSONRequestBody defines body for CreateTestScriptRun for application/json ContentType.
type CreateTestScriptRunResponse ¶
type CreateTestScriptRunResponse struct { Body []byte HTTPResponse *http.Response JSON200 *TestJobResult }
func ParseCreateTestScriptRunResponse ¶
func ParseCreateTestScriptRunResponse(rsp *http.Response) (*CreateTestScriptRunResponse, error)
ParseCreateTestScriptRunResponse parses an HTTP response from a CreateTestScriptRunWithResponse call
func (CreateTestScriptRunResponse) Status ¶
func (r CreateTestScriptRunResponse) Status() string
Status returns HTTPResponse.Status
func (CreateTestScriptRunResponse) StatusCode ¶
func (r CreateTestScriptRunResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteBackplaneClusterClusterIdResponse ¶
func ParseDeleteBackplaneClusterClusterIdResponse ¶
func ParseDeleteBackplaneClusterClusterIdResponse(rsp *http.Response) (*DeleteBackplaneClusterClusterIdResponse, error)
ParseDeleteBackplaneClusterClusterIdResponse parses an HTTP response from a DeleteBackplaneClusterClusterIdWithResponse call
func (DeleteBackplaneClusterClusterIdResponse) Status ¶
func (r DeleteBackplaneClusterClusterIdResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteBackplaneClusterClusterIdResponse) StatusCode ¶
func (r DeleteBackplaneClusterClusterIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteBackplaneRemediateClusterIdRemediationResponse ¶
type DeleteBackplaneRemediateClusterIdRemediationResponse struct { Body []byte HTTPResponse *http.Response }
func ParseDeleteBackplaneRemediateClusterIdRemediationResponse ¶
func ParseDeleteBackplaneRemediateClusterIdRemediationResponse(rsp *http.Response) (*DeleteBackplaneRemediateClusterIdRemediationResponse, error)
ParseDeleteBackplaneRemediateClusterIdRemediationResponse parses an HTTP response from a DeleteBackplaneRemediateClusterIdRemediationWithResponse call
func (DeleteBackplaneRemediateClusterIdRemediationResponse) Status ¶
func (r DeleteBackplaneRemediateClusterIdRemediationResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteBackplaneRemediateClusterIdRemediationResponse) StatusCode ¶
func (r DeleteBackplaneRemediateClusterIdRemediationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteJobResponse ¶
func ParseDeleteJobResponse ¶
func ParseDeleteJobResponse(rsp *http.Response) (*DeleteJobResponse, error)
ParseDeleteJobResponse parses an HTTP response from a DeleteJobWithResponse call
func (DeleteJobResponse) Status ¶
func (r DeleteJobResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteJobResponse) StatusCode ¶
func (r DeleteJobResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteRemediationParams ¶
type DeleteRemediationParams struct { // Remediation remediation name ( locked down to remediation users + validation that SA is owned by remediation user ) Remediation *string `form:"remediation,omitempty" json:"remediation,omitempty"` }
DeleteRemediationParams defines parameters for DeleteRemediation.
type DeleteRemediationResponse ¶
func ParseDeleteRemediationResponse ¶
func ParseDeleteRemediationResponse(rsp *http.Response) (*DeleteRemediationResponse, error)
ParseDeleteRemediationResponse parses an HTTP response from a DeleteRemediationWithResponse call
func (DeleteRemediationResponse) Status ¶
func (r DeleteRemediationResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteRemediationResponse) StatusCode ¶
func (r DeleteRemediationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type EnvDecl ¶
type EnvDecl struct { // Description A description of the env var Description *string `json:"description,omitempty"` // Key Key of the env Key *string `json:"key,omitempty"` // Optional Whether this env var is optional Optional *bool `json:"optional,omitempty"` }
EnvDecl defines model for EnvDecl.
type EnvRealised ¶
type EnvRealised struct { // Key Key of the env Key *string `json:"key,omitempty"` // Value The processed value of the env var Value *string `json:"value,omitempty"` }
EnvRealised defines model for EnvRealised.
type Error ¶
type Error struct { // Message Error Message Message *string `json:"message,omitempty"` // StatusCode HTTP status code StatusCode *int `json:"statusCode,omitempty"` }
Error defines model for Error.
type GetAllJobsResponse ¶
func ParseGetAllJobsResponse ¶
func ParseGetAllJobsResponse(rsp *http.Response) (*GetAllJobsResponse, error)
ParseGetAllJobsResponse parses an HTTP response from a GetAllJobsWithResponse call
func (GetAllJobsResponse) Status ¶
func (r GetAllJobsResponse) Status() string
Status returns HTTPResponse.Status
func (GetAllJobsResponse) StatusCode ¶
func (r GetAllJobsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAssumeRoleSequenceResponse ¶
type GetAssumeRoleSequenceResponse struct { Body []byte HTTPResponse *http.Response JSON200 *AssumeRoleSequenceResponse }
func ParseGetAssumeRoleSequenceResponse ¶
func ParseGetAssumeRoleSequenceResponse(rsp *http.Response) (*GetAssumeRoleSequenceResponse, error)
ParseGetAssumeRoleSequenceResponse parses an HTTP response from a GetAssumeRoleSequenceWithResponse call
func (GetAssumeRoleSequenceResponse) Status ¶
func (r GetAssumeRoleSequenceResponse) Status() string
Status returns HTTPResponse.Status
func (GetAssumeRoleSequenceResponse) StatusCode ¶
func (r GetAssumeRoleSequenceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetBackplaneClusterClusterIdResponse ¶
func ParseGetBackplaneClusterClusterIdResponse ¶
func ParseGetBackplaneClusterClusterIdResponse(rsp *http.Response) (*GetBackplaneClusterClusterIdResponse, error)
ParseGetBackplaneClusterClusterIdResponse parses an HTTP response from a GetBackplaneClusterClusterIdWithResponse call
func (GetBackplaneClusterClusterIdResponse) Status ¶
func (r GetBackplaneClusterClusterIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetBackplaneClusterClusterIdResponse) StatusCode ¶
func (r GetBackplaneClusterClusterIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetBackplaneRemediateClusterIdRemediationResponse ¶
type GetBackplaneRemediateClusterIdRemediationResponse struct { Body []byte HTTPResponse *http.Response }
func ParseGetBackplaneRemediateClusterIdRemediationResponse ¶
func ParseGetBackplaneRemediateClusterIdRemediationResponse(rsp *http.Response) (*GetBackplaneRemediateClusterIdRemediationResponse, error)
ParseGetBackplaneRemediateClusterIdRemediationResponse parses an HTTP response from a GetBackplaneRemediateClusterIdRemediationWithResponse call
func (GetBackplaneRemediateClusterIdRemediationResponse) Status ¶
func (r GetBackplaneRemediateClusterIdRemediationResponse) Status() string
Status returns HTTPResponse.Status
func (GetBackplaneRemediateClusterIdRemediationResponse) StatusCode ¶
func (r GetBackplaneRemediateClusterIdRemediationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCloudConsoleResponse ¶
type GetCloudConsoleResponse struct { Body []byte HTTPResponse *http.Response JSON200 *CloudCredentialsResponse }
func ParseGetCloudConsoleResponse ¶
func ParseGetCloudConsoleResponse(rsp *http.Response) (*GetCloudConsoleResponse, error)
ParseGetCloudConsoleResponse parses an HTTP response from a GetCloudConsoleWithResponse call
func (GetCloudConsoleResponse) Status ¶
func (r GetCloudConsoleResponse) Status() string
Status returns HTTPResponse.Status
func (GetCloudConsoleResponse) StatusCode ¶
func (r GetCloudConsoleResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCloudCredentialsResponse ¶
type GetCloudCredentialsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *CloudCredentialsResponse }
func ParseGetCloudCredentialsResponse ¶
func ParseGetCloudCredentialsResponse(rsp *http.Response) (*GetCloudCredentialsResponse, error)
ParseGetCloudCredentialsResponse parses an HTTP response from a GetCloudCredentialsWithResponse call
func (GetCloudCredentialsResponse) Status ¶
func (r GetCloudCredentialsResponse) Status() string
Status returns HTTPResponse.Status
func (GetCloudCredentialsResponse) StatusCode ¶
func (r GetCloudCredentialsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetJobLogsParams ¶
type GetJobLogsParams struct { // Version The version to return. Default is JSON, v2 is streaming Version *string `form:"version,omitempty" json:"version,omitempty"` // Follow Specify if the logs should be followed. Follow *bool `form:"follow,omitempty" json:"follow,omitempty"` }
GetJobLogsParams defines parameters for GetJobLogs.
type GetJobLogsResponse ¶
func ParseGetJobLogsResponse ¶
func ParseGetJobLogsResponse(rsp *http.Response) (*GetJobLogsResponse, error)
ParseGetJobLogsResponse parses an HTTP response from a GetJobLogsWithResponse call
func (GetJobLogsResponse) Status ¶
func (r GetJobLogsResponse) Status() string
Status returns HTTPResponse.Status
func (GetJobLogsResponse) StatusCode ¶
func (r GetJobLogsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetRunResponse ¶
func ParseGetRunResponse ¶
func ParseGetRunResponse(rsp *http.Response) (*GetRunResponse, error)
ParseGetRunResponse parses an HTTP response from a GetRunWithResponse call
func (GetRunResponse) Status ¶
func (r GetRunResponse) Status() string
Status returns HTTPResponse.Status
func (GetRunResponse) StatusCode ¶
func (r GetRunResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetScriptsByClusterParams ¶
type GetScriptsByClusterParams struct {
Scriptname *string `form:"scriptname,omitempty" json:"scriptname,omitempty"`
}
GetScriptsByClusterParams defines parameters for GetScriptsByCluster.
type GetScriptsByClusterResponse ¶
type GetScriptsByClusterResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Scripts }
func ParseGetScriptsByClusterResponse ¶
func ParseGetScriptsByClusterResponse(rsp *http.Response) (*GetScriptsByClusterResponse, error)
ParseGetScriptsByClusterResponse parses an HTTP response from a GetScriptsByClusterWithResponse call
func (GetScriptsByClusterResponse) Status ¶
func (r GetScriptsByClusterResponse) Status() string
Status returns HTTPResponse.Status
func (GetScriptsByClusterResponse) StatusCode ¶
func (r GetScriptsByClusterResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetTestScriptRunLogsParams ¶
type GetTestScriptRunLogsParams struct { // Version The version to return. Default is JSON, v2 is streaming Version *string `form:"version,omitempty" json:"version,omitempty"` // Follow Specify if the logs should be followed. Follow *bool `form:"follow,omitempty" json:"follow,omitempty"` }
GetTestScriptRunLogsParams defines parameters for GetTestScriptRunLogs.
type GetTestScriptRunLogsResponse ¶
func ParseGetTestScriptRunLogsResponse ¶
func ParseGetTestScriptRunLogsResponse(rsp *http.Response) (*GetTestScriptRunLogsResponse, error)
ParseGetTestScriptRunLogsResponse parses an HTTP response from a GetTestScriptRunLogsWithResponse call
func (GetTestScriptRunLogsResponse) Status ¶
func (r GetTestScriptRunLogsResponse) Status() string
Status returns HTTPResponse.Status
func (GetTestScriptRunLogsResponse) StatusCode ¶
func (r GetTestScriptRunLogsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetTestScriptRunResponse ¶
type GetTestScriptRunResponse struct { Body []byte HTTPResponse *http.Response JSON200 *TestJobResult }
func ParseGetTestScriptRunResponse ¶
func ParseGetTestScriptRunResponse(rsp *http.Response) (*GetTestScriptRunResponse, error)
ParseGetTestScriptRunResponse parses an HTTP response from a GetTestScriptRunWithResponse call
func (GetTestScriptRunResponse) Status ¶
func (r GetTestScriptRunResponse) Status() string
Status returns HTTPResponse.Status
func (GetTestScriptRunResponse) StatusCode ¶
func (r GetTestScriptRunResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HeadBackplaneClusterClusterIdResponse ¶
func ParseHeadBackplaneClusterClusterIdResponse ¶
func ParseHeadBackplaneClusterClusterIdResponse(rsp *http.Response) (*HeadBackplaneClusterClusterIdResponse, error)
ParseHeadBackplaneClusterClusterIdResponse parses an HTTP response from a HeadBackplaneClusterClusterIdWithResponse call
func (HeadBackplaneClusterClusterIdResponse) Status ¶
func (r HeadBackplaneClusterClusterIdResponse) Status() string
Status returns HTTPResponse.Status
func (HeadBackplaneClusterClusterIdResponse) StatusCode ¶
func (r HeadBackplaneClusterClusterIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HeadBackplaneRemediateClusterIdRemediationResponse ¶
type HeadBackplaneRemediateClusterIdRemediationResponse struct { Body []byte HTTPResponse *http.Response }
func ParseHeadBackplaneRemediateClusterIdRemediationResponse ¶
func ParseHeadBackplaneRemediateClusterIdRemediationResponse(rsp *http.Response) (*HeadBackplaneRemediateClusterIdRemediationResponse, error)
ParseHeadBackplaneRemediateClusterIdRemediationResponse parses an HTTP response from a HeadBackplaneRemediateClusterIdRemediationWithResponse call
func (HeadBackplaneRemediateClusterIdRemediationResponse) Status ¶
func (r HeadBackplaneRemediateClusterIdRemediationResponse) Status() string
Status returns HTTPResponse.Status
func (HeadBackplaneRemediateClusterIdRemediationResponse) StatusCode ¶
func (r HeadBackplaneRemediateClusterIdRemediationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type Job ¶
type Job struct { // JobId An unique id to identify this job run JobId *string `json:"jobId,omitempty"` JobStatus *JobStatus `json:"jobStatus,omitempty"` // Message A helpful message to the user Message *string `json:"message,omitempty"` // UserMD5 MD5 of the user who created the job UserMD5 *string `json:"userMD5,omitempty"` }
Job defines model for Job.
type JobStatus ¶
type JobStatus struct { // End End/Finish time of the script End *time.Time `json:"end"` // Envs A array of environment parameters for the script Envs *[]EnvRealised `json:"envs,omitempty"` // Namespace Namespace of the script being ran Namespace *string `json:"namespace,omitempty"` Script *Script `json:"script,omitempty"` // Start Start time of the script Start *time.Time `json:"start,omitempty"` // Status status of the script Status *JobStatusStatus `json:"status,omitempty"` }
JobStatus defines model for JobStatus.
type JobStatusStatus ¶
type JobStatusStatus string
JobStatusStatus status of the script
const ( JobStatusStatusFailed JobStatusStatus = "Failed" JobStatusStatusKilled JobStatusStatus = "Killed" JobStatusStatusPending JobStatusStatus = "Pending" JobStatusStatusRunning JobStatusStatus = "Running" JobStatusStatusSucceeded JobStatusStatus = "Succeeded" JobStatusStatusUnknown JobStatusStatus = "Unknown" )
Defines values for JobStatusStatus.
type LabelDecl ¶
type LabelDecl struct { // Description A brief description of the label Description *string `json:"description,omitempty"` // Key Key of the label Key *string `json:"key,omitempty"` // Values Values for the label Values *[]interface{} `json:"values,omitempty"` }
LabelDecl defines model for LabelDecl.
type LoginClusterResponse ¶
type LoginClusterResponse struct { Body []byte HTTPResponse *http.Response JSON200 *LoginResponse }
func ParseLoginClusterResponse ¶
func ParseLoginClusterResponse(rsp *http.Response) (*LoginClusterResponse, error)
ParseLoginClusterResponse parses an HTTP response from a LoginClusterWithResponse call
func (LoginClusterResponse) Status ¶
func (r LoginClusterResponse) Status() string
Status returns HTTPResponse.Status
func (LoginClusterResponse) StatusCode ¶
func (r LoginClusterResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type LoginResponse ¶
type LoginResponse struct { // Message message Message *string `json:"message,omitempty"` // ProxyUri KubeAPI proxy URI ProxyUri *string `json:"proxy_uri,omitempty"` // StatusCode status code StatusCode *int `json:"statusCode,omitempty"` }
LoginResponse Login status response
type Logs ¶
type Logs struct { // Logs Logs of the pod Logs *string `json:"logs,omitempty"` }
Logs defines model for Logs.
type OptionsBackplaneClusterClusterIdResponse ¶
func ParseOptionsBackplaneClusterClusterIdResponse ¶
func ParseOptionsBackplaneClusterClusterIdResponse(rsp *http.Response) (*OptionsBackplaneClusterClusterIdResponse, error)
ParseOptionsBackplaneClusterClusterIdResponse parses an HTTP response from a OptionsBackplaneClusterClusterIdWithResponse call
func (OptionsBackplaneClusterClusterIdResponse) Status ¶
func (r OptionsBackplaneClusterClusterIdResponse) Status() string
Status returns HTTPResponse.Status
func (OptionsBackplaneClusterClusterIdResponse) StatusCode ¶
func (r OptionsBackplaneClusterClusterIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type OptionsBackplaneRemediateClusterIdRemediationResponse ¶
type OptionsBackplaneRemediateClusterIdRemediationResponse struct { Body []byte HTTPResponse *http.Response }
func ParseOptionsBackplaneRemediateClusterIdRemediationResponse ¶
func ParseOptionsBackplaneRemediateClusterIdRemediationResponse(rsp *http.Response) (*OptionsBackplaneRemediateClusterIdRemediationResponse, error)
ParseOptionsBackplaneRemediateClusterIdRemediationResponse parses an HTTP response from a OptionsBackplaneRemediateClusterIdRemediationWithResponse call
func (OptionsBackplaneRemediateClusterIdRemediationResponse) Status ¶
func (r OptionsBackplaneRemediateClusterIdRemediationResponse) Status() string
Status returns HTTPResponse.Status
func (OptionsBackplaneRemediateClusterIdRemediationResponse) StatusCode ¶
func (r OptionsBackplaneRemediateClusterIdRemediationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PatchBackplaneClusterClusterIdResponse ¶
func ParsePatchBackplaneClusterClusterIdResponse ¶
func ParsePatchBackplaneClusterClusterIdResponse(rsp *http.Response) (*PatchBackplaneClusterClusterIdResponse, error)
ParsePatchBackplaneClusterClusterIdResponse parses an HTTP response from a PatchBackplaneClusterClusterIdWithResponse call
func (PatchBackplaneClusterClusterIdResponse) Status ¶
func (r PatchBackplaneClusterClusterIdResponse) Status() string
Status returns HTTPResponse.Status
func (PatchBackplaneClusterClusterIdResponse) StatusCode ¶
func (r PatchBackplaneClusterClusterIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PatchBackplaneRemediateClusterIdRemediationResponse ¶
type PatchBackplaneRemediateClusterIdRemediationResponse struct { Body []byte HTTPResponse *http.Response }
func ParsePatchBackplaneRemediateClusterIdRemediationResponse ¶
func ParsePatchBackplaneRemediateClusterIdRemediationResponse(rsp *http.Response) (*PatchBackplaneRemediateClusterIdRemediationResponse, error)
ParsePatchBackplaneRemediateClusterIdRemediationResponse parses an HTTP response from a PatchBackplaneRemediateClusterIdRemediationWithResponse call
func (PatchBackplaneRemediateClusterIdRemediationResponse) Status ¶
func (r PatchBackplaneRemediateClusterIdRemediationResponse) Status() string
Status returns HTTPResponse.Status
func (PatchBackplaneRemediateClusterIdRemediationResponse) StatusCode ¶
func (r PatchBackplaneRemediateClusterIdRemediationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PolicyRule ¶
type PolicyRule struct { ApiGroups *[]string `json:"apiGroups,omitempty" yaml:"apiGroups,omitempty"` NonResourceURLs *[]string `json:"nonResourceURLs,omitempty" yaml:"nonResourceURLs,omitempty"` ResourceNames *[]string `json:"resourceNames,omitempty" yaml:"resourceNames,omitempty"` Resources *[]string `json:"resources,omitempty" yaml:"resources,omitempty"` Verbs *[]string `json:"verbs,omitempty" yaml:"verbs,omitempty"` }
PolicyRule defines model for PolicyRule.
type PostBackplaneClusterClusterIdResponse ¶
func ParsePostBackplaneClusterClusterIdResponse ¶
func ParsePostBackplaneClusterClusterIdResponse(rsp *http.Response) (*PostBackplaneClusterClusterIdResponse, error)
ParsePostBackplaneClusterClusterIdResponse parses an HTTP response from a PostBackplaneClusterClusterIdWithResponse call
func (PostBackplaneClusterClusterIdResponse) Status ¶
func (r PostBackplaneClusterClusterIdResponse) Status() string
Status returns HTTPResponse.Status
func (PostBackplaneClusterClusterIdResponse) StatusCode ¶
func (r PostBackplaneClusterClusterIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostBackplaneRemediateClusterIdRemediationResponse ¶
type PostBackplaneRemediateClusterIdRemediationResponse struct { Body []byte HTTPResponse *http.Response }
func ParsePostBackplaneRemediateClusterIdRemediationResponse ¶
func ParsePostBackplaneRemediateClusterIdRemediationResponse(rsp *http.Response) (*PostBackplaneRemediateClusterIdRemediationResponse, error)
ParsePostBackplaneRemediateClusterIdRemediationResponse parses an HTTP response from a PostBackplaneRemediateClusterIdRemediationWithResponse call
func (PostBackplaneRemediateClusterIdRemediationResponse) Status ¶
func (r PostBackplaneRemediateClusterIdRemediationResponse) Status() string
Status returns HTTPResponse.Status
func (PostBackplaneRemediateClusterIdRemediationResponse) StatusCode ¶
func (r PostBackplaneRemediateClusterIdRemediationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PutBackplaneClusterClusterIdResponse ¶
func ParsePutBackplaneClusterClusterIdResponse ¶
func ParsePutBackplaneClusterClusterIdResponse(rsp *http.Response) (*PutBackplaneClusterClusterIdResponse, error)
ParsePutBackplaneClusterClusterIdResponse parses an HTTP response from a PutBackplaneClusterClusterIdWithResponse call
func (PutBackplaneClusterClusterIdResponse) Status ¶
func (r PutBackplaneClusterClusterIdResponse) Status() string
Status returns HTTPResponse.Status
func (PutBackplaneClusterClusterIdResponse) StatusCode ¶
func (r PutBackplaneClusterClusterIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PutBackplaneRemediateClusterIdRemediationResponse ¶
type PutBackplaneRemediateClusterIdRemediationResponse struct { Body []byte HTTPResponse *http.Response }
func ParsePutBackplaneRemediateClusterIdRemediationResponse ¶
func ParsePutBackplaneRemediateClusterIdRemediationResponse(rsp *http.Response) (*PutBackplaneRemediateClusterIdRemediationResponse, error)
ParsePutBackplaneRemediateClusterIdRemediationResponse parses an HTTP response from a PutBackplaneRemediateClusterIdRemediationWithResponse call
func (PutBackplaneRemediateClusterIdRemediationResponse) Status ¶
func (r PutBackplaneRemediateClusterIdRemediationResponse) Status() string
Status returns HTTPResponse.Status
func (PutBackplaneRemediateClusterIdRemediationResponse) StatusCode ¶
func (r PutBackplaneRemediateClusterIdRemediationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RBAC ¶
type RBAC struct { ClusterRoleRules *[]PolicyRule `json:"clusterRoleRules,omitempty" yaml:"clusterRoleRules,omitempty"` Roles *[]RoleRbacDecl `json:"roles,omitempty" yaml:"roles,omitempty"` }
RBAC RBAC declaration
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type RoleRbacDecl ¶
type RoleRbacDecl struct { Namespace *string `json:"namespace,omitempty"` Rules *[]PolicyRule `json:"rules,omitempty"` }
RoleRbacDecl defines model for RoleRbacDecl.
type Script ¶
type Script struct { // AllowedGroups Which groups are allowed to run this script AllowedGroups *[]string `json:"allowedGroups,omitempty"` // Author Author of the script, github username Author *string `json:"author,omitempty"` // CanonicalName Fully qualified name of the script, in the format of roleId/scriptname. // Must be unique, MR in-place check to enforce this CanonicalName *string `json:"canonicalName,omitempty"` // CustomerDataAccess Whether or not the script has access to customer data CustomerDataAccess *bool `json:"customerDataAccess,omitempty"` // Description A brief description of the script and what it does Description *string `json:"description,omitempty"` // Envs An array of environment variables for the script Envs *[]EnvDecl `json:"envs,omitempty"` // Labels An array of labels for the script Labels *[]interface{} `json:"labels,omitempty"` // Language The script language Language *ScriptLanguage `json:"language,omitempty"` // Path Path from the repo root to the script Path *string `json:"path,omitempty"` // Permalink Permalink to the script file on git Permalink *string `json:"permalink,omitempty"` // Rbac RBAC declaration Rbac *RBAC `json:"rbac,omitempty" yaml:"rbac,omitempty"` // ShortDescription A shorter description for tables and lists ShortDescription *string `json:"shortDescription,omitempty"` }
Script defines model for Script.
type ScriptLanguage ¶
type ScriptLanguage string
ScriptLanguage The script language
const ( ScriptLanguageBash ScriptLanguage = "bash" ScriptLanguagePython ScriptLanguage = "python" )
Defines values for ScriptLanguage.
type ScriptMetadata ¶
type ScriptMetadata struct { AllowedGroups []string `json:"allowedGroups"` Author string `json:"author"` CustomerDataAccess bool `json:"customerDataAccess"` Description string `json:"description"` Envs []EnvDecl `json:"envs"` File string `json:"file"` Labels []LabelDecl `json:"labels"` Language ScriptMetadataLanguage `json:"language"` Name string `json:"name"` // Rbac RBAC declaration Rbac RBAC `json:"rbac" yaml:"rbac,omitempty"` ShortDescription string `json:"shortDescription"` }
ScriptMetadata Script metadata
type ScriptMetadataLanguage ¶
type ScriptMetadataLanguage string
ScriptMetadataLanguage defines model for ScriptMetadata.Language.
const ( ScriptMetadataLanguageBash ScriptMetadataLanguage = "bash" ScriptMetadataLanguagePython ScriptMetadataLanguage = "python" )
Defines values for ScriptMetadataLanguage.
type TestJobResult ¶
type TestJobResult struct { Message *string `json:"message,omitempty"` // Status Test run status Status *TestJobResultStatus `json:"status,omitempty"` // TestId A unique id for test script run TestId string `json:"testId"` }
TestJobResult Body of response for a test job run
type TestJobResultStatus ¶
type TestJobResultStatus string
TestJobResultStatus Test run status
const ( TestJobResultStatusFailed TestJobResultStatus = "Failed" TestJobResultStatusPending TestJobResultStatus = "Pending" TestJobResultStatusRunning TestJobResultStatus = "Running" TestJobResultStatusSucceeded TestJobResultStatus = "Succeeded" )
Defines values for TestJobResultStatus.
type TraceBackplaneClusterClusterIdResponse ¶
func ParseTraceBackplaneClusterClusterIdResponse ¶
func ParseTraceBackplaneClusterClusterIdResponse(rsp *http.Response) (*TraceBackplaneClusterClusterIdResponse, error)
ParseTraceBackplaneClusterClusterIdResponse parses an HTTP response from a TraceBackplaneClusterClusterIdWithResponse call
func (TraceBackplaneClusterClusterIdResponse) Status ¶
func (r TraceBackplaneClusterClusterIdResponse) Status() string
Status returns HTTPResponse.Status
func (TraceBackplaneClusterClusterIdResponse) StatusCode ¶
func (r TraceBackplaneClusterClusterIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type TraceBackplaneRemediateClusterIdRemediationResponse ¶
type TraceBackplaneRemediateClusterIdRemediationResponse struct { Body []byte HTTPResponse *http.Response }
func ParseTraceBackplaneRemediateClusterIdRemediationResponse ¶
func ParseTraceBackplaneRemediateClusterIdRemediationResponse(rsp *http.Response) (*TraceBackplaneRemediateClusterIdRemediationResponse, error)
ParseTraceBackplaneRemediateClusterIdRemediationResponse parses an HTTP response from a TraceBackplaneRemediateClusterIdRemediationWithResponse call
func (TraceBackplaneRemediateClusterIdRemediationResponse) Status ¶
func (r TraceBackplaneRemediateClusterIdRemediationResponse) Status() string
Status returns HTTPResponse.Status
func (TraceBackplaneRemediateClusterIdRemediationResponse) StatusCode ¶
func (r TraceBackplaneRemediateClusterIdRemediationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode