English fallback
This translation is missing; the canonical English reference follows.
fuzzy1337.image_sbom_view¶
This Internal command implementation projects one explicitly selected image from
an evidence-verified saved workspace. ImageSbomView, RunImageSbomView and
MAX_IMAGE_SBOM_VIEW_BYTES are implementation details, not supported Python SDK
extension contracts. Use the installed 1337 sbom image product interface.
The view pins the saved model revision and snapshot digest. It follows original package containment and reports only explicit configured Docker image-use links. Config and manifest digest kinds remain distinct even for equal checksum bytes. Original source custody, source-specific byte limits and the existing report owner are verified before output. The command performs no tool invocation, network request, evidence write or model/workspace Save.
Returned package and relation references preserve original attribution. Missing inventory and runtime reachability remain unknown; license facts establish no compliance result. Output is bounded to one MiB, changed saved bases refuse, and retained original corruption prevents a successful view. See Owned SBOM commands.
fuzzy1337.image_sbom_view
¶
Internal read-only image inventory and explicitly configured Docker use projection.
ImageSbomView(model: ModelState, image: ImageIdentity) -> dict[str, object]
¶
Select saved containment and Docker associations for exactly one immutable image.
参数:
| 名称 | 类型 | 描述 | 默认 |
|---|---|---|---|
model
|
ModelState
|
Owner-read, evidence-verified canonical snapshot. |
必需 |
image
|
ImageIdentity
|
Explicit config or manifest identity; equal bytes never merge their meanings. |
必需 |
返回:
| 类型 | 描述 |
|---|---|
dict[str, object]
|
Sorted original references, without creating transitive edges or runtime assessments. |
引发:
| 类型 | 描述 |
|---|---|
SbomFailure
|
The selected identity is absent or contradicts its image fields. |
源代码位于: fuzzy1337/image_sbom_view.py
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 | |
RunImageSbomView(arguments: Sequence[str], output: TextIO, *, json_output: bool) -> int
¶
Verify the saved owners and original evidence before exposing one bounded image view.
参数:
| 名称 | 类型 | 描述 | 默认 |
|---|---|---|---|
arguments
|
Sequence[str]
|
Explicit workspace, immutable digest and digest kind selections. |
必需 |
output
|
TextIO
|
Caller-owned terminal destination; no original bytes or paths are emitted. |
必需 |
json_output
|
bool
|
Emit the Internal schema-one result instead of a concise human view. |
必需 |
返回:
| 类型 | 描述 |
|---|---|
int
|
Zero for a verified view, two for invalid configuration, four for refused saved state, |
int
|
or 130 for interruption. No persistence operation is performed. |
源代码位于: fuzzy1337/image_sbom_view.py
103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 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 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 | |