Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartPrometheusEndpoint ¶
func StartPrometheusEndpoint(certsDirectory string)
StartPrometheusEndpoint starts an http server providing a prometheus endpoint using the passed in directory to store the self signed certificates that will be generated before starting the http server.
Types ¶
type ProgressMetric ¶ added in v1.59.1
type ProgressReader ¶ added in v1.10.0
type ProgressReader struct { util.CountingReader // contains filtered or unexported fields }
ProgressReader is a counting reader that reports progress to prometheus.
func NewProgressReader ¶ added in v1.10.0
func NewProgressReader(r io.ReadCloser, metric ProgressMetric, total uint64) *ProgressReader
NewProgressReader creates a new instance of a prometheus updating progress reader.
func (*ProgressReader) SetNextReader ¶ added in v1.43.0
func (r *ProgressReader) SetNextReader(reader io.ReadCloser, final bool)
SetNextReader replaces the current counting reader with a new one, for tracking progress over multiple readers.
func (*ProgressReader) StartTimedUpdate ¶ added in v1.10.0
func (r *ProgressReader) StartTimedUpdate()
StartTimedUpdate starts the update timer to automatically update every second.
Click to show internal directories.
Click to hide internal directories.