English fallback
This translation is missing; the canonical English reference follows.
Internal bounded Docker-save identity verification¶
VerifyDockerSave reads only the bounded in-memory Docker-save stream. It requires one ordinary config member whose full SHA-256 equals the original inspect identity; archive bytes, config identity and distribution manifests remain distinct. It never extracts paths or establishes current execution authority. LocalImageArchivePin describes the accepted bytes for a separately approved native archive operation.
See docs/LOCAL_IMAGE_REFERENCE.md and ADR 0114.
fuzzy1337.local_image_archive
¶
Internal bounded original Docker inspect and Docker-save config binding, without extraction.
LocalImageArchivePin
dataclass
¶
Distinct complete archive byte identity and original config identity; no scan authority.
源代码位于: fuzzy1337/local_image_archive.py
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 | |
__post_init__() -> None
¶
Keep descriptive archive/config identities valid without granting execution.
源代码位于: fuzzy1337/local_image_archive.py
141 142 143 144 145 146 147 148 149 150 151 | |
Manifest() -> ArtifactManifest
¶
Describe only the complete accepted tar for separately registered archive scope.
返回:
| 类型 | 描述 |
|---|---|
ArtifactManifest
|
The existing unchanged native IMAGE/INPUT manifest for |
源代码位于: fuzzy1337/local_image_archive.py
153 154 155 156 157 158 159 160 161 | |
UniqueObject(pairs: list[tuple[str, object]]) -> dict[str, object]
¶
Reject duplicate JSON keys before a later value can replace original identity facts.
参数:
| 名称 | 类型 | 描述 | 默认 |
|---|---|---|---|
pairs
|
list[tuple[str, object]]
|
Original ordered object members from the bounded JSON decoder. |
必需 |
返回:
| 类型 | 描述 |
|---|---|
dict[str, object]
|
One unambiguous object. |
引发:
| 类型 | 描述 |
|---|---|
ValueError
|
The original object repeats a key. |
源代码位于: fuzzy1337/local_image_archive.py
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | |
RejectConstant(value: str) -> None
¶
Refuse non-JSON numeric constants without echoing selected material.
参数:
| 名称 | 类型 | 描述 | 默认 |
|---|---|---|---|
value
|
str
|
Decoder-supplied nonfinite token, never retained in diagnostics. |
必需 |
引发:
| 类型 | 描述 |
|---|---|
ValueError
|
A forbidden JSON constant was present. |
源代码位于: fuzzy1337/local_image_archive.py
53 54 55 56 57 58 59 60 61 62 63 | |
FiniteNumber(value: str) -> float
¶
Refuse float overflow even when the original numeric token is legal JSON syntax.
参数:
| 名称 | 类型 | 描述 | 默认 |
|---|---|---|---|
value
|
str
|
Original JSON fractional/exponent token. |
必需 |
返回:
| 类型 | 描述 |
|---|---|
float
|
Finite decoded number; source bytes remain independently retained. |
引发:
| 类型 | 描述 |
|---|---|
ValueError
|
Numeric conversion overflows to a nonfinite value. |
源代码位于: fuzzy1337/local_image_archive.py
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | |
JsonDocument(raw: bytes, maximum: int) -> object
¶
Decode one bounded strict UTF-8 original without last-key-wins behavior.
参数:
| 名称 | 类型 | 描述 | 默认 |
|---|---|---|---|
raw
|
bytes
|
Complete retained original JSON bytes. |
必需 |
maximum
|
int
|
Inclusive ceiling for this fixed original role. |
必需 |
返回:
| 类型 | 描述 |
|---|---|
object
|
Decoded original value; caller validates its exact selected semantics. |
引发:
| 类型 | 描述 |
|---|---|
ValueError
|
Bytes, encoding, size, syntax or nesting cannot be accepted. |
源代码位于: fuzzy1337/local_image_archive.py
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 | |
InspectConfigId(raw: bytes) -> str
¶
Read the exact local inspect ID without inferring an image identity from mutable tags.
参数:
| 名称 | 类型 | 描述 | 默认 |
|---|---|---|---|
raw
|
bytes
|
Original fixed |
必需 |
返回:
| 类型 | 描述 |
|---|---|
str
|
Full config digest for the one observed Linux image. |
引发:
| 类型 | 描述 |
|---|---|
ValueError
|
The original response lacks one supported image identity. |
源代码位于: fuzzy1337/local_image_archive.py
112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 | |
VerifyDockerSave(raw: bytes, expected_config_id: str) -> LocalImageArchivePin
¶
Bind one complete bounded Docker-save archive to the original inspected config bytes.
参数:
| 名称 | 类型 | 描述 | 默认 |
|---|---|---|---|
raw
|
bytes
|
Complete successful bounded export stdout, not a truncated stream prefix. |
必需 |
expected_config_id
|
str
|
Original inspected full SHA-256 config ID. |
必需 |
返回:
| 类型 | 描述 |
|---|---|
LocalImageArchivePin
|
Separate archive/config facts suitable for a later independent native archive plan. |
引发:
| 类型 | 描述 |
|---|---|
ValueError
|
Archive shape, members, manifest, config bytes or limits refuse. |
源代码位于: fuzzy1337/local_image_archive.py
164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 | |