oci

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

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

func PluginDirs(plugins []config.Plugin) []string

PluginDirs returns the container-internal mount paths for the given plugins. Each plugin is mounted at /var/lib/klaus/plugins/<shortName>.

func PullPlugins

func PullPlugins(plugins []config.Plugin, pluginsDir string, w io.Writer) error

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

func ShortPluginName(repository string) string

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.

Jump to

Keyboard shortcuts

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