Documentation
¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type ReporterAPIGenericReportDefault
- func (o *ReporterAPIGenericReportDefault) Code() int
- func (o *ReporterAPIGenericReportDefault) Error() string
- func (o *ReporterAPIGenericReportDefault) GetPayload() *models.RPCStatus
- func (o *ReporterAPIGenericReportDefault) IsClientError() bool
- func (o *ReporterAPIGenericReportDefault) IsCode(code int) bool
- func (o *ReporterAPIGenericReportDefault) IsRedirect() bool
- func (o *ReporterAPIGenericReportDefault) IsServerError() bool
- func (o *ReporterAPIGenericReportDefault) IsSuccess() bool
- func (o *ReporterAPIGenericReportDefault) String() string
- type ReporterAPIGenericReportOK
- func (o *ReporterAPIGenericReportOK) Code() int
- func (o *ReporterAPIGenericReportOK) Error() string
- func (o *ReporterAPIGenericReportOK) GetPayload() models.V1ReportResponse
- func (o *ReporterAPIGenericReportOK) IsClientError() bool
- func (o *ReporterAPIGenericReportOK) IsCode(code int) bool
- func (o *ReporterAPIGenericReportOK) IsRedirect() bool
- func (o *ReporterAPIGenericReportOK) IsServerError() bool
- func (o *ReporterAPIGenericReportOK) IsSuccess() bool
- func (o *ReporterAPIGenericReportOK) String() string
- type ReporterAPIGenericReportParams
- func NewReporterAPIGenericReportParams() *ReporterAPIGenericReportParams
- func NewReporterAPIGenericReportParamsWithContext(ctx context.Context) *ReporterAPIGenericReportParams
- func NewReporterAPIGenericReportParamsWithHTTPClient(client *http.Client) *ReporterAPIGenericReportParams
- func NewReporterAPIGenericReportParamsWithTimeout(timeout time.Duration) *ReporterAPIGenericReportParams
- func (o *ReporterAPIGenericReportParams) SetBody(body *models.V1ReportRequest)
- func (o *ReporterAPIGenericReportParams) SetContext(ctx context.Context)
- func (o *ReporterAPIGenericReportParams) SetDefaults()
- func (o *ReporterAPIGenericReportParams) SetHTTPClient(client *http.Client)
- func (o *ReporterAPIGenericReportParams) SetTimeout(timeout time.Duration)
- func (o *ReporterAPIGenericReportParams) WithBody(body *models.V1ReportRequest) *ReporterAPIGenericReportParams
- func (o *ReporterAPIGenericReportParams) WithContext(ctx context.Context) *ReporterAPIGenericReportParams
- func (o *ReporterAPIGenericReportParams) WithDefaults() *ReporterAPIGenericReportParams
- func (o *ReporterAPIGenericReportParams) WithHTTPClient(client *http.Client) *ReporterAPIGenericReportParams
- func (o *ReporterAPIGenericReportParams) WithTimeout(timeout time.Duration) *ReporterAPIGenericReportParams
- func (o *ReporterAPIGenericReportParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ReporterAPIGenericReportReader
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 reporter api API
func (*Client) ReporterAPIGenericReport ¶
func (a *Client) ReporterAPIGenericReport(params *ReporterAPIGenericReportParams, opts ...ClientOption) (*ReporterAPIGenericReportOK, error)
ReporterAPIGenericReport generics report
GenericReport is used to submit generic telemetry reports to telemetryd service.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption may be used to customize the behavior of Client methods.
type ClientService ¶
type ClientService interface { ReporterAPIGenericReport(params *ReporterAPIGenericReportParams, opts ...ClientOption) (*ReporterAPIGenericReportOK, 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 reporter api API client.
func NewClientWithBasicAuth ¶
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new reporter api API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.
func NewClientWithBearerToken ¶
func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService
New creates a new reporter api API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.
type ReporterAPIGenericReportDefault ¶
type ReporterAPIGenericReportDefault struct { Payload *models.RPCStatus // contains filtered or unexported fields }
ReporterAPIGenericReportDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewReporterAPIGenericReportDefault ¶
func NewReporterAPIGenericReportDefault(code int) *ReporterAPIGenericReportDefault
NewReporterAPIGenericReportDefault creates a ReporterAPIGenericReportDefault with default headers values
func (*ReporterAPIGenericReportDefault) Code ¶
func (o *ReporterAPIGenericReportDefault) Code() int
Code gets the status code for the reporter API generic report default response
func (*ReporterAPIGenericReportDefault) Error ¶
func (o *ReporterAPIGenericReportDefault) Error() string
func (*ReporterAPIGenericReportDefault) GetPayload ¶
func (o *ReporterAPIGenericReportDefault) GetPayload() *models.RPCStatus
func (*ReporterAPIGenericReportDefault) IsClientError ¶
func (o *ReporterAPIGenericReportDefault) IsClientError() bool
IsClientError returns true when this reporter API generic report default response has a 4xx status code
func (*ReporterAPIGenericReportDefault) IsCode ¶
func (o *ReporterAPIGenericReportDefault) IsCode(code int) bool
IsCode returns true when this reporter API generic report default response a status code equal to that given
func (*ReporterAPIGenericReportDefault) IsRedirect ¶
func (o *ReporterAPIGenericReportDefault) IsRedirect() bool
IsRedirect returns true when this reporter API generic report default response has a 3xx status code
func (*ReporterAPIGenericReportDefault) IsServerError ¶
func (o *ReporterAPIGenericReportDefault) IsServerError() bool
IsServerError returns true when this reporter API generic report default response has a 5xx status code
func (*ReporterAPIGenericReportDefault) IsSuccess ¶
func (o *ReporterAPIGenericReportDefault) IsSuccess() bool
IsSuccess returns true when this reporter API generic report default response has a 2xx status code
func (*ReporterAPIGenericReportDefault) String ¶
func (o *ReporterAPIGenericReportDefault) String() string
type ReporterAPIGenericReportOK ¶
type ReporterAPIGenericReportOK struct {
Payload models.V1ReportResponse
}
ReporterAPIGenericReportOK describes a response with status code 200, with default header values.
A successful response.
func NewReporterAPIGenericReportOK ¶
func NewReporterAPIGenericReportOK() *ReporterAPIGenericReportOK
NewReporterAPIGenericReportOK creates a ReporterAPIGenericReportOK with default headers values
func (*ReporterAPIGenericReportOK) Code ¶
func (o *ReporterAPIGenericReportOK) Code() int
Code gets the status code for the reporter Api generic report o k response
func (*ReporterAPIGenericReportOK) Error ¶
func (o *ReporterAPIGenericReportOK) Error() string
func (*ReporterAPIGenericReportOK) GetPayload ¶
func (o *ReporterAPIGenericReportOK) GetPayload() models.V1ReportResponse
func (*ReporterAPIGenericReportOK) IsClientError ¶
func (o *ReporterAPIGenericReportOK) IsClientError() bool
IsClientError returns true when this reporter Api generic report o k response has a 4xx status code
func (*ReporterAPIGenericReportOK) IsCode ¶
func (o *ReporterAPIGenericReportOK) IsCode(code int) bool
IsCode returns true when this reporter Api generic report o k response a status code equal to that given
func (*ReporterAPIGenericReportOK) IsRedirect ¶
func (o *ReporterAPIGenericReportOK) IsRedirect() bool
IsRedirect returns true when this reporter Api generic report o k response has a 3xx status code
func (*ReporterAPIGenericReportOK) IsServerError ¶
func (o *ReporterAPIGenericReportOK) IsServerError() bool
IsServerError returns true when this reporter Api generic report o k response has a 5xx status code
func (*ReporterAPIGenericReportOK) IsSuccess ¶
func (o *ReporterAPIGenericReportOK) IsSuccess() bool
IsSuccess returns true when this reporter Api generic report o k response has a 2xx status code
func (*ReporterAPIGenericReportOK) String ¶
func (o *ReporterAPIGenericReportOK) String() string
type ReporterAPIGenericReportParams ¶
type ReporterAPIGenericReportParams struct { // Body. Body *models.V1ReportRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ReporterAPIGenericReportParams contains all the parameters to send to the API endpoint
for the reporter API generic report operation. Typically these are written to a http.Request.
func NewReporterAPIGenericReportParams ¶
func NewReporterAPIGenericReportParams() *ReporterAPIGenericReportParams
NewReporterAPIGenericReportParams creates a new ReporterAPIGenericReportParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewReporterAPIGenericReportParamsWithContext ¶
func NewReporterAPIGenericReportParamsWithContext(ctx context.Context) *ReporterAPIGenericReportParams
NewReporterAPIGenericReportParamsWithContext creates a new ReporterAPIGenericReportParams object with the ability to set a context for a request.
func NewReporterAPIGenericReportParamsWithHTTPClient ¶
func NewReporterAPIGenericReportParamsWithHTTPClient(client *http.Client) *ReporterAPIGenericReportParams
NewReporterAPIGenericReportParamsWithHTTPClient creates a new ReporterAPIGenericReportParams object with the ability to set a custom HTTPClient for a request.
func NewReporterAPIGenericReportParamsWithTimeout ¶
func NewReporterAPIGenericReportParamsWithTimeout(timeout time.Duration) *ReporterAPIGenericReportParams
NewReporterAPIGenericReportParamsWithTimeout creates a new ReporterAPIGenericReportParams object with the ability to set a timeout on a request.
func (*ReporterAPIGenericReportParams) SetBody ¶
func (o *ReporterAPIGenericReportParams) SetBody(body *models.V1ReportRequest)
SetBody adds the body to the reporter API generic report params
func (*ReporterAPIGenericReportParams) SetContext ¶
func (o *ReporterAPIGenericReportParams) SetContext(ctx context.Context)
SetContext adds the context to the reporter API generic report params
func (*ReporterAPIGenericReportParams) SetDefaults ¶
func (o *ReporterAPIGenericReportParams) SetDefaults()
SetDefaults hydrates default values in the reporter API generic report params (not the query body).
All values with no default are reset to their zero value.
func (*ReporterAPIGenericReportParams) SetHTTPClient ¶
func (o *ReporterAPIGenericReportParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the reporter API generic report params
func (*ReporterAPIGenericReportParams) SetTimeout ¶
func (o *ReporterAPIGenericReportParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the reporter API generic report params
func (*ReporterAPIGenericReportParams) WithBody ¶
func (o *ReporterAPIGenericReportParams) WithBody(body *models.V1ReportRequest) *ReporterAPIGenericReportParams
WithBody adds the body to the reporter API generic report params
func (*ReporterAPIGenericReportParams) WithContext ¶
func (o *ReporterAPIGenericReportParams) WithContext(ctx context.Context) *ReporterAPIGenericReportParams
WithContext adds the context to the reporter API generic report params
func (*ReporterAPIGenericReportParams) WithDefaults ¶
func (o *ReporterAPIGenericReportParams) WithDefaults() *ReporterAPIGenericReportParams
WithDefaults hydrates default values in the reporter API generic report params (not the query body).
All values with no default are reset to their zero value.
func (*ReporterAPIGenericReportParams) WithHTTPClient ¶
func (o *ReporterAPIGenericReportParams) WithHTTPClient(client *http.Client) *ReporterAPIGenericReportParams
WithHTTPClient adds the HTTPClient to the reporter API generic report params
func (*ReporterAPIGenericReportParams) WithTimeout ¶
func (o *ReporterAPIGenericReportParams) WithTimeout(timeout time.Duration) *ReporterAPIGenericReportParams
WithTimeout adds the timeout to the reporter API generic report params
func (*ReporterAPIGenericReportParams) WriteToRequest ¶
func (o *ReporterAPIGenericReportParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ReporterAPIGenericReportReader ¶
type ReporterAPIGenericReportReader struct {
// contains filtered or unexported fields
}
ReporterAPIGenericReportReader is a Reader for the ReporterAPIGenericReport structure.
func (*ReporterAPIGenericReportReader) ReadResponse ¶
func (o *ReporterAPIGenericReportReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.