Tentacat v1.6.0 Tentacat.Users.Keys View Source
Link to this section Summary
Functions
Create a public key on the authorized user
Get a single public key of the authorized user
List public keys for a user
List public keys for the authenticated user
Delete a public from the authorized user
Update a public key from the authorized user
Link to this section Functions
create(client, title, key)
View Source
create(Tentacat.Client.t(), binary(), binary()) :: Tentacat.response()
create(Tentacat.Client.t(), binary(), binary()) :: Tentacat.response()
Create a public key on the authorized user
Example
Tentacat.Users.Keys.create(client, "title", "ssh-rsa AAA...")
More info at:http://developer.github.com/v3/users/keys/#create-a-public-key
find(client, id)
View Source
find(Tentacat.Client.t(), integer()) :: Tentacat.response()
find(Tentacat.Client.t(), integer()) :: Tentacat.response()
Get a single public key of the authorized user
Example
Tentacat.Users.Keys.find 1, client
More info at: http://developer.github.com/v3/users/keys/#get-a-single-public-key
list(client \\ %Client{}, user)
View Source
list(Tentacat.Client.t(), binary()) :: Tentacat.response()
list(Tentacat.Client.t(), binary()) :: Tentacat.response()
List public keys for a user
Example
Tentacat.Users.Keys.list "bastos"
Tentacat.Users.Keys.list client, "bastos"
More info at: http://developer.github.com/v3/users/keys/#list-public-keys-for-a-user and http://developer.github.com/v3/users/keys/#list-your-public-keys
list_mine(client)
View Source
list_mine(Tentacat.Client.t()) :: Tentacat.response()
list_mine(Tentacat.Client.t()) :: Tentacat.response()
List public keys for the authenticated user
Example
Tentacat.Users.Keys.list_mine client
More info at: http://developer.github.com/v3/users/keys/#list-public-keys-for-a-user and http://developer.github.com/v3/users/keys/#list-your-public-keys
remove(client, id)
View Source
remove(Tentacat.Client.t(), integer()) :: any()
remove(Tentacat.Client.t(), integer()) :: any()
Delete a public from the authorized user
Example
Tentacat.Users.Keys.remove client, 123
More info at: http://developer.github.com/v3/users/keys/#delete-a-public-key
update(client, id, title, key)
View Source
update(Tentacat.Client.t(), integer(), binary(), binary()) ::
Tentacat.response()
update(Tentacat.Client.t(), integer(), binary(), binary()) :: Tentacat.response()
Update a public key from the authorized user
Example
Tentacat.Users.Keys.update(client, 123, "title", "ssh-rsa ...")
More info at: http://developer.github.com/v3/users/keys/#update-a-public-key