rescale

package
v0.0.0-...-dc6c3cb Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const GetApplicationOKCode int = 200

GetApplicationOKCode is the HTTP code returned for type GetApplicationOK

View Source
const GetApplicationVersionOKCode int = 200

GetApplicationVersionOKCode is the HTTP code returned for type GetApplicationVersionOK

View Source
const GetCoreTypesOKCode int = 200

GetCoreTypesOKCode is the HTTP code returned for type GetCoreTypesOK

View Source
const GetRescaleApplicationOKCode int = 200

GetRescaleApplicationOKCode is the HTTP code returned for type GetRescaleApplicationOK

View Source
const GetRescaleApplicationVersionOKCode int = 200

GetRescaleApplicationVersionOKCode is the HTTP code returned for type GetRescaleApplicationVersionOK

View Source
const GetRescaleCoreTypesOKCode int = 200

GetRescaleCoreTypesOKCode is the HTTP code returned for type GetRescaleCoreTypesOK

Variables

This section is empty.

Functions

This section is empty.

Types

type GetApplication

type GetApplication struct {
	Context *middleware.Context
	Handler GetApplicationHandler
}

GetApplication swagger:route GET /applications/{code}/ rescale getApplication

returns a Rescale application

func NewGetApplication

func NewGetApplication(ctx *middleware.Context, handler GetApplicationHandler) *GetApplication

NewGetApplication creates a new http.Handler for the get application operation

func (*GetApplication) ServeHTTP

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

type GetApplicationDefault

