DockerCLI/vendor/github.com/containerd/platforms
Sebastiaan van Stijn 7dc271a8be
migrate to new github.com/containerd/platforms package
The github.com/containerd/containerd/platforms package was moved to a separate
module in preparation of the containerd v2.0 release.

Switch to the new module, which means we also remove containerd as a direct
dependency.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-05-27 11:55:23 +02:00
..
.gitattributes migrate to new github.com/containerd/platforms package 2024-05-27 11:55:23 +02:00
.golangci.yml migrate to new github.com/containerd/platforms package 2024-05-27 11:55:23 +02:00
LICENSE migrate to new github.com/containerd/platforms package 2024-05-27 11:55:23 +02:00
README.md migrate to new github.com/containerd/platforms package 2024-05-27 11:55:23 +02:00
compare.go migrate to new github.com/containerd/platforms package 2024-05-27 11:55:23 +02:00
cpuinfo.go migrate to new github.com/containerd/platforms package 2024-05-27 11:55:23 +02:00
cpuinfo_linux.go migrate to new github.com/containerd/platforms package 2024-05-27 11:55:23 +02:00
cpuinfo_other.go migrate to new github.com/containerd/platforms package 2024-05-27 11:55:23 +02:00
database.go migrate to new github.com/containerd/platforms package 2024-05-27 11:55:23 +02:00
defaults.go migrate to new github.com/containerd/platforms package 2024-05-27 11:55:23 +02:00
defaults_darwin.go migrate to new github.com/containerd/platforms package 2024-05-27 11:55:23 +02:00
defaults_freebsd.go migrate to new github.com/containerd/platforms package 2024-05-27 11:55:23 +02:00
defaults_unix.go migrate to new github.com/containerd/platforms package 2024-05-27 11:55:23 +02:00
defaults_windows.go migrate to new github.com/containerd/platforms package 2024-05-27 11:55:23 +02:00
errors.go migrate to new github.com/containerd/platforms package 2024-05-27 11:55:23 +02:00
platforms.go migrate to new github.com/containerd/platforms package 2024-05-27 11:55:23 +02:00
platforms_other.go migrate to new github.com/containerd/platforms package 2024-05-27 11:55:23 +02:00
platforms_windows.go migrate to new github.com/containerd/platforms package 2024-05-27 11:55:23 +02: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.