packages

package
v0.0.0-...-964c2da Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2020 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependency

type Dependency struct {
	OneOf []DependencyOption `json:"oneof"`
}

type DependencyOption

type DependencyOption struct {
	Wants   *DependencyOptionWants   `json:"wants"`
	Package *DependencyOptionPackage `json:"package"`
}

type DependencyOptionPackage

type DependencyOptionPackage struct {
	ID      string             `json:"id"`
	Version *marshallers.Range `json:"version"`
}

type DependencyOptionWants

type DependencyOptionWants struct {
	Wants string             `json:"wants"`
	Range *marshallers.Range `json:"version"`
}

type Language

type Language struct {
	Name *string `json:"name"`
	Desc *string `json:"desc"`
}

type Package

type Package struct {
	Id       string
	Variants map[string]Variant
}

type Variant

type Variant struct {
	PackageId     string                         `json:"pkgid"`
	VariantId     string                         `json:"variantid"`
	AuthorId      string                         `json:"authorid"`
	Version       marshallers.Version            `json:"version"`  //version of this variant
	Platform      *marshallers.Regexp            `json:"platform"` //allowed platform as regex
	Device        *marshallers.Regexp            `json:"device"`   //allowed device as regex
	Firmware      *marshallers.Range             `json:"firmware"` //allowed firmware versions
	Multiversion  bool                           `json:"multiversion"`
	OtherVersions *marshallers.Range             `json:"otherversions"` //if set defnies allowed versions of same package. if unset all versions are allowed
	Dependencies  map[string]Dependency          `json:"dependencies"`  //maps named dependency folders to another package
	Implements    map[string]marshallers.Version `json:"implements"`
	Name          *string                        `json:"name"`
	Desc          *string                        `json:"desc"`
	Languages     map[string]Language            `json:"languages"`
	Icon          *string                        `json:"icon"`
	Category      *string                        `json:"category"`
	AuthorName    *string                        `json:"authorname"`
	Url           *string                        `json:"url"`
	Management    *string                        `json:"management"`
	Frontend      *string                        `json:"frontend"`
}

func (Variant) Check

func (v Variant) Check(platform, device string, firmware semver.Version) bool

Jump to

Keyboard shortcuts

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