type GetApplicationDefault struct {

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

GetApplicationDefault Unexpected error

swagger:response getApplicationDefault

func NewGetApplicationDefault

func NewGetApplicationDefault(code int) *GetApplicationDefault

NewGetApplicationDefault creates GetApplicationDefault with default headers values

func (*GetApplicationDefault) SetPayload

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

SetPayload sets the payload to the get application default response

func (*GetApplicationDefault) SetStatusCode

func (o *GetApplicationDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get application default response

func (*GetApplicationDefault) WithPayload

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

WithPayload adds the payload to the get application default response

func (*GetApplicationDefault) WithStatusCode

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

WithStatusCode adds the status to the get application default response

func (*GetApplicationDefault) WriteResponse

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

WriteResponse to the client

type GetApplicationHandler

type GetApplicationHandler interface {
	Handle(GetApplicationParams, *auth.Principal) middleware.Responder
}

GetApplicationHandler interface for that can handle valid get application params

type GetApplicationHandlerFunc

type GetApplicationHandlerFunc func(GetApplicationParams, *auth.Principal) middleware.Responder

GetApplicationHandlerFunc turns a function with the right signature into a get application handler

func (GetApplicationHandlerFunc) Handle

Handle executing the request and returning a response

type GetApplicationOK

type GetApplicationOK struct {

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

GetApplicationOK OK

swagger:response getApplicationOK

func NewGetApplicationOK

func NewGetApplicationOK() *GetApplicationOK

NewGetApplicationOK creates GetApplicationOK with default headers values

func (*GetApplicationOK) SetPayload

func (o *GetApplicationOK) SetPayload(payload *models.Application)

SetPayload sets the payload to the get application o k response

func (*GetApplicationOK) WithPayload

func (o *GetApplicationOK) WithPayload(payload *models.Application) *GetApplicationOK

WithPayload adds the payload to the get application o k response

func (*GetApplicationOK) WriteResponse

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

WriteResponse to the client

type GetApplicationParams

type GetApplicationParams struct {

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

	/*application code
	  Required: true
	  In: path
	*/
	Code string
}

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

swagger:parameters getApplication

func NewGetApplicationParams

func NewGetApplicationParams() GetApplicationParams

NewGetApplicationParams creates a new GetApplicationParams object no default values defined in spec.

func (*GetApplicationParams) BindRequest

func (o *GetApplicationParams) 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 NewGetApplicationParams() beforehand.

type GetApplicationURL

type GetApplicationURL struct {
	Code string
	// contains filtered or unexported fields
}

GetApplicationURL generates an URL for the get application operation

func (*GetApplicationURL) Build

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

Build a url path and query string

func (*GetApplicationURL) BuildFull

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

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

func (*GetApplicationURL) Must

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

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

func (*GetApplicationURL) SetBasePath

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

func (o *GetApplicationURL) String() string

String returns the string representation of the path with query string

func (*GetApplicationURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetApplicationURL) WithBasePath

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

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 GetApplicationVersion

type GetApplicationVersion struct {
	Context *middleware.Context
	Handler GetApplicationVersionHandler
}

GetApplicationVersion swagger:route GET /applications/{code}/{version}/ rescale getApplicationVersion

returns version information of a specified Rescale application

func NewGetApplicationVersion

func NewGetApplicationVersion(ctx *middleware.Context, handler GetApplicationVersionHandler) *GetApplicationVersion

NewGetApplicationVersion creates a new http.Handler for the get application version operation

func (*GetApplicationVersion) ServeHTTP

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

type GetApplicationVersionDefault

type GetApplicationVersionDefault struct {

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

GetApplicationVersionDefault Unexpected error

swagger:response getApplicationVersionDefault

func NewGetApplicationVersionDefault

func NewGetApplicationVersionDefault(code int) *GetApplicationVersionDefault

NewGetApplicationVersionDefault creates GetApplicationVersionDefault with default headers values

func (*GetApplicationVersionDefault) SetPayload

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

SetPayload sets the payload to the get application version default response

func (*GetApplicationVersionDefault) SetStatusCode

func (o *GetApplicationVersionDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get application version default response

func (*GetApplicationVersionDefault) WithPayload

WithPayload adds the payload to the get application version default response

func (*GetApplicationVersionDefault) WithStatusCode

WithStatusCode adds the status to the get application version default response

func (*GetApplicationVersionDefault) WriteResponse

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

WriteResponse to the client

type GetApplicationVersionHandler

type GetApplicationVersionHandler interface {
	Handle(GetApplicationVersionParams, *auth.Principal) middleware.Responder
}

GetApplicationVersionHandler interface for that can handle valid get application version params

type GetApplicationVersionHandlerFunc

type GetApplicationVersionHandlerFunc func(GetApplicationVersionParams, *auth.Principal) middleware.Responder

GetApplicationVersionHandlerFunc turns a function with the right signature into a get application version handler

func (GetApplicationVersionHandlerFunc) Handle

Handle executing the request and returning a response

type GetApplicationVersionOK

type GetApplicationVersionOK struct {

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

GetApplicationVersionOK OK

swagger:response getApplicationVersionOK

func NewGetApplicationVersionOK

func NewGetApplicationVersionOK() *GetApplicationVersionOK

NewGetApplicationVersionOK creates GetApplicationVersionOK with default headers values

func (*GetApplicationVersionOK) SetPayload

func (o *GetApplicationVersionOK) SetPayload(payload *models.ApplicationVersion)

SetPayload sets the payload to the get application version o k response

func (*GetApplicationVersionOK) WithPayload

WithPayload adds the payload to the get application version o k response

func (*GetApplicationVersionOK) WriteResponse

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

WriteResponse to the client

type GetApplicationVersionParams

type GetApplicationVersionParams struct {

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

	/*application code
	  Required: true
	  In: path
	*/
	Code string
	/*application version
	  Required: true
	  In: path
	*/
	Version string
}

GetApplicationVersionParams contains all the bound params for the get application version operation typically these are obtained from a http.Request

swagger:parameters getApplicationVersion

func NewGetApplicationVersionParams

func NewGetApplicationVersionParams() GetApplicationVersionParams

NewGetApplicationVersionParams creates a new GetApplicationVersionParams object no default values defined in spec.

func (*GetApplicationVersionParams) BindRequest

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 NewGetApplicationVersionParams() beforehand.

type GetApplicationVersionURL

type GetApplicationVersionURL struct {
	Code    string
	Version string
	// contains filtered or unexported fields
}

GetApplicationVersionURL generates an URL for the get application version operation

func (*GetApplicationVersionURL) Build

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

Build a url path and query string

func (*GetApplicationVersionURL) BuildFull

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

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

func (*GetApplicationVersionURL) Must

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

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

func (*GetApplicationVersionURL) SetBasePath

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

func (o *GetApplicationVersionURL) String() string

String returns the string representation of the path with query string

func (*GetApplicationVersionURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetApplicationVersionURL) WithBasePath

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 GetCoreTypes

type GetCoreTypes struct {
	Context *middleware.Context
	Handler GetCoreTypesHandler
}

GetCoreTypes swagger:route GET /coretypes rescale getCoreTypes

returns Rescale CoreTypes

func NewGetCoreTypes

func NewGetCoreTypes(ctx *middleware.Context, handler GetCoreTypesHandler) *GetCoreTypes

NewGetCoreTypes creates a new http.Handler for the get core types operation

func (*GetCoreTypes) ServeHTTP

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

type GetCoreTypesDefault

type GetCoreTypesDefault struct {

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

GetCoreTypesDefault Unexpected error

swagger:response getCoreTypesDefault

func NewGetCoreTypesDefault

func NewGetCoreTypesDefault(code int) *GetCoreTypesDefault

NewGetCoreTypesDefault creates GetCoreTypesDefault with default headers values

func (*GetCoreTypesDefault) SetPayload

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

SetPayload sets the payload to the get core types default response

func (*GetCoreTypesDefault) SetStatusCode

func (o *GetCoreTypesDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get core types default response

func (*GetCoreTypesDefault) WithPayload

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

WithPayload adds the payload to the get core types default response

func (*GetCoreTypesDefault) WithStatusCode

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

WithStatusCode adds the status to the get core types default response

func (*GetCoreTypesDefault) WriteResponse

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

WriteResponse to the client

type GetCoreTypesHandler

type GetCoreTypesHandler interface {
	Handle(GetCoreTypesParams, *auth.Principal) middleware.Responder
}

GetCoreTypesHandler interface for that can handle valid get core types params

type GetCoreTypesHandlerFunc

type GetCoreTypesHandlerFunc func(GetCoreTypesParams, *auth.Principal) middleware.Responder

GetCoreTypesHandlerFunc turns a function with the right signature into a get core types handler

func (GetCoreTypesHandlerFunc) Handle

Handle executing the request and returning a response

type GetCoreTypesOK

type GetCoreTypesOK struct {

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

GetCoreTypesOK OK

swagger:response getCoreTypesOK

func NewGetCoreTypesOK

func NewGetCoreTypesOK() *GetCoreTypesOK

NewGetCoreTypesOK creates GetCoreTypesOK with default headers values

func (*GetCoreTypesOK) SetPayload

func (o *GetCoreTypesOK) SetPayload(payload []*models.CoreType)

SetPayload sets the payload to the get core types o k response

func (*GetCoreTypesOK) WithPayload

func (o *GetCoreTypesOK) WithPayload(payload []*models.CoreType) *GetCoreTypesOK

WithPayload adds the payload to the get core types o k response

func (*GetCoreTypesOK) WriteResponse

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

WriteResponse to the client

type GetCoreTypesParams

type GetCoreTypesParams struct {

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

	/*Application version
	  In: query
	*/
	AppVer *string
	/*Required number of GPUs
	  In: query
	*/
	MinGpus *int64
}

GetCoreTypesParams contains all the bound params for the get core types operation typically these are obtained from a http.Request

swagger:parameters getCoreTypes

func NewGetCoreTypesParams

func NewGetCoreTypesParams() GetCoreTypesParams

NewGetCoreTypesParams creates a new GetCoreTypesParams object no default values defined in spec.

func (*GetCoreTypesParams) BindRequest

func (o *GetCoreTypesParams) 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 NewGetCoreTypesParams() beforehand.

type GetCoreTypesURL

type GetCoreTypesURL struct {
	AppVer  *string
	MinGpus *int64
	// contains filtered or unexported fields
}

GetCoreTypesURL generates an URL for the get core types operation

func (*GetCoreTypesURL) Build

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

Build a url path and query string

func (*GetCoreTypesURL) BuildFull

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

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

func (*GetCoreTypesURL) Must

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

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

func (*GetCoreTypesURL) SetBasePath

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

func (o *GetCoreTypesURL) String() string

String returns the string representation of the path with query string

func (*GetCoreTypesURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetCoreTypesURL) WithBasePath

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

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 GetRescaleApplication

type GetRescaleApplication struct {
	Context *middleware.Context
	Handler GetRescaleApplicationHandler
}

GetRescaleApplication swagger:route GET /rescale/applications/{code}/ rescale getRescaleApplication

returns a Rescale application

func NewGetRescaleApplication

func NewGetRescaleApplication(ctx *middleware.Context, handler GetRescaleApplicationHandler) *GetRescaleApplication

NewGetRescaleApplication creates a new http.Handler for the get rescale application operation

func (*GetRescaleApplication) ServeHTTP

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

type GetRescaleApplicationDefault

type GetRescaleApplicationDefault struct {

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

GetRescaleApplicationDefault Unexpected error

swagger:response getRescaleApplicationDefault

func NewGetRescaleApplicationDefault

func NewGetRescaleApplicationDefault(code int) *GetRescaleApplicationDefault

NewGetRescaleApplicationDefault creates GetRescaleApplicationDefault with default headers values

func (*GetRescaleApplicationDefault) SetPayload

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

SetPayload sets the payload to the get rescale application default response

func (*GetRescaleApplicationDefault) SetStatusCode

func (o *GetRescaleApplicationDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get rescale application default response

func (*GetRescaleApplicationDefault) WithPayload

WithPayload adds the payload to the get rescale application default response

func (*GetRescaleApplicationDefault) WithStatusCode

WithStatusCode adds the status to the get rescale application default response

func (*GetRescaleApplicationDefault) WriteResponse

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

WriteResponse to the client

type GetRescaleApplicationHandler

type GetRescaleApplicationHandler interface {
	Handle(GetRescaleApplicationParams, *auth.Principal) middleware.Responder
}

GetRescaleApplicationHandler interface for that can handle valid get rescale application params

type GetRescaleApplicationHandlerFunc

type GetRescaleApplicationHandlerFunc func(GetRescaleApplicationParams, *auth.Principal) middleware.Responder

GetRescaleApplicationHandlerFunc turns a function with the right signature into a get rescale application handler

func (GetRescaleApplicationHandlerFunc) Handle

Handle executing the request and returning a response

type GetRescaleApplicationOK

type GetRescaleApplicationOK struct {

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

GetRescaleApplicationOK OK

swagger:response getRescaleApplicationOK

func NewGetRescaleApplicationOK

func NewGetRescaleApplicationOK() *GetRescaleApplicationOK

NewGetRescaleApplicationOK creates GetRescaleApplicationOK with default headers values

func (*GetRescaleApplicationOK) SetPayload

func (o *GetRescaleApplicationOK) SetPayload(payload *models.RescaleApplication)

SetPayload sets the payload to the get rescale application o k response

func (*GetRescaleApplicationOK) WithPayload

WithPayload adds the payload to the get rescale application o k response

func (*GetRescaleApplicationOK) WriteResponse

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

WriteResponse to the client

type GetRescaleApplicationParams

type GetRescaleApplicationParams struct {

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

	/*application code
	  Required: true
	  In: path
	*/
	Code string
}

GetRescaleApplicationParams contains all the bound params for the get rescale application operation typically these are obtained from a http.Request

swagger:parameters getRescaleApplication

func NewGetRescaleApplicationParams

func NewGetRescaleApplicationParams() GetRescaleApplicationParams

NewGetRescaleApplicationParams creates a new GetRescaleApplicationParams object no default values defined in spec.

func (*GetRescaleApplicationParams) BindRequest

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 NewGetRescaleApplicationParams() beforehand.

type GetRescaleApplicationURL

type GetRescaleApplicationURL struct {
	Code string
	// contains filtered or unexported fields
}

GetRescaleApplicationURL generates an URL for the get rescale application operation

func (*GetRescaleApplicationURL) Build

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

Build a url path and query string

func (*GetRescaleApplicationURL) BuildFull

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

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

func (*GetRescaleApplicationURL) Must

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

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

func (*GetRescaleApplicationURL) SetBasePath

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

func (o *GetRescaleApplicationURL) String() string

String returns the string representation of the path with query string

func (*GetRescaleApplicationURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetRescaleApplicationURL) WithBasePath

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 GetRescaleApplicationVersion

type GetRescaleApplicationVersion struct {
	Context *middleware.Context
	Handler GetRescaleApplicationVersionHandler
}

GetRescaleApplicationVersion swagger:route GET /rescale/applications/{code}/{version}/ rescale getRescaleApplicationVersion

returns version information of a specified Rescale application

func NewGetRescaleApplicationVersion

func NewGetRescaleApplicationVersion(ctx *middleware.Context, handler GetRescaleApplicationVersionHandler) *GetRescaleApplicationVersion

NewGetRescaleApplicationVersion creates a new http.Handler for the get rescale application version operation

func (*GetRescaleApplicationVersion) ServeHTTP

type GetRescaleApplicationVersionDefault

type GetRescaleApplicationVersionDefault struct {

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

GetRescaleApplicationVersionDefault Unexpected error

swagger:response getRescaleApplicationVersionDefault

func NewGetRescaleApplicationVersionDefault

func NewGetRescaleApplicationVersionDefault(code int) *GetRescaleApplicationVersionDefault

NewGetRescaleApplicationVersionDefault creates GetRescaleApplicationVersionDefault with default headers values

func (*GetRescaleApplicationVersionDefault) SetPayload

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

SetPayload sets the payload to the get rescale application version default response

func (*GetRescaleApplicationVersionDefault) SetStatusCode

func (o *GetRescaleApplicationVersionDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get rescale application version default response

func (*GetRescaleApplicationVersionDefault) WithPayload

WithPayload adds the payload to the get rescale application version default response

func (*GetRescaleApplicationVersionDefault) WithStatusCode

WithStatusCode adds the status to the get rescale application version default response

func (*GetRescaleApplicationVersionDefault) WriteResponse

WriteResponse to the client

type GetRescaleApplicationVersionHandler

type GetRescaleApplicationVersionHandler interface {
	Handle(GetRescaleApplicationVersionParams, *auth.Principal) middleware.Responder
}

GetRescaleApplicationVersionHandler interface for that can handle valid get rescale application version params

type GetRescaleApplicationVersionHandlerFunc

type GetRescaleApplicationVersionHandlerFunc func(GetRescaleApplicationVersionParams, *auth.Principal) middleware.Responder

GetRescaleApplicationVersionHandlerFunc turns a function with the right signature into a get rescale application version handler

func (GetRescaleApplicationVersionHandlerFunc) Handle

Handle executing the request and returning a response

type GetRescaleApplicationVersionOK

type GetRescaleApplicationVersionOK struct {

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

GetRescaleApplicationVersionOK OK

swagger:response getRescaleApplicationVersionOK

func NewGetRescaleApplicationVersionOK

func NewGetRescaleApplicationVersionOK() *GetRescaleApplicationVersionOK

NewGetRescaleApplicationVersionOK creates GetRescaleApplicationVersionOK with default headers values

func (*GetRescaleApplicationVersionOK) SetPayload

SetPayload sets the payload to the get rescale application version o k response

func (*GetRescaleApplicationVersionOK) WithPayload

WithPayload adds the payload to the get rescale application version o k response

func (*GetRescaleApplicationVersionOK) WriteResponse

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

WriteResponse to the client

type GetRescaleApplicationVersionParams

type GetRescaleApplicationVersionParams struct {

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

	/*Rescale application code
	  Required: true
	  In: path
	*/
	Code string
	/*Rescale application version
	  Required: true
	  In: path
	*/
	Version string
}

GetRescaleApplicationVersionParams contains all the bound params for the get rescale application version operation typically these are obtained from a http.Request

swagger:parameters getRescaleApplicationVersion

func NewGetRescaleApplicationVersionParams

func NewGetRescaleApplicationVersionParams() GetRescaleApplicationVersionParams

NewGetRescaleApplicationVersionParams creates a new GetRescaleApplicationVersionParams object no default values defined in spec.

func (*GetRescaleApplicationVersionParams) BindRequest

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 NewGetRescaleApplicationVersionParams() beforehand.

type GetRescaleApplicationVersionURL

type GetRescaleApplicationVersionURL struct {
	Code    string
	Version string
	// contains filtered or unexported fields
}

GetRescaleApplicationVersionURL generates an URL for the get rescale application version operation

func (*GetRescaleApplicationVersionURL) Build

Build a url path and query string

func (*GetRescaleApplicationVersionURL) BuildFull

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

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

func (*GetRescaleApplicationVersionURL) Must

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

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

func (*GetRescaleApplicationVersionURL) SetBasePath

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

String returns the string representation of the path with query string

func (*GetRescaleApplicationVersionURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetRescaleApplicationVersionURL) WithBasePath

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 GetRescaleCoreTypes

type GetRescaleCoreTypes struct {
	Context *middleware.Context
	Handler GetRescaleCoreTypesHandler
}

GetRescaleCoreTypes swagger:route GET /rescale/coretypes rescale getRescaleCoreTypes

returns Rescale CoreTypes

func NewGetRescaleCoreTypes

func NewGetRescaleCoreTypes(ctx *middleware.Context, handler GetRescaleCoreTypesHandler) *GetRescaleCoreTypes

NewGetRescaleCoreTypes creates a new http.Handler for the get rescale core types operation

func (*GetRescaleCoreTypes) ServeHTTP

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

type GetRescaleCoreTypesDefault

type GetRescaleCoreTypesDefault struct {

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

GetRescaleCoreTypesDefault Unexpected error

swagger:response getRescaleCoreTypesDefault

func NewGetRescaleCoreTypesDefault

func NewGetRescaleCoreTypesDefault(code int) *GetRescaleCoreTypesDefault

NewGetRescaleCoreTypesDefault creates GetRescaleCoreTypesDefault with default headers values

func (*GetRescaleCoreTypesDefault) SetPayload

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

SetPayload sets the payload to the get rescale core types default response

func (*GetRescaleCoreTypesDefault) SetStatusCode

func (o *GetRescaleCoreTypesDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get rescale core types default response

func (*GetRescaleCoreTypesDefault) WithPayload

WithPayload adds the payload to the get rescale core types default response

func (*GetRescaleCoreTypesDefault) WithStatusCode

WithStatusCode adds the status to the get rescale core types default response

func (*GetRescaleCoreTypesDefault) WriteResponse

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

WriteResponse to the client

type GetRescaleCoreTypesHandler

type GetRescaleCoreTypesHandler interface {
	Handle(GetRescaleCoreTypesParams, *auth.Principal) middleware.Responder
}

GetRescaleCoreTypesHandler interface for that can handle valid get rescale core types params

type GetRescaleCoreTypesHandlerFunc

type GetRescaleCoreTypesHandlerFunc func(GetRescaleCoreTypesParams, *auth.Principal) middleware.Responder

GetRescaleCoreTypesHandlerFunc turns a function with the right signature into a get rescale core types handler

func (GetRescaleCoreTypesHandlerFunc) Handle

Handle executing the request and returning a response

type GetRescaleCoreTypesOK

type GetRescaleCoreTypesOK struct {

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

GetRescaleCoreTypesOK OK

swagger:response getRescaleCoreTypesOK

func NewGetRescaleCoreTypesOK

func NewGetRescaleCoreTypesOK() *GetRescaleCoreTypesOK

NewGetRescaleCoreTypesOK creates GetRescaleCoreTypesOK with default headers values

func (*GetRescaleCoreTypesOK) SetPayload

func (o *GetRescaleCoreTypesOK) SetPayload(payload []*models.RescaleCoreType)

SetPayload sets the payload to the get rescale core types o k response

func (*GetRescaleCoreTypesOK) WithPayload

WithPayload adds the payload to the get rescale core types o k response

func (*GetRescaleCoreTypesOK) WriteResponse

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

WriteResponse to the client

type GetRescaleCoreTypesParams

type GetRescaleCoreTypesParams struct {

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

	/*Rescale Application version
	  In: query
	*/
	AppVer *string
	/*Required number of GPUs
	  In: query
	*/
	MinGpus *int64
}

GetRescaleCoreTypesParams contains all the bound params for the get rescale core types operation typically these are obtained from a http.Request

swagger:parameters getRescaleCoreTypes

func NewGetRescaleCoreTypesParams

func NewGetRescaleCoreTypesParams() GetRescaleCoreTypesParams

NewGetRescaleCoreTypesParams creates a new GetRescaleCoreTypesParams object no default values defined in spec.

func (*GetRescaleCoreTypesParams) BindRequest

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 NewGetRescaleCoreTypesParams() beforehand.

type GetRescaleCoreTypesURL

type GetRescaleCoreTypesURL struct {
	AppVer  *string
	MinGpus *int64
	// contains filtered or unexported fields
}

GetRescaleCoreTypesURL generates an URL for the get rescale core types operation

func (*GetRescaleCoreTypesURL) Build

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

Build a url path and query string

func (*GetRescaleCoreTypesURL) BuildFull

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

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

func (*GetRescaleCoreTypesURL) Must

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

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

func (*GetRescaleCoreTypesURL) SetBasePath

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

func (o *GetRescaleCoreTypesURL) String() string

String returns the string representation of the path with query string

func (*GetRescaleCoreTypesURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetRescaleCoreTypesURL) WithBasePath

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