bookmarks

package
v0.0.0-...-681e6d0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Path

func Path(overrideDir string) string

func ReadAll

func ReadAll(path string) (map[string]Bookmark, error)

Types

type Bookmark

type Bookmark struct {
	Url      string          `json:"url"`      // Postgres connection URL
	Host     string          `json:"host"`     // Server hostname
	Port     int             `json:"port"`     // Server port
	User     string          `json:"user"`     // Database user
	Password string          `json:"password"` // User password
	Database string          `json:"database"` // Database name
	Ssl      string          `json:"ssl"`      // Connection SSL mode
	Ssh      *shared.SSHInfo `json:"ssh"`      // SSH tunnel config
}

func GetBookmark

func GetBookmark(bookmarkPath string, bookmarkName string) (Bookmark, error)

func (Bookmark) ConvertToOptions

func (b Bookmark) ConvertToOptions() command.Options

func (Bookmark) SSHInfoIsEmpty

func (b Bookmark) SSHInfoIsEmpty() bool

Jump to

Keyboard shortcuts

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