Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type GetMetricsFailed
- func (o *GetMetricsFailed) Error() string
- func (o *GetMetricsFailed) IsClientError() bool
- func (o *GetMetricsFailed) IsCode(code int) bool
- func (o *GetMetricsFailed) IsRedirect() bool
- func (o *GetMetricsFailed) IsServerError() bool
- func (o *GetMetricsFailed) IsSuccess() bool
- func (o *GetMetricsFailed) String() string
- type GetMetricsOK
- func (o *GetMetricsOK) Error() string
- func (o *GetMetricsOK) GetPayload() []*models.Metric
- func (o *GetMetricsOK) IsClientError() bool
- func (o *GetMetricsOK) IsCode(code int) bool
- func (o *GetMetricsOK) IsRedirect() bool
- func (o *GetMetricsOK) IsServerError() bool
- func (o *GetMetricsOK) IsSuccess() bool
- func (o *GetMetricsOK) String() string
- type GetMetricsParams
- func (o *GetMetricsParams) SetContext(ctx context.Context)
- func (o *GetMetricsParams) SetDefaults()
- func (o *GetMetricsParams) SetHTTPClient(client *http.Client)
- func (o *GetMetricsParams) SetTimeout(timeout time.Duration)
- func (o *GetMetricsParams) WithContext(ctx context.Context) *GetMetricsParams
- func (o *GetMetricsParams) WithDefaults() *GetMetricsParams
- func (o *GetMetricsParams) WithHTTPClient(client *http.Client) *GetMetricsParams
- func (o *GetMetricsParams) WithTimeout(timeout time.Duration) *GetMetricsParams
- func (o *GetMetricsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetMetricsReader
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 metrics API
func (*Client) GetMetrics ¶
func (a *Client) GetMetrics(params *GetMetricsParams, opts ...ClientOption) (*GetMetricsOK, error)
GetMetrics retrieves cilium operator metrics
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 is the option for Client methods
type ClientService ¶
type ClientService interface { GetMetrics(params *GetMetricsParams, opts ...ClientOption) (*GetMetricsOK, 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 metrics API client.
type GetMetricsFailed ¶
type GetMetricsFailed struct { }
GetMetricsFailed describes a response with status code 500, with default header values.
Metrics cannot be retrieved
func NewGetMetricsFailed ¶
func NewGetMetricsFailed() *GetMetricsFailed
NewGetMetricsFailed creates a GetMetricsFailed with default headers values
func (*GetMetricsFailed) Error ¶
func (o *GetMetricsFailed) Error() string
func (*GetMetricsFailed) IsClientError ¶
func (o *GetMetricsFailed) IsClientError() bool
IsClientError returns true when this get metrics failed response has a 4xx status code
func (*GetMetricsFailed) IsCode ¶
func (o *GetMetricsFailed) IsCode(code int) bool
IsCode returns true when this get metrics failed response a status code equal to that given
func (*GetMetricsFailed) IsRedirect ¶
func (o *GetMetricsFailed) IsRedirect() bool
IsRedirect returns true when this get metrics failed response has a 3xx status code
func (*GetMetricsFailed) IsServerError ¶
func (o *GetMetricsFailed) IsServerError() bool
IsServerError returns true when this get metrics failed response has a 5xx status code
func (*GetMetricsFailed) IsSuccess ¶
func (o *GetMetricsFailed) IsSuccess() bool
IsSuccess returns true when this get metrics failed response has a 2xx status code
func (*GetMetricsFailed) String ¶
func (o *GetMetricsFailed) String() string
type GetMetricsOK ¶
GetMetricsOK describes a response with status code 200, with default header values.
Success
func NewGetMetricsOK ¶
func NewGetMetricsOK() *GetMetricsOK
NewGetMetricsOK creates a GetMetricsOK with default headers values
func (*GetMetricsOK) Error ¶
func (o *GetMetricsOK) Error() string
func (*GetMetricsOK) GetPayload ¶
func (o *GetMetricsOK) GetPayload() []*models.Metric
func (*GetMetricsOK) IsClientError ¶
func (o *GetMetricsOK) IsClientError() bool
IsClientError returns true when this get metrics o k response has a 4xx status code
func (*GetMetricsOK) IsCode ¶
func (o *GetMetricsOK) IsCode(code int) bool
IsCode returns true when this get metrics o k response a status code equal to that given
func (*GetMetricsOK) IsRedirect ¶
func (o *GetMetricsOK) IsRedirect() bool
IsRedirect returns true when this get metrics o k response has a 3xx status code
func (*GetMetricsOK) IsServerError ¶
func (o *GetMetricsOK) IsServerError() bool
IsServerError returns true when this get metrics o k response has a 5xx status code
func (*GetMetricsOK) IsSuccess ¶
func (o *GetMetricsOK) IsSuccess() bool
IsSuccess returns true when this get metrics o k response has a 2xx status code
func (*GetMetricsOK) String ¶
func (o *GetMetricsOK) String() string
type GetMetricsParams ¶
type GetMetricsParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetMetricsParams contains all the parameters to send to the API endpoint
for the get metrics operation. Typically these are written to a http.Request.
func NewGetMetricsParams ¶
func NewGetMetricsParams() *GetMetricsParams
NewGetMetricsParams creates a new GetMetricsParams 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 NewGetMetricsParamsWithContext ¶
func NewGetMetricsParamsWithContext(ctx context.Context) *GetMetricsParams
NewGetMetricsParamsWithContext creates a new GetMetricsParams object with the ability to set a context for a request.
func NewGetMetricsParamsWithHTTPClient ¶
func NewGetMetricsParamsWithHTTPClient(client *http.Client) *GetMetricsParams
NewGetMetricsParamsWithHTTPClient creates a new GetMetricsParams object with the ability to set a custom HTTPClient for a request.
func NewGetMetricsParamsWithTimeout ¶
func NewGetMetricsParamsWithTimeout(timeout time.Duration) *GetMetricsParams
NewGetMetricsParamsWithTimeout creates a new GetMetricsParams object with the ability to set a timeout on a request.
func (*GetMetricsParams) SetContext ¶
func (o *GetMetricsParams) SetContext(ctx context.Context)
SetContext adds the context to the get metrics params
func (*GetMetricsParams) SetDefaults ¶
func (o *GetMetricsParams) SetDefaults()
SetDefaults hydrates default values in the get metrics params (not the query body).
All values with no default are reset to their zero value.
func (*GetMetricsParams) SetHTTPClient ¶
func (o *GetMetricsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get metrics params
func (*GetMetricsParams) SetTimeout ¶
func (o *GetMetricsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get metrics params
func (*GetMetricsParams) WithContext ¶
func (o *GetMetricsParams) WithContext(ctx context.Context) *GetMetricsParams
WithContext adds the context to the get metrics params
func (*GetMetricsParams) WithDefaults ¶
func (o *GetMetricsParams) WithDefaults() *GetMetricsParams
WithDefaults hydrates default values in the get metrics params (not the query body).
All values with no default are reset to their zero value.
func (*GetMetricsParams) WithHTTPClient ¶
func (o *GetMetricsParams) WithHTTPClient(client *http.Client) *GetMetricsParams
WithHTTPClient adds the HTTPClient to the get metrics params
func (*GetMetricsParams) WithTimeout ¶
func (o *GetMetricsParams) WithTimeout(timeout time.Duration) *GetMetricsParams
WithTimeout adds the timeout to the get metrics params
func (*GetMetricsParams) WriteToRequest ¶
func (o *GetMetricsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetMetricsReader ¶
type GetMetricsReader struct {
// contains filtered or unexported fields
}
GetMetricsReader is a Reader for the GetMetrics structure.
func (*GetMetricsReader) ReadResponse ¶
func (o *GetMetricsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.