pssh

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2023 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToSlice

func ToSlice(s string) []string

ToSlice comma separated to slice

Types

type Config

type Config struct {
	Concurrency      int
	MaxAgentConns    int
	User             string
	Hostsfile        string
	ShowHostName     bool
	ColorMode        bool
	IgnoreHostKey    bool
	Debug            bool
	StdinFlag        bool
	IdentityFileOnly bool
	SortPrint        bool
	Timeout          time.Duration
	KexFlag          string
	SSHAuthSocket    string

	IdentFiles []string
	// ciphers
	Kex     []string
	Ciphers []string
	Macs    []string
}

Config pssh config

type Pssh

type Pssh struct {
	*Config
	// contains filtered or unexported fields
}

Pssh pssh struct

func (*Pssh) Init

func (p *Pssh) Init()

Init Pssh

func (Pssh) Print

func (p Pssh) Print(a ...interface{}) (n int, err error)

func (Pssh) Printf

func (p Pssh) Printf(format string, a ...interface{}) (n int, err error)

func (*Pssh) Run

func (p *Pssh) Run() int

Run main task

type TemporaryError

type TemporaryError interface {
	Temporary() bool
}

TemporaryError is network error

Jump to

Keyboard shortcuts

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