github.com/lineaje-labs/syft@v0.98.1-0.20231227153149-9e393f60ff1b/syft/format/syftjson/test-fixtures/snapshot/TestEncodeFullJSONDocument.golden (about)

     1  {
     2   "artifacts": [
     3    {
     4     "id": "d748d4614750058d",
     5     "name": "package-1",
     6     "version": "1.0.1",
     7     "type": "python",
     8     "foundBy": "the-cataloger-1",
     9     "locations": [
    10      {
    11       "path": "/a/place/a",
    12       "accessPath": "/a/place/a"
    13      }
    14     ],
    15     "licenses": [
    16      {
    17       "value": "MIT",
    18       "spdxExpression": "MIT",
    19       "type": "declared",
    20       "urls": [],
    21       "locations": []
    22      }
    23     ],
    24     "language": "python",
    25     "cpes": [
    26      "cpe:2.3:*:some:package:1:*:*:*:*:*:*:*"
    27     ],
    28     "purl": "a-purl-1",
    29     "metadataType": "python-package",
    30     "metadata": {
    31      "name": "package-1",
    32      "version": "1.0.1",
    33      "author": "",
    34      "authorEmail": "",
    35      "platform": "",
    36      "sitePackagesRootPath": ""
    37     }
    38    },
    39    {
    40     "id": "fa4ec37eccd65756",
    41     "name": "package-2",
    42     "version": "2.0.1",
    43     "type": "deb",
    44     "foundBy": "the-cataloger-2",
    45     "locations": [
    46      {
    47       "path": "/b/place/b",
    48       "accessPath": "/b/place/b"
    49      }
    50     ],
    51     "licenses": [],
    52     "language": "",
    53     "cpes": [
    54      "cpe:2.3:*:some:package:2:*:*:*:*:*:*:*"
    55     ],
    56     "purl": "a-purl-2",
    57     "metadataType": "dpkg-db-entry",
    58     "metadata": {
    59      "package": "package-2",
    60      "source": "",
    61      "version": "2.0.1",
    62      "sourceVersion": "",
    63      "architecture": "",
    64      "maintainer": "",
    65      "installedSize": 0,
    66      "files": []
    67     }
    68    }
    69   ],
    70   "artifactRelationships": [
    71    {
    72     "parent": "",
    73     "child": "",
    74     "type": "ownership-by-file-overlap",
    75     "metadata": {
    76      "file": "path"
    77     }
    78    }
    79   ],
    80   "files": [
    81    {
    82     "id": "913b4592e2c2ebdf",
    83     "location": {
    84      "path": "/a/place"
    85     },
    86     "metadata": {
    87      "mode": 775,
    88      "type": "Directory",
    89      "userID": 0,
    90      "groupID": 0,
    91      "mimeType": "",
    92      "size": 0
    93     }
    94    },
    95    {
    96     "id": "0e7c88bd18e11b0b",
    97     "location": {
    98      "path": "/a/place/a"
    99     },
   100     "metadata": {
   101      "mode": 775,
   102      "type": "RegularFile",
   103      "userID": 0,
   104      "groupID": 0,
   105      "mimeType": "",
   106      "size": 0
   107     },
   108     "contents": "the-contents",
   109     "digests": [
   110      {
   111       "algorithm": "sha256",
   112       "value": "366a3f5653e34673b875891b021647440d0127c2ef041e3b1a22da2a7d4f3703"
   113      }
   114     ]
   115    },
   116    {
   117     "id": "5c3dc6885f48b5a1",
   118     "location": {
   119      "path": "/b"
   120     },
   121     "metadata": {
   122      "mode": 775,
   123      "type": "SymbolicLink",
   124      "linkDestination": "/c",
   125      "userID": 0,
   126      "groupID": 0,
   127      "mimeType": "",
   128      "size": 0
   129     }
   130    },
   131    {
   132     "id": "799d2f12da0bcec4",
   133     "location": {
   134      "path": "/b/place/b"
   135     },
   136     "metadata": {
   137      "mode": 644,
   138      "type": "RegularFile",
   139      "userID": 1,
   140      "groupID": 2,
   141      "mimeType": "",
   142      "size": 0
   143     },
   144     "digests": [
   145      {
   146       "algorithm": "sha256",
   147       "value": "1b3722da2a7d90d033b87581a2a3f12021647445653e34666ef041e3b4f3707c"
   148      }
   149     ]
   150    }
   151   ],
   152   "source": {
   153    "id": "c2b46b4eb06296933b7cf0722683964e9ecbd93265b9ef6ae9642e3952afbba0",
   154    "name": "",
   155    "version": "",
   156    "type": "image",
   157    "metadata": {
   158     "userInput": "user-image-input",
   159     "imageID": "sha256:c2b46b4eb06296933b7cf0722683964e9ecbd93265b9ef6ae9642e3952afbba0",
   160     "manifestDigest": "sha256:2731251dc34951c0e50fcc643b4c5f74922dad1a5d98f302b504cf46cd5d9368",
   161     "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
   162     "tags": [
   163      "stereoscope-fixture-image-simple:85066c51088bdd274f7a89e99e00490f666c49e72ffc955707cd6e18f0e22c5b"
   164     ],
   165     "imageSize": 38,
   166     "layers": [
   167      {
   168       "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
   169       "digest": "sha256:3de16c5b8659a2e8d888b8ded8427be7a5686a3c8c4e4dd30de20f362827285b",
   170       "size": 22
   171      },
   172      {
   173       "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
   174       "digest": "sha256:366a3f5653e34673b875891b021647440d0127c2ef041e3b1a22da2a7d4f3703",
   175       "size": 16
   176      }
   177     ],
   178     "manifest": "ZXlKelkyaGxiV0ZXWlhKemFXOXVJam95TENKdFpXUnBZVlI1Y0dVaU9pSmguLi4=",
   179     "config": "ZXlKaGNtTm9hWFJsWTNSMWNtVWlPaUpoYldRMk5DSXNJbU52Ym1acC4uLg==",
   180     "repoDigests": [],
   181     "architecture": "",
   182     "os": ""
   183    }
   184   },
   185   "distro": {
   186    "id": "redhat",
   187    "idLike": [
   188     "rhel"
   189    ],
   190    "version": "7",
   191    "versionID": "7"
   192   },
   193   "descriptor": {
   194    "name": "syft",
   195    "version": "v0.42.0-bogus",
   196    "configuration": {
   197     "config-key": "config-value"
   198    }
   199   }
   200  }