Documentation ¶
Overview ¶
Package vault
Copyright © 2023 zcubbs https://github.com/zcubbs
Package vault ¶
Copyright © 2023 zcubbs https://github.com/zcubbs
Package vault ¶
Copyright © 2023 zcubbs https://github.com/zcubbs
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Add = &cobra.Command{ Use: "add", Short: "Add vault secret", Long: ``, Run: func(cmd *cobra.Command, args []string) { err := addSecret() if err != nil { fmt.Println(err) } }, }
Add represents the os command
View Source
var Cmd = &cobra.Command{ Use: "vault", Short: "Vault Helper Commands", Long: ``, Run: func(cmd *cobra.Command, args []string) { err := cmd.Help() if err != nil { fmt.Println(err) } }, }
Cmd represents the os command
View Source
var Get = &cobra.Command{ Use: "get", Short: "Get vault secret", Long: ``, Run: func(cmd *cobra.Command, args []string) { secretValue, err := GetSecret(getSecretKey) if err != nil { fmt.Println(err) os.Exit(1) } fmt.Println(secretValue) }, }
Get represents the os command
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.