Documentation
¶
Overview ¶
Package build packs an Agentfile and its referenced contexts and bins into an OCI artifact that can be pushed to a registry or inspected as a standalone manifest. Inherited parents are resolved transparently.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Build ¶
func Build( ctx context.Context, af *spec.Agentfile, source []byte, src billy.Filesystem, dst oras.Target, ) (*spec.ReferenceWithDigest, error)
Build creates an OCI artifact from a parsed Agentfile and pushes it into dst. `source` carries the verbatim Agentfile DSL bytes — they ride along as their own layer so consumers can read what the operator actually wrote, not a marshal/reconstruct of the parsed spec. Context and ADD files are read from src. The manifest is tagged with the agent name in dst. Returns the image reference with digest.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.