Documentation
¶
Overview ¶
Package runnerartifacts validates and caches explicit Linux runner releases.
Index ¶
Constants ¶
View Source
const ( ManifestName = "runner-manifest.json" CurrentFormat = 1 MaxManifestBytes = 16 << 10 MaxArtifactBytes = 256 << 20 )
Variables ¶
Functions ¶
func ValidRelease ¶
Types ¶
type Artifact ¶
Artifact owns the already verified open file. Its bytes remain subject to the independent upload digest check; callers must Close it after the operation.
type BuildMetadata ¶
type DirectorySource ¶
type DirectorySource struct {
// contains filtered or unexported fields
}
DirectorySource consumes a locally built release explicitly selected by the developer. It never builds on the desktop or executes a downloaded program.
func NewDirectorySource ¶
func NewDirectorySource(root string) (*DirectorySource, error)
func (*DirectorySource) Fetch ¶
func (source *DirectorySource) Fetch(ctx context.Context, release, name string) (io.ReadCloser, error)
type GitHubSource ¶
type GitHubSource struct {
// contains filtered or unexported fields
}
func NewGitHubSource ¶
func NewGitHubSource(repository string) (*GitHubSource, error)
func (*GitHubSource) Fetch ¶
func (source *GitHubSource) Fetch(ctx context.Context, release, name string) (io.ReadCloser, error)
type Manifest ¶
type Manifest struct {
Format int `json:"format"`
Contract int `json:"contract"`
Release string `json:"release"`
SourceCommit string `json:"source_commit"`
SourceDirty bool `json:"source_dirty"`
Entries []Entry `json:"entries"`
}
func DecodeManifest ¶
Release manifests are generated, owned documents with one current shape. Canonical comparison rejects missing, duplicate, case-changed and extra fields.
Click to show internal directories.
Click to hide internal directories.