repository

package
v3.1.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Debian

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

func (*Debian) Add

func (d *Debian) Add(runtime connector.Runtime, path string) error

func (*Debian) Backup

func (d *Debian) Backup(runtime connector.Runtime) error

func (*Debian) Install

func (d *Debian) Install(runtime connector.Runtime, pkg ...string) error

func (*Debian) IsAlreadyBackUp

func (d *Debian) IsAlreadyBackUp() bool

func (*Debian) Reset

func (d *Debian) Reset(runtime connector.Runtime) error

func (*Debian) Update

func (d *Debian) Update(runtime connector.Runtime) error

type Interface

type Interface interface {
	Backup(runtime connector.Runtime) error
	IsAlreadyBackUp() bool
	Add(runtime connector.Runtime, path string) error
	Update(runtime connector.Runtime) error
	Install(runtime connector.Runtime, pkg ...string) error
	Reset(runtime connector.Runtime) error
}

func New

func New(os string) (Interface, error)

func NewDeb

func NewDeb() Interface

func NewRPM

func NewRPM() Interface

type RedhatPackageManager

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

func (*RedhatPackageManager) Add

func (r *RedhatPackageManager) Add(runtime connector.Runtime, path string) error

func (*RedhatPackageManager) Backup

func (r *RedhatPackageManager) Backup(runtime connector.Runtime) error

func (*RedhatPackageManager) Install

func (r *RedhatPackageManager) Install(runtime connector.Runtime, pkg ...string) error

func (*RedhatPackageManager) IsAlreadyBackUp

func (r *RedhatPackageManager) IsAlreadyBackUp() bool

func (*RedhatPackageManager) Reset

func (r *RedhatPackageManager) Reset(runtime connector.Runtime) error

func (*RedhatPackageManager) Update

func (r *RedhatPackageManager) Update(runtime connector.Runtime) error

Jump to

Keyboard shortcuts

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