packageindex

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2025 License: GPL-3.0 Imports: 13 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"`
	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

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

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

func LoadIndexNoSign

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

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

func (Index) MarshalEasyJSON

func (v Index) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Index) MarshalJSON

func (v Index) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

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 contents of the cores.Packages passed as parameter.

func (*Index) UnmarshalEasyJSON

func (v *Index) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Index) UnmarshalJSON

func (v *Index) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Jump to

Keyboard shortcuts

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

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy