Add initial templating support to Vault credential libraries This adds support for templating various account and user values into Vault dynamic credential library POST bodies and GET/POST paths. It also unifies how parameters are used in grants, with backwards compatibility.
9 lines
164 B
Go
9 lines
164 B
Go
package util
|
|
|
|
// Pointer is just a generic function to return a pointer of whatever type is
|
|
// given
|
|
func Pointer[T any](input T) *T {
|
|
ret := input
|
|
return &ret
|
|
}
|