Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoConnector = errors.New("connector should not be nil")
)
View Source
var (
ErrUnexpectedStatusCode = errors.New("the status code obtained was not expected")
)
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v1.4.1
type Client struct {
// contains filtered or unexported fields
}
Client implements a client for Kubelet, capable of retrieving prometheus metrics from a given endpoint.
type Connector ¶ added in v1.5.0
type Connector interface {
Connect() (*connParams, error)
}
Connector provides an interface to retrieve connParams to connect to a Kubelet instance.
type Getter ¶ added in v1.5.0
Getter is an interface for HTTP client with, which should provide scheme, port and hostname for the HTTP call.
type OptionFunc ¶ added in v1.5.0
func WithLogger ¶ added in v1.5.0
func WithLogger(logger *log.Logger) OptionFunc
WithLogger returns an OptionFunc to change the logger from the default noop logger.
func WithMaxRetries ¶ added in v1.5.0
func WithMaxRetries(retries int) OptionFunc
WithMaxRetries returns an OptionFunc to change the number of retries used int Pester Client.
Click to show internal directories.
Click to hide internal directories.