Documentation ¶
Index ¶
- type Client
- type ClientService
- type GetStatisticInternalServerError
- type GetStatisticOK
- type GetStatisticParams
- func (o *GetStatisticParams) SetContext(ctx context.Context)
- func (o *GetStatisticParams) SetHTTPClient(client *http.Client)
- func (o *GetStatisticParams) SetTimeout(timeout time.Duration)
- func (o *GetStatisticParams) SetXRequestID(xRequestID *string)
- func (o *GetStatisticParams) WithContext(ctx context.Context) *GetStatisticParams
- func (o *GetStatisticParams) WithHTTPClient(client *http.Client) *GetStatisticParams
- func (o *GetStatisticParams) WithTimeout(timeout time.Duration) *GetStatisticParams
- func (o *GetStatisticParams) WithXRequestID(xRequestID *string) *GetStatisticParams
- func (o *GetStatisticParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetStatisticReader
- type GetStatisticUnauthorized
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 (o *GetStatisticInternalServerError) Error() string
func (*GetStatisticInternalServerError) GetPayload ¶
func (o *GetStatisticInternalServerError) GetPayload() *model.Errors
type GetStatisticOK ¶
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 ¶
func (o *GetStatisticParams) WithContext(ctx context.Context) *GetStatisticParams
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 { string }XRequestID
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