@@ -2,12 +2,36 @@ package types
22
33import "bytes"
44
5+ // PackageKind indicates what kind of package is being described.
56type PackageKind uint
67
78const (
9+ // "Unknown" is the default value.
810 UnknownPackage PackageKind = iota // unknown
9- SourcePackage // source
10- BinaryPackage // binary
11+ // A "source" package is software that must be compiled or otherwise
12+ // processed before it's ready to use.
13+ //
14+ // Conceptually, all "binary" packages come from a "source" package. A
15+ // single "source" package produces one or more other packages.
16+ //
17+ // It can be used to describe the set of packages produced from the source
18+ // package.
19+ SourcePackage // source
20+ // A "binary" package is compiled or otherwise ready-to-use software.
21+ //
22+ // It describes a set of files inside a container image.
23+ BinaryPackage // binary
24+ // A "layer" package is used to refer to a container layer itself.
25+ //
26+ // Conceptually, a "layer" package is a higher type that describes the
27+ // container image rather than the contents.
28+ LayerPackage // layer
29+ // An "ancestry" package is used to refer to a container layer and all
30+ // previous layers in an image.
31+ //
32+ // Conceptually, an "ancestry" package is a higher type that describes the
33+ // container image rather than the contents.
34+ AncestryPackage // ancestry
1135)
1236
1337func (k PackageKind ) MarshalText () (text []byte , err error ) {
0 commit comments