jobs

package
v0.0.0-...-92dc8bc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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 jobs API

func (*Client) CreateOrUpdateJob

func (a *Client) CreateOrUpdateJob(params *CreateOrUpdateJobParams, opts ...ClientOption) (*CreateOrUpdateJobCreated, error)

CreateOrUpdateJob Create or updates a new job.

func (*Client) DeleteJob

func (a *Client) DeleteJob(params *DeleteJobParams, opts ...ClientOption) (*DeleteJobOK, error)

DeleteJob Delete a job.

func (*Client) GetJobs

func (a *Client) GetJobs(params *GetJobsParams, opts ...ClientOption) (*GetJobsOK, error)

GetJobs List jobs.

func (*Client) Restore

func (a *Client) Restore(params *RestoreParams, opts ...ClientOption) (*RestoreOK, error)

Restore Restore jobs from json file.

func (*Client) RunJob

func (a *Client) RunJob(params *RunJobParams, opts ...ClientOption) (*RunJobAccepted, error)

RunJob Executes a job.

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) ShowJobByName

func (a *Client) ShowJobByName(params *ShowJobByNameParams, opts ...ClientOption) (*ShowJobByNameOK, error)

ShowJobByName Show a job.

func (*Client) ToggleJob

func (a *Client) ToggleJob(params *ToggleJobParams, opts ...ClientOption) (*ToggleJobOK, error)

