1
0
forked from x/icebergs
icebergs/misc/git/token.go
2023-03-11 14:03:19 +08:00

18 lines
376 B
Go

package git
import (
ice "shylinux.com/x/icebergs"
"shylinux.com/x/icebergs/base/aaa"
"shylinux.com/x/icebergs/base/mdb"
)
const TOKEN = "token"
func init() {
Index.MergeCommands(ice.Commands{
TOKEN: {Name: "token username auto", Actions: ice.MergeActions(mdb.HashAction(
mdb.SHORT, aaa.USERNAME, mdb.EXPIRE, "720h", mdb.FIELD, "time,username,token",
))},
})
}