hosts

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2022 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Overview

Package hosts manages SSH host entries.

Index

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

GetHost returns information on a single SSH host.

func HostList

HostList lists all hosts in the system in a table.

func RemoveHost

func RemoveHost(db database.DataStore, env env.Environment, host string) error

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.

Jump to

Keyboard shortcuts

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