oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

Download this file

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