index

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Index

type Index struct {
	Packages []Package `xml:"Package"`
}

Index represents all of the packages in the eopkg index

func NewIndex

func NewIndex() *Index

NewIndex returns an uninitialized Index

func (*Index) Graph

func (i *Index) Graph() error

Graph prints out a graph representation of an index

func (*Index) Load

func (i *Index) Load(filepath string) error

Load populates theis Index from an actual eopkg index

type Package

type Package struct {
	Name     string `xml:"Name"`
	Releases []struct {
		Number int `xml:"release,attr"`
	} `xml:"History>Update"`
	RuntimeDependencies []struct {
		Name    string `xml:",chardata"`
		Release int    `xml:"releaseFrom,attr"`
	} `xml:"RuntimeDependencies>Dependency"`
}

Package represents a single package and its immediate dependencies

Jump to

Keyboard shortcuts

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