tdnf

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRouterTdnf

func RegisterRouterTdnf(router *mux.Router)

func TdnfExec

func TdnfExec(options interface{}, args ...string) (string, error)

func TdnfOptions

func TdnfOptions(options interface{}) []string

Types

type AlterResult

type AlterResult struct {
	Exist       []ListItem
	Unavailable []ListItem
	Install     []ListItem
	Upgrade     []ListItem
	Downgrade   []ListItem
	Remove      []ListItem
	UnNeeded    []ListItem
	Reinstall   []ListItem
	Obsolete    []ListItem
}

type ExecResult

type ExecResult struct {
	Stdout bytes.Buffer
	Stderr bytes.Buffer
	Err    error
}

type Info

type Info struct {
	Name        string `json:"Name"`
	Arch        string `json:"Arch"`
	Evr         string `json:"Evr"`
	InstallSize int    `json:"InstallSize"`
	Repo        string `json:"Repo"`
	Summary     string `json:"Summary"`
	Url         string `json:"Url"`
	License     string `json:"License"`
	Description string `json:"Description"`
}

type ListItem

type ListItem struct {
	Name string `json:"Name"`
	Arch string `json:"Arch"`
	Evr  string `json:"Evr"`
	Repo string `json:"Repo"`
	Size int    `json:"Size"`
}

type ListOptions

type ListOptions struct {
	Options
	ScopeOptions
}

type ModeOptions

type ModeOptions struct {
	Summary bool `tdnf:"--summary"`
	List    bool `tdnf:"--list"`
	Info    bool `tdnf:"--info"`
}

type Options

type Options struct {
	AllowErasing    bool     `tdnf:"--allowerasing"`
	Best            bool     `tdnf:"--best"`
	CacheOnly       bool     `tdnf:"--cacheonly"`
	Config          string   `tdnf:"--config"`
	DisableRepo     []string `tdnf:"--disablerepo"`
	DisableExcludes bool     `tdnf:"--disableexcludes"`
	DownloadDir     string   `tdnf:"--downloaddir"`
	DownloadOnly    bool     `tdnf:"--downloadonly"`
	EnableRepo      []string `tdnf:"--enablerepo"`
	Exclude         string   `tdnf:"--exclude"`
	InstallRoot     string   `tdnf:"--installroot"`
	NoAutoRemove    bool     `tdnf:"--noautoremove"`
	NoGPGCheck      bool     `tdnf:"--nogpgcheck"`
	NoPlugins       bool     `tdnf:"--noplugins"`
	RebootRequired  bool     `tdnf:"--rebootrequired"`
	Refresh         bool     `tdnf:"--refresh"`
	ReleaseVer      string   `tdnf:"--releasever"`
	RepoId          string   `tdnf:"--repoid"`
	RepoFromPath    string   `tdnf:"--repofrompath"`
	Security        bool     `tdnf:"--security"`
	SecSeverity     string   `tdnf:"--sec-severity"`
	SetOpt          []string `tdnf:"--setopt"`
	SkipConflicts   bool     `tdnf:"--skipconflicts"`
	SkipDigest      bool     `tdnf:"--skipdigest"`
	SkipObsoletes   bool     `tdnf:"--skipobsoletes"`
	SkipSignature   bool     `tdnf:"--skipsignature"`
}

type QueryOptions

type QueryOptions struct {
	Available       bool   `tdnf:"--available"`
	Duplicates      bool   `tdnf:"--duplicates"`
	Extras          bool   `tdnf:"--extras"`
	Installed       bool   `tdnf:"--installed"`
	Upgrades        bool   `tdnf:"--upgrades"`
	File            string `tdnf:"--file"`
	WhatProvides    string `tdnf:"--whatprovides"`
	WhatObsoletes   string `tdnf:"--whatobsoletes"`
	WhatConflicts   string `tdnf:"--whatconflicts"`
	WhatRequires    string `tdnf:"--whatrequires"`
	WhatRecommends  string `tdnf:"--whatrecommends"`
	WhatSuggests    string `tdnf:"--whatsuggests"`
	WhatSupplements string `tdnf:"--whatsupplements"`
	WhatEnhances    string `tdnf:"--whatenhances"`
	WhatDepends     string `tdnf:"--whatdepends"`

	ChangeLogs  bool `tdnf:"--changelogs"`
	List        bool `tdnf:"--list"`
	Source      bool `tdnf:"--source"`
	Provides    bool `tdnf:"--provides"`
	Obsoletes   bool `tdnf:"--obsoletes"`
	Conflicts   bool `tdnf:"--conflicts"`
	Requires    bool `tdnf:"--requires"`
	Recommends  bool `tdnf:"--recommends"`
	Suggests    bool `tdnf:"--suggests"`
	Supplements bool `tdnf:"--supplements"`
	Enhances    bool `tdnf:"--enhances"`
	Depends     bool `tdnf:"--depends"`
	RequiresPre bool `tdnf:"--requires-pre"`
}

type Repo

type Repo struct {
	Repo     string `json:"Repo"`
	RepoName string `json:"RepoName"`
	Enabled  bool   `json:"Enabled"`
}

type RepoQueryOptions

type RepoQueryOptions struct {
	Options
	QueryOptions
}

type RepoQueryResult

type RepoQueryResult struct {
	Nevra       string
	Name        string
	Arch        string
	Evr         string
	Repo        string
	Files       []string
	Provides    []string
	Obsoletes   []string
	Conflicts   []string
	Requires    []string
	Recommends  []string
	Suggests    []string
	Supplements []string
	Enhances    []string
	Depends     []string
	RequiresPre []string
	ChangeLogs  []struct {
		Time   string
		Author string
		Text   string
	}
	Source string
}

type ScopeOptions

type ScopeOptions struct {
	Installed  bool `tdnf:"--installed"`
	Available  bool `tdnf:"--available"`
	Extras     bool `tdnf:"--extras"`
	Obsoletes  bool `tdnf:"--obsoletes"`
	Recent     bool `tdnf:"--recent"`
	Upgrades   bool `tdnf:"--upgrades"`
	Downgrades bool `tdnf:"--downgrades"`
}

type SearchItem

type SearchItem struct {
	Name    string `json:"Name"`
	Summary string `json:"Summary"`
}

type UpdateInfo

type UpdateInfo struct {
	UpdateId    string
	Type        string
	Updated     string
	NeedsReboot bool
	Description string
	Packages    []string
}

type UpdateInfoOptions

type UpdateInfoOptions struct {
	Options
	ScopeOptions
	ModeOptions
}

type UpdateInfoSummary

type UpdateInfoSummary struct {
	Security    int
	Bugfix      int
	Enhancement int
	Unknown     int
}

type Version

type Version struct {
	Name    string
	Version string
}

Jump to

Keyboard shortcuts

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