-
Notifications
You must be signed in to change notification settings - Fork 0
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: vsoch <vsoch@users.noreply.github.com>
- Loading branch information
Showing
17 changed files
with
1,794 additions
and
36 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
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,2 @@ | ||
from .content import File, FilePusher | ||
from .file import FileStore |
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,32 @@ | ||
__author__ = "Vanessa Sochat" | ||
__copyright__ = "Copyright 2021, Vanessa Sochat" | ||
__license__ = "MIT" | ||
|
||
import opencontainers.image.v1 as ocispec | ||
import opencontainers.digest as digest | ||
|
||
# DefaultBlobMediaType specifies the default blob media type | ||
DefaultBlobMediaType = ocispec.MediaTypeImageLayer | ||
|
||
# DefaultBlobDirMediaType specifies the default blob directory media type | ||
DefaultBlobDirMediaType = ocispec.MediaTypeImageLayerGzip | ||
|
||
# TempFilePattern specifies the pattern to create temporary files | ||
TempFilePattern = "oras" | ||
|
||
# AnnotationDigest is the annotation key for the digest of the uncompressed content | ||
AnnotationDigest = "io.deis.oras.content.digest" | ||
|
||
# AnnotationUnpack is the annotation key for indication of unpacking | ||
AnnotationUnpack = "io.deis.oras.content.unpack" | ||
|
||
# OCIImageIndexFile is the file name of the index from the OCI Image Layout Specification | ||
# Reference: https://github.com/opencontainers/image-spec/blob/master/image-layout.md#indexjson-file | ||
OCIImageIndexFile = "index.json" | ||
|
||
# DefaultBlocksize default size of each slice of bytes read in each write through in gunzipand untar. | ||
# Simply uses the same size as io.Copy() | ||
DefaultBlocksize = 32768 | ||
|
||
# what you get for a blank digest | ||
BlankHash = digest.Digest("sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855") |
Oops, something went wrong.