We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
github.com/mch1307/vaultlib.(*Client).GetSecret:36: Could not get kv version
package main import ( "fmt" "log" "os" vault "github.com/mch1307/vaultlib" ) func main() { err := os.Setenv("VAULT_ADDR", "http://localhost:8200") if err != nil { return } vcConf := vault.NewConfig() vcConf.Address = "http://localhost:8200" vcConf.AppRoleCredentials.RoleID = "myRoleID" vcConf.AppRoleCredentials.SecretID = "mySecretID" vaultCli, err := vault.NewClient(vcConf) if err != nil { log.Fatal(err) } kv, err := vaultCli.GetSecret("secrets/fabric_ca_credentials/admin") if err != nil { fmt.Println(err) } for k, v := range kv.KV { fmt.Printf("secret %v: %v\n", k, v) } }
@mch1307
The text was updated successfully, but these errors were encountered:
No branches or pull requests
github.com/mch1307/vaultlib.(*Client).GetSecret:36: Could not get kv version
@mch1307
The text was updated successfully, but these errors were encountered: