2015-08-27 15:51:35 +00:00
|
|
|
package logical
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
2015-08-27 16:14:03 +00:00
|
|
|
// SystemConfig exposes system configuration information in a safe way
|
2015-08-27 15:51:35 +00:00
|
|
|
// for other logical backends to consume
|
|
|
|
type SystemConfig struct {
|
2015-08-27 16:14:03 +00:00
|
|
|
|
|
|
|
// DefaultLeaseTTL returns the default lease TTL set in Vault configuration
|
2015-08-27 15:51:35 +00:00
|
|
|
DefaultLeaseTTL func() time.Duration
|
2015-08-27 16:14:03 +00:00
|
|
|
|
|
|
|
// 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
|
2015-08-27 15:51:35 +00:00
|
|
|
}
|