2015-04-07 08:20:55 +00:00
|
|
|
package common
|
|
|
|
|
2015-04-13 05:32:32 +00:00
|
|
|
const (
|
|
|
|
TokenUser = "u"
|
|
|
|
TokenSess = "s"
|
|
|
|
)
|
|
|
|
|
2015-04-07 08:20:55 +00:00
|
|
|
type Token struct {
|
2015-04-13 05:32:32 +00:00
|
|
|
Kind string `json:"-"`
|
2015-04-07 08:20:55 +00:00
|
|
|
Login string `json:"-"`
|
2015-04-13 05:32:32 +00:00
|
|
|
Label string `json:"label"`
|
2015-04-07 08:20:55 +00:00
|
|
|
Repos []string `json:"repos,omitempty"`
|
|
|
|
Scopes []string `json:"scopes,omitempty"`
|
|
|
|
Expiry int64 `json:"expiry,omitempty"`
|
2015-04-13 05:32:32 +00:00
|
|
|
Issued int64 `json:"issued_at,omitempty"`
|
2015-04-07 08:20:55 +00:00
|
|
|
}
|