Documentation
¶
Index ¶
- func ExpandPath(path string) (string, error)
- func ExportData(events []data.Event, format string, fileName string) error
- func FilterEvents(params data.ParseParams, events []data.Event) []data.Event
- func GenerateReport(events []data.Event, fn string) error
- func GetActionType(logLine string) data.ActionType
- func GetHostKeyCallback(insecure bool) (ssh.HostKeyCallback, error)
- func GetSSHAuthMethods(keyPath string, password string) ([]ssh.AuthMethod, error)
- func IsInWhiteList(serial string) bool
- func LoadSSHPrivateKey(keyPath string, passphrase []byte) (ssh.Signer, error)
- func LoadWhiteList(wlPath string) error
- func PrintEvents(e []data.Event)
- func RemoveDuplicates(events []data.Event) []data.Event
- func Submatch(r *regexp.Regexp, logLine string, idx int) string
- func TimeStampToTime(timeStampString string) time.Time
- type Serial
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpandPath ¶
func FilterEvents ¶
func GetActionType ¶
func GetActionType(logLine string) data.ActionType
func GetHostKeyCallback ¶
func GetHostKeyCallback(insecure bool) (ssh.HostKeyCallback, error)
GetHostKeyCallback returns appropriate SSH host key callback based on security settings If insecure is true, returns InsecureIgnoreHostKey (NOT RECOMMENDED) Otherwise, attempts to use known_hosts file for verification
func GetSSHAuthMethods ¶
func GetSSHAuthMethods(keyPath string, password string) ([]ssh.AuthMethod, error)
GetSSHAuthMethods returns SSH authentication methods based on provided credentials
func IsInWhiteList ¶
func LoadSSHPrivateKey ¶
LoadSSHPrivateKey loads SSH private key from file Supports RSA, ECDSA, ED25519 keys with or without passphrase
func LoadWhiteList ¶
func PrintEvents ¶
func TimeStampToTime ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.