Dan Sosedoff
277e2d6cd8
Add an extra test to verify SSHinfoIsEmpty does not panic
2017-10-03 23:03:02 -05:00
Dan Sosedoff
58ae69de0b
Fix panics when sshinfo is not set on bookmarks
2017-10-03 23:00:18 -05:00
Dan Sosedoff
5e22795828
Allow setting ssh connection key file, fix connection ui
2017-09-26 23:29:28 -05:00
Dan Sosedoff
75dc1c1548
Fall back to sslmode=disable if ssl mode is not set or invalid in bookmarks
2017-06-05 21:29:09 -05:00
Pavel Kiselev
4704a8a234
Override in tests
2017-01-24 08:06:12 +07:00
Pavel Kiselev
9b1d915dd1
Ability to override bookmarks directory
2017-01-24 07:55:18 +07:00
Dan Sosedoff
0510634db7
Move bookmark default port parsing to readServerConfig func
2016-11-15 22:01:42 -06:00
Dan Sosedoff
59018287de
Fix issue with default port in bookmark; cleanup
2016-11-15 21:58:58 -06:00
akarki15
fedde804e3
Remove error return value from ConvertToOptions
...
ConvertToOptions can't return any error.
2016-11-15 22:03:32 -05:00
akarki15
68db934507
Use generic typed error pattern
...
The codebase doesn't yet use the explicitly typed error pattern. To keep
things consistent, lets use the generic error type.
2016-11-12 12:30:15 -05:00
akarki15
61dfe67ca8
Add a method to convert bookmark to options
...
We will use client.NewFromURL to create a client
from stored bookmark in next commit. Since
client.NewFromURL takes in a command.Options, lets
add a method on Bookmark to get corresponding Option.
2016-11-10 20:06:39 -05:00
akarki15
038cb620c6
Set the type of Bookmark.Port to int
...
We know that a port is a number. Lets enforce that
rule at type level by setting it so.
This commit also adjusts test funcs and helper data
to fit Port's new int type.
2016-11-10 20:06:39 -05:00
akarki15
0e88e3e1f4
Add a func to read bookmark from stored toml file
...
Given a bookmark path and bookmark name, GetBookmark
returns a Bookmark object that corresponds to the
stored bookmark settings.
In next commits, we will use this method to read
stored bookmarks and create a db client.
2016-11-10 20:06:39 -05:00
akarki15
f4fb5744ef
Add method that returns if bookmark's ssh is empty
...
We will use this method in upcoming commit to create
client from stored bookmark.
2016-11-10 20:06:39 -05:00
Dan Sosedoff
eccb430a9b
Automatically hide ssh fields if bookmark does not have ssh config
2016-01-20 20:10:17 -06:00
Dan Sosedoff
f0f447857f
Tunnel implementation, allow using ssh on connection screen
2016-01-14 19:50:01 -06:00
Dan Sosedoff
68c2b4d084
Initial ssh tunnel implementation
2016-01-13 01:29:14 -06:00
Dan Sosedoff
50cdf99913
Fix all tests
2015-04-30 12:09:29 -05:00
Dan Sosedoff
c513930e27
Restructure application
2015-04-30 11:47:07 -05:00