ToggleJob Toggle a job.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateOrUpdateJob(params *CreateOrUpdateJobParams, opts ...ClientOption) (*CreateOrUpdateJobCreated, error)

	DeleteJob(params *DeleteJobParams, opts ...ClientOption) (*DeleteJobOK, error)

	GetJobs(params *GetJobsParams, opts ...ClientOption) (*GetJobsOK, error)

	Restore(params *RestoreParams, opts ...ClientOption) (*RestoreOK, error)

	RunJob(params *RunJobParams, opts ...ClientOption) (*RunJobAccepted, error)

	ShowJobByName(params *ShowJobByNameParams, opts ...ClientOption) (*ShowJobByNameOK, error)

	ToggleJob(params *ToggleJobParams, opts ...ClientOption) (*ToggleJobOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new jobs API client.

type CreateOrUpdateJobCreated

type CreateOrUpdateJobCreated struct {
	Payload *models.Job
}
CreateOrUpdateJobCreated describes a response with status code 201, with default header values.

Successful response

func NewCreateOrUpdateJobCreated

func NewCreateOrUpdateJobCreated() *CreateOrUpdateJobCreated

NewCreateOrUpdateJobCreated creates a CreateOrUpdateJobCreated with default headers values

func (*CreateOrUpdateJobCreated) Error

func (o *CreateOrUpdateJobCreated) Error() string

func (*CreateOrUpdateJobCreated) GetPayload

func (o *CreateOrUpdateJobCreated) GetPayload() *models.Job

type CreateOrUpdateJobParams

type CreateOrUpdateJobParams struct {

	/* Body.

	   Updated job object
	*/
	Body *models.Job

	/* Runoncreate.

	   If present, regardless of any value, causes the job to be run immediately after being succesfully created or updated.
	*/
	Runoncreate bool

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CreateOrUpdateJobParams contains all the parameters to send to the API endpoint

for the create or update job operation.

Typically these are written to a http.Request.

func NewCreateOrUpdateJobParams

func NewCreateOrUpdateJobParams() *CreateOrUpdateJobParams

NewCreateOrUpdateJobParams creates a new CreateOrUpdateJobParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewCreateOrUpdateJobParamsWithContext

func NewCreateOrUpdateJobParamsWithContext(ctx context.Context) *CreateOrUpdateJobParams

NewCreateOrUpdateJobParamsWithContext creates a new CreateOrUpdateJobParams object with the ability to set a context for a request.

func NewCreateOrUpdateJobParamsWithHTTPClient

func NewCreateOrUpdateJobParamsWithHTTPClient(client *http.Client) *CreateOrUpdateJobParams

NewCreateOrUpdateJobParamsWithHTTPClient creates a new CreateOrUpdateJobParams object with the ability to set a custom HTTPClient for a request.

func NewCreateOrUpdateJobParamsWithTimeout

func NewCreateOrUpdateJobParamsWithTimeout(timeout time.Duration) *CreateOrUpdateJobParams

NewCreateOrUpdateJobParamsWithTimeout creates a new CreateOrUpdateJobParams object with the ability to set a timeout on a request.

func (*CreateOrUpdateJobParams) SetBody

func (o *CreateOrUpdateJobParams) SetBody(body *models.Job)

SetBody adds the body to the create or update job params

func (*CreateOrUpdateJobParams) SetContext

func (o *CreateOrUpdateJobParams) SetContext(ctx context.Context)

SetContext adds the context to the create or update job params

func (*CreateOrUpdateJobParams) SetDefaults

func (o *CreateOrUpdateJobParams) SetDefaults()

SetDefaults hydrates default values in the create or update job params (not the query body).

All values with no default are reset to their zero value.

func (*CreateOrUpdateJobParams) SetHTTPClient

func (o *CreateOrUpdateJobParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the create or update job params

func (*CreateOrUpdateJobParams) SetRunoncreate

func (o *CreateOrUpdateJobParams) SetRunoncreate(runoncreate bool)

SetRunoncreate adds the runoncreate to the create or update job params

func (*CreateOrUpdateJobParams) SetTimeout

func (o *CreateOrUpdateJobParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the create or update job params

func (*CreateOrUpdateJobParams) WithBody

WithBody adds the body to the create or update job params

func (*CreateOrUpdateJobParams) WithContext

WithContext adds the context to the create or update job params

func (*CreateOrUpdateJobParams) WithDefaults

WithDefaults hydrates default values in the create or update job params (not the query body).

All values with no default are reset to their zero value.

func (*CreateOrUpdateJobParams) WithHTTPClient

func (o *CreateOrUpdateJobParams) WithHTTPClient(client *http.Client) *CreateOrUpdateJobParams

WithHTTPClient adds the HTTPClient to the create or update job params

func (*CreateOrUpdateJobParams) WithRunoncreate

func (o *CreateOrUpdateJobParams) WithRunoncreate(runoncreate bool) *CreateOrUpdateJobParams

WithRunoncreate adds the runoncreate to the create or update job params

func (*CreateOrUpdateJobParams) WithTimeout

WithTimeout adds the timeout to the create or update job params

func (*CreateOrUpdateJobParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateOrUpdateJobReader

type CreateOrUpdateJobReader struct {
	// contains filtered or unexported fields
}

CreateOrUpdateJobReader is a Reader for the CreateOrUpdateJob structure.

func (*CreateOrUpdateJobReader) ReadResponse

func (o *CreateOrUpdateJobReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type DeleteJobOK

type DeleteJobOK struct {
	Payload *models.Job
}
DeleteJobOK describes a response with status code 200, with default header values.

Successful response

func NewDeleteJobOK

func NewDeleteJobOK() *DeleteJobOK

NewDeleteJobOK creates a DeleteJobOK with default headers values

func (*DeleteJobOK) Error

func (o *DeleteJobOK) Error() string

func (*DeleteJobOK) GetPayload

func (o *DeleteJobOK) GetPayload() *models.Job

type DeleteJobParams

type DeleteJobParams struct {

	/* JobName.

	   The job that needs to be deleted.
	*/
	JobName string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeleteJobParams contains all the parameters to send to the API endpoint

for the delete job operation.

Typically these are written to a http.Request.

func NewDeleteJobParams

func NewDeleteJobParams() *DeleteJobParams

NewDeleteJobParams creates a new DeleteJobParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewDeleteJobParamsWithContext

func NewDeleteJobParamsWithContext(ctx context.Context) *DeleteJobParams

NewDeleteJobParamsWithContext creates a new DeleteJobParams object with the ability to set a context for a request.

func NewDeleteJobParamsWithHTTPClient

func NewDeleteJobParamsWithHTTPClient(client *http.Client) *DeleteJobParams

NewDeleteJobParamsWithHTTPClient creates a new DeleteJobParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteJobParamsWithTimeout

func NewDeleteJobParamsWithTimeout(timeout time.Duration) *DeleteJobParams

NewDeleteJobParamsWithTimeout creates a new DeleteJobParams object with the ability to set a timeout on a request.

func (*DeleteJobParams) SetContext

func (o *DeleteJobParams) SetContext(ctx context.Context)

SetContext adds the context to the delete job params

func (*DeleteJobParams) SetDefaults

func (o *DeleteJobParams) SetDefaults()

SetDefaults hydrates default values in the delete job params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteJobParams) SetHTTPClient

func (o *DeleteJobParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the delete job params

func (*DeleteJobParams) SetJobName

func (o *DeleteJobParams) SetJobName(jobName string)

SetJobName adds the jobName to the delete job params

func (*DeleteJobParams) SetTimeout

func (o *DeleteJobParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the delete job params

func (*DeleteJobParams) WithContext

func (o *DeleteJobParams) WithContext(ctx context.Context) *DeleteJobParams

WithContext adds the context to the delete job params

func (*DeleteJobParams) WithDefaults

func (o *DeleteJobParams) WithDefaults() *DeleteJobParams

WithDefaults hydrates default values in the delete job params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteJobParams) WithHTTPClient

func (o *DeleteJobParams) WithHTTPClient(client *http.Client) *DeleteJobParams

WithHTTPClient adds the HTTPClient to the delete job params

func (*DeleteJobParams) WithJobName

func (o *DeleteJobParams) WithJobName(jobName string) *DeleteJobParams

WithJobName adds the jobName to the delete job params

func (*DeleteJobParams) WithTimeout

func (o *DeleteJobParams) WithTimeout(timeout time.Duration) *DeleteJobParams

WithTimeout adds the timeout to the delete job params

func (*DeleteJobParams) WriteToRequest

func (o *DeleteJobParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DeleteJobReader

type DeleteJobReader struct {
	// contains filtered or unexported fields
}

DeleteJobReader is a Reader for the DeleteJob structure.

func (*DeleteJobReader) ReadResponse

func (o *DeleteJobReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetJobsOK

type GetJobsOK struct {
	Payload []*models.Job
}
GetJobsOK describes a response with status code 200, with default header values.

Successful response

func NewGetJobsOK

func NewGetJobsOK() *GetJobsOK

NewGetJobsOK creates a GetJobsOK with default headers values

func (*GetJobsOK) Error

func (o *GetJobsOK) Error() string

func (*GetJobsOK) GetPayload

func (o *GetJobsOK) GetPayload() []*models.Job

type GetJobsParams

type GetJobsParams struct {

	/* End.

	   End index
	*/
	End *int64

	/* Order.

	   Sort order (ASC/DESC)
	*/
	Order *string

	/* Sort.

	   Sorting field
	*/
	Sort *string

	/* Start.

	   Start index
	*/
	Start *int64

	/* Metadata.

	   Filter jobs by metadata
	*/
	Metadata []string

	/* Q.

	   Filter query text
	*/
	Q *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetJobsParams contains all the parameters to send to the API endpoint

for the get jobs operation.

Typically these are written to a http.Request.

func NewGetJobsParams

func NewGetJobsParams() *GetJobsParams

NewGetJobsParams creates a new GetJobsParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetJobsParamsWithContext

func NewGetJobsParamsWithContext(ctx context.Context) *GetJobsParams

NewGetJobsParamsWithContext creates a new GetJobsParams object with the ability to set a context for a request.

func NewGetJobsParamsWithHTTPClient

func NewGetJobsParamsWithHTTPClient(client *http.Client) *GetJobsParams

NewGetJobsParamsWithHTTPClient creates a new GetJobsParams object with the ability to set a custom HTTPClient for a request.

func NewGetJobsParamsWithTimeout

func NewGetJobsParamsWithTimeout(timeout time.Duration) *GetJobsParams

NewGetJobsParamsWithTimeout creates a new GetJobsParams object with the ability to set a timeout on a request.

func (*GetJobsParams) SetContext

func (o *GetJobsParams) SetContext(ctx context.Context)

SetContext adds the context to the get jobs params

func (*GetJobsParams) SetDefaults

func (o *GetJobsParams) SetDefaults()

SetDefaults hydrates default values in the get jobs params (not the query body).

All values with no default are reset to their zero value.

func (*GetJobsParams) SetEnd

func (o *GetJobsParams) SetEnd(end *int64)

SetEnd adds the end to the get jobs params

func (*GetJobsParams) SetHTTPClient

func (o *GetJobsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get jobs params

func (*GetJobsParams) SetMetadata

func (o *GetJobsParams) SetMetadata(metadata []string)

SetMetadata adds the metadata to the get jobs params

func (*GetJobsParams) SetOrder

func (o *GetJobsParams) SetOrder(order *string)

SetOrder adds the order to the get jobs params

func (*GetJobsParams) SetQ

func (o *GetJobsParams) SetQ(q *string)

SetQ adds the q to the get jobs params

func (*GetJobsParams) SetSort

func (o *GetJobsParams) SetSort(sort *string)

SetSort adds the sort to the get jobs params

func (*GetJobsParams) SetStart

func (o *GetJobsParams) SetStart(start *int64)

SetStart adds the start to the get jobs params

func (*GetJobsParams) SetTimeout

func (o *GetJobsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get jobs params

func (*GetJobsParams) WithContext

func (o *GetJobsParams) WithContext(ctx context.Context) *GetJobsParams

WithContext adds the context to the get jobs params

func (*GetJobsParams) WithDefaults

func (o *GetJobsParams) WithDefaults() *GetJobsParams

WithDefaults hydrates default values in the get jobs params (not the query body).

All values with no default are reset to their zero value.

func (*GetJobsParams) WithEnd

func (o *GetJobsParams) WithEnd(end *int64) *GetJobsParams

WithEnd adds the end to the get jobs params

func (*GetJobsParams) WithHTTPClient

func (o *GetJobsParams) WithHTTPClient(client *http.Client) *GetJobsParams

WithHTTPClient adds the HTTPClient to the get jobs params

func (*GetJobsParams) WithMetadata

func (o *GetJobsParams) WithMetadata(metadata []string) *GetJobsParams

WithMetadata adds the metadata to the get jobs params

func (*GetJobsParams) WithOrder

func (o *GetJobsParams) WithOrder(order *string) *GetJobsParams

WithOrder adds the order to the get jobs params

func (*GetJobsParams) WithQ

func (o *GetJobsParams) WithQ(q *string) *GetJobsParams

WithQ adds the q to the get jobs params

func (*GetJobsParams) WithSort

func (o *GetJobsParams) WithSort(sort *string) *GetJobsParams

WithSort adds the sort to the get jobs params

func (*GetJobsParams) WithStart

func (o *GetJobsParams) WithStart(start *int64) *GetJobsParams

WithStart adds the start to the get jobs params

func (*GetJobsParams) WithTimeout

func (o *GetJobsParams) WithTimeout(timeout time.Duration) *GetJobsParams

WithTimeout adds the timeout to the get jobs params

func (*GetJobsParams) WriteToRequest

func (o *GetJobsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetJobsReader

type GetJobsReader struct {
	// contains filtered or unexported fields
}

GetJobsReader is a Reader for the GetJobs structure.

func (*GetJobsReader) ReadResponse

func (o *GetJobsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type RestoreOK

type RestoreOK struct {
	Payload []models.Restore
}
RestoreOK describes a response with status code 200, with default header values.

Successful response

func NewRestoreOK

func NewRestoreOK() *RestoreOK

NewRestoreOK creates a RestoreOK with default headers values

func (*RestoreOK) Error

func (o *RestoreOK) Error() string

func (*RestoreOK) GetPayload

func (o *RestoreOK) GetPayload() []models.Restore

type RestoreParams

type RestoreParams struct {

	/* File.

	   Json file that needs to be restored.
	*/
	File runtime.NamedReadCloser

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

RestoreParams contains all the parameters to send to the API endpoint

for the restore operation.

Typically these are written to a http.Request.

func NewRestoreParams

func NewRestoreParams() *RestoreParams

NewRestoreParams creates a new RestoreParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewRestoreParamsWithContext

func NewRestoreParamsWithContext(ctx context.Context) *RestoreParams

NewRestoreParamsWithContext creates a new RestoreParams object with the ability to set a context for a request.

func NewRestoreParamsWithHTTPClient

func NewRestoreParamsWithHTTPClient(client *http.Client) *RestoreParams

NewRestoreParamsWithHTTPClient creates a new RestoreParams object with the ability to set a custom HTTPClient for a request.

func NewRestoreParamsWithTimeout

func NewRestoreParamsWithTimeout(timeout time.Duration) *RestoreParams

NewRestoreParamsWithTimeout creates a new RestoreParams object with the ability to set a timeout on a request.

func (*RestoreParams) SetContext

func (o *RestoreParams) SetContext(ctx context.Context)

SetContext adds the context to the restore params

func (*RestoreParams) SetDefaults

func (o *RestoreParams) SetDefaults()

SetDefaults hydrates default values in the restore params (not the query body).

All values with no default are reset to their zero value.

func (*RestoreParams) SetFile

func (o *RestoreParams) SetFile(file runtime.NamedReadCloser)

SetFile adds the file to the restore params

func (*RestoreParams) SetHTTPClient

func (o *RestoreParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the restore params

func (*RestoreParams) SetTimeout

func (o *RestoreParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the restore params

func (*RestoreParams) WithContext

func (o *RestoreParams) WithContext(ctx context.Context) *RestoreParams

WithContext adds the context to the restore params

func (*RestoreParams) WithDefaults

func (o *RestoreParams) WithDefaults() *RestoreParams

WithDefaults hydrates default values in the restore params (not the query body).

All values with no default are reset to their zero value.

func (*RestoreParams) WithFile

WithFile adds the file to the restore params

func (*RestoreParams) WithHTTPClient

func (o *RestoreParams) WithHTTPClient(client *http.Client) *RestoreParams

WithHTTPClient adds the HTTPClient to the restore params

func (*RestoreParams) WithTimeout

func (o *RestoreParams) WithTimeout(timeout time.Duration) *RestoreParams

WithTimeout adds the timeout to the restore params

func (*RestoreParams) WriteToRequest

func (o *RestoreParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type RestoreReader

type RestoreReader struct {
	// contains filtered or unexported fields
}

RestoreReader is a Reader for the Restore structure.

func (*RestoreReader) ReadResponse

func (o *RestoreReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type RunJobAccepted

type RunJobAccepted struct {
	Payload *models.Job
}
RunJobAccepted describes a response with status code 202, with default header values.

Successful response

func NewRunJobAccepted

func NewRunJobAccepted() *RunJobAccepted

NewRunJobAccepted creates a RunJobAccepted with default headers values

func (*RunJobAccepted) Error

func (o *RunJobAccepted) Error() string

func (*RunJobAccepted) GetPayload

func (o *RunJobAccepted) GetPayload() *models.Job

type RunJobParams

type RunJobParams struct {

	/* JobName.

	   The job that needs to be run.
	*/
	JobName string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

RunJobParams contains all the parameters to send to the API endpoint

for the run job operation.

Typically these are written to a http.Request.

func NewRunJobParams

func NewRunJobParams() *RunJobParams

NewRunJobParams creates a new RunJobParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewRunJobParamsWithContext

func NewRunJobParamsWithContext(ctx context.Context) *RunJobParams

NewRunJobParamsWithContext creates a new RunJobParams object with the ability to set a context for a request.

func NewRunJobParamsWithHTTPClient

func NewRunJobParamsWithHTTPClient(client *http.Client) *RunJobParams

NewRunJobParamsWithHTTPClient creates a new RunJobParams object with the ability to set a custom HTTPClient for a request.

func NewRunJobParamsWithTimeout

func NewRunJobParamsWithTimeout(timeout time.Duration) *RunJobParams

NewRunJobParamsWithTimeout creates a new RunJobParams object with the ability to set a timeout on a request.

func (*RunJobParams) SetContext

func (o *RunJobParams) SetContext(ctx context.Context)

SetContext adds the context to the run job params

func (*RunJobParams) SetDefaults

func (o *RunJobParams) SetDefaults()

SetDefaults hydrates default values in the run job params (not the query body).

All values with no default are reset to their zero value.

func (*RunJobParams) SetHTTPClient

func (o *RunJobParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the run job params

func (*RunJobParams) SetJobName

func (o *RunJobParams) SetJobName(jobName string)

SetJobName adds the jobName to the run job params

func (*RunJobParams) SetTimeout

func (o *RunJobParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the run job params

func (*RunJobParams) WithContext

func (o *RunJobParams) WithContext(ctx context.Context) *RunJobParams

WithContext adds the context to the run job params

func (*RunJobParams) WithDefaults

func (o *RunJobParams) WithDefaults() *RunJobParams

WithDefaults hydrates default values in the run job params (not the query body).

All values with no default are reset to their zero value.

func (*RunJobParams) WithHTTPClient

func (o *RunJobParams) WithHTTPClient(client *http.Client) *RunJobParams

WithHTTPClient adds the HTTPClient to the run job params

func (*RunJobParams) WithJobName

func (o *RunJobParams) WithJobName(jobName string) *RunJobParams

WithJobName adds the jobName to the run job params

func (*RunJobParams) WithTimeout

func (o *RunJobParams) WithTimeout(timeout time.Duration) *RunJobParams

WithTimeout adds the timeout to the run job params

func (*RunJobParams) WriteToRequest

func (o *RunJobParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type RunJobReader

type RunJobReader struct {
	// contains filtered or unexported fields
}

RunJobReader is a Reader for the RunJob structure.

func (*RunJobReader) ReadResponse

func (o *RunJobReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ShowJobByNameOK

type ShowJobByNameOK struct {
	Payload *models.Job
}
ShowJobByNameOK describes a response with status code 200, with default header values.

Successful response

func NewShowJobByNameOK

func NewShowJobByNameOK() *ShowJobByNameOK

NewShowJobByNameOK creates a ShowJobByNameOK with default headers values

func (*ShowJobByNameOK) Error

func (o *ShowJobByNameOK) Error() string

func (*ShowJobByNameOK) GetPayload

func (o *ShowJobByNameOK) GetPayload() *models.Job

type ShowJobByNameParams

type ShowJobByNameParams struct {

	/* JobName.

	   The job that needs to be fetched.
	*/
	JobName string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ShowJobByNameParams contains all the parameters to send to the API endpoint

for the show job by name operation.

Typically these are written to a http.Request.

func NewShowJobByNameParams

func NewShowJobByNameParams() *ShowJobByNameParams

NewShowJobByNameParams creates a new ShowJobByNameParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewShowJobByNameParamsWithContext

func NewShowJobByNameParamsWithContext(ctx context.Context) *ShowJobByNameParams

NewShowJobByNameParamsWithContext creates a new ShowJobByNameParams object with the ability to set a context for a request.

func NewShowJobByNameParamsWithHTTPClient

func NewShowJobByNameParamsWithHTTPClient(client *http.Client) *ShowJobByNameParams

NewShowJobByNameParamsWithHTTPClient creates a new ShowJobByNameParams object with the ability to set a custom HTTPClient for a request.

func NewShowJobByNameParamsWithTimeout

func NewShowJobByNameParamsWithTimeout(timeout time.Duration) *ShowJobByNameParams

NewShowJobByNameParamsWithTimeout creates a new ShowJobByNameParams object with the ability to set a timeout on a request.

func (*ShowJobByNameParams) SetContext

func (o *ShowJobByNameParams) SetContext(ctx context.Context)

SetContext adds the context to the show job by name params

func (*ShowJobByNameParams) SetDefaults

func (o *ShowJobByNameParams) SetDefaults()

SetDefaults hydrates default values in the show job by name params (not the query body).

All values with no default are reset to their zero value.

func (*ShowJobByNameParams) SetHTTPClient

func (o *ShowJobByNameParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the show job by name params

func (*ShowJobByNameParams) SetJobName

func (o *ShowJobByNameParams) SetJobName(jobName string)

SetJobName adds the jobName to the show job by name params

func (*ShowJobByNameParams) SetTimeout

func (o *ShowJobByNameParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the show job by name params

func (*ShowJobByNameParams) WithContext

WithContext adds the context to the show job by name params

func (*ShowJobByNameParams) WithDefaults

func (o *ShowJobByNameParams) WithDefaults() *ShowJobByNameParams

WithDefaults hydrates default values in the show job by name params (not the query body).

All values with no default are reset to their zero value.

func (*ShowJobByNameParams) WithHTTPClient

func (o *ShowJobByNameParams) WithHTTPClient(client *http.Client) *ShowJobByNameParams

WithHTTPClient adds the HTTPClient to the show job by name params

func (*ShowJobByNameParams) WithJobName

func (o *ShowJobByNameParams) WithJobName(jobName string) *ShowJobByNameParams

WithJobName adds the jobName to the show job by name params

func (*ShowJobByNameParams) WithTimeout

func (o *ShowJobByNameParams) WithTimeout(timeout time.Duration) *ShowJobByNameParams

WithTimeout adds the timeout to the show job by name params

func (*ShowJobByNameParams) WriteToRequest

func (o *ShowJobByNameParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ShowJobByNameReader

type ShowJobByNameReader struct {
	// contains filtered or unexported fields
}

ShowJobByNameReader is a Reader for the ShowJobByName structure.

func (*ShowJobByNameReader) ReadResponse

func (o *ShowJobByNameReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ToggleJobOK

type ToggleJobOK struct {
	Payload *models.Job
}
ToggleJobOK describes a response with status code 200, with default header values.

Successful response

func NewToggleJobOK

func NewToggleJobOK() *ToggleJobOK

NewToggleJobOK creates a ToggleJobOK with default headers values

func (*ToggleJobOK) Error

func (o *ToggleJobOK) Error() string

func (*ToggleJobOK) GetPayload

func (o *ToggleJobOK) GetPayload() *models.Job

type ToggleJobParams

type ToggleJobParams struct {

	/* JobName.

	   The job that needs to be toggled.
	*/
	JobName string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ToggleJobParams contains all the parameters to send to the API endpoint

for the toggle job operation.

Typically these are written to a http.Request.

func NewToggleJobParams

func NewToggleJobParams() *ToggleJobParams

NewToggleJobParams creates a new ToggleJobParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewToggleJobParamsWithContext

func NewToggleJobParamsWithContext(ctx context.Context) *ToggleJobParams

NewToggleJobParamsWithContext creates a new ToggleJobParams object with the ability to set a context for a request.

func NewToggleJobParamsWithHTTPClient

func NewToggleJobParamsWithHTTPClient(client *http.Client) *ToggleJobParams

NewToggleJobParamsWithHTTPClient creates a new ToggleJobParams object with the ability to set a custom HTTPClient for a request.

func NewToggleJobParamsWithTimeout

func NewToggleJobParamsWithTimeout(timeout time.Duration) *ToggleJobParams

NewToggleJobParamsWithTimeout creates a new ToggleJobParams object with the ability to set a timeout on a request.

func (*ToggleJobParams) SetContext

func (o *ToggleJobParams) SetContext(ctx context.Context)

SetContext adds the context to the toggle job params

func (*ToggleJobParams) SetDefaults

func (o *ToggleJobParams) SetDefaults()

SetDefaults hydrates default values in the toggle job params (not the query body).

All values with no default are reset to their zero value.

func (*ToggleJobParams) SetHTTPClient

func (o *ToggleJobParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the toggle job params

func (*ToggleJobParams) SetJobName

func (o *ToggleJobParams) SetJobName(jobName string)

SetJobName adds the jobName to the toggle job params

func (*ToggleJobParams) SetTimeout

func (o *ToggleJobParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the toggle job params

func (*ToggleJobParams) WithContext

func (o *ToggleJobParams) WithContext(ctx context.Context) *ToggleJobParams

WithContext adds the context to the toggle job params

func (*ToggleJobParams) WithDefaults

func (o *ToggleJobParams) WithDefaults() *ToggleJobParams

WithDefaults hydrates default values in the toggle job params (not the query body).

All values with no default are reset to their zero value.

func (*ToggleJobParams) WithHTTPClient

func (o *ToggleJobParams) WithHTTPClient(client *http.Client) *ToggleJobParams

WithHTTPClient adds the HTTPClient to the toggle job params

func (*ToggleJobParams) WithJobName

func (o *ToggleJobParams) WithJobName(jobName string) *ToggleJobParams

WithJobName adds the jobName to the toggle job params

func (*ToggleJobParams) WithTimeout

func (o *ToggleJobParams) WithTimeout(timeout time.Duration) *ToggleJobParams

WithTimeout adds the timeout to the toggle job params

func (*ToggleJobParams) WriteToRequest

func (o *ToggleJobParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ToggleJobReader

type ToggleJobReader struct {
	// contains filtered or unexported fields
}

ToggleJobReader is a Reader for the ToggleJob structure.

func (*ToggleJobReader) ReadResponse

func (o *ToggleJobReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL