packageindex

package
v0.0.0-...-0031c6d Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2018 License: GPL-3.0 Imports: 6 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 []*indexPackage `json:"packages"`
}

Index represents Cores and Tools struct as seen from package_index.json file.

func LoadIndex

func LoadIndex(jsonIndexFile *paths.Path) (*Index, error)

LoadIndex reads a package_index.json from a file and returns the corresponding Index structure.

func (Index) MergeIntoPackages

func (index Index) MergeIntoPackages(outPackages *cores.Packages)

MergeIntoPackages converts the Index data into a cores.Packages and merge them with the existing conents of the cores.Packages passed as parameter.

Jump to

Keyboard shortcuts

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