Documentation
¶
Index ¶
Constants ¶
const ( MaxArchivePriority = 1000 MinArchivePriority = -1000 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Archive ¶
type Archive struct {
Name string
Version string
Suites []string
Components []string
Priority int
Pro string
PubKeys []*packet.PublicKey
// Maintained is set when the archive is still being updated.
Maintained bool
// OldRelease is set for Ubuntu releases which are moved from the regular
// archive which happens after the release's end of life date.
OldRelease bool
}
Archive is the location from which binary packages are obtained.
type EssentialInfo ¶ added in v1.3.0
type EssentialInfo struct {
Arch []string
}
type FetchOptions ¶
type GenerateKind ¶ added in v1.0.0
type GenerateKind string
const ( GenerateNone GenerateKind = "" GenerateManifest GenerateKind = "manifest" )
type Maintenance ¶ added in v1.3.0
type Package ¶
Package holds a collection of slices that represent parts of themselves.
func (*Package) MarshalYAML ¶ added in v1.0.0
type PathInfo ¶
type PathInfo struct {
Kind PathKind
Info string
Mode uint
Mutable bool
Until PathUntil
Arch []string
Generate GenerateKind
Prefer string
}
func (*PathInfo) SameContent ¶
SameContent returns whether the path has the same content properties as some other path. In other words, the resulting file/dir entry is the same. The Mutable flag must also match, as that's a common agreement that the actual content is not well defined upfront.
type Release ¶
type Release struct {
Path string
Packages map[string]*Package
Archives map[string]*Archive
Maintenance *Maintenance
}
Release is a collection of package slices targeting a particular distribution version.
func FetchRelease ¶
func FetchRelease(options *FetchOptions) (*Release, error)
func ReadRelease ¶
type Selection ¶
Selection holds the required configuration to create a Build for a selection of slices from a Release. It's still an abstract proposal in the sense that the real information coming from packages is still unknown, so referenced paths could potentially be missing, for example.
type Slice ¶
type Slice struct {
Package string
Name string
Essential map[SliceKey]EssentialInfo
Contents map[string]PathInfo
Scripts SliceScripts
}
Slice holds the details about a package slice.
type SliceScripts ¶
type SliceScripts struct {
Mutate string
}