bookmarks

package
v0.11.6 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2019 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 added in v0.9.6

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

func (Bookmark) ConvertToOptions added in v0.9.6

func (b Bookmark) ConvertToOptions() command.Options

func (Bookmark) SSHInfoIsEmpty added in v0.9.6

func (b Bookmark) SSHInfoIsEmpty() bool

Jump to

Keyboard shortcuts

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