Files
releasekit/internal/forge/diagnostic.go

18 lines
600 B
Go

package forge
import "context"
// DiagnosticBackend supports observation and deletion of recorded temporary
// releases. Callers must establish ownership before asking for deletion.
type DiagnosticBackend interface {
FindDiagnosticRelease(context.Context, string) (DiagnosticRelease, error)
ObserveDiagnosticRelease(context.Context, int64) (DiagnosticRelease, error)
DeleteDiagnosticRelease(context.Context, int64, string) (WriteEvidence, error)
}
// DiagnosticRelease carries a stable remote ID and the normal observed handle.
type DiagnosticRelease struct {
ID int64
Release Release
}