mirror of
https://github.com/mayflower/docker-ls.git
synced 2025-04-19 13:02:17 +03:00
27 lines
322 B
Go
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,
|
|
}
|
|
}
|