diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-20 16:04:56 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-20 16:04:56 -0400 |
commit | 06631ab91f5d84b48d6f71ac8eaf4df740ba0282 (patch) | |
tree | 8bfcccc57550c016b90a73fc57cc24942d508096 /models/publickey.go | |
parent | 686348974b1a1f6f11cab5244df2362f99e0a124 (diff) | |
download | gitea-06631ab91f5d84b48d6f71ac8eaf4df740ba0282.tar.gz gitea-06631ab91f5d84b48d6f71ac8eaf4df740ba0282.zip |
Basic admin data table, models changes
Diffstat (limited to 'models/publickey.go')
-rw-r--r-- | models/publickey.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/models/publickey.go b/models/publickey.go index 092436d55f..c69bca681d 100644 --- a/models/publickey.go +++ b/models/publickey.go @@ -27,8 +27,12 @@ const ( ) var ( - sshOpLocker = sync.Mutex{} + ErrKeyAlreadyExist = errors.New("Public key already exist") +) +var sshOpLocker = sync.Mutex{} + +var ( sshPath string appPath string ) @@ -79,10 +83,6 @@ type PublicKey struct { Updated time.Time `xorm:"updated"` } -var ( - ErrKeyAlreadyExist = errors.New("Public key already exist") -) - // GenAuthorizedKey returns formatted public key string. func GenAuthorizedKey(keyId int64, key string) string { return fmt.Sprintf(TPL_PUBLICK_KEY+"\n", appPath, keyId, key) |