schedule

package
v5.0.0-...-5bc921f Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 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 schedule API

func (*Client) GetSchedulePaused

func (a *Client) GetSchedulePaused(params *GetSchedulePausedParams, authInfo runtime.ClientAuthInfoWriter) (*GetSchedulePausedOK, error)

GetSchedulePaused Get scheduler paused status

func (*Client) ListSchedules

func (a *Client) ListSchedules(params *ListSchedulesParams, authInfo runtime.ClientAuthInfoWriter) (*ListSchedulesOK, error)

ListSchedules List schedules

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	GetSchedulePaused(params *GetSchedulePausedParams, authInfo runtime.ClientAuthInfoWriter) (*GetSchedulePausedOK, error)

	ListSchedules(params *ListSchedulesParams, authInfo runtime.ClientAuthInfoWriter) (*ListSchedulesOK, 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 schedule API client.

type GetSchedulePausedForbidden

type GetSchedulePausedForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetSchedulePausedForbidden handles this case with default header values.

Forbidden

func NewGetSchedulePausedForbidden

func NewGetSchedulePausedForbidden() *GetSchedulePausedForbidden

NewGetSchedulePausedForbidden creates a GetSchedulePausedForbidden with default headers values

func (*GetSchedulePausedForbidden) Error

func (*GetSchedulePausedForbidden) GetPayload

func (o *GetSchedulePausedForbidden) GetPayload() *model.Errors

type GetSchedulePausedInternalServerError

type GetSchedulePausedInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetSchedulePausedInternalServerError handles this case with default header values.

Internal server error

func NewGetSchedulePausedInternalServerError

func NewGetSchedulePausedInternalServerError() *GetSchedulePausedInternalServerError

NewGetSchedulePausedInternalServerError creates a GetSchedulePausedInternalServerError with default headers values

func (*GetSchedulePausedInternalServerError) Error

func (*GetSchedulePausedInternalServerError) GetPayload

type GetSchedulePausedNotFound

type GetSchedulePausedNotFound struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetSchedulePausedNotFound handles this case with default header values.

Not found

func NewGetSchedulePausedNotFound

func NewGetSchedulePausedNotFound() *GetSchedulePausedNotFound

NewGetSchedulePausedNotFound creates a GetSchedulePausedNotFound with default headers values

func (*GetSchedulePausedNotFound) Error

func (o *GetSchedulePausedNotFound) Error() string

func (*GetSchedulePausedNotFound) GetPayload

func (o *GetSchedulePausedNotFound) GetPayload() *model.Errors

type GetSchedulePausedOK

type GetSchedulePausedOK struct {
	Payload *model.SchedulerStatus
}

GetSchedulePausedOK handles this case with default header values.

Get scheduler status successfully.

func NewGetSchedulePausedOK

func NewGetSchedulePausedOK() *GetSchedulePausedOK

NewGetSchedulePausedOK creates a GetSchedulePausedOK with default headers values

func (*GetSchedulePausedOK) Error

func (o *GetSchedulePausedOK) Error() string

func (*GetSchedulePausedOK) GetPayload

func (o *GetSchedulePausedOK) GetPayload() *model.SchedulerStatus

type GetSchedulePausedParams

type GetSchedulePausedParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*JobType
	  The type of the job. 'all' stands for all job types, current only support query with all

	*/
	JobType string

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

GetSchedulePausedParams contains all the parameters to send to the API endpoint for the get schedule paused operation typically these are written to a http.Request

func NewGetSchedulePausedParams

func NewGetSchedulePausedParams() *GetSchedulePausedParams

NewGetSchedulePausedParams creates a new GetSchedulePausedParams object with the default values initialized.

func NewGetSchedulePausedParamsWithContext

func NewGetSchedulePausedParamsWithContext(ctx context.Context) *GetSchedulePausedParams

NewGetSchedulePausedParamsWithContext creates a new GetSchedulePausedParams object with the default values initialized, and the ability to set a context for a request

func NewGetSchedulePausedParamsWithHTTPClient

func NewGetSchedulePausedParamsWithHTTPClient(client *http.Client) *GetSchedulePausedParams

NewGetSchedulePausedParamsWithHTTPClient creates a new GetSchedulePausedParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetSchedulePausedParamsWithTimeout

func NewGetSchedulePausedParamsWithTimeout(timeout time.Duration) *GetSchedulePausedParams

NewGetSchedulePausedParamsWithTimeout creates a new GetSchedulePausedParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetSchedulePausedParams) SetContext

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

