dep

package
v12.4.2 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ReasonNames = map[Reason]string{
	Explicit: gotext.Get("Explicit"),
	Dep:      gotext.Get("Dependency"),
	MakeDep:  gotext.Get("Make Dependency"),
	CheckDep: gotext.Get("Check Dependency"),
}
View Source
var SourceNames = map[Source]string{
	AUR:     gotext.Get("AUR"),
	Sync:    gotext.Get("Sync"),
	Local:   gotext.Get("Local"),
	SrcInfo: gotext.Get("SRCINFO"),
	Missing: gotext.Get("Missing"),
}

Functions

func NewGraph added in v12.1.1

func NewGraph() *topo.Graph[string, *InstallInfo]

Types

type Grapher

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

func NewGrapher

func NewGrapher(dbExecutor db.Executor, aurCache aurc.QueryClient,
	fullGraph, noConfirm, noDeps, noCheckDeps, needed bool,
	logger *text.Logger,
) *Grapher

func (*Grapher) AddDepsForPkgs added in v12.1.0

func (g *Grapher) AddDepsForPkgs(ctx context.Context, pkgs []*aur.Pkg, graph *topo.Graph[string, *InstallInfo])

func (*Grapher) GraphAURTarget

func (g *Grapher) GraphAURTarget(ctx context.Context,
	graph *topo.Graph[string, *InstallInfo],
	pkg *aurc.Pkg, instalInfo *InstallInfo,
) *topo.Graph[string, *InstallInfo]

func (*Grapher) GraphFromAUR

func (g *Grapher) GraphFromAUR(ctx context.Context,
	graph *topo.Graph[string, *InstallInfo],
	targets []string,
) (*topo.Graph[string, *InstallInfo], error)

func (*Grapher) GraphFromSrcInfos added in v12.1.0

func (g *Grapher) GraphFromSrcInfos(ctx context.Context, graph *topo.Graph[string, *InstallInfo],
	srcInfos map[string]*gosrc.Srcinfo,
) (*topo.Graph[string, *InstallInfo], error)

func (*Grapher) GraphFromTargets

func (g *Grapher) GraphFromTargets(ctx context.Context,
	graph *topo.Graph[string, *InstallInfo], targets []string,
) (*topo.Graph[string, *InstallInfo], error)

func (*Grapher) GraphSyncGroup added in v12.1.1

func (g *Grapher) GraphSyncGroup(ctx context.Context,
	graph *topo.Graph[string, *InstallInfo],
	groupName, dbName string,
) *topo.Graph[string, *InstallInfo]

func (*Grapher) GraphSyncPkg

func (g *Grapher) GraphSyncPkg(ctx context.Context,
	graph *topo.Graph[string, *InstallInfo],
	pkg alpm.IPackage, upgradeInfo *db.SyncUpgrade,
) *topo.Graph[string, *InstallInfo]

func (*Grapher) ValidateAndSetNodeInfo

func (g *Grapher) ValidateAndSetNodeInfo(graph *topo.Graph[string, *InstallInfo],
	node string, nodeInfo *topo.NodeInfo[*InstallInfo],
)

type InstallInfo

type InstallInfo struct {
	Source       Source
	Reason       Reason
	Version      string
	LocalVersion string
	SrcinfoPath  *string
	AURBase      *string
	SyncDBName   *string

	IsGroup bool
	Upgrade bool
	Devel   bool
}

func (*InstallInfo) String

func (i *InstallInfo) String() string

type Reason

type Reason int
const (
	Explicit Reason = iota // 0
	Dep                    // 1
	MakeDep                // 2
	CheckDep               // 3
)

func (Reason) String

func (r Reason) String() string

type Source

type Source int
const (
	AUR Source = iota
	Sync
	Local
	SrcInfo
	Missing
)

func (Source) String

func (s Source) String() string

type Target

type Target struct {
	DB      string
	Name    string
	Mod     string
	Version string
}

func ToTarget

func ToTarget(pkg string) Target

func (Target) DepString

func (t Target) DepString() string

func (Target) String

func (t Target) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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