1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-12-12 08:23:48 +02:00
woodpecker/common/token.go
2015-04-12 22:32:32 -07:00

17 lines
345 B
Go

package common
const (
TokenUser = "u"
TokenSess = "s"
)
type Token struct {
Kind string `json:"-"`
Login string `json:"-"`
Label string `json:"label"`
Repos []string `json:"repos,omitempty"`
Scopes []string `json:"scopes,omitempty"`
Expiry int64 `json:"expiry,omitempty"`
Issued int64 `json:"issued_at,omitempty"`
}