Documentation ¶
Index ¶
Constants ¶
View Source
const (
NotExist = "无"
)
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
This section is empty.
Types ¶
type Machine ¶
type Machine struct { NatIP string `toml:"nat-ip" json:"nat-ip"` IP string `toml:"ip" json:"ip"` Username string `toml:"username" json:"username"` Password string `toml:"password" json:"password"` Port int `toml:"port" json:"port"` Timeout time.Duration `json:"timeout"` PrivateKeyPath string `toml:"private-key" json:"private-key"` Device string `toml:"device" json:"device"` }
func LoadTomlFile ¶
type MachineList ¶
type MachineList []*Machine
func LoadFile ¶
func LoadFile(path string) (MachineList, error)
Click to show internal directories.
Click to hide internal directories.