testing

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 12, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeAuthCache

type FakeAuthCache struct {
	UserNamespaces map[string][]string
	UserAccounts   map[string][]string
}

FakeAuthCache is used for testing to replace the actual auth cache

func NewFakeAuthCache

func NewFakeAuthCache() *FakeAuthCache

NewFakeAuthCache creates a new fake auth cache

func (*FakeAuthCache) GetAccountsForUser

func (a *FakeAuthCache) GetAccountsForUser(user user.Info, verb string) ([]string, error)

GetAccountsForUser ...

func (*FakeAuthCache) GetNamespacesForUser

func (a *FakeAuthCache) GetNamespacesForUser(user user.Info, verb string) ([]string, error)

GetNamespacesForUser ...

func (*FakeAuthCache) Run

func (a *FakeAuthCache) Run(stop <-chan struct{})

Run ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL