Updating Errors, and adding license

This commit is contained in:
John Delivuk 2019-02-22 10:04:10 -05:00
parent 8ef8c8a291
commit 980bc01d67
No known key found for this signature in database
GPG key ID: 8597474A0655625E
3 changed files with 27 additions and 15 deletions

View file

@ -3,19 +3,19 @@ package provider
import "errors"
var (
// ErrNewOperatorNotSupportedByPrometheus creates an error that represents the fact that we were requested to service a query that
// ErrUnsupportedOperator creates an error that represents the fact that we were requested to service a query that
// Prometheus would be unable to support.
ErrNewOperatorNotSupportedByPrometheus = errors.New("operator not supported by prometheus")
ErrUnsupportedOperator = errors.New("operator not supported by prometheus")
// ErrNewOperatorRequiresValues creates an error that represents the fact that we were requested to service a query
// ErrMalformedQuery creates an error that represents the fact that we were requested to service a query
// that was malformed in its operator/value combination.
ErrNewOperatorRequiresValues = errors.New("operator requires values")
ErrMalformedQuery = errors.New("operator requires values")
// ErrNewOperatorDoesNotSupportValues creates an error that represents the fact that we were requested to service a query
// that was malformed in its operator/value combination.
ErrNewOperatorDoesNotSupportValues = errors.New("operator does not support values")
// ErrQueryUnsupportedValues creates an error that represents an unsupported return value from the
// specified query.
ErrQueryUnsupportedValues = errors.New("operator does not support values")
// ErrNewLabelNotSpecified creates an error that represents the fact that we were requested to service a query
// ErrLabelNotSpecified creates an error that represents the fact that we were requested to service a query
// that was malformed in its label specification.
ErrNewLabelNotSpecified = errors.New("label not specified")
ErrLabelNotSpecified = errors.New("label not specified")
)