Documentation ¶
Index ¶
- type API
- type Client
- type GetStatisticInternalServerError
- func (o *GetStatisticInternalServerError) Error() string
- func (o *GetStatisticInternalServerError) GetPayload() *models.Errors
- func (o *GetStatisticInternalServerError) IsClientError() bool
- func (o *GetStatisticInternalServerError) IsCode(code int) bool
- func (o *GetStatisticInternalServerError) IsRedirect() bool
- func (o *GetStatisticInternalServerError) IsServerError() bool
- func (o *GetStatisticInternalServerError) IsSuccess() bool
- func (o *GetStatisticInternalServerError) String() string
- type GetStatisticOK
- func (o *GetStatisticOK) Error() string
- func (o *GetStatisticOK) GetPayload() *models.Statistic
- func (o *GetStatisticOK) IsClientError() bool
- func (o *GetStatisticOK) IsCode(code int) bool
- func (o *GetStatisticOK) IsRedirect() bool
- func (o *GetStatisticOK) IsServerError() bool
- func (o *GetStatisticOK) IsSuccess() bool
- func (o *GetStatisticOK) String() string
- type GetStatisticParams
- func (o *GetStatisticParams) SetContext(ctx context.Context)
- func (o *GetStatisticParams) SetDefaults()
- 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) WithDefaults() *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
- func (o *GetStatisticUnauthorized) Error() string
- func (o *GetStatisticUnauthorized) GetPayload() *models.Errors
- func (o *GetStatisticUnauthorized) IsClientError() bool
- func (o *GetStatisticUnauthorized) IsCode(code int) bool
- func (o *GetStatisticUnauthorized) IsRedirect() bool
- func (o *GetStatisticUnauthorized) IsServerError() bool
- func (o *GetStatisticUnauthorized) IsSuccess() bool
- func (o *GetStatisticUnauthorized) String() string
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 (o *GetStatisticInternalServerError) Error() string
func (*GetStatisticInternalServerError) GetPayload ¶
func (o *GetStatisticInternalServerError) GetPayload() *models.Errors
func (*GetStatisticInternalServerError) IsClientError ¶ added in v0.26.2
func (o *GetStatisticInternalServerError) IsClientError() bool
IsClientError returns true when this get statistic internal server error response has a 4xx status code
func (*GetStatisticInternalServerError) IsCode ¶ added in v0.26.2
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 ¶ added in v0.26.2
func (o *GetStatisticInternalServerError) IsRedirect() bool
IsRedirect returns true when this get statistic internal server error response has a 3xx status code
func (*GetStatisticInternalServerError) IsServerError ¶ added in v0.26.2
func (o *GetStatisticInternalServerError) IsServerError() bool
IsServerError returns true when this get statistic internal server error response has a 5xx status code
func (*GetStatisticInternalServerError) IsSuccess ¶ added in v0.26.2
func (o *GetStatisticInternalServerError) IsSuccess() bool
IsSuccess returns true when this get statistic internal server error response has a 2xx status code
func (*GetStatisticInternalServerError) String ¶ added in v0.26.2
func (o *GetStatisticInternalServerError) String() string
type GetStatisticOK ¶
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 ¶ added in v0.26.2
func (o *GetStatisticOK) IsClientError() bool
IsClientError returns true when this get statistic o k response has a 4xx status code
func (*GetStatisticOK) IsCode ¶ added in v0.26.2
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 ¶ added in v0.26.2
func (o *GetStatisticOK) IsRedirect() bool
IsRedirect returns true when this get statistic o k response has a 3xx status code
func (*GetStatisticOK) IsServerError ¶ added in v0.26.2
func (o *GetStatisticOK) IsServerError() bool
IsServerError returns true when this get statistic o k response has a 5xx status code
func (*GetStatisticOK) IsSuccess ¶ added in v0.26.2
func (o *GetStatisticOK) IsSuccess() bool
IsSuccess returns true when this get statistic o k response has a 2xx status code
func (*GetStatisticOK) String ¶ added in v0.26.2
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 ¶
func (o *GetStatisticParams) WithContext(ctx context.Context) *GetStatisticParams
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 { string }XRequestID
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 ¶ added in v0.26.2
func (o *GetStatisticUnauthorized) IsClientError() bool
IsClientError returns true when this get statistic unauthorized response has a 4xx status code
func (*GetStatisticUnauthorized) IsCode ¶ added in v0.26.2
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 ¶ added in v0.26.2
func (o *GetStatisticUnauthorized) IsRedirect() bool
IsRedirect returns true when this get statistic unauthorized response has a 3xx status code
func (*GetStatisticUnauthorized) IsServerError ¶ added in v0.26.2
func (o *GetStatisticUnauthorized) IsServerError() bool
IsServerError returns true when this get statistic unauthorized response has a 5xx status code
func (*GetStatisticUnauthorized) IsSuccess ¶ added in v0.26.2
func (o *GetStatisticUnauthorized) IsSuccess() bool
IsSuccess returns true when this get statistic unauthorized response has a 2xx status code
func (*GetStatisticUnauthorized) String ¶ added in v0.26.2
func (o *GetStatisticUnauthorized) String() string