pkg

package
v0.0.0-...-767721b Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2015 License: GPL-2.0 Imports: 0 Imported by: 4

Documentation

Index

Constants

View Source
const (
	ArchAmd64  Arch = "amd64"  // 64-bit PC
	ArchArmel       = "armel"  // EABI ARM
	ArchArmhf       = "armhf"  // Hard float ABI ARM
	ArchI386        = "i386"   // 32-bit PC
	ArchIa64        = "ia64"   // Intel Itanium
	ArchMips        = "mips"   // MIPS (big-endian mode)
	ArchMipsel      = "mipsel" // MIPS (little-endian mode)
	ArchPPC         = "ppc"    // Motorola/IBM PowerPC
	ArchPPC64       = "ppc64"  // POWER7+, POWER8
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Arch

type Arch string

Arch describes a machine architecture

type Bundle

type Bundle interface {
	// Name returns the name of the bundle
	Name() string
	// Version returns the version of the bundle
	Version() string
	// Arch returns the architecture that the bundle has been built for
	Arch() string
}

Bundle describes a bundle, for example a .snap, installed on the system.

type Resolver

type Resolver interface {
	// Resolve returns all Bundles matching pattern.
	//
	// Returns an error if querying the underlying index fails.
	Resolve(pattern string) ([]Bundle, error)
}

Resolver abstracts resolving of Bundles given a pattern or filename.

type System

type System interface {
	Resolver             // System provides means to resolve bundles given a search pattern
	Arch() (Arch, error) // Arch returns the machine architecture that the current system was built for
}

System models a packaging system

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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