firmwarepasswd

package
v0.11.12 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TablePlugin

func TablePlugin(client *osquery.ExtensionManagerClient, logger log.Logger) *table.Plugin

Types

type Matcher

type Matcher struct {
	Match   func(string) bool
	KeyFunc func(string) (string, error)
	ValFunc func(string) (string, error)
}

type OutputParser

type OutputParser struct {
	// contains filtered or unexported fields
}

func NewParser

func NewParser(logger log.Logger, matchers []Matcher) *OutputParser

func (*OutputParser) Parse

func (p *OutputParser) Parse(input *bytes.Buffer) []map[string]string

Parse looks at command output, line by line. It uses the defined Matchers to set any appropriate values

type Table

type Table struct {
	// contains filtered or unexported fields
}

func New

func New(client *osquery.ExtensionManagerClient, logger log.Logger) *Table

Jump to

Keyboard shortcuts

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