Skip to content

plugin-interface

Placement compiled-in (in-process)
Source github.com/opencharly/charly/candy/plugin-interface
Version 2026.176.1700
Candy plugin-interface

This plugin is listed in charly/charly.yml’s compiled_plugins:, so its providers are compiled into the charly binary and register in-process.

The reserved words this plugin serves:

  • interface — verb class

The interface check verb relocated into a candy: probes a network interface’s presence / MTU / addresses via ip on the live deployment. A HOST-COUPLED verb — its RunVerb runs against the live check engine (sdk/kit.CheckContext), so it is COMPILED-IN-ONLY. A pure check verb (probe-only); a port/process-template relocation on the kit contract.

The CUE schema below is the authoritative grammar for this plugin’s input. It is the same single source that generates the plugin’s Go parameter types and answers the runtime Describe RPC, so this page cannot disagree with either.

// The BUILT-IN `interface` plugin's OWN CUE schema — the typed plugin_input for the
// `interface` verb (`ip -o addr show <name>` existence + MTU + address probe). It is
// the SINGLE SOURCE for this plugin's params, used two ways (the same contract the
// reference examplerunverb and core `spec` use):
//
// 1. GENERATE the Go param struct — `cue exp gengotypes` (driven by task cue:gen,
// which wraps this with `package params` + `@go(params)`) emits
// ../params/cue_types_gen.go, so the provider decodes plugin_input into a TYPED
// struct, never a hand-parsed map.
// 2. VALIDATE authored input AT RUNTIME — the builtin serves this source over the
// Describe channel (InProcTransport) exactly like an external serves it over
// gRPC; the host splices it onto the base (base ++ plugin) and validates every
// authored `interface` step's plugin_input against #InterfaceInput.
//
// SELF-CONTAINED: it references NO base def, so it compiles standalone (gengotypes +
// the load-gate compile) AND splices onto the base — the base ++ plugin splice exists
// to detect a def-name collision with the base, not to resolve base refs.
//
// `addrs` was a SHARED base #Op field (the now-extracted `dns` plugin also read it),
// but with both `dns` and `interface` extracted it has NO remaining #Op consumer, so it
// is REMOVED from #Op and reproduced standalone here (a bare `[...string]` list, NO def
// reference). `mtu` is interface-specific and likewise leaves #Op. The provider is a
// CheckVerbProvider — it dispatches IN-PROCESS via RunVerb and so keeps the live
// *Runner the probe needs (mirrors examplerunverb).
#InterfaceInput: {
// interface — the network interface name to probe (the verb discriminator).
interface: string @go(Interface)
// mtu — optional expected MTU; when set the probe asserts the interface's MTU.
mtu?: int @go(MTU,type=*int)
// addrs — optional required addresses; each must appear in the `ip addr` output.
addrs?: [...string] @go(Addrs)
}

See also the candy reference for this candy’s install surface.