Documentation
¶
Index ¶
- Constants
- func CacheClean(ctx context.Context) error
- func EnsureInstalledWithError() error
- func EnsureLatest(ctx context.Context)
- func EnsureLatestWithError(ctx context.Context) error
- func ErrorCode(err error) string
- func FetchPackageReadme(projectURL string) (string, error)
- func GetLatestVersion() (string, error)
- func GetVersion() string
- func Install() string
- func InstallPackagesViaDaemon(ctx context.Context, workDir string, packages []string) error
- func IsInstalled() bool
- func IsPackageExplicitlyInstalledViaDaemon(ctx context.Context, workDir string, packageRef string) (bool, error)
- func LipExePath() string
- func ListPackageStatesViaDaemon(ctx context.Context, workDir string) (map[string]PackageInstallState, error)
- func UninstallPackagesViaDaemon(ctx context.Context, workDir string, packages []string, noDependencies bool) error
- func UpdatePackagesViaDaemon(ctx context.Context, workDir string, packages []string) error
- type LipTaskFinishedEvent
- type LipTaskLogEvent
- type LipTaskProgressEvent
- type LipTaskStartedEvent
- type PackageInstallState
- type Status
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 EnsureInstalledWithError ¶ added in v0.3.7
func EnsureInstalledWithError() error
func EnsureLatest ¶ added in v0.3.7
func EnsureLatestWithError ¶ added in v0.3.7
func FetchPackageReadme ¶ added in v0.3.7
func GetLatestVersion ¶
func GetVersion ¶
func GetVersion() string
func InstallPackagesViaDaemon ¶ added in v0.3.7
func IsInstalled ¶
func IsInstalled() bool
func IsPackageExplicitlyInstalledViaDaemon ¶ added in v0.3.7
func LipExePath ¶
func LipExePath() string
func ListPackageStatesViaDaemon ¶ added in v0.3.8
func UninstallPackagesViaDaemon ¶ added in v0.3.7
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 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 PackageInstallState ¶ added in v0.3.7
func GetPackageInstallStateViaDaemon ¶ added in v0.3.7
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
Click to show internal directories.
Click to hide internal directories.