shared

package
v0.0.0-...-960ce7a Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const TimeoutSeconds = 2

Variables

This section is empty.

Functions

func GenerateTraffic

func GenerateTraffic(group string, port string, data string)

func MulticastLoop

func MulticastLoop(c *ipv4.PacketConn, timeout time.Duration, continuous bool) error

func MulticastOpen

func MulticastOpen(bindAddr net.IP, port int) (*ipv4.PacketConn, error)

func MulticastRead

func MulticastRead(group, port string, timeout time.Duration, continuous bool) error

func PrivateKeyFile

func PrivateKeyFile(file string) ssh.AuthMethod

func ReadCsv

func ReadCsv(filename string) ([][]string, error)

func RemoteExecSSH

func RemoteExecSSH(user string, remote string, port string, key string, command string) error

func TransferFile

func TransferFile(user string, remote string, port string, key string, src string, dest string) error

Types

type Row

type Row struct {
	Description string
	Source      string
	SourceUser  string
	SourceKey   string
	TargetIP    string
	TargetPort  string
	Protocol    string
	TimeOut     int
}

Jump to

Keyboard shortcuts

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