installer

package
v0.0.0-...-e5e3d13 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(name string, version string, metadata InstallerMetadata) error

Add takes an installer and persists it to the database

func GetAll

func GetAll() (map[string]Installer, error)

GetAll returns all available installers

func Search(providerType string, general string) (map[string]Installer, error)

Search searches the database for all the installers that match the provides field

Types

type Installer

type Installer struct {
	ID              string                       `json:"id"`
	Name            string                       `json:"name,omitempty"`
	Thumbnail       string                       `json:"thumbnail,omitempty"`
	VersionMetadata map[string]InstallerMetadata `json:"versions"`
}

Installer represents an application installer, but not a specific versio of it.

func Get

func Get(id string) (Installer, error)

Get returns an installer based on its id

type InstallerMetadata

type InstallerMetadata struct {
	Params          []string            `json:"params"`
	Provides        []string            `json:"provides"`
	Requires        []string            `json:"requires"`
	PublicPorts     []util.Port         `json:"publicports"`
	Description     string              `json:"description"`
	PlatformID      string              `json:"platformid"`
	PlatformType    string              `json:"platformtype"`
	PersistancePath string              `json:"persistancepath"`
	Capabilities    []map[string]string `json:"capabilities"`
}

InstallerMetadata holds metadata for the installer

Jump to

Keyboard shortcuts

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