open-vault/logical/system_config.go

17 lines
520 B
Go
Raw Normal View History

package logical
import "time"
2015-08-27 16:14:03 +00:00
// SystemConfig exposes system configuration information in a safe way
// 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
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
}