repo

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package repo defines software repository functions like listing, removing

packages from software repository.

Package repo defines software repository functions like listing, removing

packages from software repository.

Package repo defines software repository functions like listing, removing

packages from software repository.

Package repo defines software repository functions like listing, removing

packages from software repository.

Index

Constants

View Source
const FormatVersionName = "RPM Format Version"

FormatVersionName is the RPM format version string that's embedded

into RPM used for identifying the JSON format version.
View Source
const SoftwareRepoPath = "/system/software/repository/"

SoftwareRepoPath is the Software Update Repository path.

Variables

This section is empty.

Functions

func Add

func Add(rpmPath string, params map[string]string) error

Add the software file present in the staging area to the software repo after

validation.

func RegisterCommandOptions

func RegisterCommandOptions(progname string)

RegisterCommandOptions registers the supported commands.

func Remove

func Remove(swName, swType, swRepo string) error

Remove the specified software package from the software repo.

func ScanCommandOptions

func ScanCommandOptions(options map[string]interface{}) error

ScanCommandOptions scans for the command line options and makes appropriate function call. Input:

  1. map[string]interface{} where, the options could be following: "progname": Name of the program along with any cmds (ex: sum pm) "cmd-index": Index to the cmd (ex: run)

Types

type RPMInfo

type RPMInfo interface {
	GetMatchedVersion() string
	GetRPMName() string
	GetRPMRelease() string
	GetRPMType() string
	GetRPMVersion() string
}

RPMInfo is the list of RPM package info

func List

func List(params map[string]string) ([]RPMInfo, error)

List the packages present in the software repo along with their details.

func ListRPMFilesInfo

func ListRPMFilesInfo(files []string, productVersion string) ([]RPMInfo, error)

ListRPMFilesInfo lists the info of the RPM files.

Jump to

Keyboard shortcuts

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