exec_task

package
v0.0.0-...-037b8db Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const GetExecuteTaskAgentBadRequestCode int = 400

GetExecuteTaskAgentBadRequestCode is the HTTP code returned for type GetExecuteTaskAgentBadRequest

View Source
const GetExecuteTaskAgentOKCode int = 200

GetExecuteTaskAgentOKCode is the HTTP code returned for type GetExecuteTaskAgentOK

Variables

This section is empty.

Functions

This section is empty.

Types

type GetExecuteTaskAgent

type GetExecuteTaskAgent struct {
	Context *middleware.Context
	Handler GetExecuteTaskAgentHandler
}

GetExecuteTaskAgent swagger:route GET /executeTask/{agent} execTask getExecuteTaskAgent

Get task for executiton

func NewGetExecuteTaskAgent

func NewGetExecuteTaskAgent(ctx *middleware.Context, handler GetExecuteTaskAgentHandler) *GetExecuteTaskAgent

NewGetExecuteTaskAgent creates a new http.Handler for the get execute task agent operation

func (*GetExecuteTaskAgent) ServeHTTP

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

type GetExecuteTaskAgentBadRequest

type GetExecuteTaskAgentBadRequest struct {

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

GetExecuteTaskAgentBadRequest Bad Request

swagger:response getExecuteTaskAgentBadRequest

func NewGetExecuteTaskAgentBadRequest

func NewGetExecuteTaskAgentBadRequest() *GetExecuteTaskAgentBadRequest

NewGetExecuteTaskAgentBadRequest creates GetExecuteTaskAgentBadRequest with default headers values

func (*GetExecuteTaskAgentBadRequest) SetPayload

func (o *GetExecuteTaskAgentBadRequest) SetPayload(payload *models.ResponseError)

SetPayload sets the payload to the get execute task agent bad request response

func (*GetExecuteTaskAgentBadRequest) WithPayload

WithPayload adds the payload to the get execute task agent bad request response

func (*GetExecuteTaskAgentBadRequest) WriteResponse

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

WriteResponse to the client

type GetExecuteTaskAgentHandler

type GetExecuteTaskAgentHandler interface {
	Handle(GetExecuteTaskAgentParams) middleware.Responder
}

GetExecuteTaskAgentHandler interface for that can handle valid get execute task agent params

type GetExecuteTaskAgentHandlerFunc

type GetExecuteTaskAgentHandlerFunc func(GetExecuteTaskAgentParams) middleware.Responder

GetExecuteTaskAgentHandlerFunc turns a function with the right signature into a get execute task agent handler

func (GetExecuteTaskAgentHandlerFunc) Handle

Handle executing the request and returning a response

type GetExecuteTaskAgentOK

type GetExecuteTaskAgentOK struct {

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

GetExecuteTaskAgentOK OK

swagger:response getExecuteTaskAgentOK

func NewGetExecuteTaskAgentOK

func NewGetExecuteTaskAgentOK() *GetExecuteTaskAgentOK

NewGetExecuteTaskAgentOK creates GetExecuteTaskAgentOK with default headers values

func (*GetExecuteTaskAgentOK) SetPayload

func (o *GetExecuteTaskAgentOK) SetPayload(payload *models.RequestTask)

SetPayload sets the payload to the get execute task agent o k response

func (*GetExecuteTaskAgentOK) WithPayload

WithPayload adds the payload to the get execute task agent o k response

func (*GetExecuteTaskAgentOK) WriteResponse

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

WriteResponse to the client

type GetExecuteTaskAgentParams

type GetExecuteTaskAgentParams struct {

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

	/*
	  Required: true
	  In: path
	*/
	Agent string
}

GetExecuteTaskAgentParams contains all the bound params for the get execute task agent operation typically these are obtained from a http.Request

swagger:parameters GetExecuteTaskAgent

func NewGetExecuteTaskAgentParams

func NewGetExecuteTaskAgentParams() GetExecuteTaskAgentParams

NewGetExecuteTaskAgentParams creates a new GetExecuteTaskAgentParams object no default values defined in spec.

func (*GetExecuteTaskAgentParams) 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 NewGetExecuteTaskAgentParams() beforehand.

type GetExecuteTaskAgentURL

type GetExecuteTaskAgentURL struct {
	Agent string
	// contains filtered or unexported fields
}

GetExecuteTaskAgentURL generates an URL for the get execute task agent operation

func (*GetExecuteTaskAgentURL) Build

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

Build a url path and query string

func (*GetExecuteTaskAgentURL) BuildFull

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

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

func (*GetExecuteTaskAgentURL) Must

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

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

func (*GetExecuteTaskAgentURL) SetBasePath

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

func (o *GetExecuteTaskAgentURL) String() string

String returns the string representation of the path with query string

func (*GetExecuteTaskAgentURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetExecuteTaskAgentURL) 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