1
0
mirror of https://github.com/mayflower/docker-ls.git synced 2025-07-13 20:41:44 +03:00
Files
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,
}
}