packageindex

package
v0.0.0-...-5811ad1 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2025 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package packageindex provides functions specific to linting the package index files of the Arduino Boards Manager. See: https://arduino.github.io/arduino-cli/latest/package_index_json-specification

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Find

func Find(folderPath *paths.Path) (*paths.Path, error)

Find searches the provided path for a file that has a name resembling a package index and returns the path to that file.

func HasValidExtension

func HasValidExtension(filePath *paths.Path) bool

HasValidExtension returns whether the file at the given path has a valid package index extension.

func HasValidFilename

func HasValidFilename(filePath *paths.Path, officialRuleMode bool) bool

HasValidFilename returns whether the file at the given path has a valid package index filename.

func Properties

func Properties(packageIndexPath *paths.Path) (map[string]interface{}, error)

Properties parses the package index from the given path and returns the data.

func Validate

func Validate(packageIndex map[string]interface{}) map[compliancelevel.Type]schema.ValidationResult

Validate validates boards.txt data against the JSON schema and returns a map of the result for each compliance level.

Types

This section is empty.

Jump to

Keyboard shortcuts

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