assets

package
v0.0.0-...-55c9f0f Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

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

func LoadTomlFile(path string) ([]*Machine, error)

func (*Machine) String

func (m *Machine) String() string

type MachineList

type MachineList []*Machine

func LoadFile

func LoadFile(path string) (MachineList, error)

func (MachineList) Find

func (m MachineList) Find(cond string) ([]*Machine, error)

Jump to

Keyboard shortcuts

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