kaniko/vendor/github.com/containerd/platforms
Michael Plump 3e56c7fd0f
chore: upgrade all the dependencies to their latest versions (#3454)
* chore: go get -u ./...

* chore: go mod tidy

* chore: go mod vendor

* chore: fix compilation for buildkit >= 0.15.0

* chore: upgrade to Go 1.24

* chore: upgrade the Debian container used in an integration test
2025-05-21 09:31:10 -04:00
..
.gitattributes chore(deps): bump github.com/containerd/containerd from 1.7.18 to 1.7.19 (#3251) 2024-07-15 09:28:48 -07:00
.golangci.yml chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
LICENSE chore(deps): bump github.com/containerd/containerd from 1.7.18 to 1.7.19 (#3251) 2024-07-15 09:28:48 -07:00
README.md chore(deps): bump github.com/containerd/containerd from 1.7.18 to 1.7.19 (#3251) 2024-07-15 09:28:48 -07:00
compare.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
cpuinfo.go chore(deps): bump github.com/containerd/containerd from 1.7.18 to 1.7.19 (#3251) 2024-07-15 09:28:48 -07:00
cpuinfo_linux.go chore(deps): bump github.com/containerd/containerd from 1.7.18 to 1.7.19 (#3251) 2024-07-15 09:28:48 -07:00
cpuinfo_other.go chore(deps): bump github.com/containerd/containerd from 1.7.18 to 1.7.19 (#3251) 2024-07-15 09:28:48 -07:00
database.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
defaults.go chore(deps): bump github.com/containerd/containerd from 1.7.18 to 1.7.19 (#3251) 2024-07-15 09:28:48 -07:00
defaults_darwin.go chore(deps): bump github.com/containerd/containerd from 1.7.18 to 1.7.19 (#3251) 2024-07-15 09:28:48 -07:00
defaults_freebsd.go chore(deps): bump github.com/containerd/containerd from 1.7.18 to 1.7.19 (#3251) 2024-07-15 09:28:48 -07:00
defaults_unix.go chore(deps): bump github.com/containerd/containerd from 1.7.18 to 1.7.19 (#3251) 2024-07-15 09:28:48 -07:00
defaults_windows.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
errors.go chore(deps): bump github.com/containerd/containerd from 1.7.18 to 1.7.19 (#3251) 2024-07-15 09:28:48 -07:00
platform_windows_compat.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
platforms.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00

README.md

platforms

A Go package for formatting, normalizing and matching container platforms.

This package is based on the Open Containers Image Spec definition of a platform.

Platform Specifier

While the OCI platform specifications provide a tool for components to specify structured information, user input typically doesn't need the full context and much can be inferred. To solve this problem, this package introduces "specifiers". A specifier has the format <os>|<arch>|<os>/<arch>[/<variant>]. The user can provide either the operating system or the architecture or both.

An example of a common specifier is linux/amd64. If the host has a default runtime that matches this, the user can simply provide the component that matters. For example, if an image provides amd64 and arm64 support, the operating system, linux can be inferred, so they only have to provide arm64 or amd64. Similar behavior is implemented for operating systems, where the architecture may be known but a runtime may support images from different operating systems.

Project details

platforms is a containerd sub-project, licensed under the Apache 2.0 license. As a containerd sub-project, you will find the:

information in our containerd/project repository.