Documentation
¶
Overview ¶
Package oci handles pulling OCI plugin artifacts from registries using ORAS.
Plugins are OCI artifacts containing skills, hooks, agents, and MCP server configurations. They are pulled to the local plugins directory before the klaus container is started, then bind-mounted into the container.
TODO(klausctl#4): Implement ORAS-based plugin pulling. This is currently a placeholder that creates the plugin directory structure.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PluginDirs ¶
PluginDirs returns the container-internal mount paths for the given plugins. Each plugin is mounted at /var/lib/klaus/plugins/<shortName>.
func PullPlugins ¶
PullPlugins pulls all configured plugins to the local plugins directory. Each plugin is stored at <pluginsDir>/<shortName>/. Progress messages are written to w.
TODO(klausctl#5): Implement actual ORAS-based pulling. Currently this is a placeholder that only creates the directory structure and prints a warning. Plugins will not be available until ORAS pulling is implemented.
func ShortPluginName ¶
ShortPluginName extracts the last segment of a repository path. e.g. "gsoci.azurecr.io/giantswarm/klaus-plugins/gs-platform" -> "gs-platform"
Types ¶
This section is empty.