managedbinary

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package managedbinary owns GitContribute's private MCP runtime installation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Destination

func Destination(dataDir, version string) (string, error)

Destination returns the versioned private executable path under dataDir.

func Install

func Install(source, destination string) (bool, error)

Install atomically copies source to destination as an executable file. It returns false when an identical managed executable was already present.

Types

type InstalledRuntime added in v1.0.0

type InstalledRuntime struct {
	Version string
	Path    string
}

InstalledRuntime identifies one usable versioned private executable.

func List added in v1.0.0

func List(dataDir string) ([]InstalledRuntime, error)

List returns usable versioned private runtimes under dataDir. Missing data directories are treated as an empty installation; malformed or non-regular entries are ignored so one abandoned directory cannot hide valid runtimes.

Jump to

Keyboard shortcuts

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