dep

package
v0.31.8 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Manipulate

func Manipulate(from io.Reader, to io.Writer, removeContaining, append []string, eachLine func(string) *string) error

func ManipulateFile

func ManipulateFile(path string, removeContaining, append []string, eachLine func(string) *string) (err error)

Types

type OperatingSystem

type OperatingSystem struct {
	Packages Packages
}

func (OperatingSystem) String

func (o OperatingSystem) String() string

type OperatingSystemMajor

type OperatingSystemMajor struct {
	OperatingSystem OperatingSystem
	Version         string
}

func GetOperatingSystem

func GetOperatingSystem() (OperatingSystemMajor, error)

func (OperatingSystemMajor) String

func (o OperatingSystemMajor) String() string

type PackageManager

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

func NewPackageManager

func NewPackageManager(monitor mntr.Monitor, os OperatingSystem, systemd *SystemD) *PackageManager

func (*PackageManager) Add

func (p *PackageManager) Add(repo *Repository) error

func (*PackageManager) CurrentVersions

func (p *PackageManager) CurrentVersions(possiblePackages ...string) ([]*Software, error)

func (*PackageManager) Init

func (p *PackageManager) Init() error

func (*PackageManager) Install

func (p *PackageManager) Install(installVersion *Software, more ...*Software) error

func (*PackageManager) RefreshInstalled

func (p *PackageManager) RefreshInstalled() error

type Packages

type Packages int
const (
	UnknownPkg Packages = iota
	DebianBased
	REMBased
)

func (Packages) String

func (i Packages) String() string

type Repository

type Repository struct {
	Repository     string
	KeyURL         string
	KeyFingerprint string
}

type Software

type Software struct {
	Package string
	Version string
}

func (*Software) String

func (s *Software) String() string

type SystemD

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

func NewSystemD

func NewSystemD(monitor mntr.Monitor) *SystemD

func (*SystemD) Active added in v0.22.0

func (s *SystemD) Active(binary string) bool

func (*SystemD) Disable

func (s *SystemD) Disable(binary string) error

func (*SystemD) Enable

func (s *SystemD) Enable(binary string) error

func (*SystemD) Start

func (s *SystemD) Start(binary string) error

Directories

Path Synopsis
k8s

Jump to

Keyboard shortcuts

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