-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move target information to shared ContextTarget
- Loading branch information
Showing
8 changed files
with
86 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
pub struct ContextTarget { | ||
/// The name of the target operating system. | ||
/// | ||
/// The value should conform to [Go's `$GOOS`](https://golang.org/doc/install/source#environment), for example | ||
/// `linux` or `windows`. | ||
/// | ||
/// CNB `lifecycle` sources this value from the build OCI image's [`os` property](https://github.com/opencontainers/image-spec/blob/main/config.md#properties). | ||
pub os: String, | ||
/// The name of the target CPU architecture. | ||
/// | ||
/// The value should conform to [Go's $GOARCH](https://golang.org/doc/install/source#environment), for example | ||
/// `amd64` or `arm64`. | ||
/// | ||
/// CNB `lifecycle` sources this value from the build OCI image's [`architecture` property](https://github.com/opencontainers/image-spec/blob/main/config.md#properties). | ||
/// `` | ||
pub arch: String, | ||
/// The variant of the specified CPU architecture. | ||
/// | ||
/// The value should conform to [OCI image spec platform variants](https://github.com/opencontainers/image-spec/blob/main/image-index.md#platform-variants), for example | ||
/// `v7` or `v8`. | ||
/// | ||
/// CNB `lifecycle` sources this value from the build OCI image's [`variant` property](https://github.com/opencontainers/image-spec/blob/main/config.md#properties). | ||
pub arch_variant: Option<String>, | ||
/// The name of the operating system distribution. Should be empty for windows. | ||
/// | ||
/// For example: `ubuntu` or `arch`. | ||
/// | ||
/// CNB `lifecycle` sources this value from the build OCI image's `io.buildpacks.distro.name` label. | ||
pub distro_name: Option<String>, | ||
/// The version of the operating system distribution. | ||
/// | ||
/// For example: `18.02` or `2024.02.01`. | ||
/// | ||
/// CNB `lifecycle` sources this value from the build OCI image's `io.buildpacks.distro.version` label. | ||
pub distro_version: Option<String>, | ||
} |