Documentation
¶
Index ¶
- func GenerateConfig(rc *driver.ResolvedClaw) ([]byte, error)
- func GenerateJobsJSON(rc *driver.ResolvedClaw) ([]byte, error)
- func GenerateServiceSkill(surface driver.ResolvedSurface) string
- type Driver
- func (d *Driver) HealthProbe(ref driver.ContainerRef) (*driver.Health, error)
- func (d *Driver) Materialize(rc *driver.ResolvedClaw, opts driver.MaterializeOpts) (*driver.MaterializeResult, error)
- func (d *Driver) PostApply(rc *driver.ResolvedClaw, opts driver.PostApplyOpts) error
- func (d *Driver) Validate(rc *driver.ResolvedClaw) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateConfig ¶
func GenerateConfig(rc *driver.ResolvedClaw) ([]byte, error)
GenerateConfig builds an OpenClaw JSON config from resolved Claw directives. Emits standard JSON (valid JSON5). Deterministic output (encoding/json sorts map keys).
func GenerateJobsJSON ¶
func GenerateJobsJSON(rc *driver.ResolvedClaw) ([]byte, error)
GenerateJobsJSON produces the openclaw cron/jobs.json content for rc.Invocations. IDs are deterministic: same service + schedule + message always produces the same ID, so re-running claw compose up is idempotent.
func GenerateServiceSkill ¶
func GenerateServiceSkill(surface driver.ResolvedSurface) string
GenerateServiceSkill produces a fallback markdown skill file for a service surface, including hostname, ports, and network info.
Types ¶
type Driver ¶
type Driver struct{}
func (*Driver) HealthProbe ¶
func (*Driver) Materialize ¶
func (d *Driver) Materialize(rc *driver.ResolvedClaw, opts driver.MaterializeOpts) (*driver.MaterializeResult, error)
func (*Driver) PostApply ¶
func (d *Driver) PostApply(rc *driver.ResolvedClaw, opts driver.PostApplyOpts) error
Click to show internal directories.
Click to hide internal directories.