-
Notifications
You must be signed in to change notification settings - Fork 26
/
buildpack_info.go
59 lines (47 loc) · 2 KB
/
buildpack_info.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
package packit
// BuildpackInfo
// Deprecated: use Info instead
type BuildpackInfo = Info
// Info is a representation of the basic information for a buildpack
// provided in its buildpack.toml file as described in the specification:
// https://github.com/buildpacks/spec/blob/main/buildpack.md#buildpacktoml-toml.
type Info struct {
// ID is the identifier specified in the `buildpack.id` field of the
// buildpack.toml.
ID string `toml:"id"`
// Name is the identifier specified in the `buildpack.name` field of the
// buildpack.toml.
Name string `toml:"name"`
// Version is the identifier specified in the `buildpack.version` field of
// the buildpack.toml.
Version string `toml:"version"`
// Homepage is the identifier specified in the `buildpack.homepage` field of
// the buildpack.toml.
Homepage string `toml:"homepage"`
// Description is the identifier specified in the `buildpack.description`
// field of the buildpack.toml.
Description string `toml:"description"`
// Keywords are the identifiers specified in the `buildpack.keywords` field
// of the buildpack.toml.
Keywords []string `toml:"keywords"`
// Licenses are the list of licenses specified in the `buildpack.licenses`
// fields of the buildpack.toml.
Licenses []InfoLicense
// SBOMFormats is the list of Software Bill of Materials media types that the buildpack
// produces (e.g. "application/spdx+json").
SBOMFormats []string `toml:"sbom-formats"`
}
// type BuildpackInfoLicense
// Deprecated: use InfoLicense instead
type BuildpackInfoLicense = InfoLicense
// InfoLicense is a representation of a license specified in the
// buildpack.toml as described in the specification:
// https://github.com/buildpacks/spec/blob/main/buildpack.md#buildpacktoml-toml.
type InfoLicense struct {
// Type is the identifier specified in the `buildpack.licenses.type` field of
// the buildpack.toml.
Type string `toml:"type"`
// URI is the identifier specified in the `buildpack.licenses.uri` field of
// the buildpack.toml.
URI string `toml:"uri"`
}