lip

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: GPL-3.0, LGPL-3.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventLipTaskStarted  = "lip_task_started"
	EventLipTaskLog      = "lip_task_log"
	EventLipTaskProgress = "lip_task_progress"
	EventLipTaskFinished = "lip_task_finished"
)
View Source
const (
	EventLipInstallStatus   = "lip_install_status"
	EventLipInstallProgress = "lip_install_progress"
	EventLipInstallDone     = "lip_install_done"
	EventLipInstallError    = "lip_install_error"
)

Variables

This section is empty.

Functions

func CacheClean added in v0.3.7

func CacheClean(ctx context.Context) error

func EnsureInstalledWithError added in v0.3.7

func EnsureInstalledWithError() error

func EnsureLatest added in v0.3.7

func EnsureLatest(ctx context.Context)

func EnsureLatestWithError added in v0.3.7

func EnsureLatestWithError(ctx context.Context) error

func ErrorCode added in v0.3.7

func ErrorCode(err error) string

func FetchPackageReadme added in v0.3.7

func FetchPackageReadme(projectURL string) (string, error)

func GetLatestVersion

func GetLatestVersion() (string, error)

func GetVersion

func GetVersion() string

func Install

func Install() string

func InstallPackagesViaDaemon added in v0.3.7

func InstallPackagesViaDaemon(ctx context.Context, workDir string, packages []string) error

func IsInstalled

func IsInstalled() bool

func IsPackageExplicitlyInstalledViaDaemon added in v0.3.7

func IsPackageExplicitlyInstalledViaDaemon(ctx context.Context, workDir string, packageRef string) (bool, error)

func LipExePath

func LipExePath() string

func ListPackageStatesViaDaemon added in v0.3.8

func ListPackageStatesViaDaemon(ctx context.Context, workDir string) (map[string]PackageInstallState, error)

func UninstallPackagesViaDaemon added in v0.3.7

func UninstallPackagesViaDaemon(ctx context.Context, workDir string, packages []string, noDependencies bool) error

func UpdatePackagesViaDaemon added in v0.3.7

func UpdatePackagesViaDaemon(ctx context.Context, workDir string, packages []string) error

Types

type LipTaskFinishedEvent added in v0.3.7

type LipTaskFinishedEvent struct {
	TaskID     string   `json:"taskId"`
	Method     string   `json:"method"`
	Target     string   `json:"target"`
	Packages   []string `json:"packages"`
	Timestamp  int64    `json:"timestamp"`
	Success    bool     `json:"success"`
	Error      string   `json:"error"`
	Stderr     string   `json:"stderr"`
	DurationMs int64    `json:"durationMs"`
}

type LipTaskLogEvent added in v0.3.7

type LipTaskLogEvent struct {
	TaskID    string   `json:"taskId"`
	Method    string   `json:"method"`
	Target    string   `json:"target"`
	Packages  []string `json:"packages"`
	Timestamp int64    `json:"timestamp"`
	Level     string   `json:"level"`
	Message   string   `json:"message"`
	Raw       string   `json:"raw"`
}

type LipTaskProgressEvent added in v0.3.7

type LipTaskProgressEvent struct {
	TaskID     string   `json:"taskId"`
	Method     string   `json:"method"`
	Target     string   `json:"target"`
	Packages   []string `json:"packages"`
	Timestamp  int64    `json:"timestamp"`
	ProgressID string   `json:"progressId"`
	Message    string   `json:"message"`
	Percentage float64  `json:"percentage"`
}

type LipTaskStartedEvent added in v0.3.7

type LipTaskStartedEvent struct {
	TaskID    string   `json:"taskId"`
	Method    string   `json:"method"`
	Target    string   `json:"target"`
	Packages  []string `json:"packages"`
	Timestamp int64    `json:"timestamp"`
}

type PackageInstallState added in v0.3.7

type PackageInstallState struct {
	Installed         bool
	ExplicitInstalled bool
	InstalledVersion  string
}

func GetPackageInstallStateViaDaemon added in v0.3.7

func GetPackageInstallStateViaDaemon(ctx context.Context, workDir string, packageRef string) (PackageInstallState, error)

type Status added in v0.3.7

type Status struct {
	Path           string `json:"path"`
	Installed      bool   `json:"installed"`
	UpToDate       bool   `json:"upToDate"`
	CurrentVersion string `json:"currentVersion"`
	LatestVersion  string `json:"latestVersion"`
	Error          string `json:"error"`
}

func CheckStatus added in v0.3.7

func CheckStatus() Status

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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