Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheResponse ¶
type FakeServiceAccountCache ¶
type FakeServiceAccountCache struct {
// contains filtered or unexported fields
}
FakeServiceAccountCache is a goroutine safe cache for testing
func NewFakeServiceAccountCache ¶
func NewFakeServiceAccountCache(accounts ...*v1.ServiceAccount) *FakeServiceAccountCache
func (*FakeServiceAccountCache) Add ¶
func (f *FakeServiceAccountCache) Add(name, namespace, role, aud string)
Add adds a cache entry
func (*FakeServiceAccountCache) Get ¶
func (f *FakeServiceAccountCache) Get(name, namespace string) (role, aud string)
Get gets a service account from the cache
func (*FakeServiceAccountCache) Pop ¶
func (f *FakeServiceAccountCache) Pop(name, namespace string)
Pop deletes a cache entry
func (*FakeServiceAccountCache) Start ¶
func (f *FakeServiceAccountCache) Start()
Start does nothing
type ServiceAccountCache ¶
func New ¶
func New(defaultAudience, prefix string, clientset kubernetes.Interface) ServiceAccountCache
Click to show internal directories.
Click to hide internal directories.