Marvin Preuss
77ad55f1eb
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.
9 lines
151 B
Go
9 lines
151 B
Go
package config
|
|
|
|
import "errors"
|
|
|
|
var (
|
|
ErrTooManyPasswords = errors.New("too many passwords")
|
|
ErrMissingPassword = errors.New("missing password")
|
|
)
|