docs: fill-out and correct version conversion table
This commit is contained in:
parent
2aa863dab7
commit
5124ac4759
@ -217,16 +217,20 @@ other packages, such as the high-level `libcni` package, have been updated to us
|
|||||||
this interface. Concrete types are now per-version subpackages. The `types/current`
|
this interface. Concrete types are now per-version subpackages. The `types/current`
|
||||||
subpackage contains the latest (spec v0.3.0) types.
|
subpackage contains the latest (spec v0.3.0) types.
|
||||||
|
|
||||||
The versioned types understand how to convert between most versions. However, converting
|
When up-converting older result types to spec v0.3.0, fields new in
|
||||||
to a higher version will mean some fields are missing.
|
spec v0.3.0 (like `interfaces`) may be empty. Conversely, when
|
||||||
|
down-converting v0.3.0 results to an older version, any data in those fields
|
||||||
|
will be lost.
|
||||||
|
|
||||||
| From | 0.1 | 0.2 | 0.3 |
|
| From | 0.1 | 0.2 | 0.3 |
|
||||||
|--------|-----|-----|-----|
|
|--------|-----|-----|-----|
|
||||||
| To 0.1 | ✔ | ✔ | |
|
| To 0.1 | ✔ | ✔ | x |
|
||||||
| To 0.2 | ✴ | ✔ | ✔ |
|
| To 0.2 | ✔ | ✔ | x |
|
||||||
| To 0.3 | | ✴ | ✔ |
|
| To 0.3 | ✴ | ✴ | ✔ |
|
||||||
|
|
||||||
*(pairs marked with ✴ will have some missing data)*
|
✔ : lossless conversion
|
||||||
|
✴ : higher-version output may have empty fields
|
||||||
|
x : lower-version output is missing some data
|
||||||
|
|
||||||
A container runtime should use `current.NewResultFromResult()` to convert the
|
A container runtime should use `current.NewResultFromResult()` to convert the
|
||||||
opaque `types.Result` to a concrete `current.Result` struct. It may then
|
opaque `types.Result` to a concrete `current.Result` struct. It may then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user