report

package
v0.0.0-...-2439cfa Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAcceptApplicationJSON

func WithAcceptApplicationJSON(r *runtime.ClientOperation)

WithAcceptApplicationJSON sets the Accept header to "application/json".

func WithAcceptApplicationXML

func WithAcceptApplicationXML(r *runtime.ClientOperation)

WithAcceptApplicationXML sets the Accept header to "application/xml".

func WithAcceptTextJSON

func WithAcceptTextJSON(r *runtime.ClientOperation)

WithAcceptTextJSON sets the Accept header to "text/json".

func WithAcceptTextXML

func WithAcceptTextXML(r *runtime.ClientOperation)

WithAcceptTextXML sets the Accept header to "text/xml".

Types

type Client

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

Client for report API

func (*Client) ReportReportDetailGet

func (a *Client) ReportReportDetailGet(params *ReportReportDetailGetParams, opts ...ClientOption) (*ReportReportDetailGetOK, error)

ReportReportDetailGet report report detail get API

func (*Client) ReportReportListGet

func (a *Client) ReportReportListGet(params *ReportReportListGetParams, opts ...ClientOption) (*ReportReportListGetOK, error)

ReportReportListGet report report list get API

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.

func WithAccept

func WithAccept(mime string) ClientOption

WithAccept allows the client to force the Accept header to negotiate a specific Producer from the server.

You may use this option to set arbitrary extensions to your MIME media type.

type ClientService

