Add some documentation to SystemConfig

This commit is contained in:
Jeff Mitchell 2015-08-27 09:14:03 -07:00
parent 992e357d07
commit 2e07106c4b

View file

@ -2,9 +2,15 @@ package logical
import "time"
// LogicalSystemConfig exposes system configuration information in a safe way
// SystemConfig exposes system configuration information in a safe way
// for other logical backends to consume
type SystemConfig struct {
// DefaultLeaseTTL returns the default lease TTL set in Vault configuration
DefaultLeaseTTL func() time.Duration
MaxLeaseTTL func() time.Duration
// MaxLeaseTTL returns the max lease TTL set in Vault configuration; backend
// authors should take care not to issue credentials that last longer than
// this value, as Vault will revoke them
MaxLeaseTTL func() time.Duration
}