embed

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: Apache-2.0 Imports: 6 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

func CopyNetwork(networkName, destDir string) error

CopyNetwork recursively copies an embedded network to the destination directory

func CopySkills

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

func GetAvailableNetworks() ([]string, error)

GetAvailableNetworks returns a list of all embedded network names

func GetEmbeddedSkillNames

func GetEmbeddedSkillNames() ([]string, error)

GetEmbeddedSkillNames returns the names of all embedded skill directories.

func ReadEmbeddedNetworkFile

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

ReadEmbeddedNetworkFile reads a file from an embedded network

func ReadInfrastructureFile

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

ReadInfrastructureFile reads a file from the embedded infrastructure directory

Types

This section is empty.

Jump to

Keyboard shortcuts

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