refactor(tailscale): keep package internals private (#10011)
This commit is contained in:
1 parent
cb58dfd645
commit
1d58f2ecc4
1 file changed
+4
-5
@@ -9,8 +9,8 @@ import { ChildProcess, ChildProcessSpawner } from "effect/unstable/process";
|
||||
|
||||
export const DEFAULT_TAILSCALE_SERVE_PORT = 443;
|
||||
export const TAILSCALE_STATUS_TIMEOUT = Duration.millis(1_500);
|
||||
export const TAILSCALE_SERVE_TIMEOUT = Duration.seconds(10);
|
||||
export const TAILSCALE_PROBE_TIMEOUT = Duration.millis(2_500);
|
||||
const TAILSCALE_SERVE_TIMEOUT = Duration.seconds(10);
|
||||
const TAILSCALE_PROBE_TIMEOUT = Duration.millis(2_500);
|
||||
|
||||
// tailscale is a real executable everywhere (`tailscale.exe` on Windows), so
|
||||
// it is always spawned directly rather than through cmd.exe shell mode.
|
||||
@@ -47,7 +47,7 @@ const STDERR_DIAGNOSTIC_PATTERNS: ReadonlyArray<
|
||||
];
|
||||
|
||||
/** Classifies stderr into a safe label, dropping the text itself. */
|
||||
export const stderrDiagnosticOf = (stderr: string): TailscaleStderrDiagnostic | undefined => {
|
||||
const stderrDiagnosticOf = (stderr: string): TailscaleStderrDiagnostic | undefined => {
|
||||
if (stderr.trim().length === 0) {
|
||||
return undefined;
|
||||
}
|
||||
@@ -66,7 +66,7 @@ export class TailscaleCommandSpawnError extends Schema.TaggedErrorClass<Tailscal
|
||||
}
|
||||
}
|
||||
|
||||
export class TailscaleCommandOutputError extends Schema.TaggedErrorClass<TailscaleCommandOutputError>()(
|
||||
class TailscaleCommandOutputError extends Schema.TaggedErrorClass<TailscaleCommandOutputError>()(
|
||||
"TailscaleCommandOutputError",
|
||||
{
|
||||
...TailscaleCommandContext,
|
||||
@@ -137,7 +137,6 @@ const TailscaleStatusJson = Schema.Struct({
|
||||
Self: Schema.optional(TailscaleStatusSelf),
|
||||
});
|
||||
|
||||
export type TailscaleStatusSelf = typeof TailscaleStatusSelf.Type;
|
||||
export type TailscaleStatusJson = typeof TailscaleStatusJson.Type;
|
||||
|
||||
export interface TailscaleStatus {
|
||||
|
||||
Reference in new issue
Block a user