linuxkit/pkg/init/vendor/github.com/containerd/platforms
Avi Deitcher 198db9089f
containerd 20 (#4100)
* bump containerd-dev to 2.0.2

Signed-off-by: Avi Deitcher <avi@deitcher.net>

* update pkg/init libs to containerd-20

Signed-off-by: Avi Deitcher <avi@deitcher.net>

* bump linuxkit CLI containerd deps to 20

Signed-off-by: Avi Deitcher <avi@deitcher.net>

* update test/pkg/containerd to work with containerd v2.x tests

Signed-off-by: Avi Deitcher <avi@deitcher.net>

* update containerd-dev deps

Signed-off-by: Avi Deitcher <avi@deitcher.net>

* update pkg/init and pkg/containerd dependencies

Signed-off-by: Avi Deitcher <avi@deitcher.net>

* update test/pkg/containerd deps

Signed-off-by: Avi Deitcher <avi@deitcher.net>

---------

Signed-off-by: Avi Deitcher <avi@deitcher.net>
2025-02-24 18:40:56 +02:00
..
.gitattributes bump pkg/init containerd, runc and image-spec to fix CVEs 2024-07-16 10:55:01 +03:00
.golangci.yml containerd 20 (#4100) 2025-02-24 18:40:56 +02:00
compare.go containerd 20 (#4100) 2025-02-24 18:40:56 +02:00
cpuinfo_linux.go bump pkg/init containerd, runc and image-spec to fix CVEs 2024-07-16 10:55:01 +03:00
cpuinfo_other.go bump pkg/init containerd, runc and image-spec to fix CVEs 2024-07-16 10:55:01 +03:00
cpuinfo.go bump pkg/init containerd, runc and image-spec to fix CVEs 2024-07-16 10:55:01 +03:00
database.go containerd 20 (#4100) 2025-02-24 18:40:56 +02:00
defaults_darwin.go bump pkg/init containerd, runc and image-spec to fix CVEs 2024-07-16 10:55:01 +03:00
defaults_freebsd.go bump pkg/init containerd, runc and image-spec to fix CVEs 2024-07-16 10:55:01 +03:00
defaults_unix.go bump pkg/init containerd, runc and image-spec to fix CVEs 2024-07-16 10:55:01 +03:00
defaults_windows.go containerd 20 (#4100) 2025-02-24 18:40:56 +02:00
defaults.go bump pkg/init containerd, runc and image-spec to fix CVEs 2024-07-16 10:55:01 +03:00
errors.go bump pkg/init containerd, runc and image-spec to fix CVEs 2024-07-16 10:55:01 +03:00
LICENSE bump pkg/init containerd, runc and image-spec to fix CVEs 2024-07-16 10:55:01 +03:00
platform_windows_compat.go containerd 20 (#4100) 2025-02-24 18:40:56 +02:00
platforms.go containerd 20 (#4100) 2025-02-24 18:40:56 +02:00
README.md bump pkg/init containerd, runc and image-spec to fix CVEs 2024-07-16 10:55:01 +03:00

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.