scopeaudit

package
v1.10.4 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package scopeaudit implements read-only stored-scope inventory shared by adapters.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Issue

func Issue(resource, id, canonical string, indexed [3]string, extra string) *store.ScopeIssue

Issue returns a finding only when a stored identity is unsafe.

func SQL

func SQL(ctx context.Context, db Queryer, columnsQuery string, visit func(store.ScopeIssue) error) error

SQL discovers scoped tables from a driver-specific catalog query, then streams identity columns only. Catalog identifiers are quoted before use in SQL.

Types

type Queryer

type Queryer interface {
	Query(context.Context, string, ...any) (driver.Rows, error)
}

Queryer is the SQL read surface required by inventory.

Jump to

Keyboard shortcuts

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