Skip to content

Commit

Permalink
add new WIF fields with test
Browse files Browse the repository at this point in the history
  • Loading branch information
vinay-gopalan committed May 28, 2024
1 parent 579dc97 commit 131e488
Show file tree
Hide file tree
Showing 4 changed files with 216 additions and 101 deletions.
19 changes: 11 additions & 8 deletions internal/consts/consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -485,14 +485,17 @@ const (
/*
Vault version constants
*/
VaultVersion190 = "1.9.0"
VaultVersion110 = "1.10.0"
VaultVersion111 = "1.11.0"
VaultVersion112 = "1.12.0"
VaultVersion113 = "1.13.0"
VaultVersion114 = "1.14.0"
VaultVersion115 = "1.15.0"
VaultVersion116 = "1.16.0"
VaultVersion190 = "1.9.0"
VaultVersion110 = "1.10.0"
VaultVersion111 = "1.11.0"
VaultVersion112 = "1.12.0"
VaultVersion113 = "1.13.0"
VaultVersion114 = "1.14.0"
VaultVersion115 = "1.15.0"
VaultVersion116 = "1.16.0"
VaultVersion116Ent = "1.16.0+ent"
VaultVersion117 = "1.17.0"
VaultVersion117Ent = "1.17.0+ent"

/*
Vault auth methods
Expand Down
17 changes: 10 additions & 7 deletions internal/provider/meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,16 @@ const (
var (
MaxHTTPRetriesCCC int

VaultVersion110 = version.Must(version.NewSemver(consts.VaultVersion110))
VaultVersion111 = version.Must(version.NewSemver(consts.VaultVersion111))
VaultVersion112 = version.Must(version.NewSemver(consts.VaultVersion112))
VaultVersion113 = version.Must(version.NewSemver(consts.VaultVersion113))
VaultVersion114 = version.Must(version.NewSemver(consts.VaultVersion114))
VaultVersion115 = version.Must(version.NewSemver(consts.VaultVersion115))
VaultVersion116 = version.Must(version.NewSemver(consts.VaultVersion116))
VaultVersion110 = version.Must(version.NewSemver(consts.VaultVersion110))
VaultVersion111 = version.Must(version.NewSemver(consts.VaultVersion111))
VaultVersion112 = version.Must(version.NewSemver(consts.VaultVersion112))
VaultVersion113 = version.Must(version.NewSemver(consts.VaultVersion113))
VaultVersion114 = version.Must(version.NewSemver(consts.VaultVersion114))
VaultVersion115 = version.Must(version.NewSemver(consts.VaultVersion115))
VaultVersion116 = version.Must(version.NewSemver(consts.VaultVersion116))
VaultVersion116Ent = version.Must(version.NewSemver(consts.VaultVersion116Ent))
VaultVersion117 = version.Must(version.NewSemver(consts.VaultVersion117))
VaultVersion117Ent = version.Must(version.NewSemver(consts.VaultVersion117Ent))

TokenTTLMinRecommended = time.Minute * 15
)
Expand Down
Loading

0 comments on commit 131e488

Please sign in to comment.