Documentation ¶
Index ¶
- func AccountGet(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func ConnectDB(c Connection) *exec.Cmd
- func CreateProxy(c Connection) (*exec.Cmd, int)
- func Execute()
- func RoleGet(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- type Config
- type ConnectCommand
- type Connection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccountGet ¶
func ConnectDB ¶
func ConnectDB(c Connection) *exec.Cmd
Types ¶
type Config ¶
type Config struct { Pgconn []struct { Account string `yaml:"account"` Dbs []struct { Name string `yaml:"name"` Hostname string `yaml:"hostname"` Proxy struct { Kind string `yaml:"kind"` Host string `yaml:"host"` } `yaml:"proxy"` Roles []struct { Username string `yaml:"username"` Password string `yaml:"password"` Dbname string `yaml:"dbname"` } `yaml:"roles"` } `yaml:"dbs"` } `yaml:"pgconn"` }
read raw config
type ConnectCommand ¶
type ConnectCommand struct{}
func (*ConnectCommand) Help ¶
func (c *ConnectCommand) Help() string
func (*ConnectCommand) Synopsis ¶
func (c *ConnectCommand) Synopsis() string
Click to show internal directories.
Click to hide internal directories.