glucose_exporter/internal/config/errors.go
Marvin Preuss 77ad55f1eb feat(config): own PasswordFile type
its possible to unmarshal a PasswordFile path to a read string. this is
nice for docker secret setups. also adds a GetPassword method which
checks if both Password and PasswordFile are declared.
2024-04-02 07:36:59 +00:00

9 lines
151 B
Go

package config
import "errors"
var (
ErrTooManyPasswords = errors.New("too many passwords")
ErrMissingPassword = errors.New("missing password")
)