Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AuthInfo client.Auth
View Source
var GetMetadataCmd = &cobra.Command{ Use: "meta [key]", Short: "Retrieve secret associated metadata", Args: cobra.MinimumNArgs(1), Run: func(cmd *cobra.Command, args []string) { secret := args[0] postBody := client.SecretBody{Secret: secret} client.GetMetadata(AuthInfo, postBody) }, }
View Source
var GetRecentCmd = &cobra.Command{ Use: "recent", Short: "Retreive a list of recent metadata.", Run: func(cmd *cobra.Command, args []string) { client.GetRecent(AuthInfo, client.SecretBody{}) }, }
View Source
var GetSecretCmd = &cobra.Command{ Use: "secret [secret]", Short: "Retrieve a Secret value", Args: cobra.MinimumNArgs(1), Run: func(cmd *cobra.Command, args []string) { secret := args[0] pp, _ := cmd.Flags().GetString("passphrase") postBody := client.SecretBody{ Secret: secret, Passphrase: pp, } client.GetSecret(AuthInfo, postBody) }, }
View Source
var ( // VERSION is set during build VERSION string )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.