Documentation ¶
Index ¶
- func AuthConfig(baUser, baPass, baFile, bearerToken, bearerTokenFile string) (*promauth.Config, error)
- func TLSConfig(certFile, keyFile, CAFile, serverName string, insecureSkipVerify bool) (*tls.Config, error)
- func Transport(URL, certFile, keyFile, CAFile, serverName string, insecureSkipVerify bool) (*http.Transport, error)
- type ErrGroup
- type PromDuration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthConfig ¶ added in v1.66.0
func AuthConfig(baUser, baPass, baFile, bearerToken, bearerTokenFile string) (*promauth.Config, error)
AuthConfig returns promauth.Config based on the given params
Types ¶
type ErrGroup ¶
type ErrGroup struct {
// contains filtered or unexported fields
}
ErrGroup accumulates multiple errors and produces single error message.
type PromDuration ¶ added in v1.63.0
type PromDuration struct {
// contains filtered or unexported fields
}
PromDuration is Prometheus duration.
func NewPromDuration ¶ added in v1.63.0
func NewPromDuration(d time.Duration) PromDuration
NewPromDuration returns PromDuration for given d.
func (*PromDuration) Duration ¶ added in v1.63.0
func (pd *PromDuration) Duration() time.Duration
Duration returns duration for pd.
func (PromDuration) MarshalYAML ¶ added in v1.63.0
func (pd PromDuration) MarshalYAML() (interface{}, error)
MarshalYAML implements yaml.Marshaler interface.
func (*PromDuration) UnmarshalYAML ¶ added in v1.63.0
func (pd *PromDuration) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML implements yaml.Unmarshaler interface.
Click to show internal directories.
Click to hide internal directories.