Documentation
¶
Overview ¶
Package onboard implements conflict-safe local Hextap project onboarding, validation, and read-only doctor checks.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action string
Action is one deterministic local onboarding plan action.
const ( // ActionCreate means an absent file will be created. ActionCreate Action = "CREATE" // ActionUnchanged means an owned file already has exact bytes and mode. ActionUnchanged Action = "UNCHANGED" // ActionValidated means a valid project-owned custom adapter is preserved. ActionValidated Action = "VALIDATED" )
type DoctorOptions ¶
DoctorOptions selects local-only or additional read-only online checks.
type DoctorResult ¶
DoctorResult lists deterministic checks that completed successfully.
func Doctor ¶
func Doctor(options DoctorOptions) (DoctorResult, error)
Doctor verifies required local tools and the complete local contract. With Online set, it adds only bounded read-only GitHub queries.
type Options ¶
type Options struct {
Project string
Repository string
Formula string
Binary string
Description string
License string
GoPackage string
VersionSymbol string
CommitSymbol string
ToolkitVersion string
ToolkitSHA string
RequiredChecks []string
Linux bool
DryRun bool
FormulaSet bool
BinarySet bool
DescriptionSet bool
LicenseSet bool
GoPackageSet bool
VersionSymbolSet bool
CommitSymbolSet bool
LinuxSet bool
}
Options contains validated local onboarding inputs. The Set fields record whether a generation-only CLI option was explicitly supplied.
type ValidateOptions ¶
ValidateOptions selects local validation and the optional adapter smoke.
type ValidateResult ¶
type ValidateResult struct {
Project string
Manifest manifest.Manifest
ToolkitVersion string
ToolkitSHA string
RequiredChecks []string
BuildVerified bool
}
ValidateResult contains the verified local onboarding identity.
func Validate ¶
func Validate(options ValidateOptions) (ValidateResult, error)
Validate checks the complete local onboarding contract without executing project code unless Build is explicitly true.