Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

frankyliu/gitlab-shell-client

Open more actions menu
 
 

Repository files navigation

Gitlab Shell Client

Build Status Maven Central

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'");

About

Java Client for remote administration of Gitlab Shell

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.