packageindex
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Index¶
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
This section is empty.
Types¶
typeIndex¶
type Index struct {Packages []*indexPackage `json:"packages"`IsTrustedbool// contains filtered or unexported fields}Index represents Cores and Tools struct as seen from package_index.json file.
funcIndexFromPlatformRelease¶
func IndexFromPlatformRelease(pr *cores.PlatformRelease)Index
IndexFromPlatformRelease creates an Index that contains a single indexPackagewhich in turn contains a single indexPlatformRelease converted from the onepassed as argument
funcLoadIndex¶
LoadIndex reads a package_index.json from a file and returns the corresponding Index structure.
funcLoadIndexNoSign¶
LoadIndexNoSign reads a package_index.json from a file and returns the corresponding Index structure.
func (Index)MarshalEasyJSON¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Index)MarshalJSON¶
MarshalJSON supports json.Marshaler interface
func (Index)MergeIntoPackages¶
MergeIntoPackages converts the Index data into a cores.Packages and merge themwith the existing contents of the cores.Packages passed as parameter.
func (*Index)UnmarshalEasyJSON¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Index)UnmarshalJSON¶
UnmarshalJSON supports json.Unmarshaler interface