mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-27 04:11:03 +00:00
18 lines
386 B
Go
18 lines
386 B
Go
package common
|
|
|
|
const (
|
|
TokenUser = "u"
|
|
TokenSess = "s"
|
|
TokenHook = "h"
|
|
TokenAgent = "a"
|
|
)
|
|
|
|
type Token struct {
|
|
Kind string `json:"kind"`
|
|
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"`
|
|
}
|