job

package
v0.0.0-...-5d714f6 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2019 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// PostNewJobBodyPlatformIDKubernetes captures enum value "kubernetes"
	PostNewJobBodyPlatformIDKubernetes string = "kubernetes"

	// PostNewJobBodyPlatformIDRescale captures enum value "rescale"
	PostNewJobBodyPlatformIDRescale string = "rescale"
)
View Source
const DeleteJobNoContentCode int = 204

DeleteJobNoContentCode is the HTTP code returned for type DeleteJobNoContent

View Source
const GetJobDetailOKCode int = 200

GetJobDetailOKCode is the HTTP code returned for type GetJobDetailOK

View Source
const GetJobFilesOKCode int = 200

GetJobFilesOKCode is the HTTP code returned for type GetJobFilesOK

View Source
const GetJobLogsOKCode int = 200

GetJobLogsOKCode is the HTTP code returned for type GetJobLogsOK

View Source
const GetJobsOKCode int = 200

GetJobsOKCode is the HTTP code returned for type GetJobsOK

View Source
const (

	// ModifyJobBodyStatusStopped captures enum value "stopped"
	ModifyJobBodyStatusStopped string = "stopped"
)
View Source
const ModifyJobOKCode int = 200

ModifyJobOKCode is the HTTP code returned for type ModifyJobOK

View Source
const PostNewJobCreatedCode int = 201

PostNewJobCreatedCode is the HTTP code returned for type PostNewJobCreated

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteJob

type DeleteJob struct {
	Context *middleware.Context
	Handler DeleteJobHandler
}

DeleteJob swagger:route DELETE /jobs/{id} job deleteJob

delete a job

func NewDeleteJob

func NewDeleteJob(ctx *middleware.Context, handler DeleteJobHandler) *DeleteJob

NewDeleteJob creates a new http.Handler for the delete job operation

func (*DeleteJob) ServeHTTP

func (o *DeleteJob) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type DeleteJobDefault

type DeleteJobDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

DeleteJobDefault Unexpected error

swagger:response deleteJobDefault

func NewDeleteJobDefault

func NewDeleteJobDefault(code int) *DeleteJobDefault

NewDeleteJobDefault creates DeleteJobDefault with default headers values

func (*DeleteJobDefault) SetPayload

