Skip to content

Commit 548284b

Browse files
committed
toolkit: update toolkit's Package types
Signed-off-by: Hank Donnay <hdonnay@redhat.com> Change-Id: Icbab38c7f062c8d4e057bd8ca89ab1c26a6a6964
1 parent f77e253 commit 548284b

2 files changed

Lines changed: 30 additions & 4 deletions

File tree

toolkit/types/generate_string.go

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

toolkit/types/package_kind.go

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,36 @@ package types
22

33
import "bytes"
44

5+
// PackageKind indicates what kind of package is being described.
56
type PackageKind uint
67

78
const (
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

1337
func (k PackageKind) MarshalText() (text []byte, err error) {

0 commit comments

Comments
 (0)