os

package
v0.0.71 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenericInstallerRegistry added in v0.0.63

func GenericInstallerRegistry(configFile string, registry core.InstallerRegistry) (err error)

GenericInstallerRegistry registries a generic installer

func GetInstallers

func GetInstallers(name string) (installers []core.Installer, ok bool)

GetInstallers returns all the installers belong to a package

func HasPackage

func HasPackage(name string) bool

HasPackage finds if the target package installer exist

func Install

func Install(name string) error

func InstallWithProxy added in v0.0.71

func InstallWithProxy(name string, proxy map[string]string) (err error)

InstallWithProxy installs a package with name

func Uninstall

func Uninstall(name string) (err error)

Uninstall uninstalls a package with name

Types

type CmdWithArgs added in v0.0.63

type CmdWithArgs struct {
	Cmd        string   `yaml:"cmd"`
	Args       []string `yaml:"args"`
	SystemCall bool     `yaml:"systemCall"`
}

CmdWithArgs is a command with arguments

type DefaultInstallerRegistry

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

DefaultInstallerRegistry is the default installer registry

func (*DefaultInstallerRegistry) Registry

func (r *DefaultInstallerRegistry) Registry(name string, installer core.Installer)

Registry registries a DockerInstaller

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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