sqlnative

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2026 License: AGPL-3.0, AGPL-3.0-or-later Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Profile            = "corvint-analyzer-candidate/sqlite-3.51.0-source-v1"
	Family             = "sqlite"
	SQLiteDialect      = "sqlite-3.51.0"
	CandidateToolchain = "go1.27.0"
)

Variables

This section is empty.

Functions

func AnalyzeFrame

func AnalyzeFrame(frame []byte) []byte

func EncodeRequest

func EncodeRequest(r Request) []byte

func ReadNoFollow

func ReadNoFollow(ctx context.Context, root *os.File, path string, limit int) ([]byte, error)

Types

type Analyzer

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

func New

func New() *Analyzer

func (*Analyzer) AnalyzeFrame

func (a *Analyzer) AnalyzeFrame(frame []byte) []byte

type Echo

type Echo struct {
	Handle string `json:"handle"`
	SHA256 string `json:"sha256"`
}

type Fact

type Fact struct {
	Kind           string `json:"kind"`
	InputHandle    string `json:"input_handle"`
	RelatedHandle  string `json:"related_handle"`
	Subject        string `json:"subject"`
	Predicate      string `json:"predicate"`
	Value          string `json:"value"`
	InstanceID     string `json:"instance_id"`
	EvidenceSHA256 string `json:"evidence_sha256"`
}

type Input

type Input struct {
	Handle        string `json:"handle"`
	Family        string `json:"family"`
	Path          string `json:"path"`
	SHA256        string `json:"sha256"`
	ContentBase64 string `json:"content_base64"`
}

func RequestForInput

func RequestForInput(handle, family, path string, content []byte) Input

type Request

type Request struct {
	Profile           string  `json:"profile"`
	Family            string  `json:"family"`
	RequestID         string  `json:"request_id"`
	ScopeID           string  `json:"scope_id"`
	CompilationUnitID string  `json:"compilation_unit_id"`
	Target            Target  `json:"target"`
	Inputs            []Input `json:"inputs"`
}

func (Request) String

func (r Request) String() string

type Target

type Target struct {
	OS           string   `json:"os"`
	Architecture string   `json:"architecture"`
	ABI          string   `json:"abi"`
	Features     []string `json:"features"`
}

Jump to

Keyboard shortcuts

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