embed

package
v0.10.0-rc14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var K3dConfig string

Embedded file systems Note: embed paths are relative to this file's directory (internal/embed/)

View Source
var K3sConfig string

Functions

func CopyDefaults

func CopyDefaults(destDir string, replacements map[string]string) error

CopyDefaults recursively copies all embedded infrastructure manifests to the destination directory. The replacements map is applied to every file: each key (e.g. "{{OLLAMA_HOST}}") is replaced with its value. Pass nil for a verbatim copy.

func CopyNetwork added in v0.2.3

func CopyNetwork(networkName, destDir string) error

CopyNetwork recursively copies an embedded network to the destination directory

func CopySkills added in v0.3.1

func CopySkills(destDir string) error

CopySkills recursively copies all embedded skills to the destination directory. If a skill directory already exists at the destination, it is skipped (user skills take precedence over embedded defaults).

func GetAvailableNetworks added in v0.2.3

func GetAvailableNetworks() ([]string, error)

GetAvailableNetworks returns a list of all embedded network names

func GetEmbeddedSkillNames added in v0.3.1

func GetEmbeddedSkillNames() ([]string, error)

GetEmbeddedSkillNames returns the names of all embedded skill directories.

func InfrastructureDigest added in v0.9.0

func InfrastructureDigest() (string, error)

InfrastructureDigest returns a stable digest of the embedded infrastructure assets. Callers use this to decide whether an existing copied defaults tree needs to be refreshed from the current binary.

func ReadEmbeddedNetworkFile added in v0.2.3

func ReadEmbeddedNetworkFile(networkName, filename string) ([]byte, error)

ReadEmbeddedNetworkFile reads a file from an embedded network

func ReadInfrastructureFile added in v0.3.1

func ReadInfrastructureFile(path string) ([]byte, error)

ReadInfrastructureFile reads a file from the embedded infrastructure directory

func WriteSkillSubset added in v0.10.0

func WriteSkillSubset(dst string, names []string) error

WriteSkillSubset copies the named embedded skills into dst, overwriting any per-skill files already present for the named skills. It does NOT delete skills already at dst that aren't in names — agents own the dir after the initial seed. Callers that need exact-set semantics should remove the unwanted skill dirs themselves before calling.

Returns an error if any requested name does not exist in the embedded FS, because a typo'd skill name should fail loudly rather than silently produce an under-skilled agent.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL