module Gitlab::Client::Key

Overview

Defines methods related to key.

See http://docs.gitlab.com/ce/api/keys.html

Direct including types

Defined in:

gitlab/client/key.cr

Instance Method Summary

Instance Method Detail

def key(key_id : Int32) : JSON::Any #

Get SSH key in an authenticated user.

  • param [Int32] key_id The ID or ssh key.
  • return [JSON::Any] Information about logged in user.
client.key(2)

def key_by_fingerprint(fingerprint : String) : JSON::Any #

Get SSH key by fingerprint.

  • param [String] fingerprint The fingerprint or ssh key.
  • return [JSON::Any] Information about logged the key.
client.key_by_fingerprint("9f:70:33:b3:50:4d:9a:a3:ef:ea:13:9b:87:0f:7f:7e")