blob: 67d2044ef8541aff4ee772ba655cc11c3c302f4f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
package clients
import (
"github.com/mimecast/dtail/internal/omode"
gossh "golang.org/x/crypto/ssh"
)
// LineContext is here to help filtering out only specific lines.
type LineContext struct {
RegexStr string
AfterContext int
BeforeContext int
MaxCount int
}
// Args is a helper struct to summarize common client arguments.
type Args struct {
LineContext
Mode omode.Mode
ServersStr string
UserName string
What string
Arguments []string
RegexInvert bool
TrustAllHosts bool
Discovery string
ConnectionsPerCPU int
Timeout int
SSHAuthMethods []gossh.AuthMethod
SSHHostKeyCallback gossh.HostKeyCallback
PrivateKeyPathFile string
Quiet bool
}
|