You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/ContainerRegistry/ImageSource.swift
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -35,4 +35,17 @@ public protocol ImageSource {
35
35
repository:ImageReference.Repository,
36
36
reference:anyImageReference.Reference
37
37
)asyncthrows->ImageIndex
38
+
39
+
/// Get an image configuration record from the registry.
40
+
/// - Parameters:
41
+
/// - image: Reference to the image containing the record.
42
+
/// - digest: Digest of the record.
43
+
/// - Returns: The image confguration record stored in `repository` with digest `digest`.
44
+
/// - Throws: If the blob cannot be decoded as an `ImageConfiguration`.
45
+
///
46
+
/// Image configuration records are stored as blobs in the registry. This function retrieves the requested blob and tries to decode it as a configuration record.
/// Get an image configuration record from the registry.
88
+
/// - Parameters:
89
+
/// - image: Reference to the image containing the record.
90
+
/// - digest: Digest of the record.
91
+
/// - Returns: The image confguration record stored in `repository` with digest `digest`.
92
+
/// - Throws: If the blob cannot be decoded as an `ImageConfiguration`.
93
+
///
94
+
/// Image configuration records are stored as blobs in the registry. This function retrieves the requested blob and tries to decode it as a configuration record.
0 commit comments