core

package
v0.0.97 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package core provides the core structs about the os-related package manager.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdvanceInstaller added in v0.0.63

type AdvanceInstaller interface {
	Installer

	IsService() bool
}

AdvanceInstaller is a generic installer

type FakeRegistry added in v0.0.72

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

FakeRegistry is a fake registry which only for the test purpose

func (*FakeRegistry) Registry added in v0.0.72

func (r *FakeRegistry) Registry(id string, installer Installer)

Registry puts the registry to memory

func (*FakeRegistry) Walk added in v0.0.72

func (r *FakeRegistry) Walk(walkFunc func(string, Installer))

Walk allows to iterate all the installers

type Installer

type Installer interface {
	Available() bool
	Install() error
	Uninstall() error

	WaitForStart() (bool, error)
	Start() error
	Stop() error
}

Installer is the interface of a installer Deprecated use AdvanceInstaller instead

type InstallerRegistry

type InstallerRegistry interface {
	Registry(string, Installer)
}

InstallerRegistry is the interface of install registry

type ProxyAble added in v0.0.71

type ProxyAble interface {
	SetURLReplace(map[string]string)
}

ProxyAble define the proxy support feature

Jump to

Keyboard shortcuts

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