MCPcopy Create free account

hub / github.com/carlmontanari/boxen / functions

Functions380 in github.com/carlmontanari/boxen

↓ 36 callersMethodError
(msg string, args ...any)
agent/logging.go:39
↓ 36 callersMethodInfo
(msg string, args ...any)
agent/logging.go:29
↓ 28 callersFunctionNewAgent
NewAgent returns a new boxen Agent instance.
agent/agent.go:42
↓ 19 callersFunctiontestQemuProfile
(managementPassthrough bool)
profile/qemu_test.go:134
↓ 18 callersMethodString
()
proto/v1/server.pb.go:475
↓ 17 callersMethodDebug
(msg string, args ...any)
agent/logging.go:24
↓ 17 callersMethodRun
( ctx context.Context, l *slog.Logger, cfg *boxencontainertypes.RunConfig, )
container/container.go:24
↓ 14 callersMethodRenderTemplate
RenderTemplate renders write content with named Go template values.
profile/formatters.go:145
↓ 12 callersFunctionNewFormatters
NewFormatters returns a Formatters object based on the given inputs/profile.
profile/formatters.go:107
↓ 12 callersFunctionfakeConsoleOutput
fakeConsoleOutput makes the agent read the given chunks, one per read call, then nothing.
agent/process_readuntil_test.go:15
↓ 10 callersFunctionfile_proto_v1_server_proto_rawDescGZIP
()
proto/v1/server.pb.go:643
↓ 10 callersMethodprocessStepReadUntil
(ctx context.Context, step *boxenprofile.Step)
agent/process.go:183
↓ 10 callersMethodwaitForEcho
waitForEcho waits until the console echoed written text, so that following input is not sent before the guest processed it. Whitespace is ignored, sin
agent/console.go:216
↓ 9 callersFunctionreadUntilStep
(until string)
agent/process_readuntil_test.go:28
↓ 8 callersMethodApplyConfiguration
ApplyConfiguration lets profile Starlark derive VM settings before argument generation. Only a validated result replaces the current settings.
profile/configure.go:15
↓ 8 callersFunctionQemuArgsFromProfile
QemuArgsFromProfile builds the qemu launch args from the given profile/disk.
profile/qemu.go:40
↓ 8 callersFunctionqemuMgmtNIC
(p *Profile, isPackaging bool)
profile/qemu.go:335
↓ 7 callersFunctionassertCalls
(t *testing.T, got []capturedCmd, want [][]string)
agent/tcservice_test.go:40
↓ 7 callersFunctionstubNetCommand
stubNetCommand replaces runNetCommand with a recorder for the duration of the test, returning a pointer to the captured invocations.
agent/tcservice_test.go:23
↓ 6 callersFunctionLoad
Load decodes a profile and validates it. Unknown keys are rejected, so a misspelled or unsupported setting fails the build instead of being silently i
profile/load.go:27
↓ 6 callersMethodWarn
(msg string, args ...any)
agent/logging.go:34
↓ 6 callersFunctiondrainReads
drainReads calls read until it returns no data, at most maxDrainReads times, and returns everything read: a single console read returns at most one sm
agent/console.go:152
↓ 5 callersFunctioncallStarlark
callStarlark accepts inline source or nil to read filename from disk. Arguments and results use JSON-compatible values, preserving integers through YA
profile/starlark.go:86
↓ 5 callersMethodwireMgmtTap
wireMgmtTap reproduces tc-tap-mgmt-ifup: it keeps the QEMU serial console reachable, mirrors ARP, and redirects management traffic between the mgmt in
agent/tcservice.go:270
↓ 4 callersFunctionNewHandler
NewHandler returns a terminal-aware handler with quoted multiline fields.
logging/handler.go:23
↓ 4 callersMethodValidate
Validate checks the profile for problems that would otherwise only surface while packaging or running the VM, returning all of them at once.
profile/load.go:48
↓ 4 callersFunctionloadCumulusProfile
(t *testing.T)
profile/cumulus_test.go:17
↓ 4 callersMethodprepareBuild
(diskImage, profile string)
boxen/build.go:161
↓ 4 callersFunctionprepareCumulusFiles
(t *testing.T)
profile/cumulus_test.go:37
↓ 4 callersMethodresolveProfile
( profileNameOrFile string, )
boxen/platform.go:17
↓ 4 callersMethodtee
(level, msg string, args ...any)
agent/logging.go:59
↓ 4 callersMethodvalidate
()
profile/load.go:149
↓ 3 callersMethodBuilder
(ctx context.Context, in *BuilderRequest, opts ...grpc.CallOption)
proto/v1/server_grpc.pb.go:32
↓ 3 callersMethodCheck
Check if this Contains lives in b.
profile/common.go:20
↓ 3 callersMethodFind
Find returns the start and end offsets of the first match of this Contains in b, or nil when there is no match. A literal match is preferred over a pa
profile/common.go:29
↓ 3 callersFunctionGetEnvStrOrDefault
GetEnvStrOrDefault returns the value of the environment variable k or the default d if the value is unset/empty.
util/env.go:14
↓ 3 callersMethodGetRequest
()
proto/v1/server.pb.go:170
↓ 3 callersMethodIsManagementPassthroughEnabled
IsManagementPassthroughEnabled resolves the transparent management mode. The CLAB_MGMT_PASSTHROUGH environment var wins over the profile default, allo
profile/virtualmachine.go:155
↓ 3 callersFunctionbuildBuilderEnv
(host string, vmConsole bool)
boxen/build.go:201
↓ 3 callersFunctioncleanText
(s string)
logging/handler.go:95
↓ 3 callersMethodinvokeCommand
(ctx context.Context, command string)
agent/command.go:8
↓ 3 callersFunctionloadCommunitySonicProfile
(t *testing.T)
profile/community_sonic_test.go:12
↓ 3 callersFunctionqemuDataNICs
(p *Profile)
profile/qemu.go:392
↓ 3 callersMethodrecord
(name string, args ...string)
agent/tcservice_test.go:295
↓ 3 callersMethodrunSteps
runSteps runs the given profile steps against the console in order, stopping at the first failure.
agent/steps.go:13
↓ 3 callersMethodstartInstance
(ctx context.Context, isPackaging bool)
agent/instance.go:19
↓ 3 callersFunctionvalidateDuration
(field, value string)
profile/load.go:226
↓ 3 callersMethodwatchInstance
watchInstance reports the VM exiting on its own (crash or guest power off) as a run failure, so the node becomes unhealthy and the container exits ins
agent/run.go:304
↓ 3 callersMethodwatchNIC
watchNIC waits for tap (created by QEMU) to appear and runs setup once, then keeps the tc rules in sync with eth appearing/disappearing, re-wiring whe
agent/tcservice.go:85
↓ 2 callersMethodBuild
Build runs the build process -- this is the build process from the users perspective -- i.e. on their laptop.
boxen/build.go:18
↓ 2 callersMethodFiler
(ctx context.Context, in *FilerRequest, opts ...grpc.CallOption)
proto/v1/server_grpc.pb.go:33
↓ 2 callersMethodGetData
()
proto/v1/server.pb.go:546
↓ 2 callersMethodGetDone
()
proto/v1/server.pb.go:553
↓ 2 callersMethodGetNatPorts
GetNatPorts returns the ports forwarded to the VM in legacy management mode: the profile's natPorts, or the defaults when the profile lists none.
profile/virtualmachine.go:139
↓ 2 callersMethodGetNicType
GetNicType returns the QEMU NIC model, QEMU_NIC_TYPE overrides the profile's nicType.
profile/virtualmachine.go:148
↓ 2 callersMethodGetResponse
()
proto/v1/server.pb.go:327
↓ 2 callersMethodLogger
(ctx context.Context, opts ...grpc.CallOption)
proto/v1/server_grpc.pb.go:31
↓ 2 callersMethodResolveDataNICMACs
ResolveDataNICMACs sets the MAC of each data nic: the MAC of the matching container interface when it exists, so the guest uses the MAC containerlab a
profile/qemu.go:411
↓ 2 callersMethodSend
(response *boxenprotov1.FilerResponse)
boxen/rpcfiler_test.go:22
↓ 2 callersMethodapplyIPv4CIDR
applyIPv4CIDR sets the IPv4 address, network, and prefix-length fields from the given CIDR.
profile/formatters.go:439
↓ 2 callersMethodapplyIPv6CIDR
applyIPv6CIDR sets the IPv6 address, network, and prefix-length fields from the given CIDR.
profile/formatters.go:455
↓ 2 callersMethodbringMgmtTapUp
bringMgmtTapUp brings the management tap up, sets the MTU, and flushes any IPv6 addresses so periodic traffic from the container itself does not leak
agent/tcservice.go:252
↓ 2 callersFunctionbuildBuilderVolumes
()
boxen/build.go:213
↓ 2 callersFunctionbuildOpenConsoleCommand
(containerID string)
boxen/build.go:252
↓ 2 callersFunctioncleanAttr
(a slog.Attr)
logging/handler.go:73
↓ 2 callersMethodcloseConsoleConn
(ctx context.Context)
agent/console.go:132
↓ 2 callersMethodcount
(pred func(capturedCmd) bool)
agent/tcservice_test.go:302
↓ 2 callersFunctiondefaultManagementFormatters
defaultManagementFormatters returns the default management formatters. It sets the default IPv4 and IPv6 gateways and applies the default CIDRs.
profile/formatters.go:307
↓ 2 callersFunctiondhcpManagementFormatters
()
profile/formatters.go:319
↓ 2 callersFunctiongenerateMac
(lastOctet int)
profile/qemu.go:460
↓ 2 callersFunctiongetIntfMac
(ctx context.Context, intf string)
profile/qemu.go:476
↓ 2 callersFunctionintfWaitTimeout
()
agent/run.go:273
↓ 2 callersFunctioninvokeStarlarkF
(fBody string, cmd []string, isPackaging bool)
profile/qemu.go:498
↓ 2 callersMethodnewIndex
(name string)
agent/tcservice_test.go:272
↓ 2 callersMethodopenConsoleConn
(ctx context.Context, logFilename string)
agent/console.go:31
↓ 2 callersFunctionopenFile
openFile uses embedded companions for profile names and host files for custom profiles, whose extraFiles paths are made absolute by loadProfileFile.
boxen/rpcfiler.go:73
↓ 2 callersMethodpackageConvertDisk
(ctx context.Context)
agent/package.go:371
↓ 2 callersMethodpackageGetFiles
(ctx context.Context)
agent/package.go:304
↓ 2 callersMethodpackagePreCommands
(ctx context.Context)
agent/package.go:398
↓ 2 callersMethodpackageRequestCompleted
(ctx context.Context)
agent/package.go:192
↓ 2 callersFunctionparseCIDR
parseCIDR parses a CIDR string into its address, network, and prefix-length parts. The prefix length is returned as an int, so callers that need it nu
profile/formatters.go:429
↓ 2 callersFunctionpromptCallbackName
(idx int, promptName string)
agent/process.go:16
↓ 2 callersFunctionreadFile
readFile returns raw file contents, optionally using a default for a missing file.
profile/files.go:12
↓ 2 callersFunctionresolveFilePath
resolves the file at f -- if f exists, great, if not we check in the same directory that the users root disk is (d).
boxen/rpcfiler.go:94
↓ 2 callersMethodrunPrepareDisk
runPrepareDisk creates the qcow2 overlay the VM writes to, backed by the packaged disk. The packaged disk stays untouched in the image layer, so start
agent/instancestate.go:23
↓ 2 callersMethodrunResolveInstanceUUID
runResolveInstanceUUID sets the VM system UUID: UUID from the environment when set, otherwise the UUID generated by a previous start of this container
agent/instancestate.go:72
↓ 2 callersMethodrunTC
runTC runs a sequence of `tc` invocations, returning on the first failure.
agent/tcservice.go:147
↓ 2 callersMethodsetPresent
setPresent adds or removes an interface; an added interface gets a new index.
agent/tcservice_test.go:252
↓ 2 callersMethodsetupMgmtNIC
setupMgmtNIC plugs the management interface a single time. Unlike data NICs, the management interface is always present and never hotplugged, so there
agent/tcservice.go:214
↓ 2 callersFunctionuseRunDisk
useRunDisk points the VM at the per-container overlay instead of the packaged disk. It rewrites every reference to the packaged disk, including path-q
profile/qemu.go:142
↓ 2 callersMethodwireDataTap
wireDataTap installs the bidirectional tc mirred redirect rules between the container data interface and the VM tap. The ingress qdiscs are recreated,
agent/tcservice.go:188
↓ 2 callersMethodwriteHealth
writeHealth writes the given status string to the health file consulted by the container healthcheck.
agent/health.go:20
↓ 1 callersMethodApply
Apply appends this ConfigField's content to the list of qemu commands in `o`, gated by whether the field applies to the current packaging/run phase.
profile/virtualmachine.go:75
↓ 1 callersFunctionClabIntfName
ClabIntfName returns the containerlab interface name for the given index (e.g. "eth0"), honoring the CLAB_INTF_PREFIX environment variable.
util/env.go:54
↓ 1 callersFunctionClabIntfPrefix
ClabIntfPrefix returns the containerlab interface name prefix (e.g. "eth"), honoring the CLAB_INTF_PREFIX environment variable when set.
util/env.go:48
↓ 1 callersMethodCommit
( ctx context.Context, l *slog.Logger, containerID, imageID string, natPorts []boxenprofile.NatPort,
container/container.go:34
↓ 1 callersMethodError
()
logging/handler_test.go:58
↓ 1 callersMethodExec
( ctx context.Context, l *slog.Logger, cfg *boxencontainertypes.ExecConfig, )
container/container.go:29
↓ 1 callersMethodFiler
Filer is rpc endpoint for the builder to ask for files to be streamed to it from the server.
boxen/rpcfiler.go:18
↓ 1 callersMethodGetDisk
()
proto/v1/server.pb.go:412
next →1–100 of 380, ranked by callers