func (o *DeleteJobDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the delete job default response

func (*DeleteJobDefault) SetStatusCode

func (o *DeleteJobDefault) SetStatusCode(code int)

SetStatusCode sets the status to the delete job default response

func (*DeleteJobDefault) WithPayload

func (o *DeleteJobDefault) WithPayload(payload *models.Error) *DeleteJobDefault

WithPayload adds the payload to the delete job default response

func (*DeleteJobDefault) WithStatusCode

func (o *DeleteJobDefault) WithStatusCode(code int) *DeleteJobDefault

WithStatusCode adds the status to the delete job default response

func (*DeleteJobDefault) WriteResponse

func (o *DeleteJobDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteJobHandler

type DeleteJobHandler interface {
	Handle(DeleteJobParams, *auth.Principal) middleware.Responder
}

DeleteJobHandler interface for that can handle valid delete job params

type DeleteJobHandlerFunc

type DeleteJobHandlerFunc func(DeleteJobParams, *auth.Principal) middleware.Responder

DeleteJobHandlerFunc turns a function with the right signature into a delete job handler

func (DeleteJobHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteJobNoContent

type DeleteJobNoContent struct {
}

DeleteJobNoContent OK

swagger:response deleteJobNoContent

func NewDeleteJobNoContent

func NewDeleteJobNoContent() *DeleteJobNoContent

NewDeleteJobNoContent creates DeleteJobNoContent with default headers values

func (*DeleteJobNoContent) WriteResponse

func (o *DeleteJobNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteJobParams

type DeleteJobParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Job ID
	  Required: true
	  In: path
	*/
	ID string
}

DeleteJobParams contains all the bound params for the delete job operation typically these are obtained from a http.Request

swagger:parameters deleteJob

func NewDeleteJobParams

func NewDeleteJobParams() DeleteJobParams

NewDeleteJobParams creates a new DeleteJobParams object no default values defined in spec.

func (*DeleteJobParams) BindRequest

func (o *DeleteJobParams) 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 NewDeleteJobParams() beforehand.

type DeleteJobURL

type DeleteJobURL struct {
	ID string
	// contains filtered or unexported fields
}

DeleteJobURL generates an URL for the delete job operation

func (*DeleteJobURL) Build

func (o *DeleteJobURL) Build() (*url.URL, error)

Build a url path and query string

func (*DeleteJobURL) BuildFull

func (o *DeleteJobURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*DeleteJobURL) Must

func (o *DeleteJobURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*DeleteJobURL) SetBasePath

func (o *DeleteJobURL) 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 (*DeleteJobURL) String

func (o *DeleteJobURL) String() string

String returns the string representation of the path with query string

func (*DeleteJobURL) StringFull

func (o *DeleteJobURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*DeleteJobURL) WithBasePath

func (o *DeleteJobURL) WithBasePath(bp string) *DeleteJobURL

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 GetJobDetail

type GetJobDetail struct {
	Context *middleware.Context
	Handler GetJobDetailHandler
}

GetJobDetail swagger:route GET /jobs/{id} job getJobDetail

returns the details of a job

func NewGetJobDetail

func NewGetJobDetail(ctx *middleware.Context, handler GetJobDetailHandler) *GetJobDetail

NewGetJobDetail creates a new http.Handler for the get job detail operation

func (*GetJobDetail) ServeHTTP

func (o *GetJobDetail) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetJobDetailDefault

type GetJobDetailDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetJobDetailDefault Unexpected error

swagger:response getJobDetailDefault

func NewGetJobDetailDefault

func NewGetJobDetailDefault(code int) *GetJobDetailDefault

NewGetJobDetailDefault creates GetJobDetailDefault with default headers values

func (*GetJobDetailDefault) SetPayload

func (o *GetJobDetailDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the get job detail default response

func (*GetJobDetailDefault) SetStatusCode

func (o *GetJobDetailDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get job detail default response

func (*GetJobDetailDefault) WithPayload

func (o *GetJobDetailDefault) WithPayload(payload *models.Error) *GetJobDetailDefault

WithPayload adds the payload to the get job detail default response

func (*GetJobDetailDefault) WithStatusCode

func (o *GetJobDetailDefault) WithStatusCode(code int) *GetJobDetailDefault

WithStatusCode adds the status to the get job detail default response

func (*GetJobDetailDefault) WriteResponse

func (o *GetJobDetailDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetJobDetailHandler

type GetJobDetailHandler interface {
	Handle(GetJobDetailParams, *auth.Principal) middleware.Responder
}

GetJobDetailHandler interface for that can handle valid get job detail params

type GetJobDetailHandlerFunc

type GetJobDetailHandlerFunc func(GetJobDetailParams, *auth.Principal) middleware.Responder

GetJobDetailHandlerFunc turns a function with the right signature into a get job detail handler

func (GetJobDetailHandlerFunc) Handle

Handle executing the request and returning a response

type GetJobDetailOK

type GetJobDetailOK struct {

	/*
	  In: Body
	*/
	Payload *models.JobDetail `json:"body,omitempty"`
}

GetJobDetailOK OK

swagger:response getJobDetailOK

func NewGetJobDetailOK

func NewGetJobDetailOK() *GetJobDetailOK

NewGetJobDetailOK creates GetJobDetailOK with default headers values

func (*GetJobDetailOK) SetPayload

func (o *GetJobDetailOK) SetPayload(payload *models.JobDetail)

SetPayload sets the payload to the get job detail o k response

func (*GetJobDetailOK) WithPayload

func (o *GetJobDetailOK) WithPayload(payload *models.JobDetail) *GetJobDetailOK

WithPayload adds the payload to the get job detail o k response

func (*GetJobDetailOK) WriteResponse

func (o *GetJobDetailOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetJobDetailParams

type GetJobDetailParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Job ID
	  Required: true
	  In: path
	*/
	ID string
}

GetJobDetailParams contains all the bound params for the get job detail operation typically these are obtained from a http.Request

swagger:parameters getJobDetail

func NewGetJobDetailParams

func NewGetJobDetailParams() GetJobDetailParams

NewGetJobDetailParams creates a new GetJobDetailParams object no default values defined in spec.

func (*GetJobDetailParams) BindRequest

func (o *GetJobDetailParams) 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 NewGetJobDetailParams() beforehand.

type GetJobDetailURL

type GetJobDetailURL struct {
	ID string
	// contains filtered or unexported fields
}

GetJobDetailURL generates an URL for the get job detail operation

func (*GetJobDetailURL) Build

func (o *GetJobDetailURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetJobDetailURL) BuildFull

func (o *GetJobDetailURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetJobDetailURL) Must

func (o *GetJobDetailURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetJobDetailURL) SetBasePath

func (o *GetJobDetailURL) 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 (*GetJobDetailURL) String

func (o *GetJobDetailURL) String() string

String returns the string representation of the path with query string

func (*GetJobDetailURL) StringFull

func (o *GetJobDetailURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetJobDetailURL) WithBasePath

func (o *GetJobDetailURL) WithBasePath(bp string) *GetJobDetailURL

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 GetJobFiles

type GetJobFiles struct {
	Context *middleware.Context
	Handler GetJobFilesHandler
}

GetJobFiles swagger:route GET /jobs/{id}/files job getJobFiles

returns the list of output files

func NewGetJobFiles

func NewGetJobFiles(ctx *middleware.Context, handler GetJobFilesHandler) *GetJobFiles

NewGetJobFiles creates a new http.Handler for the get job files operation

func (*GetJobFiles) ServeHTTP

func (o *GetJobFiles) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetJobFilesDefault

type GetJobFilesDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetJobFilesDefault Unexpected error

swagger:response getJobFilesDefault

func NewGetJobFilesDefault

func NewGetJobFilesDefault(code int) *GetJobFilesDefault

NewGetJobFilesDefault creates GetJobFilesDefault with default headers values

func (*GetJobFilesDefault) SetPayload

func (o *GetJobFilesDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the get job files default response

func (*GetJobFilesDefault) SetStatusCode

func (o *GetJobFilesDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get job files default response

func (*GetJobFilesDefault) WithPayload

func (o *GetJobFilesDefault) WithPayload(payload *models.Error) *GetJobFilesDefault

WithPayload adds the payload to the get job files default response

func (*GetJobFilesDefault) WithStatusCode

func (o *GetJobFilesDefault) WithStatusCode(code int) *GetJobFilesDefault

WithStatusCode adds the status to the get job files default response

func (*GetJobFilesDefault) WriteResponse

func (o *GetJobFilesDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetJobFilesHandler

type GetJobFilesHandler interface {
	Handle(GetJobFilesParams, *auth.Principal) middleware.Responder
}

GetJobFilesHandler interface for that can handle valid get job files params

type GetJobFilesHandlerFunc

type GetJobFilesHandlerFunc func(GetJobFilesParams, *auth.Principal) middleware.Responder

GetJobFilesHandlerFunc turns a function with the right signature into a get job files handler

func (GetJobFilesHandlerFunc) Handle

Handle executing the request and returning a response

type GetJobFilesOK

type GetJobFilesOK struct {

	/*
	  In: Body
	*/
	Payload *models.JobFiles `json:"body,omitempty"`
}

GetJobFilesOK OK

swagger:response getJobFilesOK

func NewGetJobFilesOK

func NewGetJobFilesOK() *GetJobFilesOK

NewGetJobFilesOK creates GetJobFilesOK with default headers values

func (*GetJobFilesOK) SetPayload

func (o *GetJobFilesOK) SetPayload(payload *models.JobFiles)

SetPayload sets the payload to the get job files o k response

func (*GetJobFilesOK) WithPayload

func (o *GetJobFilesOK) WithPayload(payload *models.JobFiles) *GetJobFilesOK

WithPayload adds the payload to the get job files o k response

func (*GetJobFilesOK) WriteResponse

func (o *GetJobFilesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetJobFilesParams

type GetJobFilesParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Job ID
	  Required: true
	  In: path
	*/
	ID string
}

GetJobFilesParams contains all the bound params for the get job files operation typically these are obtained from a http.Request

swagger:parameters getJobFiles

func NewGetJobFilesParams

func NewGetJobFilesParams() GetJobFilesParams

NewGetJobFilesParams creates a new GetJobFilesParams object no default values defined in spec.

func (*GetJobFilesParams) BindRequest

func (o *GetJobFilesParams) 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 NewGetJobFilesParams() beforehand.

type GetJobFilesURL

type GetJobFilesURL struct {
	ID string
	// contains filtered or unexported fields
}

GetJobFilesURL generates an URL for the get job files operation

func (*GetJobFilesURL) Build

func (o *GetJobFilesURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetJobFilesURL) BuildFull

func (o *GetJobFilesURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetJobFilesURL) Must

func (o *GetJobFilesURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetJobFilesURL) SetBasePath

func (o *GetJobFilesURL) 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 (*GetJobFilesURL) String

func (o *GetJobFilesURL) String() string

String returns the string representation of the path with query string

func (*GetJobFilesURL) StringFull

func (o *GetJobFilesURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetJobFilesURL) WithBasePath

func (o *GetJobFilesURL) WithBasePath(bp string) *GetJobFilesURL

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 GetJobLogs

type GetJobLogs struct {
	Context *middleware.Context
	Handler GetJobLogsHandler
}

GetJobLogs swagger:route GET /jobs/{id}/logs job getJobLogs

returns the logs of a job

func NewGetJobLogs

func NewGetJobLogs(ctx *middleware.Context, handler GetJobLogsHandler) *GetJobLogs

NewGetJobLogs creates a new http.Handler for the get job logs operation

func (*GetJobLogs) ServeHTTP

func (o *GetJobLogs) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetJobLogsDefault

type GetJobLogsDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetJobLogsDefault Unexpected error

swagger:response getJobLogsDefault

func NewGetJobLogsDefault

func NewGetJobLogsDefault(code int) *GetJobLogsDefault

NewGetJobLogsDefault creates GetJobLogsDefault with default headers values

func (*GetJobLogsDefault) SetPayload

func (o *GetJobLogsDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the get job logs default response

func (*GetJobLogsDefault) SetStatusCode

func (o *GetJobLogsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get job logs default response

func (*GetJobLogsDefault) WithPayload

func (o *GetJobLogsDefault) WithPayload(payload *models.Error) *GetJobLogsDefault

WithPayload adds the payload to the get job logs default response

func (*GetJobLogsDefault) WithStatusCode

func (o *GetJobLogsDefault) WithStatusCode(code int) *GetJobLogsDefault

WithStatusCode adds the status to the get job logs default response

func (*GetJobLogsDefault) WriteResponse

func (o *GetJobLogsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetJobLogsHandler

type GetJobLogsHandler interface {
	Handle(GetJobLogsParams, *auth.Principal) middleware.Responder
}

GetJobLogsHandler interface for that can handle valid get job logs params

type GetJobLogsHandlerFunc

type GetJobLogsHandlerFunc func(GetJobLogsParams, *auth.Principal) middleware.Responder

GetJobLogsHandlerFunc turns a function with the right signature into a get job logs handler

func (GetJobLogsHandlerFunc) Handle

Handle executing the request and returning a response

type GetJobLogsOK

type GetJobLogsOK struct {

	/*
	  In: Body
	*/
	Payload *models.JobLogs `json:"body,omitempty"`
}

GetJobLogsOK OK

swagger:response getJobLogsOK

func NewGetJobLogsOK

func NewGetJobLogsOK() *GetJobLogsOK

NewGetJobLogsOK creates GetJobLogsOK with default headers values

func (*GetJobLogsOK) SetPayload

func (o *GetJobLogsOK) SetPayload(payload *models.JobLogs)

SetPayload sets the payload to the get job logs o k response

func (*GetJobLogsOK) WithPayload

func (o *GetJobLogsOK) WithPayload(payload *models.JobLogs) *GetJobLogsOK

WithPayload adds the payload to the get job logs o k response

func (*GetJobLogsOK) WriteResponse

func (o *GetJobLogsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetJobLogsParams

type GetJobLogsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Job ID
	  Required: true
	  In: path
	*/
	ID string
}

GetJobLogsParams contains all the bound params for the get job logs operation typically these are obtained from a http.Request

swagger:parameters getJobLogs

func NewGetJobLogsParams

func NewGetJobLogsParams() GetJobLogsParams

NewGetJobLogsParams creates a new GetJobLogsParams object no default values defined in spec.

func (*GetJobLogsParams) BindRequest

func (o *GetJobLogsParams) 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 NewGetJobLogsParams() beforehand.

type GetJobLogsURL

type GetJobLogsURL struct {
	ID string
	// contains filtered or unexported fields
}

GetJobLogsURL generates an URL for the get job logs operation

func (*GetJobLogsURL) Build

func (o *GetJobLogsURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetJobLogsURL) BuildFull

func (o *GetJobLogsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetJobLogsURL) Must

func (o *GetJobLogsURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetJobLogsURL) SetBasePath

func (o *GetJobLogsURL) 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 (*GetJobLogsURL) String

func (o *GetJobLogsURL) String() string

String returns the string representation of the path with query string

func (*GetJobLogsURL) StringFull

func (o *GetJobLogsURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetJobLogsURL) WithBasePath

func (o *GetJobLogsURL) WithBasePath(bp string) *GetJobLogsURL

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 GetJobs

type GetJobs struct {
	Context *middleware.Context
	Handler GetJobsHandler
}

GetJobs swagger:route GET /jobs job getJobs

returns training jobs on cloud

func NewGetJobs

func NewGetJobs(ctx *middleware.Context, handler GetJobsHandler) *GetJobs

NewGetJobs creates a new http.Handler for the get jobs operation

func (*GetJobs) ServeHTTP

func (o *GetJobs) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetJobsDefault

type GetJobsDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetJobsDefault Unexpected error

swagger:response getJobsDefault

func NewGetJobsDefault

func NewGetJobsDefault(code int) *GetJobsDefault

NewGetJobsDefault creates GetJobsDefault with default headers values

func (*GetJobsDefault) SetPayload

func (o *GetJobsDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the get jobs default response

func (*GetJobsDefault) SetStatusCode

func (o *GetJobsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get jobs default response

func (*GetJobsDefault) WithPayload

func (o *GetJobsDefault) WithPayload(payload *models.Error) *GetJobsDefault

WithPayload adds the payload to the get jobs default response

func (*GetJobsDefault) WithStatusCode

func (o *GetJobsDefault) WithStatusCode(code int) *GetJobsDefault

WithStatusCode adds the status to the get jobs default response

func (*GetJobsDefault) WriteResponse

func (o *GetJobsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetJobsHandler

type GetJobsHandler interface {
	Handle(GetJobsParams, *auth.Principal) middleware.Responder
}

GetJobsHandler interface for that can handle valid get jobs params

type GetJobsHandlerFunc

type GetJobsHandlerFunc func(GetJobsParams, *auth.Principal) middleware.Responder

GetJobsHandlerFunc turns a function with the right signature into a get jobs handler

func (GetJobsHandlerFunc) Handle

func (fn GetJobsHandlerFunc) Handle(params GetJobsParams, principal *auth.Principal) middleware.Responder

Handle executing the request and returning a response

type GetJobsOK

type GetJobsOK struct {

	/*
	  In: Body
	*/
	Payload []*models.Job `json:"body,omitempty"`
}

GetJobsOK OK

swagger:response getJobsOK

func NewGetJobsOK

func NewGetJobsOK() *GetJobsOK

NewGetJobsOK creates GetJobsOK with default headers values

func (*GetJobsOK) SetPayload

func (o *GetJobsOK) SetPayload(payload []*models.Job)

SetPayload sets the payload to the get jobs o k response

func (*GetJobsOK) WithPayload

func (o *GetJobsOK) WithPayload(payload []*models.Job) *GetJobsOK

WithPayload adds the payload to the get jobs o k response

func (*GetJobsOK) WriteResponse

func (o *GetJobsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetJobsParams

type GetJobsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

GetJobsParams contains all the bound params for the get jobs operation typically these are obtained from a http.Request

swagger:parameters getJobs

func NewGetJobsParams

func NewGetJobsParams() GetJobsParams

NewGetJobsParams creates a new GetJobsParams object no default values defined in spec.

func (*GetJobsParams) BindRequest

func (o *GetJobsParams) 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 NewGetJobsParams() beforehand.

type GetJobsURL

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

GetJobsURL generates an URL for the get jobs operation

func (*GetJobsURL) Build

func (o *GetJobsURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetJobsURL) BuildFull

func (o *GetJobsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetJobsURL) Must

func (o *GetJobsURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetJobsURL) SetBasePath

func (o *GetJobsURL) 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 (*GetJobsURL) String

func (o *GetJobsURL) String() string

String returns the string representation of the path with query string

func (*GetJobsURL) StringFull

func (o *GetJobsURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetJobsURL) WithBasePath

func (o *GetJobsURL) WithBasePath(bp string) *GetJobsURL

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 ModifyJob

type ModifyJob struct {
	Context *middleware.Context
	Handler ModifyJobHandler
}

ModifyJob swagger:route PATCH /jobs/{id} job modifyJob

modify the job status

func NewModifyJob

func NewModifyJob(ctx *middleware.Context, handler ModifyJobHandler) *ModifyJob

NewModifyJob creates a new http.Handler for the modify job operation

func (*ModifyJob) ServeHTTP

func (o *ModifyJob) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ModifyJobBody

type ModifyJobBody struct {

	// status
	// Enum: [stopped]
	Status string `json:"status,omitempty"`
}

ModifyJobBody JobAttrs swagger:model ModifyJobBody

func (*ModifyJobBody) MarshalBinary

func (o *ModifyJobBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ModifyJobBody) UnmarshalBinary

func (o *ModifyJobBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ModifyJobBody) Validate

func (o *ModifyJobBody) Validate(formats strfmt.Registry) error

Validate validates this modify job body

type ModifyJobDefault

type ModifyJobDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

ModifyJobDefault Unexpected error

swagger:response modifyJobDefault

func NewModifyJobDefault

func NewModifyJobDefault(code int) *ModifyJobDefault

NewModifyJobDefault creates ModifyJobDefault with default headers values

func (*ModifyJobDefault) SetPayload

func (o *ModifyJobDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the modify job default response

func (*ModifyJobDefault) SetStatusCode

func (o *ModifyJobDefault) SetStatusCode(code int)

SetStatusCode sets the status to the modify job default response

func (*ModifyJobDefault) WithPayload

func (o *ModifyJobDefault) WithPayload(payload *models.Error) *ModifyJobDefault

WithPayload adds the payload to the modify job default response

func (*ModifyJobDefault) WithStatusCode

func (o *ModifyJobDefault) WithStatusCode(code int) *ModifyJobDefault

WithStatusCode adds the status to the modify job default response

func (*ModifyJobDefault) WriteResponse

func (o *ModifyJobDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ModifyJobHandler

type ModifyJobHandler interface {
	Handle(ModifyJobParams, *auth.Principal) middleware.Responder
}

ModifyJobHandler interface for that can handle valid modify job params

type ModifyJobHandlerFunc

type ModifyJobHandlerFunc func(ModifyJobParams, *auth.Principal) middleware.Responder

ModifyJobHandlerFunc turns a function with the right signature into a modify job handler

func (ModifyJobHandlerFunc) Handle

Handle executing the request and returning a response

type ModifyJobOK

type ModifyJobOK struct {
}

ModifyJobOK OK

swagger:response modifyJobOK

func NewModifyJobOK

func NewModifyJobOK() *ModifyJobOK

NewModifyJobOK creates ModifyJobOK with default headers values

func (*ModifyJobOK) WriteResponse

func (o *ModifyJobOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ModifyJobParams

type ModifyJobParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: body
	*/
	Body ModifyJobBody
	/*Job ID
	  Required: true
	  In: path
	*/
	ID string
}

ModifyJobParams contains all the bound params for the modify job operation typically these are obtained from a http.Request

swagger:parameters modifyJob

func NewModifyJobParams

func NewModifyJobParams() ModifyJobParams

NewModifyJobParams creates a new ModifyJobParams object no default values defined in spec.

func (*ModifyJobParams) BindRequest

func (o *ModifyJobParams) 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 NewModifyJobParams() beforehand.

type ModifyJobURL

type ModifyJobURL struct {
	ID string
	// contains filtered or unexported fields
}

ModifyJobURL generates an URL for the modify job operation

func (*ModifyJobURL) Build

func (o *ModifyJobURL) Build() (*url.URL, error)

Build a url path and query string

func (*ModifyJobURL) BuildFull

func (o *ModifyJobURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ModifyJobURL) Must

func (o *ModifyJobURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ModifyJobURL) SetBasePath

func (o *ModifyJobURL) 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 (*ModifyJobURL) String

func (o *ModifyJobURL) String() string

String returns the string representation of the path with query string

func (*ModifyJobURL) StringFull

func (o *ModifyJobURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ModifyJobURL) WithBasePath

func (o *ModifyJobURL) WithBasePath(bp string) *ModifyJobURL

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 PostNewJob

type PostNewJob struct {
	Context *middleware.Context
	Handler PostNewJobHandler
}

PostNewJob swagger:route POST /jobs job postNewJob

Submit a job with the specified image

func NewPostNewJob

func NewPostNewJob(ctx *middleware.Context, handler PostNewJobHandler) *PostNewJob

NewPostNewJob creates a new http.Handler for the post new job operation

func (*PostNewJob) ServeHTTP

func (o *PostNewJob) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type PostNewJobBody

type PostNewJobBody struct {

	// commands to be excuted after the entrypoint
	Commands []string `json:"commands"`

	// The number of CPU cores
	Cores int64 `json:"cores,omitempty"`

	// Rescale CoreType as its infrastructure
	Coretype string `json:"coretype,omitempty"`

	// Requesting millicores of CPU
	CPU int64 `json:"cpu,omitempty"`

	// The entrypoint file of the job
	EntrypointFile string `json:"entrypoint_file,omitempty"`

	// Requesting number of GPU
	Gpu int64 `json:"gpu,omitempty"`

	// Requesting bytes of memory
	Mem int64 `json:"mem,omitempty"`

	// Notebook container ID
	NotebookID string `json:"notebook_id,omitempty"`

	// Platform ID
	// Enum: [kubernetes rescale]
	PlatformID string `json:"platform_id,omitempty"`
}

PostNewJobBody JobAttrs swagger:model PostNewJobBody

func (*PostNewJobBody) MarshalBinary

func (o *PostNewJobBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PostNewJobBody) UnmarshalBinary

func (o *PostNewJobBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PostNewJobBody) Validate

func (o *PostNewJobBody) Validate(formats strfmt.Registry) error

Validate validates this post new job body

type PostNewJobCreated

type PostNewJobCreated struct {

	/*
	  In: Body
	*/
	Payload *PostNewJobCreatedBody `json:"body,omitempty"`
}

PostNewJobCreated OK

swagger:response postNewJobCreated

func NewPostNewJobCreated

func NewPostNewJobCreated() *PostNewJobCreated

NewPostNewJobCreated creates PostNewJobCreated with default headers values

func (*PostNewJobCreated) SetPayload

func (o *PostNewJobCreated) SetPayload(payload *PostNewJobCreatedBody)

SetPayload sets the payload to the post new job created response

func (*PostNewJobCreated) WithPayload

func (o *PostNewJobCreated) WithPayload(payload *PostNewJobCreatedBody) *PostNewJobCreated

WithPayload adds the payload to the post new job created response

func (*PostNewJobCreated) WriteResponse

func (o *PostNewJobCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PostNewJobCreatedBody

type PostNewJobCreatedBody struct {

	// ID of the new job
	ID string `json:"id,omitempty"`
}

PostNewJobCreatedBody newJobID swagger:model PostNewJobCreatedBody

func (*PostNewJobCreatedBody) MarshalBinary

func (o *PostNewJobCreatedBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PostNewJobCreatedBody) UnmarshalBinary

func (o *PostNewJobCreatedBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PostNewJobCreatedBody) Validate

func (o *PostNewJobCreatedBody) Validate(formats strfmt.Registry) error

Validate validates this post new job created body

type PostNewJobDefault

type PostNewJobDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

PostNewJobDefault Unexpected error

swagger:response postNewJobDefault

func NewPostNewJobDefault

func NewPostNewJobDefault(code int) *PostNewJobDefault

NewPostNewJobDefault creates PostNewJobDefault with default headers values

func (*PostNewJobDefault) SetPayload

func (o *PostNewJobDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the post new job default response

func (*PostNewJobDefault) SetStatusCode

func (o *PostNewJobDefault) SetStatusCode(code int)

SetStatusCode sets the status to the post new job default response

func (*PostNewJobDefault) WithPayload

func (o *PostNewJobDefault) WithPayload(payload *models.Error) *PostNewJobDefault

WithPayload adds the payload to the post new job default response

func (*PostNewJobDefault) WithStatusCode

func (o *PostNewJobDefault) WithStatusCode(code int) *PostNewJobDefault

WithStatusCode adds the status to the post new job default response

func (*PostNewJobDefault) WriteResponse

func (o *PostNewJobDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PostNewJobHandler

type PostNewJobHandler interface {
	Handle(PostNewJobParams, *auth.Principal) middleware.Responder
}

PostNewJobHandler interface for that can handle valid post new job params

type PostNewJobHandlerFunc

type PostNewJobHandlerFunc func(PostNewJobParams, *auth.Principal) middleware.Responder

PostNewJobHandlerFunc turns a function with the right signature into a post new job handler

func (PostNewJobHandlerFunc) Handle

Handle executing the request and returning a response

type PostNewJobParams

type PostNewJobParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: body
	*/
	Body PostNewJobBody
}

PostNewJobParams contains all the bound params for the post new job operation typically these are obtained from a http.Request

swagger:parameters postNewJob

func NewPostNewJobParams

func NewPostNewJobParams() PostNewJobParams

NewPostNewJobParams creates a new PostNewJobParams object no default values defined in spec.

func (*PostNewJobParams) BindRequest

func (o *PostNewJobParams) 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 NewPostNewJobParams() beforehand.

type PostNewJobURL

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

PostNewJobURL generates an URL for the post new job operation

func (*PostNewJobURL) Build

func (o *PostNewJobURL) Build() (*url.URL, error)

Build a url path and query string

func (*PostNewJobURL) BuildFull

func (o *PostNewJobURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*PostNewJobURL) Must

func (o *PostNewJobURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*PostNewJobURL) SetBasePath

func (o *PostNewJobURL) 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 (*PostNewJobURL) String

func (o *PostNewJobURL) String() string

String returns the string representation of the path with query string

func (*PostNewJobURL) StringFull

func (o *PostNewJobURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*PostNewJobURL) WithBasePath

func (o *PostNewJobURL) WithBasePath(bp string) *PostNewJobURL

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

Jump to

Keyboard shortcuts

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