aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/pkg
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-08-29 18:38:52 +0900
committerOphestra <cat@gensokyo.uk>2026-08-29 18:38:52 +0900
commitbd4f29909e0750a4660eaf48e3169777a265b0ab (patch)
tree3b972df1bb9474a8fdbbae177eed0cb3d6412073 /internal/pkg
parent418d24936f73f3d9108133a325f1c1a479b37e09 (diff)
internal/pkg: remove arch snapshot API
This function has no current users and has no good use case, so remove it before the API is made stable. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/pkg')
-rw-r--r--internal/pkg/exec.go10
1 files changed, 0 insertions, 10 deletions
diff --git a/internal/pkg/exec.go b/internal/pkg/exec.go
index e499ecf1..b40ae84b 100644
--- a/internal/pkg/exec.go
+++ b/internal/pkg/exec.go
@@ -7,7 +7,6 @@ import (
"errors"
"fmt"
"io"
- "maps"
"os"
"os/exec"
"path/filepath"
@@ -130,15 +129,6 @@ func RegisterArch(arch string, e container.BinfmtEntry) {
binfmt[arch] = e
}
-// Arch returns a snapshot of currently registered [KindExec] and [KindExecNet]
-// binfmt entries.
-func Arch() map[string]container.BinfmtEntry {
- binfmtMu.RLock()
- r := maps.Clone(binfmt)
- binfmtMu.RUnlock()
- return r
-}
-
const (
// ExecTimeoutDefault replaces out of range [NewExec] timeout values.
ExecTimeoutDefault = 15 * time.Minute