statistic

package
v5.3.3 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: MIT 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 statistic API

func (*Client) GetStatistic

func (a *Client) GetStatistic(params *GetStatisticParams, authInfo runtime.ClientAuthInfoWriter) (*GetStatisticOK, error)

GetStatistic gets the statistic information about the projects and repositories

Get the statistic information about the projects and repositories

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	GetStatistic(params *GetStatisticParams, authInfo runtime.ClientAuthInfoWriter) (*GetStatisticOK, 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 statistic API client.

type GetStatisticInternalServerError

type GetStatisticInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetStatisticInternalServerError handles this case with default header values.

Internal server error

func NewGetStatisticInternalServerError

func NewGetStatisticInternalServerError() *GetStatisticInternalServerError

NewGetStatisticInternalServerError creates a GetStatisticInternalServerError with default headers values

func (*GetStatisticInternalServerError) Error

func (*GetStatisticInternalServerError) GetPayload

func (o *GetStatisticInternalServerError) GetPayload() *model.Errors

type GetStatisticOK

type GetStatisticOK struct {
	Payload *model.Statistic
}

GetStatisticOK handles this case with default header values.

The statistic information

func NewGetStatisticOK

func NewGetStatisticOK() *GetStatisticOK

NewGetStatisticOK creates a GetStatisticOK with default headers values

func (*GetStatisticOK) Error

func (o *GetStatisticOK) Error() string

func (*GetStatisticOK) GetPayload

func (o *GetStatisticOK) GetPayload() *model.Statistic

type GetStatisticParams

type GetStatisticParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string

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

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

func NewGetStatisticParams

func NewGetStatisticParams() *GetStatisticParams

NewGetStatisticParams creates a new GetStatisticParams object with the default values initialized.

func NewGetStatisticParamsWithContext

func NewGetStatisticParamsWithContext(ctx context.Context) *GetStatisticParams

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

func NewGetStatisticParamsWithHTTPClient

func NewGetStatisticParamsWithHTTPClient(client *http.Client) *GetStatisticParams

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

func NewGetStatisticParamsWithTimeout

func NewGetStatisticParamsWithTimeout(timeout time.Duration) *GetStatisticParams

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

func (*GetStatisticParams) SetContext

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

SetContext adds the context to the get statistic params

func (*GetStatisticParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get statistic params

func (*GetStatisticParams) SetTimeout

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

SetTimeout adds the timeout to the get statistic params

func (*GetStatisticParams) SetXRequestID

func (o *GetStatisticParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the get statistic params

func (*GetStatisticParams) WithContext

WithContext adds the context to the get statistic params

func (*GetStatisticParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get statistic params

func (*GetStatisticParams) WithTimeout

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

WithTimeout adds the timeout to the get statistic params

func (*GetStatisticParams) WithXRequestID

func (o *GetStatisticParams) WithXRequestID(xRequestID *string) *GetStatisticParams

WithXRequestID adds the xRequestID to the get statistic params

func (*GetStatisticParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetStatisticReader

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

GetStatisticReader is a Reader for the GetStatistic structure.

func (*GetStatisticReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetStatisticUnauthorized

type GetStatisticUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetStatisticUnauthorized handles this case with default header values.

Unauthorized

func NewGetStatisticUnauthorized

func NewGetStatisticUnauthorized() *GetStatisticUnauthorized

NewGetStatisticUnauthorized creates a GetStatisticUnauthorized with default headers values

func (*GetStatisticUnauthorized) Error

func (o *GetStatisticUnauthorized) Error() string

func (*GetStatisticUnauthorized) GetPayload

func (o *GetStatisticUnauthorized) GetPayload() *model.Errors

Jump to

Keyboard shortcuts

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