-
Notifications
You must be signed in to change notification settings - Fork 193
Expand file tree
/
Copy pathIAcrSdkProvider.cs
More file actions
36 lines (34 loc) · 1.8 KB
/
IAcrSdkProvider.cs
File metadata and controls
36 lines (34 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// --------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
// --------------------------------------------------------------------------------------------
using System.Threading.Tasks;
namespace Microsoft.Oryx.BuildScriptGenerator
{
/// <summary>
/// Fetches SDK tarballs directly from an OCI container registry.
/// SDK images are single-layer <c>FROM scratch</c> images where
/// the layer IS the SDK tarball.
/// </summary>
/// <remarks>
/// Gated by the <c>ORYX_ENABLE_ACR_SDK_PROVIDER</c> feature flag.
/// Alternative to <see cref="IExternalSdkProvider"/> (blob storage via socket).
/// </remarks>
public interface IAcrSdkProvider
{
/// <summary>
/// Pulls an SDK image from the registry and saves the tarball to
/// the dynamic install directory (writable by Oryx).
/// </summary>
/// <param name="platformName">The platform name (e.g., "nodejs", "python", "dotnet", "php").</param>
/// <param name="version">The SDK version (e.g., "20.19.3").</param>
/// <param name="debianFlavor">The Debian flavor (e.g., "bookworm", "bullseye").</param>
/// <param name="runtimeVersion">
/// Optional runtime version for platforms whose ACR tags encode both SDK and runtime
/// versions (e.g., .NET tags use "{osFlavor}-{sdkVersion}_{runtimeVersion}").
/// When provided, the tag is constructed as "{debianFlavor}-{version}_{runtimeVersion}".
/// </param>
/// <returns>True if the SDK tarball was successfully downloaded.</returns>
Task<bool> RequestSdkFromAcrAsync(string platformName, string version, string debianFlavor, string runtimeVersion = null);
}
}