pkgmnt

package
v0.0.0-...-9f15f58 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Package

type Package struct {
	Name         string     `json:"name"`
	Version      string     `json:"version"`
	Architecture string     `json:"architecture"`
	Platforms    []Platform `json:"platforms"`
	Description  string     `json:"description"`
	Dependencies []Package  `json:"dependencies"`
}

Package comprises a library or application that implements a set of related commands or features.

type Packages

type Packages struct {
	arraylist.List
}

Packages is a list of package

type Platform

type Platform struct {
	Name         string       `json:"name"`
	Runtime      string       `json:"runtime"`
	Buildtime    string       `json:"buildtime"`
	Repositories []Repository `json:"repositories"`
}

Platform represents an Operating System family. Examples of platforms include Red Hat, Suse, Debian, among others.

type Repositories

type Repositories struct {
	arraylist.List
}

Repositories is a list of Repository

type Repository

type Repository struct {
	Name        string `json:"name"`
	Description string `json:"description"`
	BaseURL     string `json:"baseurl"`
	Enabled     bool   `json:"enabled"`
	GPGCheck    bool   `json:"gpgcheck"`
	GPGKey      string `json:"gpgkey"`
}

Repository represents an address where a package is available on.

type RepositoryStore

type RepositoryStore interface {
	Store(p Package) error
	StoreAll(ps Packages) error
	GetWithName(name string) (Package, error)
	All() (Packages, error)
}

RepositoryStore provides access to a package store.

Jump to

Keyboard shortcuts

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