statistic

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 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 API

type API interface {
	/*
	   GetStatistic gets the statistic information about the projects and repositories

	   Get the statistic information about the projects and repositories*/
	GetStatistic(ctx context.Context, params *GetStatisticParams) (*GetStatisticOK, error)
}

API is the interface of the statistic client

type Client

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

Client for statistic API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry, authInfo runtime.ClientAuthInfoWriter) *Client

New creates a new statistic API client.

func (*Client) GetStatistic

func (a *Client) GetStatistic(ctx context.Context, params *GetStatisticParams) (*GetStatisticOK, error)

GetStatistic gets the statistic information about the projects and repositories

Get the statistic information about the projects and repositories

type GetStatisticInternalServerError

type GetStatisticInternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

GetStatisticInternalServerError describes a response with status code 500, 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 (*GetStatisticInternalServerError) IsClientError

func (o *GetStatisticInternalServerError) IsClientError() bool

IsClientError returns true when this get statistic internal server error response has a 4xx status code

func (*GetStatisticInternalServerError) IsCode

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

IsCode returns true when this get statistic internal server error response a status code equal to that given

func (*GetStatisticInternalServerError) IsRedirect

func (o *GetStatisticInternalServerError) IsRedirect() bool

IsRedirect returns true when this get statistic internal server error response has a 3xx status code

func (*GetStatisticInternalServerError) IsServerError

func (o *GetStatisticInternalServerError) IsServerError() bool

IsServerError returns true when this get statistic internal server error response has a 5xx status code

func (*GetStatisticInternalServerError) IsSuccess

func (o *GetStatisticInternalServerError) IsSuccess() bool

IsSuccess returns true when this get statistic internal server error response has a 2xx status code

func (*GetStatisticInternalServerError) String

type GetStatisticOK

type GetStatisticOK struct {
	Payload *models.Statistic
}

GetStatisticOK describes a response with status code 200, 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() *models.Statistic

func (*GetStatisticOK) IsClientError

func (o *GetStatisticOK) IsClientError() bool

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

func (*GetStatisticOK) IsCode

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

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

func (*GetStatisticOK) IsRedirect

func (o *GetStatisticOK) IsRedirect() bool

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

func (*GetStatisticOK) IsServerError

func (o *GetStatisticOK) IsServerError() bool

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

func (*GetStatisticOK) IsSuccess

func (o *GetStatisticOK) IsSuccess() bool

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

func (*GetStatisticOK) String

func (o *GetStatisticOK) String() string

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 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 NewGetStatisticParamsWithContext

func NewGetStatisticParamsWithContext(ctx context.Context) *GetStatisticParams

NewGetStatisticParamsWithContext creates a new GetStatisticParams object with 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 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 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) SetDefaults

func (o *GetStatisticParams) SetDefaults()

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

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

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) WithDefaults

func (o *GetStatisticParams) WithDefaults() *GetStatisticParams

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

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

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 *models.Errors
}

GetStatisticUnauthorized describes a response with status code 401, 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() *models.Errors

func (*GetStatisticUnauthorized) IsClientError

func (o *GetStatisticUnauthorized) IsClientError() bool

IsClientError returns true when this get statistic unauthorized response has a 4xx status code

func (*GetStatisticUnauthorized) IsCode

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

IsCode returns true when this get statistic unauthorized response a status code equal to that given

func (*GetStatisticUnauthorized) IsRedirect

func (o *GetStatisticUnauthorized) IsRedirect() bool

IsRedirect returns true when this get statistic unauthorized response has a 3xx status code

func (*GetStatisticUnauthorized) IsServerError

func (o *GetStatisticUnauthorized) IsServerError() bool

IsServerError returns true when this get statistic unauthorized response has a 5xx status code

func (*GetStatisticUnauthorized) IsSuccess

func (o *GetStatisticUnauthorized) IsSuccess() bool

IsSuccess returns true when this get statistic unauthorized response has a 2xx status code

func (*GetStatisticUnauthorized) String

func (o *GetStatisticUnauthorized) String() string

Jump to

Keyboard shortcuts

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