Files
reverse-engineering-anything/src/application/go/GoBinaryPort.ts
T
morluto fc7f042c8c refactor(lifecycle): require cleanup for offline providers
Require resource-owning provider ports to expose cleanup and migrate test adapters to delegate or explicitly close their own resources.
2026-10-27 06:49:07 +08:00

21 lines
628 B
TypeScript

import type {
ExecutionOptions,
ProviderIdentity,
} from "../AnalysisProvider.js";
import type { AnalysisError } from "../../domain/analysisErrorBase.js";
import type {
GoBinary,
InspectGoBinaryInput,
} from "../../domain/go/goBinary.js";
import type { Result } from "../../domain/result.js";
/** Replaceable offline build-information reader with no target-execution authority. */
export interface GoBinaryPort {
readonly identity: ProviderIdentity;
close(): Promise<void>;
inspect(
input: Omit<InspectGoBinaryInput, "detail">,
options?: ExecutionOptions,
): Promise<Result<GoBinary, AnalysisError>>;
}