File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed
Sources/ContainerRegistry Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 1212//
1313//===----------------------------------------------------------------------===//
1414
15- import Foundation
15+ import struct Foundation. URL
1616
17- public extension RegistryClient {
17+ extension RegistryClient {
1818 /// Checks whether the registry supports v2 of the distribution specification.
1919 /// - Returns: an `true` if the registry supports the distribution specification.
2020 /// - Throws: if the registry does not support the distribution specification.
21- static func checkAPI( client: HTTPClient , registryURL: URL ) async throws -> AuthChallenge {
21+ public static func checkAPI( client: HTTPClient , registryURL: URL ) async throws -> AuthChallenge {
2222 // See https://github.com/opencontainers/distribution-spec/blob/main/spec.md#determining-support
2323
2424 // The registry indicates that it supports the v2 protocol by returning a 200 OK response.
Original file line number Diff line number Diff line change 1212//
1313//===----------------------------------------------------------------------===//
1414
15- public extension RegistryClient {
16- func getTags( repository: ImageReference . Repository ) async throws -> Tags {
15+ extension RegistryClient {
16+ /// Fetches all tags defined on a particular repository.
17+ ///
18+ /// - Parameter repository: Name of the repository to list.
19+ /// - Returns: a list of tags.
20+ /// - Throws: If the tag request fails or the response cannot be decoded.
21+ public func getTags( repository: ImageReference . Repository ) async throws -> Tags {
1722 // See https://github.com/opencontainers/distribution-spec/blob/main/spec.md#listing-tags
1823 let ( data, _) = try await executeRequestThrowing (
1924 . get( repository, path: " tags/list " ) ,
You can’t perform that action at this time.
0 commit comments