github.com/Racer159/jackal@v0.32.7-0.20240401174413-0bd2339e4f2e/src/pkg/layout/constants.go (about) 1 // SPDX-License-Identifier: Apache-2.0 2 // SPDX-FileCopyrightText: 2021-Present The Jackal Authors 3 4 // Package layout contains functions for interacting with Jackal's package layout on disk. 5 package layout 6 7 import "path/filepath" 8 9 // Constants used in the default package layout. 10 const ( 11 TempDir = "temp" 12 FilesDir = "files" 13 ChartsDir = "charts" 14 ReposDir = "repos" 15 ManifestsDir = "manifests" 16 DataInjectionsDir = "data" 17 ValuesDir = "values" 18 19 JackalYAML = "jackal.yaml" 20 Signature = "jackal.yaml.sig" 21 Checksums = "checksums.txt" 22 23 ImagesDir = "images" 24 ComponentsDir = "components" 25 26 SBOMDir = "jackal-sbom" 27 SBOMTar = "sboms.tar" 28 29 IndexJSON = "index.json" 30 OCILayout = "oci-layout" 31 32 SeedImagesDir = "seed-images" 33 InjectorBinary = "jackal-injector" 34 InjectorPayloadTarGz = "payload.tgz" 35 ) 36 37 var ( 38 // IndexPath is the path to the index.json file 39 IndexPath = filepath.Join(ImagesDir, IndexJSON) 40 // ImagesBlobsDir is the path to the directory containing the image blobs in the OCI package. 41 ImagesBlobsDir = filepath.Join(ImagesDir, "blobs", "sha256") 42 // OCILayoutPath is the path to the oci-layout file 43 OCILayoutPath = filepath.Join(ImagesDir, OCILayout) 44 )