Documentation
¶
Overview ¶
Package releaseinputs defines the reviewed, immutable inputs used to build Mihari all-in-one release bundles.
Index ¶
Constants ¶
const ( // SchemaV1 identifies the first Mihari all-in-one release input lock schema. SchemaV1 = "mihari-aio-input-lock/v1" // MaxLockSize bounds a release input lock before JSON decoding. MaxLockSize = 1 << 20 )
Variables ¶
This section is empty.
Functions ¶
func Encode ¶
Encode validates a lock and returns deterministic indented JSON ending in exactly one newline.
func RequiredPlatforms ¶
func RequiredPlatforms() []string
RequiredPlatforms returns the exact platform keys required by the lock.
Types ¶
type GeoIPFile ¶
type GeoIPFile struct {
Name string `json:"name"`
URL string `json:"url"`
SHA256 string `json:"sha256"`
}
GeoIPFile identifies and verifies one GeoIP database.
type GeoIPInputs ¶
type GeoIPInputs struct {
Repository string `json:"repository"`
Commit string `json:"commit"`
Country GeoIPFile `json:"country"`
ASN GeoIPFile `json:"asn"`
}
GeoIPInputs pins the GeoIP repository and both required databases.
type Lock ¶
type Lock struct {
Schema string `json:"schema"`
Mihomo MihomoInputs `json:"mihomo"`
GeoIP GeoIPInputs `json:"geoip"`
}
Lock contains every immutable external input used by the all-in-one build.
type MihomoAsset ¶
type MihomoAsset struct {
AssetID int64 `json:"asset_id"`
Name string `json:"name"`
URL string `json:"url"`
Size int64 `json:"size"`
SHA256 string `json:"sha256"`
}
MihomoAsset identifies and verifies one platform-specific mihomo archive.
type MihomoInputs ¶
type MihomoInputs struct {
Repository string `json:"repository"`
Channel string `json:"channel"`
ReleaseID int64 `json:"release_id"`
Tag string `json:"tag"`
Assets map[string]MihomoAsset `json:"assets"`
}
MihomoInputs identifies one release and its exact supported assets.