Structureswift-transformers 0.1.17Hub
Repo
Hub.swift:26struct Repo
struct Repo
import Hub
struct Hub
static func getFileMetadata(fileURL: URL) async throws -> HubApi.FileMetadata
static func getFileMetadata(from repo: Repo, matching glob: String) async throws -> [HubApi.FileMetadata]
static func getFileMetadata(from repo: Repo, matching globs: [String] = []) async throws -> [HubApi.FileMetadata]
static func getFileMetadata(from repoId: String, matching glob: String) async throws -> [HubApi.FileMetadata]
static func getFileMetadata(from repoId: String, matching globs: [String] = []) async throws -> [HubApi.FileMetadata]
static func getFilenames(from repo: Hub.Repo, matching globs: [String] = []) async throws -> [String]
static func getFilenames(from repo: Repo, matching glob: String) async throws -> [String]
static func getFilenames(from repoId: String, matching globs: [String] = []) async throws -> [String]
static func getFilenames(from repoId: String, matching glob: String) async throws -> [String]
static func snapshot(from repo: Repo, matching glob: String, progressHandler: @escaping (Progress) -> Void = { _ in }) async throws -> URL
static func snapshot(from repo: Repo, matching globs: [String] = [], progressHandler: @escaping (Progress) -> Void = { _ in }) async throws -> URL
static func snapshot(from repoId: String, matching glob: String, progressHandler: @escaping (Progress) -> Void = { _ in }) async throws -> URL
static func snapshot(from repoId: String, matching globs: [String] = [], progressHandler: @escaping (Progress) -> Void = { _ in }) async throws -> URL
static func whoami(token: String) async throws -> Config
enum HubClientError
enum RepoType
init(id: String, type: RepoType = .models)
let id: String
let type: RepoType