public LocalFileModelRepository(IFileSystem fileSystem, IModelPathGenerator modelPathGenerator, string destinationFolder = null) { if (string.IsNullOrWhiteSpace(destinationFolder)) { destinationFolder = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".mlops"); } this.destinationFolder = destinationFolder; this.modelRepository = Path.Combine(destinationFolder, "model-repository"); this.fileSystem = fileSystem; this.modelPathGenerator = modelPathGenerator; }
public StorageAccountModelRepository(BlobContainerClient modelRepositoryClient, BlobContainerClient deploymentClient, IModelPathGenerator modelPathGenerator) { this.modelRepositoryClient = modelRepositoryClient; this.deploymentClient = deploymentClient; this.modelPathGenerator = modelPathGenerator; }
public S3BucketModelRepository(IAmazonS3 s3Client, IModelPathGenerator modelPathGenerator) { this.s3Client = s3Client; this.modelPathGenerator = modelPathGenerator; }