1
0
mirror of https://github.com/mayflower/docker-ls.git synced 2025-04-19 13:02:17 +03:00
docker-ls/lib/auth/token.go
2016-02-17 11:43:45 +01:00

27 lines
322 B
Go

package auth
type Token interface {
Value() string
Fresh() bool
}
type token struct {
value string
fresh bool
}
func (t *token) Value() string {
return t.value
}
func (t *token) Fresh() bool {
return t.fresh
}
func newToken(value string, fresh bool) Token {
return &token{
value: value,
fresh: fresh,
}
}