@@ -22,7 +22,7 @@ import ContainerizationOCI
2222import Foundation
2323
2424extension ImageStore {
25- internal struct ImportOperation {
25+ public struct ImportOperation: Sendable {
2626 static let decoder = JSONDecoder ( )
2727
2828 let client : ContentClient
@@ -31,7 +31,7 @@ extension ImageStore {
3131 let progress : ProgressHandler ?
3232 let name : String
3333
34- init ( name: String , contentStore: ContentStore , client: ContentClient , ingestDir: URL , progress: ProgressHandler ? = nil ) {
34+ public init ( name: String , contentStore: ContentStore , client: ContentClient , ingestDir: URL , progress: ProgressHandler ? = nil ) {
3535 self . client = client
3636 self . ingestDir = ingestDir
3737 self . contentStore = contentStore
@@ -40,7 +40,7 @@ extension ImageStore {
4040 }
4141
4242 /// Pull the required image layers for the provided descriptor and platform(s) into the given directory using the provided client. Returns a descriptor to the Index manifest.
43- internal func `import`( root: Descriptor , matcher: ( ContainerizationOCI . Platform ) -> Bool ) async throws -> Descriptor {
43+ public func `import`( root: Descriptor , matcher: ( ContainerizationOCI . Platform ) -> Bool ) async throws -> Descriptor {
4444 var toProcess = [ root]
4545 while !toProcess. isEmpty {
4646 // Count the total number of blobs and their size
@@ -123,14 +123,14 @@ extension ImageStore {
123123 for _ in 0 ..< 8 {
124124 if let desc = iterator. next ( ) {
125125 group. addTask {
126- try await fetch ( desc)
126+ try await self . fetch ( desc)
127127 }
128128 }
129129 }
130130 for try await _ in group {
131131 if let desc = iterator. next ( ) {
132132 group. addTask {
133- try await fetch ( desc)
133+ try await self . fetch ( desc)
134134 }
135135 }
136136 }
0 commit comments