preflight

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Finding

type Finding struct {
	Kind       string `json:"kind"`
	Severity   string `json:"severity"`
	Message    string `json:"message"`
	Line       int    `json:"line,omitempty"`
	MatchLabel string `json:"match_label,omitempty"`
}

type Protection

type Protection string
const (
	ProtectionNone Protection = "none"
	ProtectionSoft Protection = "soft_block"
	ProtectionHard Protection = "hard_block"
)

type Result

type Result struct {
	CanonicalPath            string     `json:"canonical_path"`
	Filename                 string     `json:"filename"`
	SizeBytes                uint64     `json:"size_bytes"`
	SHA256                   string     `json:"sha256"`
	ContentType              string     `json:"content_type"`
	ContentClass             string     `json:"content_class"`
	RequestedExpiry          string     `json:"requested_expiry"`
	PlanEligible             bool       `json:"plan_eligible"`
	SecretScan               SecretScan `json:"secret_scan"`
	Protection               Protection `json:"protection"`
	RequiresUserConfirmation bool       `json:"requires_user_confirmation"`
}

func Build

func Build(path string) (Result, error)

type SecretScan

type SecretScan struct {
	Status   SecretStatus `json:"status"`
	Findings []Finding    `json:"findings"`
}

type SecretStatus

type SecretStatus string
const (
	SecretStatusClean SecretStatus = "clean"
	SecretStatusWarn  SecretStatus = "warning"
	SecretStatusBlock SecretStatus = "blocked"
)

Jump to

Keyboard shortcuts

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