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"` IsTrusted bool // contains filtered or unexported fields }
Index represents Cores and Tools struct as seen from package_index.json file.
func IndexFromPlatformRelease ¶
func IndexFromPlatformRelease(pr *cores.PlatformRelease) Index
IndexFromPlatformRelease creates an Index that contains a single indexPackage which in turn contains a single indexPlatformRelease converted from the one passed as argument
func LoadIndex ¶
LoadIndex reads a package_index.json from a file and returns the corresponding Index structure.
func LoadIndexNoSign ¶
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 them with 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