summaryrefslogtreecommitdiff
path: root/credentials.go
AgeCommit message (Collapse)Author
2020-02-23Fix the Cred interfacelhchavez
This change adds Cred.Free() and finalizers to prevent memory leaks. It also makes the interface for Cred more idiomatic and return actual errors intead of ints.
2019-12-10credentials: unconfuse Go about the typeCarlos Martín Nieto
For some reason cgo thinks the `credtype` field does not exist in `git_cred` so let's put it into the C code.
2019-12-10Adjust to libgit2 changesCarlos Martín Nieto
2016-06-22Add NewCredSshKeyFromMemory to the credentials helpers.David Calavera
Allowing to use public and private keys from memory without reading them from disk and without using an ssh agent. Signed-off-by: David Calavera <[email protected]>
2014-12-11Remove useless includesCarlos Martín Nieto
2014-10-28Make the constants have typesCarlos Martín Nieto
While Go will assign the correct type to a const block when it auto-creates the values, assigning makes the const be typeless and will only gain it in each particular use. Make each constant in the blocks have an assigned type.
2014-03-11cleanup clone codeJesse Ezell