packages

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NameRegs = []*regexp.Regexp{
		regexp.MustCompile(`Implementation-Title: (.*)`),
		regexp.MustCompile(`Start-Class: (.*)`),
		regexp.MustCompile(`Specification-Title: (.*)`),
	}
)

Functions

This section is empty.

Types

type Cargo added in v1.0.3

type Cargo struct {
	Name    string `json:"name"`
	Version string `json:"version"`
}

type GOBIN added in v1.0.2

type GOBIN struct {
	Name string `json:"name"`
	Path string `json:"path"`
	Deps []*MOD `json:"deps"`
}

type JAVA added in v1.0.3

type JAVA struct {
	Name string `json:"name"`
	Path string `json:"path"`
	Jars []*Jar `json:"jars"`
}

type Jar added in v1.0.3

type Jar struct {
	Name    string
	Version string
}

type MOD added in v1.0.2

type MOD struct {
	Name    string `json:"name"`
	Path    string `json:"path"`
	Version string `json:"version"`
}

type NPM

type NPM struct {
	Name    string `json:"name"`
	Version string `json:"version"`
}

type Node

type Node struct {
	Version string `json:"version"`
	NPMS    []*NPM `json:"NPMS"`
}

type Other added in v1.0.10

type Other struct {
	Name  string  `json:"name"`
	Title string  `json:"title"`
	Score float64 `json:"score"`
	Level string  `json:"level"`
	Desc  string  `json:"description"`
}

type PHP added in v1.0.3

type PHP struct {
	Name  string     `json:"name"`
	Path  string     `json:"path"`
	Packs []*PHPPack `json:"packs"`
}

type PHPPack added in v1.0.3

type PHPPack struct {
	Name      string `json:"name"`
	Component string `json:"component"`
	Version   string `json:"version"`
}

type PIP

type PIP struct {
	Name    string `json:"name"`
	Version string `json:"version"`
}

type Package

type Package struct {
	PID          string `json:"pid"`
	Name         string `json:"name"`
	Version      string `json:"version"`
	Architecture string `json:"architecture"`
}

type Packages

type Packages struct {
	Mani      layer.Manifest      `json:"manifest"`
	OsRelease osrelease.OsVersion `json:"os_release"`

	// List all installed packages
	Packs       []*Package `json:"packs"`
	PythonPacks []*Python  `json:"python_pack"`
	NodePacks   []*Node    `json:"node_packs"`
	GOPacks     []*GOBIN   `json:"go_packs"`
	JavaPacks   []*JAVA    `json:"java_packs"`
	PHPPacks    []*PHP     `json:"php_packs"`
	RustPacks   []*Rust    `json:"rust_packs"`

	Others []*Other `json:"others"`
}

func (*Packages) GetApp

func (s *Packages) GetApp(ctx context.Context) error

func (*Packages) Traverse added in v1.0.2

func (s *Packages) Traverse(ctx context.Context) error

type Python

type Python struct {
	Version   string `json:"version"`
	SitePacks []*PIP `json:"SitePacks"`
	SitePath  string `json:"sitePath"`
}

type Rust added in v1.0.3

type Rust struct {
	Name string   `json:"name"`
	Path string   `json:"path"`
	Deps []*Cargo `json:"deps"`
}

Jump to

Keyboard shortcuts

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