cmd

package
v0.3.0-80eb8c7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2017 License: MIT Imports: 25 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "breakglass",
	Short: "Get credentials from Hashicorp Vault",
	Long: `breakglass allows you to get login credentials for a variety of 
Vault backends, such as databases servers, Linux servers (ssh credentials)
and AWS IAM roles`,
}

RootCmd represents the base command when called without any subcommands

View Source
var Version string

Functions

func Execute

func Execute(version string)

Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type AWSCredentialResp

type AWSCredentialResp struct {
	AccessKey     string `mapstructure:"access_key"`
	SecretKey     string `mapstructure:"secret_key"`
	SecurityToken string `mapstructure:"security_token"`
}

type MySQLCredentialResp

type MySQLCredentialResp struct {
	Username string `mapstructure:"username"`
	Password string `mapstructure:"password"`
}

type SSHCredentialResp

type SSHCredentialResp struct {
	KeyType  string `mapstructure:"key_type"`
	Key      string `mapstructure:"key"`
	Username string `mapstructure:"username"`
	IP       string `mapstructure:"ip"`
	Port     string `mapstructure:"port"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL