Add SecretString support for options

This commit is contained in:
Aneesh Nireshwalia 2023-02-01 01:34:34 -07:00
parent aab8a5f36f
commit 46c26643a7
1 changed files with 4 additions and 0 deletions

View File

@ -211,6 +211,10 @@ func (o Options) Apply(ns string, dst interface{}) error {
v.Field(i).SetInt(int64(d))
case "SecretString":
ss := NewSecretString(value)
v.Field(i).Set(reflect.ValueOf(ss))
default:
panic("type " + v.Type().Field(i).Type.Name() + " not handled")
}