Versions in this module Expand all Collapse all v0 v0.5.81 Sep 5, 2026 v0.5.9 Sep 8, 2026 Changes in this version + const ServerName + func NewServer(b Backend, version string, opts ...Option) *sdk.Server + type Backend interface + GetEnvironments func() ([]environments.TLSEnvironment, error) + GetNode func(env, identifier string) (nodes.OsqueryNode, error) + GetNodePosture func(env, uuid string) ([]posture.NodePosture, error) + GetNodePostureScore func(env, uuid string) (posture.PostureScore, error) + GetNodes func(env, target string) ([]nodes.OsqueryNode, error) + GetOsqueryTables func() ([]types.OsqueryTable, error) + GetQueries func(target, env string) ([]queries.DistributedQuery, error) + GetQueryResults func(env, name string, page, pageSize int) (types.QueryResultsResponse, error) + GetSavedQueries func(env string) ([]types.SavedQueryView, error) + GetStats func() (apiclient.StatsResponse, error) + type EnvironmentStats struct + ActiveNodes int64 + Darwin int64 + InactiveNodes int64 + Linux int64 + Name string + Other int64 + TotalNodes int64 + Windows int64 + type EnvironmentSummary struct + Hostname string + Name string + Type string + UUID string + type NodeDetail struct + BytesReceived int + CPU string + ConfigHash string + DaemonHash string + FirstSeen time.Time + HardwareSerial string + Localname string + Memory string + OsqueryUser string + Username string + type NodePosture struct + Categories []string + FailCount int + PassCount int + RiskLevel string + TotalScore int + WarnCount int + type NodeSummary struct + Environment string + Hostname string + IPAddress string + LastSeen time.Time + OsqueryVersion string + Platform string + PlatformVersion string + UUID string + type Option func(*options) + func WithWrites(w WriteBackend) Option + type QuerySummary struct + Active bool + Completed bool + CreatedAt time.Time + Creator string + Errors int + Executions int + Expected int + Expired bool + Name string + Query string + type SavedQuerySummary struct + Name string + Query string + type TableColumn struct + Description string + Hidden bool + Index bool + Name string + Required bool + Type string + type TableSummary struct + Description string + Evented bool + Name string + Platforms []string + type WriteBackend interface + CompleteQuery func(env, name string) (types.ApiGenericResponse, error) + ExpireQuery func(env, name string) (types.ApiGenericResponse, error) + RunQuery func(env, query string, uuids, hosts, platforms, tags []string, hidden bool, ...) (types.ApiQueriesResponse, error) + TagNode func(env, identifier, tag string, tagType uint, custom string) error