Documentation ¶
Index ¶
- type Client
- type CreateJobOK
- type CreateJobParams
- func (o *CreateJobParams) SetBody(body *models.OpenpitrixCreateJobRequest)
- func (o *CreateJobParams) SetContext(ctx context.Context)
- func (o *CreateJobParams) SetHTTPClient(client *http.Client)
- func (o *CreateJobParams) SetTimeout(timeout time.Duration)
- func (o *CreateJobParams) WithBody(body *models.OpenpitrixCreateJobRequest) *CreateJobParams
- func (o *CreateJobParams) WithContext(ctx context.Context) *CreateJobParams
- func (o *CreateJobParams) WithHTTPClient(client *http.Client) *CreateJobParams
- func (o *CreateJobParams) WithTimeout(timeout time.Duration) *CreateJobParams
- func (o *CreateJobParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateJobReader
- type DescribeJobsOK
- type DescribeJobsParams
- func (o *DescribeJobsParams) SetAppID(appID *string)
- func (o *DescribeJobsParams) SetClusterID(clusterID *string)
- func (o *DescribeJobsParams) SetContext(ctx context.Context)
- func (o *DescribeJobsParams) SetExecutor(executor *string)
- func (o *DescribeJobsParams) SetHTTPClient(client *http.Client)
- func (o *DescribeJobsParams) SetJobID(jobID []string)
- func (o *DescribeJobsParams) SetLimit(limit *int64)
- func (o *DescribeJobsParams) SetOffset(offset *int64)
- func (o *DescribeJobsParams) SetRuntime(runtime *string)
- func (o *DescribeJobsParams) SetStatus(status []string)
- func (o *DescribeJobsParams) SetTimeout(timeout time.Duration)
- func (o *DescribeJobsParams) SetVersionID(versionID *string)
- func (o *DescribeJobsParams) WithAppID(appID *string) *DescribeJobsParams
- func (o *DescribeJobsParams) WithClusterID(clusterID *string) *DescribeJobsParams
- func (o *DescribeJobsParams) WithContext(ctx context.Context) *DescribeJobsParams
- func (o *DescribeJobsParams) WithExecutor(executor *string) *DescribeJobsParams
- func (o *DescribeJobsParams) WithHTTPClient(client *http.Client) *DescribeJobsParams
- func (o *DescribeJobsParams) WithJobID(jobID []string) *DescribeJobsParams
- func (o *DescribeJobsParams) WithLimit(limit *int64) *DescribeJobsParams
- func (o *DescribeJobsParams) WithOffset(offset *int64) *DescribeJobsParams
- func (o *DescribeJobsParams) WithRuntime(runtime *string) *DescribeJobsParams
- func (o *DescribeJobsParams) WithStatus(status []string) *DescribeJobsParams
- func (o *DescribeJobsParams) WithTimeout(timeout time.Duration) *DescribeJobsParams
- func (o *DescribeJobsParams) WithVersionID(versionID *string) *DescribeJobsParams
- func (o *DescribeJobsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DescribeJobsReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for job manager API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new job manager API client.
func (*Client) CreateJob ¶
func (a *Client) CreateJob(params *CreateJobParams) (*CreateJobOK, error)
CreateJob creates job
func (*Client) DescribeJobs ¶
func (a *Client) DescribeJobs(params *DescribeJobsParams) (*DescribeJobsOK, error)
DescribeJobs describes jobs with filter
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type CreateJobOK ¶
type CreateJobOK struct {
Payload *models.OpenpitrixCreateJobResponse
}
CreateJobOK handles this case with default header values.
CreateJobOK create job o k
func NewCreateJobOK ¶
func NewCreateJobOK() *CreateJobOK
NewCreateJobOK creates a CreateJobOK with default headers values
func (*CreateJobOK) Error ¶
func (o *CreateJobOK) Error() string
type CreateJobParams ¶
type CreateJobParams struct { /*Body*/ Body *models.OpenpitrixCreateJobRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateJobParams contains all the parameters to send to the API endpoint for the create job operation typically these are written to a http.Request
func NewCreateJobParams ¶
func NewCreateJobParams() *CreateJobParams
NewCreateJobParams creates a new CreateJobParams object with the default values initialized.
func NewCreateJobParamsWithContext ¶
func NewCreateJobParamsWithContext(ctx context.Context) *CreateJobParams
NewCreateJobParamsWithContext creates a new CreateJobParams object with the default values initialized, and the ability to set a context for a request
func NewCreateJobParamsWithHTTPClient ¶
func NewCreateJobParamsWithHTTPClient(client *http.Client) *CreateJobParams
NewCreateJobParamsWithHTTPClient creates a new CreateJobParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewCreateJobParamsWithTimeout ¶
func NewCreateJobParamsWithTimeout(timeout time.Duration) *CreateJobParams
NewCreateJobParamsWithTimeout creates a new CreateJobParams object with the default values initialized, and the ability to set a timeout on a request
func (*CreateJobParams) SetBody ¶
func (o *CreateJobParams) SetBody(body *models.OpenpitrixCreateJobRequest)
SetBody adds the body to the create job params
func (*CreateJobParams) SetContext ¶
func (o *CreateJobParams) SetContext(ctx context.Context)
SetContext adds the context to the create job params
func (*CreateJobParams) SetHTTPClient ¶
func (o *CreateJobParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create job params
func (*CreateJobParams) SetTimeout ¶
func (o *CreateJobParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create job params
func (*CreateJobParams) WithBody ¶
func (o *CreateJobParams) WithBody(body *models.OpenpitrixCreateJobRequest) *CreateJobParams
WithBody adds the body to the create job params
func (*CreateJobParams) WithContext ¶
func (o *CreateJobParams) WithContext(ctx context.Context) *CreateJobParams
WithContext adds the context to the create job params
func (*CreateJobParams) WithHTTPClient ¶
func (o *CreateJobParams) WithHTTPClient(client *http.Client) *CreateJobParams
WithHTTPClient adds the HTTPClient to the create job params
func (*CreateJobParams) WithTimeout ¶
func (o *CreateJobParams) WithTimeout(timeout time.Duration) *CreateJobParams
WithTimeout adds the timeout to the create job params
func (*CreateJobParams) WriteToRequest ¶
func (o *CreateJobParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateJobReader ¶
type CreateJobReader struct {
// contains filtered or unexported fields
}
CreateJobReader is a Reader for the CreateJob structure.
func (*CreateJobReader) ReadResponse ¶
func (o *CreateJobReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DescribeJobsOK ¶
type DescribeJobsOK struct {
Payload *models.OpenpitrixDescribeJobsResponse
}
DescribeJobsOK handles this case with default header values.
DescribeJobsOK describe jobs o k
func NewDescribeJobsOK ¶
func NewDescribeJobsOK() *DescribeJobsOK
NewDescribeJobsOK creates a DescribeJobsOK with default headers values
func (*DescribeJobsOK) Error ¶
func (o *DescribeJobsOK) Error() string
type DescribeJobsParams ¶
type DescribeJobsParams struct { /*AppID*/ AppID *string /*ClusterID*/ ClusterID *string /*Executor*/ Executor *string /*JobID*/ JobID []string /*Limit default is 20, max value is 200. */ Limit *int64 /*Offset default is 0. */ Offset *int64 /*Runtime*/ Runtime *string /*Status*/ Status []string /*VersionID*/ VersionID *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DescribeJobsParams contains all the parameters to send to the API endpoint for the describe jobs operation typically these are written to a http.Request
func NewDescribeJobsParams ¶
func NewDescribeJobsParams() *DescribeJobsParams
NewDescribeJobsParams creates a new DescribeJobsParams object with the default values initialized.
func NewDescribeJobsParamsWithContext ¶
func NewDescribeJobsParamsWithContext(ctx context.Context) *DescribeJobsParams
NewDescribeJobsParamsWithContext creates a new DescribeJobsParams object with the default values initialized, and the ability to set a context for a request
func NewDescribeJobsParamsWithHTTPClient ¶
func NewDescribeJobsParamsWithHTTPClient(client *http.Client) *DescribeJobsParams
NewDescribeJobsParamsWithHTTPClient creates a new DescribeJobsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDescribeJobsParamsWithTimeout ¶
func NewDescribeJobsParamsWithTimeout(timeout time.Duration) *DescribeJobsParams
NewDescribeJobsParamsWithTimeout creates a new DescribeJobsParams object with the default values initialized, and the ability to set a timeout on a request
func (*DescribeJobsParams) SetAppID ¶
func (o *DescribeJobsParams) SetAppID(appID *string)
SetAppID adds the appId to the describe jobs params
func (*DescribeJobsParams) SetClusterID ¶
func (o *DescribeJobsParams) SetClusterID(clusterID *string)
SetClusterID adds the clusterId to the describe jobs params
func (*DescribeJobsParams) SetContext ¶
func (o *DescribeJobsParams) SetContext(ctx context.Context)
SetContext adds the context to the describe jobs params
func (*DescribeJobsParams) SetExecutor ¶
func (o *DescribeJobsParams) SetExecutor(executor *string)
SetExecutor adds the executor to the describe jobs params
func (*DescribeJobsParams) SetHTTPClient ¶
func (o *DescribeJobsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the describe jobs params
func (*DescribeJobsParams) SetJobID ¶
func (o *DescribeJobsParams) SetJobID(jobID []string)
SetJobID adds the jobId to the describe jobs params
func (*DescribeJobsParams) SetLimit ¶
func (o *DescribeJobsParams) SetLimit(limit *int64)
SetLimit adds the limit to the describe jobs params
func (*DescribeJobsParams) SetOffset ¶
func (o *DescribeJobsParams) SetOffset(offset *int64)
SetOffset adds the offset to the describe jobs params
func (*DescribeJobsParams) SetRuntime ¶
func (o *DescribeJobsParams) SetRuntime(runtime *string)
SetRuntime adds the runtime to the describe jobs params
func (*DescribeJobsParams) SetStatus ¶
func (o *DescribeJobsParams) SetStatus(status []string)
SetStatus adds the status to the describe jobs params
func (*DescribeJobsParams) SetTimeout ¶
func (o *DescribeJobsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the describe jobs params
func (*DescribeJobsParams) SetVersionID ¶
func (o *DescribeJobsParams) SetVersionID(versionID *string)
SetVersionID adds the versionId to the describe jobs params
func (*DescribeJobsParams) WithAppID ¶
func (o *DescribeJobsParams) WithAppID(appID *string) *DescribeJobsParams
WithAppID adds the appID to the describe jobs params
func (*DescribeJobsParams) WithClusterID ¶
func (o *DescribeJobsParams) WithClusterID(clusterID *string) *DescribeJobsParams
WithClusterID adds the clusterID to the describe jobs params
func (*DescribeJobsParams) WithContext ¶
func (o *DescribeJobsParams) WithContext(ctx context.Context) *DescribeJobsParams
WithContext adds the context to the describe jobs params
func (*DescribeJobsParams) WithExecutor ¶
func (o *DescribeJobsParams) WithExecutor(executor *string) *DescribeJobsParams
WithExecutor adds the executor to the describe jobs params
func (*DescribeJobsParams) WithHTTPClient ¶
func (o *DescribeJobsParams) WithHTTPClient(client *http.Client) *DescribeJobsParams
WithHTTPClient adds the HTTPClient to the describe jobs params
func (*DescribeJobsParams) WithJobID ¶
func (o *DescribeJobsParams) WithJobID(jobID []string) *DescribeJobsParams
WithJobID adds the jobID to the describe jobs params
func (*DescribeJobsParams) WithLimit ¶
func (o *DescribeJobsParams) WithLimit(limit *int64) *DescribeJobsParams
WithLimit adds the limit to the describe jobs params
func (*DescribeJobsParams) WithOffset ¶
func (o *DescribeJobsParams) WithOffset(offset *int64) *DescribeJobsParams
WithOffset adds the offset to the describe jobs params
func (*DescribeJobsParams) WithRuntime ¶
func (o *DescribeJobsParams) WithRuntime(runtime *string) *DescribeJobsParams
WithRuntime adds the runtime to the describe jobs params
func (*DescribeJobsParams) WithStatus ¶
func (o *DescribeJobsParams) WithStatus(status []string) *DescribeJobsParams
WithStatus adds the status to the describe jobs params
func (*DescribeJobsParams) WithTimeout ¶
func (o *DescribeJobsParams) WithTimeout(timeout time.Duration) *DescribeJobsParams
WithTimeout adds the timeout to the describe jobs params
func (*DescribeJobsParams) WithVersionID ¶
func (o *DescribeJobsParams) WithVersionID(versionID *string) *DescribeJobsParams
WithVersionID adds the versionID to the describe jobs params
func (*DescribeJobsParams) WriteToRequest ¶
func (o *DescribeJobsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DescribeJobsReader ¶
type DescribeJobsReader struct {
// contains filtered or unexported fields
}
DescribeJobsReader is a Reader for the DescribeJobs structure.
func (*DescribeJobsReader) ReadResponse ¶
func (o *DescribeJobsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.