Add TTL related config options on auth enable (#4019)

This commit is contained in:
Calvin Leung Huang
2018-02-22 10:26:29 -05:00
committed by GitHub
parent 207081740e
commit 45454eb82e
4 changed files with 82 additions and 11 deletions

View File

@@ -91,7 +91,9 @@ type EnableAuthOptions struct {
}
type AuthConfigInput struct {
PluginName string `json:"plugin_name,omitempty" structs:"plugin_name,omitempty" mapstructure:"plugin_name"`
DefaultLeaseTTL string `json:"default_lease_ttl" structs:"default_lease_ttl" mapstructure:"default_lease_ttl"`
MaxLeaseTTL string `json:"max_lease_ttl" structs:"max_lease_ttl" mapstructure:"max_lease_ttl"`
PluginName string `json:"plugin_name,omitempty" structs:"plugin_name,omitempty" mapstructure:"plugin_name"`
}
type AuthMount struct {