MCPcopy
hub / github.com/containerd/containerd / prettyPlatforms

Function prettyPlatforms

cmd/ctr/commands/plugins/plugins.go:153–168  ·  view source on GitHub ↗
(pspb []*types.Platform)

Source from the content-addressed store, hash-verified

151}
152
153func prettyPlatforms(pspb []*types.Platform) string {
154 psm := map[string]struct{}{}
155 for _, p := range pspb {
156 psm[platforms.Format(v1.Platform{
157 OS: p.OS,
158 Architecture: p.Architecture,
159 Variant: p.Variant,
160 })] = struct{}{}
161 }
162 var ps []string
163 for p := range psm {
164 ps = append(ps, p)
165 }
166 sort.Stable(sort.StringSlice(ps))
167 return strings.Join(ps, ",")
168}
169
170var inspectRuntimeCommand = &cli.Command{
171 Name: "inspect-runtime",

Callers 1

plugins.goFile · 0.85

Calls 1

FormatMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…