diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-03-26 14:10:35 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-03-26 14:11:10 +0900 |
| commit | af038c89ffe01f4b07ab94030fa83baa8d5f83d9 (patch) | |
| tree | 027ef910b73c58bf5e5d824d5859b8bbb41ca1eb /internal/rosa | |
| parent | d2f30173cd8d635e37623cf72b4867eb0e6ddf1d (diff) | |
internal/pkg: collection helper-artifact
This was moved from internal/rosa because it is considered generally useful.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa')
| -rw-r--r-- | internal/rosa/rosa.go | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/internal/rosa/rosa.go b/internal/rosa/rosa.go index 47ccddab..51de7648 100644 --- a/internal/rosa/rosa.go +++ b/internal/rosa/rosa.go @@ -20,9 +20,6 @@ const ( // kindBusyboxBin is the kind of [pkg.Artifact] of busyboxBin. kindBusyboxBin - - // kindCollection is the kind of [Collect]. It never cures successfully. - kindCollection ) // mustDecode is like [pkg.MustDecode], but replaces the zero value and prints @@ -591,29 +588,3 @@ cd '/usr/src/` + name + `/' })..., ) } - -// Collected is returned by [Collect.Cure] to indicate a successful collection. -type Collected struct{} - -// Error returns a constant string to satisfy error, but should never be seen -// by the user. -func (Collected) Error() string { return "artifacts successfully collected" } - -// Collect implements [pkg.FloodArtifact] to concurrently cure multiple -// [pkg.Artifact]. It returns [Collected]. -type Collect []pkg.Artifact - -// Cure returns [Collected]. -func (*Collect) Cure(*pkg.FContext) error { return Collected{} } - -// Kind returns the hardcoded [pkg.Kind] value. -func (*Collect) Kind() pkg.Kind { return kindCollection } - -// Params does not write anything, dependencies are already represented in the header. -func (*Collect) Params(*pkg.IContext) {} - -// Dependencies returns [Collect] as is. -func (c *Collect) Dependencies() []pkg.Artifact { return *c } - -// IsExclusive returns false: Cure is a noop. -func (*Collect) IsExclusive() bool { return false } |
