2024-11-22 16:10:05 +00:00
|
|
|
package diagnostic
|
|
|
|
|
|
|
|
import (
|
|
|
|
"errors"
|
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
2024-11-26 18:30:44 +00:00
|
|
|
// Error used when there is no log directory available.
|
|
|
|
ErrManagedLogNotFound = errors.New("managed log directory not found")
|
2024-12-04 11:37:57 +00:00
|
|
|
// Error used when it is not possible to collect logs using the log configuration.
|
|
|
|
ErrLogConfigurationIsInvalid = errors.New("provided log configuration is invalid")
|
2024-11-22 16:10:05 +00:00
|
|
|
// Error used when parsing the fields of the output of collector.
|
|
|
|
ErrInsufficientLines = errors.New("insufficient lines")
|
|
|
|
// Error used when parsing the lines of the output of collector.
|
|
|
|
ErrInsuficientFields = errors.New("insufficient fields")
|
|
|
|
// Error used when given key is not found while parsing KV.
|
|
|
|
ErrKeyNotFound = errors.New("key not found")
|
2024-11-26 18:30:44 +00:00
|
|
|
// Error used when there is no disk volume information available.
|
2024-11-29 15:43:36 +00:00
|
|
|
ErrNoVolumeFound = errors.New("no disk volume information found")
|
2024-11-29 17:08:42 +00:00
|
|
|
// Error user when the base url of the diagnostic client is not provided.
|
2024-12-04 11:37:57 +00:00
|
|
|
ErrNoBaseURL = errors.New("no base url")
|
|
|
|
// Error used when no metrics server is found listening to the known addresses list (check [metrics.GetMetricsKnownAddresses]).
|
2024-12-03 12:07:55 +00:00
|
|
|
ErrMetricsServerNotFound = errors.New("metrics server not found")
|
2024-12-04 11:37:57 +00:00
|
|
|
// Error used when multiple metrics server are found listening to the known addresses list (check [metrics.GetMetricsKnownAddresses]).
|
2024-12-03 12:07:55 +00:00
|
|
|
ErrMultipleMetricsServerFound = errors.New("multiple metrics server found")
|
2024-12-04 11:37:57 +00:00
|
|
|
// Error used when a temporary file creation fails within the diagnostic procedure
|
|
|
|
ErrCreatingTemporaryFile = errors.New("temporary file creation failed")
|
2024-11-22 16:10:05 +00:00
|
|
|
)
|