Download this file
| 1 | package runner |
| 2 | |
| 3 | import ( |
| 4 | "os" |
| 5 | |
| 6 | "amadan.net/oficina/equipo/internal/runnerproto" |
| 7 | ) |
| 8 | |
| 9 | // LoadBindings reads the account bindings file with its file and identity checks. |
| 10 | func LoadBindings(path string) ([]AccountBinding, error) { return loadDirectBindings(path) } |
| 11 | |
| 12 | // LockState takes the runner's exclusive state-directory lock. |
| 13 | func LockState(dir string) (*os.File, error) { return lockState(dir) } |
| 14 | |
| 15 | // ReadCredentials reads the runner bearer from the state directory. |
| 16 | func ReadCredentials(path string) (runnerproto.CredentialRotation, error) { |
| 17 | return readCredentials(path) |
| 18 | } |
| 19 | |
| 20 | // Bwrap is the configured bubblewrap binary. |
| 21 | func (c Config) Bwrap() string { return c.bwrap() } |
| 22 | |
| 23 | // ToolProxy is the configured in-namespace MCP helper. |
| 24 | func (c Config) ToolProxy() string { return c.toolProxy() } |
| 25 | |
| 26 | // Validate checks the configuration as LoadConfig does. |
| 27 | func (c Config) Validate() error { return c.validate() } |
| 28 | |
| 29 | // PeerUID is the user id of a Unix socket's peer. |
| 30 | func PeerUID(fd int) (uint32, error) { return peerUID(fd) } |
| 31 | |