kubernetes/test/utils/ktesting/clientcontext.go

// WithRESTConfig initializes all client-go clients with new clients
// created for the config. The current test name gets included in the UserAgent.
func WithRESTConfig(tCtx TContext, cfg *rest.Config) TContext {}

// WithClients uses an existing config and clients.
func WithClients(tCtx TContext, cfg *rest.Config, mapper *restmapper.DeferredDiscoveryRESTMapper, client clientset.Interface, dynamic dynamic.Interface, apiextensions apiextensions.Interface) TContext {}

type clientContext

func (cCtx clientContext) CleanupCtx(cb func(TContext)) {}

func (cCtx clientContext) Expect(actual interface{}

func (cCtx clientContext) ExpectNoError(err error, explain ...interface{}

func (cCtx clientContext) Logger() klog.Logger {}

func (cCtx clientContext) RESTConfig() *rest.Config {}

func (cCtx clientContext) RESTMapper() *restmapper.DeferredDiscoveryRESTMapper {}

func (cCtx clientContext) Client() clientset.Interface {}

func (cCtx clientContext) Dynamic() dynamic.Interface {}

func (cCtx clientContext) APIExtensions() apiextensions.Interface {}