installer

package
v0.4.42 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package installer implements sdktools.ModuleInstaller for kubeconfig mode: it lets an agent install a capability module on the fly, mid-build, through the MCP endpoint — resolving from the configured repos (default: the public index) and helm-installing via the exact same repo-model path as `tiny install`. No platform. Without this, install_module tells the agent to go run helm itself.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ModuleInstaller

type ModuleInstaller struct {
	// contains filtered or unexported fields
}

ModuleInstaller resolves + helm-installs modules onto the local cluster.

func New

func New(cfg *rest.Config, namespace string) *ModuleInstaller

New returns an installer bound to one cluster + namespace.

func (*ModuleInstaller) InstallModule

func (m *ModuleInstaller) InstallModule(ctx context.Context, moduleName, version string, bundles []string, onProgress func(sdktools.InstallProgress)) (*sdktools.InstallResult, error)

InstallModule resolves moduleName from the configured repos and installs it via the repo model (resolve → plan → harness base ⊕ overlay → helm) — the same path as `tiny install`, no platform. version pins a version (empty = latest); bundles select optional bundles (nil = module defaults, ["none"] = zero). Install failures come back as InstallResult{Success:false} (not a Go error) so the agent gets a clean message plus the progress transcript.

Jump to

Keyboard shortcuts

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