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
A user often needs to import the files in a filesytem into Central Dogma for testing. At the moment, a user need to create a project and a repository, build a commit and push it using the client API. Their life could be simplified a lot by providing the APIs like the following:
publicinterfaceCentralDogma {
// Imports the files in the given directory into Central Dogma.// First component in the path becomes the project name.// Second component in the path becomes the repository name.// e.g. foo/bar/alice.json will create a new project 'foo' and// a new repository 'bar' under the project 'foo', and// add 'alice.json' to the root directory of the repository 'bar'.//// Placeholder files like '.keep' and '.gitkeep' could be ignored automatically.CompletableFuture<ImportResult> importDir(Pathdir);
CompletableFuture<ImportResult> importResourceDir(Stringdir);
CompletableFuture<ImportResult> importResourceDir(Stringdir, ClassLoaderclassLoader);
}
publicinterfaceCentralDogmaRepository {
// Imports the files in the given directory into the repository.// Placeholder files like '.keep' and '.gitkeep' could be ignored automatically.CompletableFuture<ImportResult> importDir(Pathdir);
CompletableFuture<ImportResult> importResourceDir(Stringdir);
CompletableFuture<ImportResult> importResourceDir(Stringdir, ClassLoaderclassLoader);
}
The text was updated successfully, but these errors were encountered:
trustin
changed the title
Provide a easy way to import a directory or files into Central Dogma programmatically
Provide a easy way to import a directory into Central Dogma programmatically
Jun 19, 2024
trustin
changed the title
Provide a easy way to import a directory into Central Dogma programmatically
Provide an easy way to import a directory into Central Dogma programmatically
Jun 19, 2024
A user often needs to import the files in a filesytem into Central Dogma for testing. At the moment, a user need to create a project and a repository, build a commit and push it using the client API. Their life could be simplified a lot by providing the APIs like the following:
The text was updated successfully, but these errors were encountered: