Documentation ¶
Overview ¶
Package hosts manages SSH host entries.
Index ¶
- func AddHostForm(db database.DataStore, env env.Environment, app *tview.Application) (form *tview.Form, err error)
- func GetHost(ctx context.Context, db database.DataStore, env env.Environment, ...) (tview.Primitive, error)
- func HostList(ctx context.Context, db database.DataStore, env env.Environment, ...) (tview.Primitive, error)
- func RemoveHost(db database.DataStore, env env.Environment, host string) error
- func UpdateHostList(db database.DataStore, env env.Environment, app *tview.Application) (tview.Primitive, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddHostForm ¶
func AddHostForm(db database.DataStore, env env.Environment, app *tview.Application) (form *tview.Form, err error)
AddHostForm renders out the form to allow a user to enter in details about a new host entry.
func GetHost ¶
func GetHost(ctx context.Context, db database.DataStore, env env.Environment, app *tview.Application, host string, ) (tview.Primitive, error)
GetHost returns information on a single SSH host.
func HostList ¶
func HostList(ctx context.Context, db database.DataStore, env env.Environment, app *tview.Application, ) (tview.Primitive, error)
HostList lists all hosts in the system in a table.
func RemoveHost ¶
RemoveHost removes the given host from the data store.
func UpdateHostList ¶
func UpdateHostList(db database.DataStore, env env.Environment, app *tview.Application) (tview.Primitive, error)
UpdateHostList lists all known hosts, and allows updating entries.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.