Documentation ¶
Index ¶
- type CancelJobOK
- type CancelJobParams
- func (o *CancelJobParams) SetContext(ctx context.Context)
- func (o *CancelJobParams) SetHTTPClient(client *http.Client)
- func (o *CancelJobParams) SetJobID(jobID string)
- func (o *CancelJobParams) SetTimeout(timeout time.Duration)
- func (o *CancelJobParams) WithContext(ctx context.Context) *CancelJobParams
- func (o *CancelJobParams) WithHTTPClient(client *http.Client) *CancelJobParams
- func (o *CancelJobParams) WithJobID(jobID string) *CancelJobParams
- func (o *CancelJobParams) WithTimeout(timeout time.Duration) *CancelJobParams
- func (o *CancelJobParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CancelJobReader
- type Client
- type GetJobOK
- type GetJobParams
- func (o *GetJobParams) SetContext(ctx context.Context)
- func (o *GetJobParams) SetHTTPClient(client *http.Client)
- func (o *GetJobParams) SetJobID(jobID string)
- func (o *GetJobParams) SetTimeout(timeout time.Duration)
- func (o *GetJobParams) WithContext(ctx context.Context) *GetJobParams
- func (o *GetJobParams) WithHTTPClient(client *http.Client) *GetJobParams
- func (o *GetJobParams) WithJobID(jobID string) *GetJobParams
- func (o *GetJobParams) WithTimeout(timeout time.Duration) *GetJobParams
- func (o *GetJobParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetJobReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CancelJobOK ¶
type CancelJobOK struct {
Payload *models.SystemJobSummary
}
CancelJobOK handles this case with default header values.
No response was specified
func NewCancelJobOK ¶
func NewCancelJobOK() *CancelJobOK
NewCancelJobOK creates a CancelJobOK with default headers values
func (*CancelJobOK) Error ¶
func (o *CancelJobOK) Error() string
type CancelJobParams ¶
type CancelJobParams struct { /*JobID*/ JobID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CancelJobParams contains all the parameters to send to the API endpoint for the cancel job operation typically these are written to a http.Request
func NewCancelJobParams ¶
func NewCancelJobParams() *CancelJobParams
NewCancelJobParams creates a new CancelJobParams object with the default values initialized.
func NewCancelJobParamsWithContext ¶
func NewCancelJobParamsWithContext(ctx context.Context) *CancelJobParams
NewCancelJobParamsWithContext creates a new CancelJobParams object with the default values initialized, and the ability to set a context for a request
func NewCancelJobParamsWithHTTPClient ¶
func NewCancelJobParamsWithHTTPClient(client *http.Client) *CancelJobParams
NewCancelJobParamsWithHTTPClient creates a new CancelJobParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewCancelJobParamsWithTimeout ¶
func NewCancelJobParamsWithTimeout(timeout time.Duration) *CancelJobParams
NewCancelJobParamsWithTimeout creates a new CancelJobParams object with the default values initialized, and the ability to set a timeout on a request
func (*CancelJobParams) SetContext ¶
func (o *CancelJobParams) SetContext(ctx context.Context)
SetContext adds the context to the cancel job params
func (*CancelJobParams) SetHTTPClient ¶
func (o *CancelJobParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the cancel job params
func (*CancelJobParams) SetJobID ¶
func (o *CancelJobParams) SetJobID(jobID string)
SetJobID adds the jobId to the cancel job params
func (*CancelJobParams) SetTimeout ¶
func (o *CancelJobParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the cancel job params
func (*CancelJobParams) WithContext ¶
func (o *CancelJobParams) WithContext(ctx context.Context) *CancelJobParams
WithContext adds the context to the cancel job params
func (*CancelJobParams) WithHTTPClient ¶
func (o *CancelJobParams) WithHTTPClient(client *http.Client) *CancelJobParams
WithHTTPClient adds the HTTPClient to the cancel job params
func (*CancelJobParams) WithJobID ¶
func (o *CancelJobParams) WithJobID(jobID string) *CancelJobParams
WithJobID adds the jobID to the cancel job params
func (*CancelJobParams) WithTimeout ¶
func (o *CancelJobParams) WithTimeout(timeout time.Duration) *CancelJobParams
WithTimeout adds the timeout to the cancel job params
func (*CancelJobParams) WriteToRequest ¶
func (o *CancelJobParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CancelJobReader ¶
type CancelJobReader struct {
// contains filtered or unexported fields
}
CancelJobReader is a Reader for the CancelJob structure.
func (*CancelJobReader) ReadResponse ¶
func (o *CancelJobReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for cluster jobs API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new cluster jobs API client.
func (*Client) CancelJob ¶
func (a *Client) CancelJob(params *CancelJobParams, authInfo runtime.ClientAuthInfoWriter) (*CancelJobOK, error)
CancelJob cancels job with the given ID
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type GetJobOK ¶
type GetJobOK struct {
Payload *models.SystemJobSummary
}
GetJobOK handles this case with default header values.
No response was specified
func NewGetJobOK ¶
func NewGetJobOK() *GetJobOK
NewGetJobOK creates a GetJobOK with default headers values
type GetJobParams ¶
type GetJobParams struct { /*JobID*/ JobID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetJobParams contains all the parameters to send to the API endpoint for the get job operation typically these are written to a http.Request
func NewGetJobParams ¶
func NewGetJobParams() *GetJobParams
NewGetJobParams creates a new GetJobParams object with the default values initialized.
func NewGetJobParamsWithContext ¶
func NewGetJobParamsWithContext(ctx context.Context) *GetJobParams
NewGetJobParamsWithContext creates a new GetJobParams object with the default values initialized, and the ability to set a context for a request
func NewGetJobParamsWithHTTPClient ¶
func NewGetJobParamsWithHTTPClient(client *http.Client) *GetJobParams
NewGetJobParamsWithHTTPClient creates a new GetJobParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetJobParamsWithTimeout ¶
func NewGetJobParamsWithTimeout(timeout time.Duration) *GetJobParams
NewGetJobParamsWithTimeout creates a new GetJobParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetJobParams) SetContext ¶
func (o *GetJobParams) SetContext(ctx context.Context)
SetContext adds the context to the get job params
func (*GetJobParams) SetHTTPClient ¶
func (o *GetJobParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get job params
func (*GetJobParams) SetJobID ¶
func (o *GetJobParams) SetJobID(jobID string)
SetJobID adds the jobId to the get job params
func (*GetJobParams) SetTimeout ¶
func (o *GetJobParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get job params
func (*GetJobParams) WithContext ¶
func (o *GetJobParams) WithContext(ctx context.Context) *GetJobParams
WithContext adds the context to the get job params
func (*GetJobParams) WithHTTPClient ¶
func (o *GetJobParams) WithHTTPClient(client *http.Client) *GetJobParams
WithHTTPClient adds the HTTPClient to the get job params
func (*GetJobParams) WithJobID ¶
func (o *GetJobParams) WithJobID(jobID string) *GetJobParams
WithJobID adds the jobID to the get job params
func (*GetJobParams) WithTimeout ¶
func (o *GetJobParams) WithTimeout(timeout time.Duration) *GetJobParams
WithTimeout adds the timeout to the get job params
func (*GetJobParams) WriteToRequest ¶
func (o *GetJobParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetJobReader ¶
type GetJobReader struct {
// contains filtered or unexported fields
}
GetJobReader is a Reader for the GetJob structure.
func (*GetJobReader) ReadResponse ¶
func (o *GetJobReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.