Gitlab Shell Client
Java Client for remote administration of Gitlab Shell
Installation
Maven (pom.xml)
<dependency>
    <groupId>com.feedhenry.gitlabshell</groupId>
    <artifactId>gitlab-shell-client</artifactId>
    <version>X.Y.Z</version>
</dependency> 
Gradle (build.gradle)
dependencies {
  compile 'com.feedhenry.gitlabshell:gitlab-shell-client:X.Y.Z'
} 
Usage
GLSClient client = new GLSClient.Builder()
  .user("git")
  .host("127.0.0.1")
  .port(22)
  .publicKey("ssh-rsa AAAA....")
  .privateKey("-----BEGIN RSA PRIVATE KEY-----\nMIIEow....\n-----END RSA PRIVATE KEY-----")
  .build();
List<GLSKey> keys = client.listKeys();
String[] projects = client.getProjects();
client.addProject("myrepos/repo1");
client.rmProject("myrepos/repo1");
client.addKey("user1", "ssh-rsa AAAA.... user@example.com");
client.rmKey("user1"); 
To run a custom ssh command
client.executeCommand("echo 'hello'"); 
 JarCasting
 JarCasting