remote

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2022 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckRemote

func CheckRemote(remote *Remote, parallel bool, resChan chan *HostResult, doneFunc *sync.WaitGroup, out output.Output)

CheckRemote runs the check against a remote

func PrintRemote

func PrintRemote(remote *Remote)

PrintRemote prints a remote

func PrintRemotes

func PrintRemotes(remotes []*Remote)

PrintRemotes print remotes

Types

type HostResult

type HostResult struct {
	NbCheckTotal int
	NbCheckError int
}

HostResult host result struct

type Remote

type Remote struct {
	Name              string
	Host              string
	Port              string
	User              string
	Password          string
	Keyfile           string
	Checks            []check.Check
	Alerts            []alert.Alert
	Timeout           int
	KnownHostInsecure bool
	Disable           bool
}

Remote a remote host to check

func ToRemote

func ToRemote(cfg *config.Config) ([]*Remote, error)

ToRemote convert a config to a list of remote struct

Jump to

Keyboard shortcuts

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