github.com/nextlinux/gosbom@v0.81.1-0.20230627115839-1ff50c281391/gosbom/formats/gosbomjson/test-fixtures/snapshot/TestEncodeFullJSONDocument.golden (about)

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