독립 호스트에서 안전한 작업 실행과 복구를 제공하기 위해 런타임 설정, 정책, 상태 저장소, 워크스페이스 격리 및 AgentTask 오케스트레이션을 확장한다.
31 lines
505 B
Go
31 lines
505 B
Go
//go:build !linux && !darwin
|
|
|
|
package agentworkspace
|
|
|
|
import (
|
|
"context"
|
|
"fmt"
|
|
"os/exec"
|
|
"runtime"
|
|
|
|
"iop/packages/go/agenttask"
|
|
)
|
|
|
|
func platformConfinementRevision() (string, error) {
|
|
return "", fmt.Errorf(
|
|
"%w: platform %s is unsupported",
|
|
ErrConfinementUnavailable,
|
|
runtime.GOOS,
|
|
)
|
|
}
|
|
|
|
func platformConfinementCommand(
|
|
context.Context,
|
|
agenttask.ConfinementBinding,
|
|
confinementPolicy,
|
|
string,
|
|
[]string,
|
|
) (*exec.Cmd, error) {
|
|
_, err := platformConfinementRevision()
|
|
return nil, err
|
|
}
|