Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExpiringSingletonTokenCache ¶
type ExpiringSingletonTokenCache interface { ExpiringSingletonTokenCacheGet Set(token string, ttl time.Duration) }
func NewExpiringSingletonTokenCache ¶
func NewExpiringSingletonTokenCache() ExpiringSingletonTokenCache
type ExpiringSingletonTokenCacheGet ¶
type ExpiringSingletonTokenCacheGet interface {
Get() string
}
type TokenClient ¶
type TokenClient struct {
// contains filtered or unexported fields
}
func New ¶
func New( serviceAccountName string, serviceAccountClient corev1client.ServiceAccountInterface, whatToDoWithToken WhatToDoWithTokenFunc, logger plog.Logger, opts ...Opt, ) *TokenClient
func (TokenClient) Start ¶
func (tc TokenClient) Start(ctx context.Context)
type WhatToDoWithTokenFunc ¶
Click to show internal directories.
Click to hide internal directories.