INNER CODE UNIT · Go

httpClient

platform-engineering-labs/formae · cmd/bundle-examples/main.go:26

var httpClient = &http.Client{Timeout: 60 * time.Second}

var ghURL = regexp.MustCompile(`^https://github\.com/([^/]+)/([^/]+?)(?:\.git)?/?$`)

// ManifestEntry records what was resolved and staged for one standard-bundle
// member: the resolved release tag, the commit that tag points at, and whether
// examples were staged. The post-build opkg assertion reads this back.
type ManifestEntry struct {
	Member          string `json:"member"`
	Tag             string `json:"tag"`
	CommitSHA       string `json:"commit_sha"`
	ExamplesPresent bool   `json:"examples_present"`
}

// Manifest is the checked intent of a stage run: this build's formae version and
// the per-member resolution. The expected set for the resolve gate and the opkg
// assertion is the checked-in policy (RequiredMembers), recorded here.
type Manifest struct {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…