Versions in this module Expand all Collapse all v1 v1.0.0 Apr 1, 2024 Changes in this version + const ChartsDir + const Checksums + const ComponentsDir + const DataInjectionsDir + const FilesDir + const ImagesDir + const IndexJSON + const InjectorBinary + const InjectorPayloadTarGz + const JackalYAML + const ManifestsDir + const OCILayout + const ReposDir + const SBOMDir + const SBOMTar + const SeedImagesDir + const Signature + const TempDir + const ValuesDir + var ErrNotLoaded = fmt.Errorf("not loaded") + var ImagesBlobsDir = filepath.Join(ImagesDir, "blobs", "sha256") + var IndexPath = filepath.Join(ImagesDir, IndexJSON) + var OCILayoutPath = filepath.Join(ImagesDir, OCILayout) + func IsNotLoaded(err error) bool + type ComponentPaths struct + Base string + Charts string + DataInjections string + Files string + Manifests string + Repos string + Temp string + Values string + type ComponentSBOM struct + Component *ComponentPaths + Files []string + type Components struct + Base string + Dirs map[string]*ComponentPaths + Tarballs map[string]string + func (c *Components) Archive(component types.JackalComponent, cleanupTemp bool) (err error) + func (c *Components) Create(component types.JackalComponent) (cp *ComponentPaths, err error) + func (c *Components) Unarchive(component types.JackalComponent) (err error) + type Images struct + Base string + Blobs []string + Index string + OCILayout string + func (i *Images) AddBlob(blob string) + func (i *Images) AddV1Image(img v1.Image) error + type InjectionMadnessPaths struct + InjectionBinary string + InjectorPayloadTarGz string + SeedImagesDir string + type PackagePaths struct + Base string + Checksums string + Components Components + Images Images + JackalYAML string + SBOMs SBOMs + Signature string + func New(baseDir string) *PackagePaths + func (pp *PackagePaths) AddImages() *PackagePaths + func (pp *PackagePaths) AddSBOMs() *PackagePaths + func (pp *PackagePaths) ArchivePackage(destinationTarball string, maxPackageSizeMB int) error + func (pp *PackagePaths) Files() map[string]string + func (pp *PackagePaths) GenerateChecksums() (string, error) + func (pp *PackagePaths) IsLegacyLayout() bool + func (pp *PackagePaths) MigrateLegacy() (err error) + func (pp *PackagePaths) ReadJackalYAML() (pkg types.JackalPackage, warnings []string, err error) + func (pp *PackagePaths) SetFromLayers(layers []ocispec.Descriptor) + func (pp *PackagePaths) SetFromPaths(paths []string) + func (pp *PackagePaths) SignPackage(signingKeyPath, signingKeyPassword string, isInteractive bool) error + type SBOMs struct + Path string + func (s *SBOMs) Archive() (err error) + func (s *SBOMs) OutputSBOMFiles(outputDir, packageName string) (string, error) + func (s *SBOMs) StageSBOMViewFiles() (sbomViewFiles, warnings []string, err error) + func (s *SBOMs) Unarchive() (err error) + func (s SBOMs) IsTarball() bool