Documentation ¶
Index ¶
- Constants
- type JobCanceler
- type JobCancelerForbidden
- type JobCancelerHandler
- type JobCancelerHandlerFunc
- type JobCancelerInternalServerError
- type JobCancelerNoContent
- type JobCancelerNotFound
- type JobCancelerParams
- type JobCancelerURL
- func (o *JobCancelerURL) Build() (*url.URL, error)
- func (o *JobCancelerURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *JobCancelerURL) Must(u *url.URL, err error) *url.URL
- func (o *JobCancelerURL) SetBasePath(bp string)
- func (o *JobCancelerURL) String() string
- func (o *JobCancelerURL) StringFull(scheme, host string) string
- func (o *JobCancelerURL) WithBasePath(bp string) *JobCancelerURL
- type JobCreator
- type JobCreatorCreated
- type JobCreatorHandler
- type JobCreatorHandlerFunc
- type JobCreatorInternalServerError
- type JobCreatorParams
- type JobCreatorURL
- func (o *JobCreatorURL) Build() (*url.URL, error)
- func (o *JobCreatorURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *JobCreatorURL) Must(u *url.URL, err error) *url.URL
- func (o *JobCreatorURL) SetBasePath(bp string)
- func (o *JobCreatorURL) String() string
- func (o *JobCreatorURL) StringFull(scheme, host string) string
- func (o *JobCreatorURL) WithBasePath(bp string) *JobCreatorURL
- type JobCreatorUnprocessableEntity
- type JobCreatorUnsupportedMediaType
- type JobLister
- type JobListerBadRequest
- type JobListerBody
- type JobListerHandler
- type JobListerHandlerFunc
- type JobListerInternalServerError
- type JobListerNotFound
- type JobListerOK
- func (o *JobListerOK) SetNext(next string)
- func (o *JobListerOK) SetPayload(payload []*weles.JobInfo)
- func (o *JobListerOK) SetPrevious(previous string)
- func (o *JobListerOK) SetTotalRecords(totalRecords uint64)
- func (o *JobListerOK) WithNext(next string) *JobListerOK
- func (o *JobListerOK) WithPayload(payload []*weles.JobInfo) *JobListerOK
- func (o *JobListerOK) WithPrevious(previous string) *JobListerOK
- func (o *JobListerOK) WithTotalRecords(totalRecords uint64) *JobListerOK
- func (o *JobListerOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type JobListerParams
- type JobListerPartialContent
- func (o *JobListerPartialContent) SetNext(next string)
- func (o *JobListerPartialContent) SetPayload(payload []*weles.JobInfo)
- func (o *JobListerPartialContent) SetPrevious(previous string)
- func (o *JobListerPartialContent) SetRemainingRecords(remainingRecords uint64)
- func (o *JobListerPartialContent) SetTotalRecords(totalRecords uint64)
- func (o *JobListerPartialContent) WithNext(next string) *JobListerPartialContent
- func (o *JobListerPartialContent) WithPayload(payload []*weles.JobInfo) *JobListerPartialContent
- func (o *JobListerPartialContent) WithPrevious(previous string) *JobListerPartialContent
- func (o *JobListerPartialContent) WithRemainingRecords(remainingRecords uint64) *JobListerPartialContent
- func (o *JobListerPartialContent) WithTotalRecords(totalRecords uint64) *JobListerPartialContent
- func (o *JobListerPartialContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type JobListerURL
- func (o *JobListerURL) Build() (*url.URL, error)
- func (o *JobListerURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *JobListerURL) Must(u *url.URL, err error) *url.URL
- func (o *JobListerURL) SetBasePath(bp string)
- func (o *JobListerURL) String() string
- func (o *JobListerURL) StringFull(scheme, host string) string
- func (o *JobListerURL) WithBasePath(bp string) *JobListerURL
Constants ¶
const JobCancelerForbiddenCode int = 403
JobCancelerForbiddenCode is the HTTP code returned for type JobCancelerForbidden
const JobCancelerInternalServerErrorCode int = 500
JobCancelerInternalServerErrorCode is the HTTP code returned for type JobCancelerInternalServerError
const JobCancelerNoContentCode int = 204
JobCancelerNoContentCode is the HTTP code returned for type JobCancelerNoContent
const JobCancelerNotFoundCode int = 404
JobCancelerNotFoundCode is the HTTP code returned for type JobCancelerNotFound
const JobCreatorCreatedCode int = 201
JobCreatorCreatedCode is the HTTP code returned for type JobCreatorCreated
const JobCreatorInternalServerErrorCode int = 500
JobCreatorInternalServerErrorCode is the HTTP code returned for type JobCreatorInternalServerError
const JobCreatorUnprocessableEntityCode int = 422
JobCreatorUnprocessableEntityCode is the HTTP code returned for type JobCreatorUnprocessableEntity
const JobCreatorUnsupportedMediaTypeCode int = 415
JobCreatorUnsupportedMediaTypeCode is the HTTP code returned for type JobCreatorUnsupportedMediaType
const JobListerBadRequestCode int = 400
JobListerBadRequestCode is the HTTP code returned for type JobListerBadRequest
const JobListerInternalServerErrorCode int = 500
JobListerInternalServerErrorCode is the HTTP code returned for type JobListerInternalServerError
const JobListerNotFoundCode int = 404
JobListerNotFoundCode is the HTTP code returned for type JobListerNotFound
const JobListerOKCode int = 200
JobListerOKCode is the HTTP code returned for type JobListerOK
const JobListerPartialContentCode int = 206
JobListerPartialContentCode is the HTTP code returned for type JobListerPartialContent
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JobCanceler ¶
type JobCanceler struct { Context *middleware.Context Handler JobCancelerHandler }
JobCanceler swagger:route POST /jobs/{JobID}/cancel jobs jobCanceler
Cancel existing job ¶
JobCanceler stops execution of Job identified by JobID.
func NewJobCanceler ¶
func NewJobCanceler(ctx *middleware.Context, handler JobCancelerHandler) *JobCanceler
NewJobCanceler creates a new http.Handler for the job canceler operation
func (*JobCanceler) ServeHTTP ¶
func (o *JobCanceler) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type JobCancelerForbidden ¶
type JobCancelerForbidden struct { /* In: Body */ Payload *weles.ErrResponse `json:"body,omitempty"` }
JobCancelerForbidden Forbidden
swagger:response jobCancelerForbidden
func NewJobCancelerForbidden ¶
func NewJobCancelerForbidden() *JobCancelerForbidden
NewJobCancelerForbidden creates JobCancelerForbidden with default headers values
func (*JobCancelerForbidden) SetPayload ¶
func (o *JobCancelerForbidden) SetPayload(payload *weles.ErrResponse)
SetPayload sets the payload to the job canceler forbidden response
func (*JobCancelerForbidden) WithPayload ¶
func (o *JobCancelerForbidden) WithPayload(payload *weles.ErrResponse) *JobCancelerForbidden
WithPayload adds the payload to the job canceler forbidden response
func (*JobCancelerForbidden) WriteResponse ¶
func (o *JobCancelerForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type JobCancelerHandler ¶
type JobCancelerHandler interface {
Handle(JobCancelerParams) middleware.Responder
}
JobCancelerHandler interface for that can handle valid job canceler params
type JobCancelerHandlerFunc ¶
type JobCancelerHandlerFunc func(JobCancelerParams) middleware.Responder
JobCancelerHandlerFunc turns a function with the right signature into a job canceler handler
func (JobCancelerHandlerFunc) Handle ¶
func (fn JobCancelerHandlerFunc) Handle(params JobCancelerParams) middleware.Responder
Handle executing the request and returning a response
type JobCancelerInternalServerError ¶
type JobCancelerInternalServerError struct { /* In: Body */ Payload *weles.ErrResponse `json:"body,omitempty"` }
JobCancelerInternalServerError Internal Server error
swagger:response jobCancelerInternalServerError
func NewJobCancelerInternalServerError ¶
func NewJobCancelerInternalServerError() *JobCancelerInternalServerError
NewJobCancelerInternalServerError creates JobCancelerInternalServerError with default headers values
func (*JobCancelerInternalServerError) SetPayload ¶
func (o *JobCancelerInternalServerError) SetPayload(payload *weles.ErrResponse)
SetPayload sets the payload to the job canceler internal server error response
func (*JobCancelerInternalServerError) WithPayload ¶
func (o *JobCancelerInternalServerError) WithPayload(payload *weles.ErrResponse) *JobCancelerInternalServerError
WithPayload adds the payload to the job canceler internal server error response
func (*JobCancelerInternalServerError) WriteResponse ¶
func (o *JobCancelerInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type JobCancelerNoContent ¶
type JobCancelerNoContent struct { }
JobCancelerNoContent No Content
swagger:response jobCancelerNoContent
func NewJobCancelerNoContent ¶
func NewJobCancelerNoContent() *JobCancelerNoContent
NewJobCancelerNoContent creates JobCancelerNoContent with default headers values
func (*JobCancelerNoContent) WriteResponse ¶
func (o *JobCancelerNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type JobCancelerNotFound ¶
type JobCancelerNotFound struct { /* In: Body */ Payload *weles.ErrResponse `json:"body,omitempty"` }
JobCancelerNotFound Not Found
swagger:response jobCancelerNotFound
func NewJobCancelerNotFound ¶
func NewJobCancelerNotFound() *JobCancelerNotFound
NewJobCancelerNotFound creates JobCancelerNotFound with default headers values
func (*JobCancelerNotFound) SetPayload ¶
func (o *JobCancelerNotFound) SetPayload(payload *weles.ErrResponse)
SetPayload sets the payload to the job canceler not found response
func (*JobCancelerNotFound) WithPayload ¶
func (o *JobCancelerNotFound) WithPayload(payload *weles.ErrResponse) *JobCancelerNotFound
WithPayload adds the payload to the job canceler not found response
func (*JobCancelerNotFound) WriteResponse ¶
func (o *JobCancelerNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type JobCancelerParams ¶
type JobCancelerParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: path */ JobID uint64 }
JobCancelerParams contains all the bound params for the job canceler operation typically these are obtained from a http.Request
swagger:parameters JobCanceler
func NewJobCancelerParams ¶
func NewJobCancelerParams() JobCancelerParams
NewJobCancelerParams creates a new JobCancelerParams object no default values defined in spec.
func (*JobCancelerParams) BindRequest ¶
func (o *JobCancelerParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewJobCancelerParams() beforehand.
type JobCancelerURL ¶
type JobCancelerURL struct { JobID uint64 // contains filtered or unexported fields }
JobCancelerURL generates an URL for the job canceler operation
func (*JobCancelerURL) Build ¶
func (o *JobCancelerURL) Build() (*url.URL, error)
Build a url path and query string
func (*JobCancelerURL) BuildFull ¶
func (o *JobCancelerURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*JobCancelerURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*JobCancelerURL) SetBasePath ¶
func (o *JobCancelerURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*JobCancelerURL) String ¶
func (o *JobCancelerURL) String() string
String returns the string representation of the path with query string
func (*JobCancelerURL) StringFull ¶
func (o *JobCancelerURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*JobCancelerURL) WithBasePath ¶
func (o *JobCancelerURL) WithBasePath(bp string) *JobCancelerURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type JobCreator ¶
type JobCreator struct { Context *middleware.Context Handler JobCreatorHandler }
JobCreator swagger:route POST /jobs jobs jobCreator
Add new job ¶
adds new Job in Weles using recipe passed in YAML format.
func NewJobCreator ¶
func NewJobCreator(ctx *middleware.Context, handler JobCreatorHandler) *JobCreator
NewJobCreator creates a new http.Handler for the job creator operation
func (*JobCreator) ServeHTTP ¶
func (o *JobCreator) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type JobCreatorCreated ¶
JobCreatorCreated Created
swagger:response jobCreatorCreated
func NewJobCreatorCreated ¶
func NewJobCreatorCreated() *JobCreatorCreated
NewJobCreatorCreated creates JobCreatorCreated with default headers values
func (*JobCreatorCreated) SetPayload ¶
func (o *JobCreatorCreated) SetPayload(payload weles.JobID)
SetPayload sets the payload to the job creator created response
func (*JobCreatorCreated) WithPayload ¶
func (o *JobCreatorCreated) WithPayload(payload weles.JobID) *JobCreatorCreated
WithPayload adds the payload to the job creator created response
func (*JobCreatorCreated) WriteResponse ¶
func (o *JobCreatorCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type JobCreatorHandler ¶
type JobCreatorHandler interface {
Handle(JobCreatorParams) middleware.Responder
}
JobCreatorHandler interface for that can handle valid job creator params
type JobCreatorHandlerFunc ¶
type JobCreatorHandlerFunc func(JobCreatorParams) middleware.Responder
JobCreatorHandlerFunc turns a function with the right signature into a job creator handler
func (JobCreatorHandlerFunc) Handle ¶
func (fn JobCreatorHandlerFunc) Handle(params JobCreatorParams) middleware.Responder
Handle executing the request and returning a response
type JobCreatorInternalServerError ¶
type JobCreatorInternalServerError struct { /* In: Body */ Payload *weles.ErrResponse `json:"body,omitempty"` }
JobCreatorInternalServerError Internal Server error
swagger:response jobCreatorInternalServerError
func NewJobCreatorInternalServerError ¶
func NewJobCreatorInternalServerError() *JobCreatorInternalServerError
NewJobCreatorInternalServerError creates JobCreatorInternalServerError with default headers values
func (*JobCreatorInternalServerError) SetPayload ¶
func (o *JobCreatorInternalServerError) SetPayload(payload *weles.ErrResponse)
SetPayload sets the payload to the job creator internal server error response
func (*JobCreatorInternalServerError) WithPayload ¶
func (o *JobCreatorInternalServerError) WithPayload(payload *weles.ErrResponse) *JobCreatorInternalServerError
WithPayload adds the payload to the job creator internal server error response
func (*JobCreatorInternalServerError) WriteResponse ¶
func (o *JobCreatorInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type JobCreatorParams ¶
type JobCreatorParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*is Job description yaml file. Required: true In: formData */ Yamlfile io.ReadCloser }
JobCreatorParams contains all the bound params for the job creator operation typically these are obtained from a http.Request
swagger:parameters JobCreator
func NewJobCreatorParams ¶
func NewJobCreatorParams() JobCreatorParams
NewJobCreatorParams creates a new JobCreatorParams object no default values defined in spec.
func (*JobCreatorParams) BindRequest ¶
func (o *JobCreatorParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewJobCreatorParams() beforehand.
type JobCreatorURL ¶
type JobCreatorURL struct {
// contains filtered or unexported fields
}
JobCreatorURL generates an URL for the job creator operation
func (*JobCreatorURL) Build ¶
func (o *JobCreatorURL) Build() (*url.URL, error)
Build a url path and query string
func (*JobCreatorURL) BuildFull ¶
func (o *JobCreatorURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*JobCreatorURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*JobCreatorURL) SetBasePath ¶
func (o *JobCreatorURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*JobCreatorURL) String ¶
func (o *JobCreatorURL) String() string
String returns the string representation of the path with query string
func (*JobCreatorURL) StringFull ¶
func (o *JobCreatorURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*JobCreatorURL) WithBasePath ¶
func (o *JobCreatorURL) WithBasePath(bp string) *JobCreatorURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type JobCreatorUnprocessableEntity ¶
type JobCreatorUnprocessableEntity struct { /* In: Body */ Payload *weles.ErrResponse `json:"body,omitempty"` }
JobCreatorUnprocessableEntity Unprocessable entity
swagger:response jobCreatorUnprocessableEntity
func NewJobCreatorUnprocessableEntity ¶
func NewJobCreatorUnprocessableEntity() *JobCreatorUnprocessableEntity
NewJobCreatorUnprocessableEntity creates JobCreatorUnprocessableEntity with default headers values
func (*JobCreatorUnprocessableEntity) SetPayload ¶
func (o *JobCreatorUnprocessableEntity) SetPayload(payload *weles.ErrResponse)
SetPayload sets the payload to the job creator unprocessable entity response
func (*JobCreatorUnprocessableEntity) WithPayload ¶
func (o *JobCreatorUnprocessableEntity) WithPayload(payload *weles.ErrResponse) *JobCreatorUnprocessableEntity
WithPayload adds the payload to the job creator unprocessable entity response
func (*JobCreatorUnprocessableEntity) WriteResponse ¶
func (o *JobCreatorUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type JobCreatorUnsupportedMediaType ¶
type JobCreatorUnsupportedMediaType struct { /* In: Body */ Payload *weles.ErrResponse `json:"body,omitempty"` }
JobCreatorUnsupportedMediaType Unsupported media type
swagger:response jobCreatorUnsupportedMediaType
func NewJobCreatorUnsupportedMediaType ¶
func NewJobCreatorUnsupportedMediaType() *JobCreatorUnsupportedMediaType
NewJobCreatorUnsupportedMediaType creates JobCreatorUnsupportedMediaType with default headers values
func (*JobCreatorUnsupportedMediaType) SetPayload ¶
func (o *JobCreatorUnsupportedMediaType) SetPayload(payload *weles.ErrResponse)
SetPayload sets the payload to the job creator unsupported media type response
func (*JobCreatorUnsupportedMediaType) WithPayload ¶
func (o *JobCreatorUnsupportedMediaType) WithPayload(payload *weles.ErrResponse) *JobCreatorUnsupportedMediaType
WithPayload adds the payload to the job creator unsupported media type response
func (*JobCreatorUnsupportedMediaType) WriteResponse ¶
func (o *JobCreatorUnsupportedMediaType) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type JobLister ¶
type JobLister struct { Context *middleware.Context Handler JobListerHandler }
JobLister swagger:route POST /jobs/list jobs jobLister
List jobs with filter and sort features ¶
JobLister returns information on filtered Weles Jobs.
func NewJobLister ¶
func NewJobLister(ctx *middleware.Context, handler JobListerHandler) *JobLister
NewJobLister creates a new http.Handler for the job lister operation
type JobListerBadRequest ¶
type JobListerBadRequest struct { /* In: Body */ Payload *weles.ErrResponse `json:"body,omitempty"` }
JobListerBadRequest Bad Request
swagger:response jobListerBadRequest
func NewJobListerBadRequest ¶
func NewJobListerBadRequest() *JobListerBadRequest
NewJobListerBadRequest creates JobListerBadRequest with default headers values
func (*JobListerBadRequest) SetPayload ¶
func (o *JobListerBadRequest) SetPayload(payload *weles.ErrResponse)
SetPayload sets the payload to the job lister bad request response
func (*JobListerBadRequest) WithPayload ¶
func (o *JobListerBadRequest) WithPayload(payload *weles.ErrResponse) *JobListerBadRequest
WithPayload adds the payload to the job lister bad request response
func (*JobListerBadRequest) WriteResponse ¶
func (o *JobListerBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type JobListerBody ¶
type JobListerBody struct { // filter Filter *weles.JobFilter `json:"Filter,omitempty"` // sorter Sorter *weles.JobSorter `json:"Sorter,omitempty"` }
JobListerBody Data for filtering and sorting Weles Jobs lists. swagger:model JobListerBody
func (*JobListerBody) MarshalBinary ¶
func (o *JobListerBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*JobListerBody) UnmarshalBinary ¶
func (o *JobListerBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type JobListerHandler ¶
type JobListerHandler interface {
Handle(JobListerParams) middleware.Responder
}
JobListerHandler interface for that can handle valid job lister params
type JobListerHandlerFunc ¶
type JobListerHandlerFunc func(JobListerParams) middleware.Responder
JobListerHandlerFunc turns a function with the right signature into a job lister handler
func (JobListerHandlerFunc) Handle ¶
func (fn JobListerHandlerFunc) Handle(params JobListerParams) middleware.Responder
Handle executing the request and returning a response
type JobListerInternalServerError ¶
type JobListerInternalServerError struct { /* In: Body */ Payload *weles.ErrResponse `json:"body,omitempty"` }
JobListerInternalServerError Internal Server error
swagger:response jobListerInternalServerError
func NewJobListerInternalServerError ¶
func NewJobListerInternalServerError() *JobListerInternalServerError
NewJobListerInternalServerError creates JobListerInternalServerError with default headers values
func (*JobListerInternalServerError) SetPayload ¶
func (o *JobListerInternalServerError) SetPayload(payload *weles.ErrResponse)
SetPayload sets the payload to the job lister internal server error response
func (*JobListerInternalServerError) WithPayload ¶
func (o *JobListerInternalServerError) WithPayload(payload *weles.ErrResponse) *JobListerInternalServerError
WithPayload adds the payload to the job lister internal server error response
func (*JobListerInternalServerError) WriteResponse ¶
func (o *JobListerInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type JobListerNotFound ¶
type JobListerNotFound struct { /* In: Body */ Payload *weles.ErrResponse `json:"body,omitempty"` }
JobListerNotFound Not Found
swagger:response jobListerNotFound
func NewJobListerNotFound ¶
func NewJobListerNotFound() *JobListerNotFound
NewJobListerNotFound creates JobListerNotFound with default headers values
func (*JobListerNotFound) SetPayload ¶
func (o *JobListerNotFound) SetPayload(payload *weles.ErrResponse)
SetPayload sets the payload to the job lister not found response
func (*JobListerNotFound) WithPayload ¶
func (o *JobListerNotFound) WithPayload(payload *weles.ErrResponse) *JobListerNotFound
WithPayload adds the payload to the job lister not found response
func (*JobListerNotFound) WriteResponse ¶
func (o *JobListerNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type JobListerOK ¶
type JobListerOK struct { /*URI to request next page of data. Please note that the same body must be used as in initial request. */ Next string `json:"Next"` /*URI to request previous page of data. Please note that the same body must be used as in initial request. */ Previous string `json:"Previous"` /*count of records currently fulfilling the requested JobFilter. Please note that this value may change when requesting for the same data at a different moment in time. */ TotalRecords uint64 `json:"TotalRecords"` /* In: Body */ Payload []*weles.JobInfo `json:"body,omitempty"` }
JobListerOK OK
swagger:response jobListerOK
func NewJobListerOK ¶
func NewJobListerOK() *JobListerOK
NewJobListerOK creates JobListerOK with default headers values
func (*JobListerOK) SetNext ¶
func (o *JobListerOK) SetNext(next string)
SetNext sets the next to the job lister o k response
func (*JobListerOK) SetPayload ¶
func (o *JobListerOK) SetPayload(payload []*weles.JobInfo)
SetPayload sets the payload to the job lister o k response
func (*JobListerOK) SetPrevious ¶
func (o *JobListerOK) SetPrevious(previous string)
SetPrevious sets the previous to the job lister o k response
func (*JobListerOK) SetTotalRecords ¶
func (o *JobListerOK) SetTotalRecords(totalRecords uint64)
SetTotalRecords sets the totalRecords to the job lister o k response
func (*JobListerOK) WithNext ¶
func (o *JobListerOK) WithNext(next string) *JobListerOK
WithNext adds the next to the job lister o k response
func (*JobListerOK) WithPayload ¶
func (o *JobListerOK) WithPayload(payload []*weles.JobInfo) *JobListerOK
WithPayload adds the payload to the job lister o k response
func (*JobListerOK) WithPrevious ¶
func (o *JobListerOK) WithPrevious(previous string) *JobListerOK
WithPrevious adds the previous to the job lister o k response
func (*JobListerOK) WithTotalRecords ¶
func (o *JobListerOK) WithTotalRecords(totalRecords uint64) *JobListerOK
WithTotalRecords adds the totalRecords to the job lister o k response
func (*JobListerOK) WriteResponse ¶
func (o *JobListerOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type JobListerParams ¶
type JobListerParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*JobID of the last element from previous page. In: query */ After *uint64 /*JobID of first element from next page. In: query */ Before *uint64 /*Job Filter and Sort object. In: body */ JobFilterAndSort JobListerBody /*Custom page limit. Denotes number of JobInfo structures that will be returned. In: query */ Limit *int32 }
JobListerParams contains all the bound params for the job lister operation typically these are obtained from a http.Request
swagger:parameters JobLister
func NewJobListerParams ¶
func NewJobListerParams() JobListerParams
NewJobListerParams creates a new JobListerParams object no default values defined in spec.
func (*JobListerParams) BindRequest ¶
func (o *JobListerParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewJobListerParams() beforehand.
type JobListerPartialContent ¶
type JobListerPartialContent struct { /*URI to request next page of data. Please note that the same body must be used as in initial request. */ Next string `json:"Next"` /*URI to request previous page of data. Please note that the same body must be used as in initial request. */ Previous string `json:"Previous"` /*number of records after current page. Please note that this value may change when requesting for the same data at a different moment in time. */ RemainingRecords uint64 `json:"RemainingRecords"` /*count of records currently fulfilling requested JobFilter. Please note that this value may change when requesting for the same data at a different moment in time. */ TotalRecords uint64 `json:"TotalRecords"` /* In: Body */ Payload []*weles.JobInfo `json:"body,omitempty"` }
JobListerPartialContent Partial Content
swagger:response jobListerPartialContent
func NewJobListerPartialContent ¶
func NewJobListerPartialContent() *JobListerPartialContent
NewJobListerPartialContent creates JobListerPartialContent with default headers values
func (*JobListerPartialContent) SetNext ¶
func (o *JobListerPartialContent) SetNext(next string)
SetNext sets the next to the job lister partial content response
func (*JobListerPartialContent) SetPayload ¶
func (o *JobListerPartialContent) SetPayload(payload []*weles.JobInfo)
SetPayload sets the payload to the job lister partial content response
func (*JobListerPartialContent) SetPrevious ¶
func (o *JobListerPartialContent) SetPrevious(previous string)
SetPrevious sets the previous to the job lister partial content response
func (*JobListerPartialContent) SetRemainingRecords ¶
func (o *JobListerPartialContent) SetRemainingRecords(remainingRecords uint64)
SetRemainingRecords sets the remainingRecords to the job lister partial content response
func (*JobListerPartialContent) SetTotalRecords ¶
func (o *JobListerPartialContent) SetTotalRecords(totalRecords uint64)
SetTotalRecords sets the totalRecords to the job lister partial content response
func (*JobListerPartialContent) WithNext ¶
func (o *JobListerPartialContent) WithNext(next string) *JobListerPartialContent
WithNext adds the next to the job lister partial content response
func (*JobListerPartialContent) WithPayload ¶
func (o *JobListerPartialContent) WithPayload(payload []*weles.JobInfo) *JobListerPartialContent
WithPayload adds the payload to the job lister partial content response
func (*JobListerPartialContent) WithPrevious ¶
func (o *JobListerPartialContent) WithPrevious(previous string) *JobListerPartialContent
WithPrevious adds the previous to the job lister partial content response
func (*JobListerPartialContent) WithRemainingRecords ¶
func (o *JobListerPartialContent) WithRemainingRecords(remainingRecords uint64) *JobListerPartialContent
WithRemainingRecords adds the remainingRecords to the job lister partial content response
func (*JobListerPartialContent) WithTotalRecords ¶
func (o *JobListerPartialContent) WithTotalRecords(totalRecords uint64) *JobListerPartialContent
WithTotalRecords adds the totalRecords to the job lister partial content response
func (*JobListerPartialContent) WriteResponse ¶
func (o *JobListerPartialContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type JobListerURL ¶
type JobListerURL struct { After *uint64 Before *uint64 Limit *int32 // contains filtered or unexported fields }
JobListerURL generates an URL for the job lister operation
func (*JobListerURL) Build ¶
func (o *JobListerURL) Build() (*url.URL, error)
Build a url path and query string
func (*JobListerURL) BuildFull ¶
func (o *JobListerURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*JobListerURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*JobListerURL) SetBasePath ¶
func (o *JobListerURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*JobListerURL) String ¶
func (o *JobListerURL) String() string
String returns the string representation of the path with query string
func (*JobListerURL) StringFull ¶
func (o *JobListerURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*JobListerURL) WithBasePath ¶
func (o *JobListerURL) WithBasePath(bp string) *JobListerURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string