Documentation ¶
Index ¶
- type Client
- type ClientService
- type PostTaskNoContent
- type PostTaskParams
- func (o *PostTaskParams) SetBody(body *models.RequestTask)
- func (o *PostTaskParams) SetContext(ctx context.Context)
- func (o *PostTaskParams) SetHTTPClient(client *http.Client)
- func (o *PostTaskParams) SetTimeout(timeout time.Duration)
- func (o *PostTaskParams) WithBody(body *models.RequestTask) *PostTaskParams
- func (o *PostTaskParams) WithContext(ctx context.Context) *PostTaskParams
- func (o *PostTaskParams) WithHTTPClient(client *http.Client) *PostTaskParams
- func (o *PostTaskParams) WithTimeout(timeout time.Duration) *PostTaskParams
- func (o *PostTaskParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostTaskReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for create task API
func (*Client) PostTask ¶
func (a *Client) PostTask(params *PostTaskParams) (*PostTaskNoContent, error)
PostTask creates new task
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface { PostTask(params *PostTaskParams) (*PostTaskNoContent, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new create task API client.
type PostTaskNoContent ¶
type PostTaskNoContent struct { }
PostTaskNoContent handles this case with default header values.
OK No Content
func NewPostTaskNoContent ¶
func NewPostTaskNoContent() *PostTaskNoContent
NewPostTaskNoContent creates a PostTaskNoContent with default headers values
func (*PostTaskNoContent) Error ¶
func (o *PostTaskNoContent) Error() string
type PostTaskParams ¶
type PostTaskParams struct { /*Body*/ Body *models.RequestTask Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostTaskParams contains all the parameters to send to the API endpoint for the post task operation typically these are written to a http.Request
func NewPostTaskParams ¶
func NewPostTaskParams() *PostTaskParams
NewPostTaskParams creates a new PostTaskParams object with the default values initialized.
func NewPostTaskParamsWithContext ¶
func NewPostTaskParamsWithContext(ctx context.Context) *PostTaskParams
NewPostTaskParamsWithContext creates a new PostTaskParams object with the default values initialized, and the ability to set a context for a request
func NewPostTaskParamsWithHTTPClient ¶
func NewPostTaskParamsWithHTTPClient(client *http.Client) *PostTaskParams
NewPostTaskParamsWithHTTPClient creates a new PostTaskParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewPostTaskParamsWithTimeout ¶
func NewPostTaskParamsWithTimeout(timeout time.Duration) *PostTaskParams
NewPostTaskParamsWithTimeout creates a new PostTaskParams object with the default values initialized, and the ability to set a timeout on a request
func (*PostTaskParams) SetBody ¶
func (o *PostTaskParams) SetBody(body *models.RequestTask)
SetBody adds the body to the post task params
func (*PostTaskParams) SetContext ¶
func (o *PostTaskParams) SetContext(ctx context.Context)
SetContext adds the context to the post task params
func (*PostTaskParams) SetHTTPClient ¶
func (o *PostTaskParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post task params
func (*PostTaskParams) SetTimeout ¶
func (o *PostTaskParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post task params
func (*PostTaskParams) WithBody ¶
func (o *PostTaskParams) WithBody(body *models.RequestTask) *PostTaskParams
WithBody adds the body to the post task params
func (*PostTaskParams) WithContext ¶
func (o *PostTaskParams) WithContext(ctx context.Context) *PostTaskParams
WithContext adds the context to the post task params
func (*PostTaskParams) WithHTTPClient ¶
func (o *PostTaskParams) WithHTTPClient(client *http.Client) *PostTaskParams
WithHTTPClient adds the HTTPClient to the post task params
func (*PostTaskParams) WithTimeout ¶
func (o *PostTaskParams) WithTimeout(timeout time.Duration) *PostTaskParams
WithTimeout adds the timeout to the post task params
func (*PostTaskParams) WriteToRequest ¶
func (o *PostTaskParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostTaskReader ¶
type PostTaskReader struct {
// contains filtered or unexported fields
}
PostTaskReader is a Reader for the PostTask structure.
func (*PostTaskReader) ReadResponse ¶
func (o *PostTaskReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.