type ClientService interface {
	ReportReportDetailGet(params *ReportReportDetailGetParams, opts ...ClientOption) (*ReportReportDetailGetOK, error)

	ReportReportListGet(params *ReportReportListGetParams, opts ...ClientOption) (*ReportReportListGetOK, 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 report API client.

func NewClientWithBasicAuth

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new report 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 report 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 ReportReportDetailGetOK

type ReportReportDetailGetOK struct {
	Payload *model.ReportDetailModel
}

ReportReportDetailGetOK describes a response with status code 200, with default header values.

Returns the result and name of the report specified by the reportID

func NewReportReportDetailGetOK

func NewReportReportDetailGetOK() *ReportReportDetailGetOK

NewReportReportDetailGetOK creates a ReportReportDetailGetOK with default headers values

func (*ReportReportDetailGetOK) Code

func (o *ReportReportDetailGetOK) Code() int

Code gets the status code for the report report detail get o k response

func (*ReportReportDetailGetOK) Error

func (o *ReportReportDetailGetOK) Error() string

func (*ReportReportDetailGetOK) GetPayload

func (*ReportReportDetailGetOK) IsClientError

func (o *ReportReportDetailGetOK) IsClientError() bool

IsClientError returns true when this report report detail get o k response has a 4xx status code

func (*ReportReportDetailGetOK) IsCode

func (o *ReportReportDetailGetOK) IsCode(code int) bool

IsCode returns true when this report report detail get o k response a status code equal to that given

func (*ReportReportDetailGetOK) IsRedirect

func (o *ReportReportDetailGetOK) IsRedirect() bool

IsRedirect returns true when this report report detail get o k response has a 3xx status code

func (*ReportReportDetailGetOK) IsServerError

func (o *ReportReportDetailGetOK) IsServerError() bool

IsServerError returns true when this report report detail get o k response has a 5xx status code

func (*ReportReportDetailGetOK) IsSuccess

func (o *ReportReportDetailGetOK) IsSuccess() bool

IsSuccess returns true when this report report detail get o k response has a 2xx status code

func (*ReportReportDetailGetOK) String

func (o *ReportReportDetailGetOK) String() string

type ReportReportDetailGetParams

type ReportReportDetailGetParams struct {

	// ReportID.
	//
	// Format: int32
	ReportID int32

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

ReportReportDetailGetParams contains all the parameters to send to the API endpoint

for the report report detail get operation.

Typically these are written to a http.Request.

func NewReportReportDetailGetParams

func NewReportReportDetailGetParams() *ReportReportDetailGetParams

NewReportReportDetailGetParams creates a new ReportReportDetailGetParams 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 NewReportReportDetailGetParamsWithContext

func NewReportReportDetailGetParamsWithContext(ctx context.Context) *ReportReportDetailGetParams

NewReportReportDetailGetParamsWithContext creates a new ReportReportDetailGetParams object with the ability to set a context for a request.

func NewReportReportDetailGetParamsWithHTTPClient

func NewReportReportDetailGetParamsWithHTTPClient(client *http.Client) *ReportReportDetailGetParams

NewReportReportDetailGetParamsWithHTTPClient creates a new ReportReportDetailGetParams object with the ability to set a custom HTTPClient for a request.

func NewReportReportDetailGetParamsWithTimeout

func NewReportReportDetailGetParamsWithTimeout(timeout time.Duration) *ReportReportDetailGetParams

NewReportReportDetailGetParamsWithTimeout creates a new ReportReportDetailGetParams object with the ability to set a timeout on a request.

func (*ReportReportDetailGetParams) SetContext

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

SetContext adds the context to the report report detail get params

func (*ReportReportDetailGetParams) SetDefaults

func (o *ReportReportDetailGetParams) SetDefaults()

SetDefaults hydrates default values in the report report detail get params (not the query body).

All values with no default are reset to their zero value.

func (*ReportReportDetailGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the report report detail get params

func (*ReportReportDetailGetParams) SetReportID

func (o *ReportReportDetailGetParams) SetReportID(reportID int32)

SetReportID adds the reportId to the report report detail get params

func (*ReportReportDetailGetParams) SetTimeout

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

SetTimeout adds the timeout to the report report detail get params

func (*ReportReportDetailGetParams) WithContext

WithContext adds the context to the report report detail get params

func (*ReportReportDetailGetParams) WithDefaults

WithDefaults hydrates default values in the report report detail get params (not the query body).

All values with no default are reset to their zero value.

func (*ReportReportDetailGetParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the report report detail get params

func (*ReportReportDetailGetParams) WithReportID

WithReportID adds the reportID to the report report detail get params

func (*ReportReportDetailGetParams) WithTimeout

WithTimeout adds the timeout to the report report detail get params

func (*ReportReportDetailGetParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ReportReportDetailGetReader

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

ReportReportDetailGetReader is a Reader for the ReportReportDetailGet structure.

func (*ReportReportDetailGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ReportReportListGetOK

type ReportReportListGetOK struct {
	Payload []*model.ReportsExportOverViewModel
}

ReportReportListGetOK describes a response with status code 200, with default header values.

Returns a list of available reports for the current user

func NewReportReportListGetOK

func NewReportReportListGetOK() *ReportReportListGetOK

NewReportReportListGetOK creates a ReportReportListGetOK with default headers values

func (*ReportReportListGetOK) Code

func (o *ReportReportListGetOK) Code() int

Code gets the status code for the report report list get o k response

func (*ReportReportListGetOK) Error

func (o *ReportReportListGetOK) Error() string

func (*ReportReportListGetOK) GetPayload

func (*ReportReportListGetOK) IsClientError

func (o *ReportReportListGetOK) IsClientError() bool

IsClientError returns true when this report report list get o k response has a 4xx status code

func (*ReportReportListGetOK) IsCode

func (o *ReportReportListGetOK) IsCode(code int) bool

IsCode returns true when this report report list get o k response a status code equal to that given

func (*ReportReportListGetOK) IsRedirect

func (o *ReportReportListGetOK) IsRedirect() bool

IsRedirect returns true when this report report list get o k response has a 3xx status code

func (*ReportReportListGetOK) IsServerError

func (o *ReportReportListGetOK) IsServerError() bool

IsServerError returns true when this report report list get o k response has a 5xx status code

func (*ReportReportListGetOK) IsSuccess

func (o *ReportReportListGetOK) IsSuccess() bool

IsSuccess returns true when this report report list get o k response has a 2xx status code

func (*ReportReportListGetOK) String

func (o *ReportReportListGetOK) String() string

type ReportReportListGetParams

type ReportReportListGetParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ReportReportListGetParams contains all the parameters to send to the API endpoint

for the report report list get operation.

Typically these are written to a http.Request.

func NewReportReportListGetParams

func NewReportReportListGetParams() *ReportReportListGetParams

NewReportReportListGetParams creates a new ReportReportListGetParams 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 NewReportReportListGetParamsWithContext

func NewReportReportListGetParamsWithContext(ctx context.Context) *ReportReportListGetParams

NewReportReportListGetParamsWithContext creates a new ReportReportListGetParams object with the ability to set a context for a request.

func NewReportReportListGetParamsWithHTTPClient

func NewReportReportListGetParamsWithHTTPClient(client *http.Client) *ReportReportListGetParams

NewReportReportListGetParamsWithHTTPClient creates a new ReportReportListGetParams object with the ability to set a custom HTTPClient for a request.

func NewReportReportListGetParamsWithTimeout

func NewReportReportListGetParamsWithTimeout(timeout time.Duration) *ReportReportListGetParams

NewReportReportListGetParamsWithTimeout creates a new ReportReportListGetParams object with the ability to set a timeout on a request.

func (*ReportReportListGetParams) SetContext

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

SetContext adds the context to the report report list get params

func (*ReportReportListGetParams) SetDefaults

func (o *ReportReportListGetParams) SetDefaults()

SetDefaults hydrates default values in the report report list get params (not the query body).

All values with no default are reset to their zero value.

func (*ReportReportListGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the report report list get params

func (*ReportReportListGetParams) SetTimeout

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

SetTimeout adds the timeout to the report report list get params

func (*ReportReportListGetParams) WithContext

WithContext adds the context to the report report list get params

func (*ReportReportListGetParams) WithDefaults

WithDefaults hydrates default values in the report report list get params (not the query body).

All values with no default are reset to their zero value.

func (*ReportReportListGetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the report report list get params

func (*ReportReportListGetParams) WithTimeout

WithTimeout adds the timeout to the report report list get params

func (*ReportReportListGetParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ReportReportListGetReader

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

ReportReportListGetReader is a Reader for the ReportReportListGet structure.

func (*ReportReportListGetReader) ReadResponse

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