mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 19:47:54 +00:00
logical/framework: adding a new duration type to convert to seconds
This commit is contained in:
@@ -373,6 +373,8 @@ func (t FieldType) Zero() interface{} {
|
||||
return false
|
||||
case TypeMap:
|
||||
return map[string]interface{}{}
|
||||
case TypeDurationSecond:
|
||||
return 0
|
||||
default:
|
||||
panic("unknown type: " + t.String())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user