forked from opencontainers/umoci
-
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.
oci/cas: Add Engine.CAS() as a step towards decoupling CAS and refs
This commit hard-codes the blobs/{algorithm}/{encoded} template [1], but sets the stage for future work to relax that positioning [2]. I'm adding a PutIndex call in the tests, becase the CAS implementation now has its own temp directory which is not known to the dirEngine. Casengine's dir implementation does not flock its temporary directory, but it is protected from Clean by the pruneExpire logic. The "Deprecated:" syntax is discussed in [3,4,5]. [1]: https://github.com/opencontainers/image-spec/blob/v1.0.0/image-layout.md#blobs [2]: https://github.com/openSUSE/umoci/pull/190 [3]: https://blog.golang.org/godoc-documenting-go-code [4]: golang/blog@257114a [5]: golang/go#10909 Signed-off-by: W. Trevor King <wking@tremily.us>
- Loading branch information
Showing
4 changed files
with
84 additions
and
81 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