mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-18 11:20:16 +08:00
23 lines
459 B
Dart
23 lines
459 B
Dart
import 'dart:async';
|
|
|
|
abstract class GitHost {
|
|
void init(Function oAuthCallback);
|
|
Future launchOAuthScreen();
|
|
|
|
Future<List<GitRepo>> listRepos();
|
|
Future<GitRepo> createRepo(String name);
|
|
Future addDeployKey(String sshPublicKey, String repo);
|
|
}
|
|
|
|
class GitRepo {
|
|
String fullName;
|
|
String cloneUrl;
|
|
|
|
GitRepo({this.fullName, this.cloneUrl});
|
|
|
|
@override
|
|
String toString() {
|
|
return 'GitRepo{fulleName: $fullName, cloneUrl: $cloneUrl}';
|
|
}
|
|
}
|