Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Archive ¶
type Archive struct { Name string Version string Suites []string Components []string PubKeys []*packet.PublicKey }
Archive is the location from which binary packages are obtained.
type FetchOptions ¶
type GenerateKind ¶ added in v1.0.0
type GenerateKind string
const ( GenerateNone GenerateKind = "" GenerateManifest GenerateKind = "manifest" )
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 }
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 DefaultArchive string }
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 pacakges is still unknown, so referenced paths could potentially be missing, for example.
type Slice ¶
type Slice struct { Package string Name string Essential []SliceKey Contents map[string]PathInfo Scripts SliceScripts }
Slice holds the details about a package slice.
type SliceKey ¶
func ParseSliceKey ¶
type SliceScripts ¶
type SliceScripts struct {
Mutate string
}