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.