Documentation ¶
Overview ¶
Package token provides cache for token.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( InvalidToken = errors.New("ERROR:Invalid Token") NoTokenProvided = errors.New("ERROR:No Token Provided") )
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface { Get(token string) *TtyParameter Delete(token string) error Add(token string, param *TtyParameter, d time.Duration) error }
Cache interface that defines token cache behavior
type MemCache ¶
type MemCache struct {
// contains filtered or unexported fields
}
MemCache use memory to store token and TtyParameter
func (*MemCache) Get ¶
func (r *MemCache) Get(token string) *TtyParameter
Get token param from memory
type TtyParameter ¶
TtyParameter kubectl tty param
Click to show internal directories.
Click to hide internal directories.