SetContext adds the context to the get schedule paused params

func (*GetSchedulePausedParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get schedule paused params

func (*GetSchedulePausedParams) SetJobType

func (o *GetSchedulePausedParams) SetJobType(jobType string)

SetJobType adds the jobType to the get schedule paused params

func (*GetSchedulePausedParams) SetTimeout

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

SetTimeout adds the timeout to the get schedule paused params

func (*GetSchedulePausedParams) SetXRequestID

func (o *GetSchedulePausedParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the get schedule paused params

func (*GetSchedulePausedParams) WithContext

WithContext adds the context to the get schedule paused params

func (*GetSchedulePausedParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get schedule paused params

func (*GetSchedulePausedParams) WithJobType

func (o *GetSchedulePausedParams) WithJobType(jobType string) *GetSchedulePausedParams

WithJobType adds the jobType to the get schedule paused params

func (*GetSchedulePausedParams) WithTimeout

WithTimeout adds the timeout to the get schedule paused params

func (*GetSchedulePausedParams) WithXRequestID

func (o *GetSchedulePausedParams) WithXRequestID(xRequestID *string) *GetSchedulePausedParams

WithXRequestID adds the xRequestID to the get schedule paused params

func (*GetSchedulePausedParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetSchedulePausedReader

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

GetSchedulePausedReader is a Reader for the GetSchedulePaused structure.

func (*GetSchedulePausedReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetSchedulePausedUnauthorized

type GetSchedulePausedUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetSchedulePausedUnauthorized handles this case with default header values.

Unauthorized

func NewGetSchedulePausedUnauthorized

func NewGetSchedulePausedUnauthorized() *GetSchedulePausedUnauthorized

NewGetSchedulePausedUnauthorized creates a GetSchedulePausedUnauthorized with default headers values

func (*GetSchedulePausedUnauthorized) Error

func (*GetSchedulePausedUnauthorized) GetPayload

func (o *GetSchedulePausedUnauthorized) GetPayload() *model.Errors

type ListSchedulesForbidden

type ListSchedulesForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

ListSchedulesForbidden handles this case with default header values.

Forbidden

func NewListSchedulesForbidden

func NewListSchedulesForbidden() *ListSchedulesForbidden

NewListSchedulesForbidden creates a ListSchedulesForbidden with default headers values

func (*ListSchedulesForbidden) Error

func (o *ListSchedulesForbidden) Error() string

func (*ListSchedulesForbidden) GetPayload

func (o *ListSchedulesForbidden) GetPayload() *model.Errors

type ListSchedulesInternalServerError

type ListSchedulesInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

ListSchedulesInternalServerError handles this case with default header values.

Internal server error

func NewListSchedulesInternalServerError

func NewListSchedulesInternalServerError() *ListSchedulesInternalServerError

NewListSchedulesInternalServerError creates a ListSchedulesInternalServerError with default headers values

func (*ListSchedulesInternalServerError) Error

func (*ListSchedulesInternalServerError) GetPayload

type ListSchedulesNotFound

type ListSchedulesNotFound struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

ListSchedulesNotFound handles this case with default header values.

Not found

func NewListSchedulesNotFound

func NewListSchedulesNotFound() *ListSchedulesNotFound

NewListSchedulesNotFound creates a ListSchedulesNotFound with default headers values

func (*ListSchedulesNotFound) Error

func (o *ListSchedulesNotFound) Error() string

func (*ListSchedulesNotFound) GetPayload

func (o *ListSchedulesNotFound) GetPayload() *model.Errors

type ListSchedulesOK

type ListSchedulesOK struct {
	/*Link to previous page and next page
	 */
	Link string
	/*The total count of available items
	 */
	XTotalCount int64

	Payload []*model.ScheduleTask
}

ListSchedulesOK handles this case with default header values.

list schedule successfully.

func NewListSchedulesOK

func NewListSchedulesOK() *ListSchedulesOK

NewListSchedulesOK creates a ListSchedulesOK with default headers values

func (*ListSchedulesOK) Error

func (o *ListSchedulesOK) Error() string

func (*ListSchedulesOK) GetPayload

func (o *ListSchedulesOK) GetPayload() []*model.ScheduleTask

type ListSchedulesParams

type ListSchedulesParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*Page
	  The page number

	*/
	Page *int64
	/*PageSize
	  The size of per page

	*/
	PageSize *int64

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

ListSchedulesParams contains all the parameters to send to the API endpoint for the list schedules operation typically these are written to a http.Request

func NewListSchedulesParams

func NewListSchedulesParams() *ListSchedulesParams

NewListSchedulesParams creates a new ListSchedulesParams object with the default values initialized.

func NewListSchedulesParamsWithContext

func NewListSchedulesParamsWithContext(ctx context.Context) *ListSchedulesParams

NewListSchedulesParamsWithContext creates a new ListSchedulesParams object with the default values initialized, and the ability to set a context for a request

func NewListSchedulesParamsWithHTTPClient

func NewListSchedulesParamsWithHTTPClient(client *http.Client) *ListSchedulesParams

NewListSchedulesParamsWithHTTPClient creates a new ListSchedulesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewListSchedulesParamsWithTimeout

func NewListSchedulesParamsWithTimeout(timeout time.Duration) *ListSchedulesParams

NewListSchedulesParamsWithTimeout creates a new ListSchedulesParams object with the default values initialized, and the ability to set a timeout on a request

func (*ListSchedulesParams) SetContext

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

SetContext adds the context to the list schedules params

func (*ListSchedulesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list schedules params

func (*ListSchedulesParams) SetPage

func (o *ListSchedulesParams) SetPage(page *int64)

SetPage adds the page to the list schedules params

func (*ListSchedulesParams) SetPageSize

func (o *ListSchedulesParams) SetPageSize(pageSize *int64)

SetPageSize adds the pageSize to the list schedules params

func (*ListSchedulesParams) SetTimeout

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

SetTimeout adds the timeout to the list schedules params

func (*ListSchedulesParams) SetXRequestID

func (o *ListSchedulesParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the list schedules params

func (*ListSchedulesParams) WithContext

WithContext adds the context to the list schedules params

func (*ListSchedulesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list schedules params

func (*ListSchedulesParams) WithPage

func (o *ListSchedulesParams) WithPage(page *int64) *ListSchedulesParams

WithPage adds the page to the list schedules params

func (*ListSchedulesParams) WithPageSize

func (o *ListSchedulesParams) WithPageSize(pageSize *int64) *ListSchedulesParams

WithPageSize adds the pageSize to the list schedules params

func (*ListSchedulesParams) WithTimeout

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

WithTimeout adds the timeout to the list schedules params

func (*ListSchedulesParams) WithXRequestID

func (o *ListSchedulesParams) WithXRequestID(xRequestID *string) *ListSchedulesParams

WithXRequestID adds the xRequestID to the list schedules params

func (*ListSchedulesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListSchedulesReader

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

ListSchedulesReader is a Reader for the ListSchedules structure.

func (*ListSchedulesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListSchedulesUnauthorized

type ListSchedulesUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

ListSchedulesUnauthorized handles this case with default header values.

Unauthorized

func NewListSchedulesUnauthorized

func NewListSchedulesUnauthorized() *ListSchedulesUnauthorized

NewListSchedulesUnauthorized creates a ListSchedulesUnauthorized with default headers values

func (*ListSchedulesUnauthorized) Error

func (o *ListSchedulesUnauthorized) Error() string

func (*ListSchedulesUnauthorized) GetPayload

func (o *ListSchedulesUnauthorized) GetPayload() *model.Errors

Jump to

Keyboard shortcuts

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