kubernetes/staging/src/k8s.io/client-go/rest/plugin_test.go

func TestAuthPluginWrapTransport(t *testing.T) {}

func TestAuthPluginPersist(t *testing.T) {}

func Test_WhenNilPersister_NoOpPersisterIsAssigned(t *testing.T) {}

type emptyTransport

func (*emptyTransport) RoundTrip(req *http.Request) (*http.Response, error) {}

type wrapTransport

func (w *wrapTransport) RoundTrip(req *http.Request) (*http.Response, error) {}

type wrapTransportA

func (w *wrapTransportA) RoundTrip(req *http.Request) (*http.Response, error) {}

type pluginA

func (*pluginA) WrapTransport(rt http.RoundTripper) http.RoundTripper {}

func (*pluginA) Login() error {}

func pluginAProvider(string, map[string]string, AuthProviderConfigPersister) (AuthProvider, error) {}

type wrapTransportB

func (w *wrapTransportB) RoundTrip(req *http.Request) (*http.Response, error) {}

type pluginB

func (*pluginB) WrapTransport(rt http.RoundTripper) http.RoundTripper {}

func (*pluginB) Login() error {}

func pluginBProvider(string, map[string]string, AuthProviderConfigPersister) (AuthProvider, error) {}

// pluginFailProvider simulates a registered AuthPlugin that fails to load.
func pluginFailProvider(string, map[string]string, AuthProviderConfigPersister) (AuthProvider, error) {}

type inMemoryPersister

func (i *inMemoryPersister) Persist(config map[string]string) error {}

type wrapTransportPersist

func (w *wrapTransportPersist) RoundTrip(req *http.Request) (*http.Response, error) {}

type pluginPersist

func (p *pluginPersist) WrapTransport(rt http.RoundTripper) http.RoundTripper {}

// Login sets the config entry "login" to "Y".
func (p *pluginPersist) Login() error {}

func pluginPersistProvider(_ string, config map[string]string, persister AuthProviderConfigPersister) (AuthProvider, error) {}