db

package
v0.0.0-...-f17ef4b Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const RDSRootCert = `` /* 21671-byte string literal not displayed */

RDSRootCert is the root cert for all RDS instances http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_PostgreSQL.html#PostgreSQL.Concepts.General.SSL

Variables

This section is empty.

Functions

This section is empty.

Types

type Credentials

type Credentials struct {
	DB            string
	Username      string
	Port          string
	Password      string
	Address       string
	CACert        string
	SSHPrivateKey []byte
	SSHPublicIP   string
}

Credentials represent credentials for connecting to a postgres instance via a jumpbox

type Runner

type Runner func(sql string) error

Runner is function that runs SQL over a jumpbox

func NewRunner

func NewRunner(creds *Credentials) (Runner, error)

NewRunner returns a new SQL runner

Jump to

Keyboard shortcuts

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