fd7361aa14
- go.mod replace directive for git.tukangketik.id/swanadiva/hostkeeper → ../../v1 - store/ package: JSON file persistence for hosts, snippets, keys, settings (~/Library/Application Support/hostkeeper/v2/) - model SSH fields: Hostname, Port, Username, AuthType, Password, KeyID - sshconn/ package: real SSH client via golang.org/x/crypto/ssh - Terminal WS: real SSH connection with fallback to mock shell - Dynamic host list in terminal (server-rendered JSON script tag) - All mock data defaults removed from model packages - Settings persist via store/settings.go
23 lines
670 B
Go
23 lines
670 B
Go
package model
|
|
|
|
type Host struct {
|
|
ID string `json:"id"`
|
|
Name string `json:"name"`
|
|
IP string `json:"ip"`
|
|
OS string `json:"os"`
|
|
Provider string `json:"provider"`
|
|
Status string `json:"status"`
|
|
LastSeen string `json:"lastSeen"`
|
|
Type string `json:"type"`
|
|
|
|
Hostname string `json:"hostname"`
|
|
Port int `json:"port"`
|
|
Username string `json:"username"`
|
|
AuthType string `json:"authType"` // password | key | both
|
|
Password string `json:"password,omitempty"`
|
|
KeyID string `json:"keyId,omitempty"`
|
|
Group string `json:"group,omitempty"`
|
|
Tags string `json:"tags,omitempty"`
|
|
Notes string `json:"notes,omitempty"`
|
|
}
|