Skip to content

Instantly share code, notes, and snippets.

@unixunion
Created March 4, 2016 09:02
Show Gist options
  • Save unixunion/e18076f6579f7207224f to your computer and use it in GitHub Desktop.
Save unixunion/e18076f6579f7207224f to your computer and use it in GitHub Desktop.
package com.deblox.greatsnipe.git;
import io.vertx.core.Handler;
import io.vertx.core.Vertx;
import java.io.IOException;
import java.net.MalformedURLException;
/**
* provider to be extended / implemented in specific supported API's
*
*
* Created by keghol on 11/11/15.
*/
public interface GitServerProvider {
GitServerProvider setVertx(Vertx vertx);
/**
* set the URL to the repository
*
* @param url
*/
GitServerProvider setApiUrl(String url) throws MalformedURLException;
/**
* Set the auth token to a token or something like username:password
*
* @param token
*/
GitServerProvider setToken(String token);
/**
* Create a project and repository, returning the URL to the repo
*
* @param name
*/
void createProjectAndRepo(Object name, Handler<Object> handler) throws IOException;
/**
* return the URL
*
* @return
*/
String getRepoUrl();
void setRepoUrl(String s);
/**
* return the URL with username and password for use with git client
*
* @param username
* @param password
* @return
*/
String getAuhRepoUrl(String username, String password);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment