reporter_api

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2025 License: Apache-2.0 Imports: 11 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 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

Code gets the status code for the reporter API generic report default response

func (*ReporterAPIGenericReportDefault) Error

func (*ReporterAPIGenericReportDefault) GetPayload

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

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 (*ReporterAPIGenericReportOK) GetPayload

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

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

WithBody adds the body to the reporter API generic report params

func (*ReporterAPIGenericReportParams) WithContext

WithContext adds the context to the reporter API generic report params

func (*ReporterAPIGenericReportParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the reporter API generic report params

func (*ReporterAPIGenericReportParams) WithTimeout

WithTimeout adds the timeout to the reporter API generic report params

func (*ReporterAPIGenericReportParams) WriteToRequest

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.

Jump to

Keyboard shortcuts

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