core

package
v1.27.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceName = "hostbook"
)

Variables

This section is empty.

Functions

func DeletePassword

func DeletePassword(hostName string) error

func GenerateSSHConfig

func GenerateSSHConfig(hosts []Host) string

func GetPassword

func GetPassword(hostName string) (string, error)

func SavePassword

func SavePassword(hostName, password string) error

Types

type Config

type Config struct {
	Hosts []Host `json:"hosts"`
}

type Host

type Host struct {
	Name          string   `json:"name"`
	Hostname      string   `json:"hostname"`
	User          string   `json:"user"`
	Port          string   `json:"port"`
	IdentityFile  string   `json:"identity_file,omitempty"`
	Tags          []string `json:"tags,omitempty"`
	LastConnected int64    `json:"last_connected,omitempty"`
}

Jump to

Keyboard shortcuts

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