-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Philip Laine <[email protected]>
- Loading branch information
1 parent
b8d7812
commit ec2ecae
Showing
8 changed files
with
421 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// SPDX-FileCopyrightText: 2021-Present The Zarf Authors | ||
|
||
// Package layout contains functions for inteacting the Zarf packages. | ||
package layout | ||
|
||
// Constants used in the default package layout. | ||
const ( | ||
ZarfYAML = "zarf.yaml" | ||
Signature = "zarf.yaml.sig" | ||
Checksums = "checksums.txt" | ||
|
||
ImagesDir = "images" | ||
ComponentsDir = "components" | ||
|
||
SBOMDir = "zarf-sbom" | ||
SBOMTar = "sboms.tar" | ||
|
||
IndexJSON = "index.json" | ||
OCILayout = "oci-layout" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// SPDX-FileCopyrightText: 2021-Present The Zarf Authors | ||
|
||
package layout | ||
|
||
import ( | ||
"testing" | ||
) | ||
|
||
func TestPackageLayout(t *testing.T) { | ||
t.Parallel() | ||
|
||
// ctx := testutil.TestContext(t) | ||
|
||
// pkgLayout, err := LoadFromTar(ctx, "", PackageLayoutOptions{}) | ||
// require.NoError(t, err) | ||
|
||
// dirPath, err := pkgLayout.GetDirectory("", "") | ||
// require.NoError(t, err) | ||
// require.NotEmpty(t, dirPath) | ||
} |
Oops, something went wrong.