Refactor code structure for improved readability and maintainability; optimize performance in key functions.
This commit is contained in:
23
src/Cli/StellaOps.Cli/Services/IOciRegistryClient.cs
Normal file
23
src/Cli/StellaOps.Cli/Services/IOciRegistryClient.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using StellaOps.Cli.Services.Models;
|
||||
|
||||
namespace StellaOps.Cli.Services;
|
||||
|
||||
public interface IOciRegistryClient
|
||||
{
|
||||
Task<string> ResolveDigestAsync(OciImageReference reference, CancellationToken cancellationToken = default);
|
||||
|
||||
Task<OciReferrersResponse> ListReferrersAsync(
|
||||
OciImageReference reference,
|
||||
string digest,
|
||||
CancellationToken cancellationToken = default);
|
||||
|
||||
Task<OciManifest> GetManifestAsync(
|
||||
OciImageReference reference,
|
||||
string digest,
|
||||
CancellationToken cancellationToken = default);
|
||||
|
||||
Task<byte[]> GetBlobAsync(
|
||||
OciImageReference reference,
|
||||
string digest,
|
||||
CancellationToken cancellationToken = default);
|
||||
}
|
||||
Reference in New Issue
Block a user