problem

package
v0.0.0-...-a39a1f1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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 problem API

func (*Client) GetProblems

func (a *Client) GetProblems(params *GetProblemsParams, authInfo runtime.ClientAuthInfoWriter) (*GetProblemsOK, error)

GetProblems get problems API

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	GetProblems(params *GetProblemsParams, authInfo runtime.ClientAuthInfoWriter) (*GetProblemsOK, 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 problem API client.

type GetProblemsOK

type GetProblemsOK struct {
	Payload *models.Problems
}

GetProblemsOK handles this case with default header values.

successful operation

func NewGetProblemsOK

func NewGetProblemsOK() *GetProblemsOK

NewGetProblemsOK creates a GetProblemsOK with default headers values

func (*GetProblemsOK) Error

func (o *GetProblemsOK) Error() string

func (*GetProblemsOK) GetPayload

func (o *GetProblemsOK) GetPayload() *models.Problems

type GetProblemsParams

type GetProblemsParams struct {

	/*Fields*/
	Fields *string
	/*Locator*/
	Locator *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetProblemsParams contains all the parameters to send to the API endpoint for the get problems operation typically these are written to a http.Request

func NewGetProblemsParams

func NewGetProblemsParams() *GetProblemsParams

NewGetProblemsParams creates a new GetProblemsParams object with the default values initialized.

func NewGetProblemsParamsWithContext

func NewGetProblemsParamsWithContext(ctx context.Context) *GetProblemsParams

NewGetProblemsParamsWithContext creates a new GetProblemsParams object with the default values initialized, and the ability to set a context for a request

func NewGetProblemsParamsWithHTTPClient

func NewGetProblemsParamsWithHTTPClient(client *http.Client) *GetProblemsParams

NewGetProblemsParamsWithHTTPClient creates a new GetProblemsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetProblemsParamsWithTimeout

func NewGetProblemsParamsWithTimeout(timeout time.Duration) *GetProblemsParams

NewGetProblemsParamsWithTimeout creates a new GetProblemsParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetProblemsParams) SetContext

func (o *GetProblemsParams) SetContext(ctx context.Context)

SetContext adds the context to the get problems params

func (*GetProblemsParams) SetFields

func (o *GetProblemsParams) SetFields(fields *string)

SetFields adds the fields to the get problems params

func (*GetProblemsParams) SetHTTPClient

func (o *GetProblemsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get problems params

func (*GetProblemsParams) SetLocator

func (o *GetProblemsParams) SetLocator(locator *string)

SetLocator adds the locator to the get problems params

func (*GetProblemsParams) SetTimeout

func (o *GetProblemsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get problems params

func (*GetProblemsParams) WithContext

func (o *GetProblemsParams) WithContext(ctx context.Context) *GetProblemsParams

WithContext adds the context to the get problems params

func (*GetProblemsParams) WithFields

func (o *GetProblemsParams) WithFields(fields *string) *GetProblemsParams

WithFields adds the fields to the get problems params

func (*GetProblemsParams) WithHTTPClient

func (o *GetProblemsParams) WithHTTPClient(client *http.Client) *GetProblemsParams

WithHTTPClient adds the HTTPClient to the get problems params

func (*GetProblemsParams) WithLocator

func (o *GetProblemsParams) WithLocator(locator *string) *GetProblemsParams

WithLocator adds the locator to the get problems params

func (*GetProblemsParams) WithTimeout

func (o *GetProblemsParams) WithTimeout(timeout time.Duration) *GetProblemsParams

WithTimeout adds the timeout to the get problems params

func (*GetProblemsParams) WriteToRequest

func (o *GetProblemsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetProblemsReader

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

GetProblemsReader is a Reader for the GetProblems structure.

func (*GetProblemsReader) ReadResponse

func (o *GetProblemsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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