osquery

package
v0.0.0-...-93bce35 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const SSHConnection = "SSHConnection::"

Variables

View Source
var ConfigSchema = map[string]*schema.Attribute{
	"username": {
		Type: schema.TypeString,
	},
	"password": {
		Type: schema.TypeString,
	},
	"private_key": {
		Type: schema.TypeString,
	},
	"trace_level": {
		Type: schema.TypeString,
	},
}
View Source
var ErrNotImplemented = errors.New("not implemented")

Functions

func ConfigInstance

func ConfigInstance() interface{}

func EpochToDate

func EpochToDate(ctx context.Context, d *transform.TransformData) (interface{}, error)

func GetConfig

func GetConfig(connection *plugin.Connection) osqueryConfig

GetConfig :: retrieve and cast connection config from query data

func Plugin

func Plugin(ctx context.Context) *plugin.Plugin

func SafeInt

func SafeInt(def int) func(context.Context, *transform.TransformData) (interface{}, error)

func TrimString

func TrimString(ctx context.Context, d *transform.TransformData) (interface{}, error)

Types

type Result

type Result struct {
	Hostname string `json:"hostname"`
}

Jump to

Keyboard shortcuts

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