-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(copy): support mounting existing descriptors from other reposito…
…ries Signed-off-by: Leonardo Chaia <[email protected]>
- Loading branch information
1 parent
2445b3d
commit 6817504
Showing
7 changed files
with
341 additions
and
32 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,24 @@ | ||
using System; | ||
using System.IO; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
using OrasProject.Oras.Oci; | ||
|
||
namespace OrasProject.Oras.Registry; | ||
|
||
/// <summary> | ||
/// Mounter allows cross-repository blob mounts. | ||
/// </summary> | ||
public interface IMounter | ||
{ | ||
/// <summary> | ||
/// Mount makes the blob with the given descriptor in fromRepo | ||
/// available in the repository signified by the receiver. | ||
/// </summary> | ||
/// <param name="descriptor"></param> | ||
/// <param name="contentReference"></param> | ||
/// <param name="getContents"></param> | ||
/// <param name="cancellationToken"></param> | ||
/// <returns></returns> | ||
Task MountAsync(Descriptor descriptor, string contentReference, Func<CancellationToken, Task<Stream>>? getContents, CancellationToken cancellationToken); | ||
} |
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
Oops, something went wrong.