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 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, total uint64, progress *prometheus.CounterVec, ownerUID string) *ProgressReader
NewProgressReader creates a new instance of a prometheus updating progress reader.
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.