Documentation ¶
Index ¶
- type AppControllerMock
- func (mock *AppControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *AppControllerMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *AppControllerMock) AddHandler(ctx context.Context, name string, handler v3.AppHandlerFunc)
- func (mock *AppControllerMock) AddHandlerCalls() []struct{ ... }
- func (mock *AppControllerMock) Enqueue(namespace string, name string)
- func (mock *AppControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *AppControllerMock) Generic() controller.GenericController
- func (mock *AppControllerMock) GenericCalls() []struct{}
- func (mock *AppControllerMock) Informer() cache.SharedIndexInformer
- func (mock *AppControllerMock) InformerCalls() []struct{}
- func (mock *AppControllerMock) Lister() v3.AppLister
- func (mock *AppControllerMock) ListerCalls() []struct{}
- func (mock *AppControllerMock) Start(ctx context.Context, threadiness int) error
- func (mock *AppControllerMock) StartCalls() []struct{ ... }
- func (mock *AppControllerMock) Sync(ctx context.Context) error
- func (mock *AppControllerMock) SyncCalls() []struct{ ... }
- type AppInterfaceMock
- func (mock *AppInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v3.AppHandlerFunc)
- func (mock *AppInterfaceMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *AppInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, ...)
- func (mock *AppInterfaceMock) AddClusterScopedLifecycleCalls() []struct{ ... }
- func (mock *AppInterfaceMock) AddHandler(ctx context.Context, name string, sync v3.AppHandlerFunc)
- func (mock *AppInterfaceMock) AddHandlerCalls() []struct{ ... }
- func (mock *AppInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v3.AppLifecycle)
- func (mock *AppInterfaceMock) AddLifecycleCalls() []struct{ ... }
- func (mock *AppInterfaceMock) Controller() v3.AppController
- func (mock *AppInterfaceMock) ControllerCalls() []struct{}
- func (mock *AppInterfaceMock) Create(in1 *v3.App) (*v3.App, error)
- func (mock *AppInterfaceMock) CreateCalls() []struct{ ... }
- func (mock *AppInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
- func (mock *AppInterfaceMock) DeleteCalls() []struct{ ... }
- func (mock *AppInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
- func (mock *AppInterfaceMock) DeleteCollectionCalls() []struct{ ... }
- func (mock *AppInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
- func (mock *AppInterfaceMock) DeleteNamespacedCalls() []struct{ ... }
- func (mock *AppInterfaceMock) Get(name string, opts v1.GetOptions) (*v3.App, error)
- func (mock *AppInterfaceMock) GetCalls() []struct{ ... }
- func (mock *AppInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v3.App, error)
- func (mock *AppInterfaceMock) GetNamespacedCalls() []struct{ ... }
- func (mock *AppInterfaceMock) List(opts v1.ListOptions) (*v3.AppList, error)
- func (mock *AppInterfaceMock) ListCalls() []struct{ ... }
- func (mock *AppInterfaceMock) ObjectClient() *objectclient.ObjectClient
- func (mock *AppInterfaceMock) ObjectClientCalls() []struct{}
- func (mock *AppInterfaceMock) Update(in1 *v3.App) (*v3.App, error)
- func (mock *AppInterfaceMock) UpdateCalls() []struct{ ... }
- func (mock *AppInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
- func (mock *AppInterfaceMock) WatchCalls() []struct{ ... }
- type AppListerMock
- type AppRevisionControllerMock
- func (mock *AppRevisionControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *AppRevisionControllerMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *AppRevisionControllerMock) AddHandler(ctx context.Context, name string, handler v3.AppRevisionHandlerFunc)
- func (mock *AppRevisionControllerMock) AddHandlerCalls() []struct{ ... }
- func (mock *AppRevisionControllerMock) Enqueue(namespace string, name string)
- func (mock *AppRevisionControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *AppRevisionControllerMock) Generic() controller.GenericController
- func (mock *AppRevisionControllerMock) GenericCalls() []struct{}
- func (mock *AppRevisionControllerMock) Informer() cache.SharedIndexInformer
- func (mock *AppRevisionControllerMock) InformerCalls() []struct{}
- func (mock *AppRevisionControllerMock) Lister() v3.AppRevisionLister
- func (mock *AppRevisionControllerMock) ListerCalls() []struct{}
- func (mock *AppRevisionControllerMock) Start(ctx context.Context, threadiness int) error
- func (mock *AppRevisionControllerMock) StartCalls() []struct{ ... }
- func (mock *AppRevisionControllerMock) Sync(ctx context.Context) error
- func (mock *AppRevisionControllerMock) SyncCalls() []struct{ ... }
- type AppRevisionInterfaceMock
- func (mock *AppRevisionInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *AppRevisionInterfaceMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *AppRevisionInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, ...)
- func (mock *AppRevisionInterfaceMock) AddClusterScopedLifecycleCalls() []struct{ ... }
- func (mock *AppRevisionInterfaceMock) AddHandler(ctx context.Context, name string, sync v3.AppRevisionHandlerFunc)
- func (mock *AppRevisionInterfaceMock) AddHandlerCalls() []struct{ ... }
- func (mock *AppRevisionInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v3.AppRevisionLifecycle)
- func (mock *AppRevisionInterfaceMock) AddLifecycleCalls() []struct{ ... }
- func (mock *AppRevisionInterfaceMock) Controller() v3.AppRevisionController
- func (mock *AppRevisionInterfaceMock) ControllerCalls() []struct{}
- func (mock *AppRevisionInterfaceMock) Create(in1 *v3.AppRevision) (*v3.AppRevision, error)
- func (mock *AppRevisionInterfaceMock) CreateCalls() []struct{ ... }
- func (mock *AppRevisionInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
- func (mock *AppRevisionInterfaceMock) DeleteCalls() []struct{ ... }
- func (mock *AppRevisionInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
- func (mock *AppRevisionInterfaceMock) DeleteCollectionCalls() []struct{ ... }
- func (mock *AppRevisionInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
- func (mock *AppRevisionInterfaceMock) DeleteNamespacedCalls() []struct{ ... }
- func (mock *AppRevisionInterfaceMock) Get(name string, opts v1.GetOptions) (*v3.AppRevision, error)
- func (mock *AppRevisionInterfaceMock) GetCalls() []struct{ ... }
- func (mock *AppRevisionInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v3.AppRevision, error)
- func (mock *AppRevisionInterfaceMock) GetNamespacedCalls() []struct{ ... }
- func (mock *AppRevisionInterfaceMock) List(opts v1.ListOptions) (*v3.AppRevisionList, error)
- func (mock *AppRevisionInterfaceMock) ListCalls() []struct{ ... }
- func (mock *AppRevisionInterfaceMock) ObjectClient() *objectclient.ObjectClient
- func (mock *AppRevisionInterfaceMock) ObjectClientCalls() []struct{}
- func (mock *AppRevisionInterfaceMock) Update(in1 *v3.AppRevision) (*v3.AppRevision, error)
- func (mock *AppRevisionInterfaceMock) UpdateCalls() []struct{ ... }
- func (mock *AppRevisionInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
- func (mock *AppRevisionInterfaceMock) WatchCalls() []struct{ ... }
- type AppRevisionListerMock
- func (mock *AppRevisionListerMock) Get(namespace string, name string) (*v3.AppRevision, error)
- func (mock *AppRevisionListerMock) GetCalls() []struct{ ... }
- func (mock *AppRevisionListerMock) List(namespace string, selector labels.Selector) ([]*v3.AppRevision, error)
- func (mock *AppRevisionListerMock) ListCalls() []struct{ ... }
- type AppRevisionsGetterMock
- type AppsGetterMock
- type BasicAuthControllerMock
- func (mock *BasicAuthControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *BasicAuthControllerMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *BasicAuthControllerMock) AddHandler(ctx context.Context, name string, handler v3.BasicAuthHandlerFunc)
- func (mock *BasicAuthControllerMock) AddHandlerCalls() []struct{ ... }
- func (mock *BasicAuthControllerMock) Enqueue(namespace string, name string)
- func (mock *BasicAuthControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *BasicAuthControllerMock) Generic() controller.GenericController
- func (mock *BasicAuthControllerMock) GenericCalls() []struct{}
- func (mock *BasicAuthControllerMock) Informer() cache.SharedIndexInformer
- func (mock *BasicAuthControllerMock) InformerCalls() []struct{}
- func (mock *BasicAuthControllerMock) Lister() v3.BasicAuthLister
- func (mock *BasicAuthControllerMock) ListerCalls() []struct{}
- func (mock *BasicAuthControllerMock) Start(ctx context.Context, threadiness int) error
- func (mock *BasicAuthControllerMock) StartCalls() []struct{ ... }
- func (mock *BasicAuthControllerMock) Sync(ctx context.Context) error
- func (mock *BasicAuthControllerMock) SyncCalls() []struct{ ... }
- type BasicAuthInterfaceMock
- func (mock *BasicAuthInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *BasicAuthInterfaceMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *BasicAuthInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, ...)
- func (mock *BasicAuthInterfaceMock) AddClusterScopedLifecycleCalls() []struct{ ... }
- func (mock *BasicAuthInterfaceMock) AddHandler(ctx context.Context, name string, sync v3.BasicAuthHandlerFunc)
- func (mock *BasicAuthInterfaceMock) AddHandlerCalls() []struct{ ... }
- func (mock *BasicAuthInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v3.BasicAuthLifecycle)
- func (mock *BasicAuthInterfaceMock) AddLifecycleCalls() []struct{ ... }
- func (mock *BasicAuthInterfaceMock) Controller() v3.BasicAuthController
- func (mock *BasicAuthInterfaceMock) ControllerCalls() []struct{}
- func (mock *BasicAuthInterfaceMock) Create(in1 *v3.BasicAuth) (*v3.BasicAuth, error)
- func (mock *BasicAuthInterfaceMock) CreateCalls() []struct{ ... }
- func (mock *BasicAuthInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
- func (mock *BasicAuthInterfaceMock) DeleteCalls() []struct{ ... }
- func (mock *BasicAuthInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
- func (mock *BasicAuthInterfaceMock) DeleteCollectionCalls() []struct{ ... }
- func (mock *BasicAuthInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
- func (mock *BasicAuthInterfaceMock) DeleteNamespacedCalls() []struct{ ... }
- func (mock *BasicAuthInterfaceMock) Get(name string, opts v1.GetOptions) (*v3.BasicAuth, error)
- func (mock *BasicAuthInterfaceMock) GetCalls() []struct{ ... }
- func (mock *BasicAuthInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v3.BasicAuth, error)
- func (mock *BasicAuthInterfaceMock) GetNamespacedCalls() []struct{ ... }
- func (mock *BasicAuthInterfaceMock) List(opts v1.ListOptions) (*v3.BasicAuthList, error)
- func (mock *BasicAuthInterfaceMock) ListCalls() []struct{ ... }
- func (mock *BasicAuthInterfaceMock) ObjectClient() *objectclient.ObjectClient
- func (mock *BasicAuthInterfaceMock) ObjectClientCalls() []struct{}
- func (mock *BasicAuthInterfaceMock) Update(in1 *v3.BasicAuth) (*v3.BasicAuth, error)
- func (mock *BasicAuthInterfaceMock) UpdateCalls() []struct{ ... }
- func (mock *BasicAuthInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
- func (mock *BasicAuthInterfaceMock) WatchCalls() []struct{ ... }
- type BasicAuthListerMock
- func (mock *BasicAuthListerMock) Get(namespace string, name string) (*v3.BasicAuth, error)
- func (mock *BasicAuthListerMock) GetCalls() []struct{ ... }
- func (mock *BasicAuthListerMock) List(namespace string, selector labels.Selector) ([]*v3.BasicAuth, error)
- func (mock *BasicAuthListerMock) ListCalls() []struct{ ... }
- type BasicAuthsGetterMock
- type CertificateControllerMock
- func (mock *CertificateControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *CertificateControllerMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *CertificateControllerMock) AddHandler(ctx context.Context, name string, handler v3.CertificateHandlerFunc)
- func (mock *CertificateControllerMock) AddHandlerCalls() []struct{ ... }
- func (mock *CertificateControllerMock) Enqueue(namespace string, name string)
- func (mock *CertificateControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *CertificateControllerMock) Generic() controller.GenericController
- func (mock *CertificateControllerMock) GenericCalls() []struct{}
- func (mock *CertificateControllerMock) Informer() cache.SharedIndexInformer
- func (mock *CertificateControllerMock) InformerCalls() []struct{}
- func (mock *CertificateControllerMock) Lister() v3.CertificateLister
- func (mock *CertificateControllerMock) ListerCalls() []struct{}
- func (mock *CertificateControllerMock) Start(ctx context.Context, threadiness int) error
- func (mock *CertificateControllerMock) StartCalls() []struct{ ... }
- func (mock *CertificateControllerMock) Sync(ctx context.Context) error
- func (mock *CertificateControllerMock) SyncCalls() []struct{ ... }
- type CertificateInterfaceMock
- func (mock *CertificateInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *CertificateInterfaceMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *CertificateInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, ...)
- func (mock *CertificateInterfaceMock) AddClusterScopedLifecycleCalls() []struct{ ... }
- func (mock *CertificateInterfaceMock) AddHandler(ctx context.Context, name string, sync v3.CertificateHandlerFunc)
- func (mock *CertificateInterfaceMock) AddHandlerCalls() []struct{ ... }
- func (mock *CertificateInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v3.CertificateLifecycle)
- func (mock *CertificateInterfaceMock) AddLifecycleCalls() []struct{ ... }
- func (mock *CertificateInterfaceMock) Controller() v3.CertificateController
- func (mock *CertificateInterfaceMock) ControllerCalls() []struct{}
- func (mock *CertificateInterfaceMock) Create(in1 *v3.Certificate) (*v3.Certificate, error)
- func (mock *CertificateInterfaceMock) CreateCalls() []struct{ ... }
- func (mock *CertificateInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
- func (mock *CertificateInterfaceMock) DeleteCalls() []struct{ ... }
- func (mock *CertificateInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
- func (mock *CertificateInterfaceMock) DeleteCollectionCalls() []struct{ ... }
- func (mock *CertificateInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
- func (mock *CertificateInterfaceMock) DeleteNamespacedCalls() []struct{ ... }
- func (mock *CertificateInterfaceMock) Get(name string, opts v1.GetOptions) (*v3.Certificate, error)
- func (mock *CertificateInterfaceMock) GetCalls() []struct{ ... }
- func (mock *CertificateInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v3.Certificate, error)
- func (mock *CertificateInterfaceMock) GetNamespacedCalls() []struct{ ... }
- func (mock *CertificateInterfaceMock) List(opts v1.ListOptions) (*v3.CertificateList, error)
- func (mock *CertificateInterfaceMock) ListCalls() []struct{ ... }
- func (mock *CertificateInterfaceMock) ObjectClient() *objectclient.ObjectClient
- func (mock *CertificateInterfaceMock) ObjectClientCalls() []struct{}
- func (mock *CertificateInterfaceMock) Update(in1 *v3.Certificate) (*v3.Certificate, error)
- func (mock *CertificateInterfaceMock) UpdateCalls() []struct{ ... }
- func (mock *CertificateInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
- func (mock *CertificateInterfaceMock) WatchCalls() []struct{ ... }
- type CertificateListerMock
- func (mock *CertificateListerMock) Get(namespace string, name string) (*v3.Certificate, error)
- func (mock *CertificateListerMock) GetCalls() []struct{ ... }
- func (mock *CertificateListerMock) List(namespace string, selector labels.Selector) ([]*v3.Certificate, error)
- func (mock *CertificateListerMock) ListCalls() []struct{ ... }
- type CertificatesGetterMock
- type DockerCredentialControllerMock
- func (mock *DockerCredentialControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *DockerCredentialControllerMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *DockerCredentialControllerMock) AddHandler(ctx context.Context, name string, handler v3.DockerCredentialHandlerFunc)
- func (mock *DockerCredentialControllerMock) AddHandlerCalls() []struct{ ... }
- func (mock *DockerCredentialControllerMock) Enqueue(namespace string, name string)
- func (mock *DockerCredentialControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *DockerCredentialControllerMock) Generic() controller.GenericController
- func (mock *DockerCredentialControllerMock) GenericCalls() []struct{}
- func (mock *DockerCredentialControllerMock) Informer() cache.SharedIndexInformer
- func (mock *DockerCredentialControllerMock) InformerCalls() []struct{}
- func (mock *DockerCredentialControllerMock) Lister() v3.DockerCredentialLister
- func (mock *DockerCredentialControllerMock) ListerCalls() []struct{}
- func (mock *DockerCredentialControllerMock) Start(ctx context.Context, threadiness int) error
- func (mock *DockerCredentialControllerMock) StartCalls() []struct{ ... }
- func (mock *DockerCredentialControllerMock) Sync(ctx context.Context) error
- func (mock *DockerCredentialControllerMock) SyncCalls() []struct{ ... }
- type DockerCredentialInterfaceMock
- func (mock *DockerCredentialInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *DockerCredentialInterfaceMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *DockerCredentialInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, ...)
- func (mock *DockerCredentialInterfaceMock) AddClusterScopedLifecycleCalls() []struct{ ... }
- func (mock *DockerCredentialInterfaceMock) AddHandler(ctx context.Context, name string, sync v3.DockerCredentialHandlerFunc)
- func (mock *DockerCredentialInterfaceMock) AddHandlerCalls() []struct{ ... }
- func (mock *DockerCredentialInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v3.DockerCredentialLifecycle)
- func (mock *DockerCredentialInterfaceMock) AddLifecycleCalls() []struct{ ... }
- func (mock *DockerCredentialInterfaceMock) Controller() v3.DockerCredentialController
- func (mock *DockerCredentialInterfaceMock) ControllerCalls() []struct{}
- func (mock *DockerCredentialInterfaceMock) Create(in1 *v3.DockerCredential) (*v3.DockerCredential, error)
- func (mock *DockerCredentialInterfaceMock) CreateCalls() []struct{ ... }
- func (mock *DockerCredentialInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
- func (mock *DockerCredentialInterfaceMock) DeleteCalls() []struct{ ... }
- func (mock *DockerCredentialInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
- func (mock *DockerCredentialInterfaceMock) DeleteCollectionCalls() []struct{ ... }
- func (mock *DockerCredentialInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
- func (mock *DockerCredentialInterfaceMock) DeleteNamespacedCalls() []struct{ ... }
- func (mock *DockerCredentialInterfaceMock) Get(name string, opts v1.GetOptions) (*v3.DockerCredential, error)
- func (mock *DockerCredentialInterfaceMock) GetCalls() []struct{ ... }
- func (mock *DockerCredentialInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v3.DockerCredential, error)
- func (mock *DockerCredentialInterfaceMock) GetNamespacedCalls() []struct{ ... }
- func (mock *DockerCredentialInterfaceMock) List(opts v1.ListOptions) (*v3.DockerCredentialList, error)
- func (mock *DockerCredentialInterfaceMock) ListCalls() []struct{ ... }
- func (mock *DockerCredentialInterfaceMock) ObjectClient() *objectclient.ObjectClient
- func (mock *DockerCredentialInterfaceMock) ObjectClientCalls() []struct{}
- func (mock *DockerCredentialInterfaceMock) Update(in1 *v3.DockerCredential) (*v3.DockerCredential, error)
- func (mock *DockerCredentialInterfaceMock) UpdateCalls() []struct{ ... }
- func (mock *DockerCredentialInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
- func (mock *DockerCredentialInterfaceMock) WatchCalls() []struct{ ... }
- type DockerCredentialListerMock
- func (mock *DockerCredentialListerMock) Get(namespace string, name string) (*v3.DockerCredential, error)
- func (mock *DockerCredentialListerMock) GetCalls() []struct{ ... }
- func (mock *DockerCredentialListerMock) List(namespace string, selector labels.Selector) ([]*v3.DockerCredential, error)
- func (mock *DockerCredentialListerMock) ListCalls() []struct{ ... }
- type DockerCredentialsGetterMock
- type NamespacedBasicAuthControllerMock
- func (mock *NamespacedBasicAuthControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *NamespacedBasicAuthControllerMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *NamespacedBasicAuthControllerMock) AddHandler(ctx context.Context, name string, handler v3.NamespacedBasicAuthHandlerFunc)
- func (mock *NamespacedBasicAuthControllerMock) AddHandlerCalls() []struct{ ... }
- func (mock *NamespacedBasicAuthControllerMock) Enqueue(namespace string, name string)
- func (mock *NamespacedBasicAuthControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *NamespacedBasicAuthControllerMock) Generic() controller.GenericController
- func (mock *NamespacedBasicAuthControllerMock) GenericCalls() []struct{}
- func (mock *NamespacedBasicAuthControllerMock) Informer() cache.SharedIndexInformer
- func (mock *NamespacedBasicAuthControllerMock) InformerCalls() []struct{}
- func (mock *NamespacedBasicAuthControllerMock) Lister() v3.NamespacedBasicAuthLister
- func (mock *NamespacedBasicAuthControllerMock) ListerCalls() []struct{}
- func (mock *NamespacedBasicAuthControllerMock) Start(ctx context.Context, threadiness int) error
- func (mock *NamespacedBasicAuthControllerMock) StartCalls() []struct{ ... }
- func (mock *NamespacedBasicAuthControllerMock) Sync(ctx context.Context) error
- func (mock *NamespacedBasicAuthControllerMock) SyncCalls() []struct{ ... }
- type NamespacedBasicAuthInterfaceMock
- func (mock *NamespacedBasicAuthInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *NamespacedBasicAuthInterfaceMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *NamespacedBasicAuthInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, ...)
- func (mock *NamespacedBasicAuthInterfaceMock) AddClusterScopedLifecycleCalls() []struct{ ... }
- func (mock *NamespacedBasicAuthInterfaceMock) AddHandler(ctx context.Context, name string, sync v3.NamespacedBasicAuthHandlerFunc)
- func (mock *NamespacedBasicAuthInterfaceMock) AddHandlerCalls() []struct{ ... }
- func (mock *NamespacedBasicAuthInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v3.NamespacedBasicAuthLifecycle)
- func (mock *NamespacedBasicAuthInterfaceMock) AddLifecycleCalls() []struct{ ... }
- func (mock *NamespacedBasicAuthInterfaceMock) Controller() v3.NamespacedBasicAuthController
- func (mock *NamespacedBasicAuthInterfaceMock) ControllerCalls() []struct{}
- func (mock *NamespacedBasicAuthInterfaceMock) Create(in1 *v3.NamespacedBasicAuth) (*v3.NamespacedBasicAuth, error)
- func (mock *NamespacedBasicAuthInterfaceMock) CreateCalls() []struct{ ... }
- func (mock *NamespacedBasicAuthInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
- func (mock *NamespacedBasicAuthInterfaceMock) DeleteCalls() []struct{ ... }
- func (mock *NamespacedBasicAuthInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
- func (mock *NamespacedBasicAuthInterfaceMock) DeleteCollectionCalls() []struct{ ... }
- func (mock *NamespacedBasicAuthInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
- func (mock *NamespacedBasicAuthInterfaceMock) DeleteNamespacedCalls() []struct{ ... }
- func (mock *NamespacedBasicAuthInterfaceMock) Get(name string, opts v1.GetOptions) (*v3.NamespacedBasicAuth, error)
- func (mock *NamespacedBasicAuthInterfaceMock) GetCalls() []struct{ ... }
- func (mock *NamespacedBasicAuthInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v3.NamespacedBasicAuth, error)
- func (mock *NamespacedBasicAuthInterfaceMock) GetNamespacedCalls() []struct{ ... }
- func (mock *NamespacedBasicAuthInterfaceMock) List(opts v1.ListOptions) (*v3.NamespacedBasicAuthList, error)
- func (mock *NamespacedBasicAuthInterfaceMock) ListCalls() []struct{ ... }
- func (mock *NamespacedBasicAuthInterfaceMock) ObjectClient() *objectclient.ObjectClient
- func (mock *NamespacedBasicAuthInterfaceMock) ObjectClientCalls() []struct{}
- func (mock *NamespacedBasicAuthInterfaceMock) Update(in1 *v3.NamespacedBasicAuth) (*v3.NamespacedBasicAuth, error)
- func (mock *NamespacedBasicAuthInterfaceMock) UpdateCalls() []struct{ ... }
- func (mock *NamespacedBasicAuthInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
- func (mock *NamespacedBasicAuthInterfaceMock) WatchCalls() []struct{ ... }
- type NamespacedBasicAuthListerMock
- func (mock *NamespacedBasicAuthListerMock) Get(namespace string, name string) (*v3.NamespacedBasicAuth, error)
- func (mock *NamespacedBasicAuthListerMock) GetCalls() []struct{ ... }
- func (mock *NamespacedBasicAuthListerMock) List(namespace string, selector labels.Selector) ([]*v3.NamespacedBasicAuth, error)
- func (mock *NamespacedBasicAuthListerMock) ListCalls() []struct{ ... }
- type NamespacedBasicAuthsGetterMock
- type NamespacedCertificateControllerMock
- func (mock *NamespacedCertificateControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *NamespacedCertificateControllerMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *NamespacedCertificateControllerMock) AddHandler(ctx context.Context, name string, handler v3.NamespacedCertificateHandlerFunc)
- func (mock *NamespacedCertificateControllerMock) AddHandlerCalls() []struct{ ... }
- func (mock *NamespacedCertificateControllerMock) Enqueue(namespace string, name string)
- func (mock *NamespacedCertificateControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *NamespacedCertificateControllerMock) Generic() controller.GenericController
- func (mock *NamespacedCertificateControllerMock) GenericCalls() []struct{}
- func (mock *NamespacedCertificateControllerMock) Informer() cache.SharedIndexInformer
- func (mock *NamespacedCertificateControllerMock) InformerCalls() []struct{}
- func (mock *NamespacedCertificateControllerMock) Lister() v3.NamespacedCertificateLister
- func (mock *NamespacedCertificateControllerMock) ListerCalls() []struct{}
- func (mock *NamespacedCertificateControllerMock) Start(ctx context.Context, threadiness int) error
- func (mock *NamespacedCertificateControllerMock) StartCalls() []struct{ ... }
- func (mock *NamespacedCertificateControllerMock) Sync(ctx context.Context) error
- func (mock *NamespacedCertificateControllerMock) SyncCalls() []struct{ ... }
- type NamespacedCertificateInterfaceMock
- func (mock *NamespacedCertificateInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *NamespacedCertificateInterfaceMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *NamespacedCertificateInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, ...)
- func (mock *NamespacedCertificateInterfaceMock) AddClusterScopedLifecycleCalls() []struct{ ... }
- func (mock *NamespacedCertificateInterfaceMock) AddHandler(ctx context.Context, name string, sync v3.NamespacedCertificateHandlerFunc)
- func (mock *NamespacedCertificateInterfaceMock) AddHandlerCalls() []struct{ ... }
- func (mock *NamespacedCertificateInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v3.NamespacedCertificateLifecycle)
- func (mock *NamespacedCertificateInterfaceMock) AddLifecycleCalls() []struct{ ... }
- func (mock *NamespacedCertificateInterfaceMock) Controller() v3.NamespacedCertificateController
- func (mock *NamespacedCertificateInterfaceMock) ControllerCalls() []struct{}
- func (mock *NamespacedCertificateInterfaceMock) Create(in1 *v3.NamespacedCertificate) (*v3.NamespacedCertificate, error)
- func (mock *NamespacedCertificateInterfaceMock) CreateCalls() []struct{ ... }
- func (mock *NamespacedCertificateInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
- func (mock *NamespacedCertificateInterfaceMock) DeleteCalls() []struct{ ... }
- func (mock *NamespacedCertificateInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
- func (mock *NamespacedCertificateInterfaceMock) DeleteCollectionCalls() []struct{ ... }
- func (mock *NamespacedCertificateInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
- func (mock *NamespacedCertificateInterfaceMock) DeleteNamespacedCalls() []struct{ ... }
- func (mock *NamespacedCertificateInterfaceMock) Get(name string, opts v1.GetOptions) (*v3.NamespacedCertificate, error)
- func (mock *NamespacedCertificateInterfaceMock) GetCalls() []struct{ ... }
- func (mock *NamespacedCertificateInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v3.NamespacedCertificate, error)
- func (mock *NamespacedCertificateInterfaceMock) GetNamespacedCalls() []struct{ ... }
- func (mock *NamespacedCertificateInterfaceMock) List(opts v1.ListOptions) (*v3.NamespacedCertificateList, error)
- func (mock *NamespacedCertificateInterfaceMock) ListCalls() []struct{ ... }
- func (mock *NamespacedCertificateInterfaceMock) ObjectClient() *objectclient.ObjectClient
- func (mock *NamespacedCertificateInterfaceMock) ObjectClientCalls() []struct{}
- func (mock *NamespacedCertificateInterfaceMock) Update(in1 *v3.NamespacedCertificate) (*v3.NamespacedCertificate, error)
- func (mock *NamespacedCertificateInterfaceMock) UpdateCalls() []struct{ ... }
- func (mock *NamespacedCertificateInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
- func (mock *NamespacedCertificateInterfaceMock) WatchCalls() []struct{ ... }
- type NamespacedCertificateListerMock
- func (mock *NamespacedCertificateListerMock) Get(namespace string, name string) (*v3.NamespacedCertificate, error)
- func (mock *NamespacedCertificateListerMock) GetCalls() []struct{ ... }
- func (mock *NamespacedCertificateListerMock) List(namespace string, selector labels.Selector) ([]*v3.NamespacedCertificate, error)
- func (mock *NamespacedCertificateListerMock) ListCalls() []struct{ ... }
- type NamespacedCertificatesGetterMock
- type NamespacedDockerCredentialControllerMock
- func (mock *NamespacedDockerCredentialControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *NamespacedDockerCredentialControllerMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *NamespacedDockerCredentialControllerMock) AddHandler(ctx context.Context, name string, ...)
- func (mock *NamespacedDockerCredentialControllerMock) AddHandlerCalls() []struct{ ... }
- func (mock *NamespacedDockerCredentialControllerMock) Enqueue(namespace string, name string)
- func (mock *NamespacedDockerCredentialControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *NamespacedDockerCredentialControllerMock) Generic() controller.GenericController
- func (mock *NamespacedDockerCredentialControllerMock) GenericCalls() []struct{}
- func (mock *NamespacedDockerCredentialControllerMock) Informer() cache.SharedIndexInformer
- func (mock *NamespacedDockerCredentialControllerMock) InformerCalls() []struct{}
- func (mock *NamespacedDockerCredentialControllerMock) Lister() v3.NamespacedDockerCredentialLister
- func (mock *NamespacedDockerCredentialControllerMock) ListerCalls() []struct{}
- func (mock *NamespacedDockerCredentialControllerMock) Start(ctx context.Context, threadiness int) error
- func (mock *NamespacedDockerCredentialControllerMock) StartCalls() []struct{ ... }
- func (mock *NamespacedDockerCredentialControllerMock) Sync(ctx context.Context) error
- func (mock *NamespacedDockerCredentialControllerMock) SyncCalls() []struct{ ... }
- type NamespacedDockerCredentialInterfaceMock
- func (mock *NamespacedDockerCredentialInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *NamespacedDockerCredentialInterfaceMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *NamespacedDockerCredentialInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, ...)
- func (mock *NamespacedDockerCredentialInterfaceMock) AddClusterScopedLifecycleCalls() []struct{ ... }
- func (mock *NamespacedDockerCredentialInterfaceMock) AddHandler(ctx context.Context, name string, ...)
- func (mock *NamespacedDockerCredentialInterfaceMock) AddHandlerCalls() []struct{ ... }
- func (mock *NamespacedDockerCredentialInterfaceMock) AddLifecycle(ctx context.Context, name string, ...)
- func (mock *NamespacedDockerCredentialInterfaceMock) AddLifecycleCalls() []struct{ ... }
- func (mock *NamespacedDockerCredentialInterfaceMock) Controller() v3.NamespacedDockerCredentialController
- func (mock *NamespacedDockerCredentialInterfaceMock) ControllerCalls() []struct{}
- func (mock *NamespacedDockerCredentialInterfaceMock) Create(in1 *v3.NamespacedDockerCredential) (*v3.NamespacedDockerCredential, error)
- func (mock *NamespacedDockerCredentialInterfaceMock) CreateCalls() []struct{ ... }
- func (mock *NamespacedDockerCredentialInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
- func (mock *NamespacedDockerCredentialInterfaceMock) DeleteCalls() []struct{ ... }
- func (mock *NamespacedDockerCredentialInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
- func (mock *NamespacedDockerCredentialInterfaceMock) DeleteCollectionCalls() []struct{ ... }
- func (mock *NamespacedDockerCredentialInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
- func (mock *NamespacedDockerCredentialInterfaceMock) DeleteNamespacedCalls() []struct{ ... }
- func (mock *NamespacedDockerCredentialInterfaceMock) Get(name string, opts v1.GetOptions) (*v3.NamespacedDockerCredential, error)
- func (mock *NamespacedDockerCredentialInterfaceMock) GetCalls() []struct{ ... }
- func (mock *NamespacedDockerCredentialInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v3.NamespacedDockerCredential, error)
- func (mock *NamespacedDockerCredentialInterfaceMock) GetNamespacedCalls() []struct{ ... }
- func (mock *NamespacedDockerCredentialInterfaceMock) List(opts v1.ListOptions) (*v3.NamespacedDockerCredentialList, error)
- func (mock *NamespacedDockerCredentialInterfaceMock) ListCalls() []struct{ ... }
- func (mock *NamespacedDockerCredentialInterfaceMock) ObjectClient() *objectclient.ObjectClient
- func (mock *NamespacedDockerCredentialInterfaceMock) ObjectClientCalls() []struct{}
- func (mock *NamespacedDockerCredentialInterfaceMock) Update(in1 *v3.NamespacedDockerCredential) (*v3.NamespacedDockerCredential, error)
- func (mock *NamespacedDockerCredentialInterfaceMock) UpdateCalls() []struct{ ... }
- func (mock *NamespacedDockerCredentialInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
- func (mock *NamespacedDockerCredentialInterfaceMock) WatchCalls() []struct{ ... }
- type NamespacedDockerCredentialListerMock
- func (mock *NamespacedDockerCredentialListerMock) Get(namespace string, name string) (*v3.NamespacedDockerCredential, error)
- func (mock *NamespacedDockerCredentialListerMock) GetCalls() []struct{ ... }
- func (mock *NamespacedDockerCredentialListerMock) List(namespace string, selector labels.Selector) ([]*v3.NamespacedDockerCredential, error)
- func (mock *NamespacedDockerCredentialListerMock) ListCalls() []struct{ ... }
- type NamespacedDockerCredentialsGetterMock
- type NamespacedSSHAuthControllerMock
- func (mock *NamespacedSSHAuthControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *NamespacedSSHAuthControllerMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *NamespacedSSHAuthControllerMock) AddHandler(ctx context.Context, name string, handler v3.NamespacedSSHAuthHandlerFunc)
- func (mock *NamespacedSSHAuthControllerMock) AddHandlerCalls() []struct{ ... }
- func (mock *NamespacedSSHAuthControllerMock) Enqueue(namespace string, name string)
- func (mock *NamespacedSSHAuthControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *NamespacedSSHAuthControllerMock) Generic() controller.GenericController
- func (mock *NamespacedSSHAuthControllerMock) GenericCalls() []struct{}
- func (mock *NamespacedSSHAuthControllerMock) Informer() cache.SharedIndexInformer
- func (mock *NamespacedSSHAuthControllerMock) InformerCalls() []struct{}
- func (mock *NamespacedSSHAuthControllerMock) Lister() v3.NamespacedSSHAuthLister
- func (mock *NamespacedSSHAuthControllerMock) ListerCalls() []struct{}
- func (mock *NamespacedSSHAuthControllerMock) Start(ctx context.Context, threadiness int) error
- func (mock *NamespacedSSHAuthControllerMock) StartCalls() []struct{ ... }
- func (mock *NamespacedSSHAuthControllerMock) Sync(ctx context.Context) error
- func (mock *NamespacedSSHAuthControllerMock) SyncCalls() []struct{ ... }
- type NamespacedSSHAuthInterfaceMock
- func (mock *NamespacedSSHAuthInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *NamespacedSSHAuthInterfaceMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *NamespacedSSHAuthInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, ...)
- func (mock *NamespacedSSHAuthInterfaceMock) AddClusterScopedLifecycleCalls() []struct{ ... }
- func (mock *NamespacedSSHAuthInterfaceMock) AddHandler(ctx context.Context, name string, sync v3.NamespacedSSHAuthHandlerFunc)
- func (mock *NamespacedSSHAuthInterfaceMock) AddHandlerCalls() []struct{ ... }
- func (mock *NamespacedSSHAuthInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v3.NamespacedSSHAuthLifecycle)
- func (mock *NamespacedSSHAuthInterfaceMock) AddLifecycleCalls() []struct{ ... }
- func (mock *NamespacedSSHAuthInterfaceMock) Controller() v3.NamespacedSSHAuthController
- func (mock *NamespacedSSHAuthInterfaceMock) ControllerCalls() []struct{}
- func (mock *NamespacedSSHAuthInterfaceMock) Create(in1 *v3.NamespacedSSHAuth) (*v3.NamespacedSSHAuth, error)
- func (mock *NamespacedSSHAuthInterfaceMock) CreateCalls() []struct{ ... }
- func (mock *NamespacedSSHAuthInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
- func (mock *NamespacedSSHAuthInterfaceMock) DeleteCalls() []struct{ ... }
- func (mock *NamespacedSSHAuthInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
- func (mock *NamespacedSSHAuthInterfaceMock) DeleteCollectionCalls() []struct{ ... }
- func (mock *NamespacedSSHAuthInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
- func (mock *NamespacedSSHAuthInterfaceMock) DeleteNamespacedCalls() []struct{ ... }
- func (mock *NamespacedSSHAuthInterfaceMock) Get(name string, opts v1.GetOptions) (*v3.NamespacedSSHAuth, error)
- func (mock *NamespacedSSHAuthInterfaceMock) GetCalls() []struct{ ... }
- func (mock *NamespacedSSHAuthInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v3.NamespacedSSHAuth, error)
- func (mock *NamespacedSSHAuthInterfaceMock) GetNamespacedCalls() []struct{ ... }
- func (mock *NamespacedSSHAuthInterfaceMock) List(opts v1.ListOptions) (*v3.NamespacedSSHAuthList, error)
- func (mock *NamespacedSSHAuthInterfaceMock) ListCalls() []struct{ ... }
- func (mock *NamespacedSSHAuthInterfaceMock) ObjectClient() *objectclient.ObjectClient
- func (mock *NamespacedSSHAuthInterfaceMock) ObjectClientCalls() []struct{}
- func (mock *NamespacedSSHAuthInterfaceMock) Update(in1 *v3.NamespacedSSHAuth) (*v3.NamespacedSSHAuth, error)
- func (mock *NamespacedSSHAuthInterfaceMock) UpdateCalls() []struct{ ... }
- func (mock *NamespacedSSHAuthInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
- func (mock *NamespacedSSHAuthInterfaceMock) WatchCalls() []struct{ ... }
- type NamespacedSSHAuthListerMock
- func (mock *NamespacedSSHAuthListerMock) Get(namespace string, name string) (*v3.NamespacedSSHAuth, error)
- func (mock *NamespacedSSHAuthListerMock) GetCalls() []struct{ ... }
- func (mock *NamespacedSSHAuthListerMock) List(namespace string, selector labels.Selector) ([]*v3.NamespacedSSHAuth, error)
- func (mock *NamespacedSSHAuthListerMock) ListCalls() []struct{ ... }
- type NamespacedSSHAuthsGetterMock
- type NamespacedServiceAccountTokenControllerMock
- func (mock *NamespacedServiceAccountTokenControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *NamespacedServiceAccountTokenControllerMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *NamespacedServiceAccountTokenControllerMock) AddHandler(ctx context.Context, name string, ...)
- func (mock *NamespacedServiceAccountTokenControllerMock) AddHandlerCalls() []struct{ ... }
- func (mock *NamespacedServiceAccountTokenControllerMock) Enqueue(namespace string, name string)
- func (mock *NamespacedServiceAccountTokenControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *NamespacedServiceAccountTokenControllerMock) Generic() controller.GenericController
- func (mock *NamespacedServiceAccountTokenControllerMock) GenericCalls() []struct{}
- func (mock *NamespacedServiceAccountTokenControllerMock) Informer() cache.SharedIndexInformer
- func (mock *NamespacedServiceAccountTokenControllerMock) InformerCalls() []struct{}
- func (mock *NamespacedServiceAccountTokenControllerMock) Lister() v3.NamespacedServiceAccountTokenLister
- func (mock *NamespacedServiceAccountTokenControllerMock) ListerCalls() []struct{}
- func (mock *NamespacedServiceAccountTokenControllerMock) Start(ctx context.Context, threadiness int) error
- func (mock *NamespacedServiceAccountTokenControllerMock) StartCalls() []struct{ ... }
- func (mock *NamespacedServiceAccountTokenControllerMock) Sync(ctx context.Context) error
- func (mock *NamespacedServiceAccountTokenControllerMock) SyncCalls() []struct{ ... }
- type NamespacedServiceAccountTokenInterfaceMock
- func (mock *NamespacedServiceAccountTokenInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *NamespacedServiceAccountTokenInterfaceMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *NamespacedServiceAccountTokenInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, ...)
- func (mock *NamespacedServiceAccountTokenInterfaceMock) AddClusterScopedLifecycleCalls() []struct{ ... }
- func (mock *NamespacedServiceAccountTokenInterfaceMock) AddHandler(ctx context.Context, name string, ...)
- func (mock *NamespacedServiceAccountTokenInterfaceMock) AddHandlerCalls() []struct{ ... }
- func (mock *NamespacedServiceAccountTokenInterfaceMock) AddLifecycle(ctx context.Context, name string, ...)
- func (mock *NamespacedServiceAccountTokenInterfaceMock) AddLifecycleCalls() []struct{ ... }
- func (mock *NamespacedServiceAccountTokenInterfaceMock) Controller() v3.NamespacedServiceAccountTokenController
- func (mock *NamespacedServiceAccountTokenInterfaceMock) ControllerCalls() []struct{}
- func (mock *NamespacedServiceAccountTokenInterfaceMock) Create(in1 *v3.NamespacedServiceAccountToken) (*v3.NamespacedServiceAccountToken, error)
- func (mock *NamespacedServiceAccountTokenInterfaceMock) CreateCalls() []struct{ ... }
- func (mock *NamespacedServiceAccountTokenInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
- func (mock *NamespacedServiceAccountTokenInterfaceMock) DeleteCalls() []struct{ ... }
- func (mock *NamespacedServiceAccountTokenInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
- func (mock *NamespacedServiceAccountTokenInterfaceMock) DeleteCollectionCalls() []struct{ ... }
- func (mock *NamespacedServiceAccountTokenInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
- func (mock *NamespacedServiceAccountTokenInterfaceMock) DeleteNamespacedCalls() []struct{ ... }
- func (mock *NamespacedServiceAccountTokenInterfaceMock) Get(name string, opts v1.GetOptions) (*v3.NamespacedServiceAccountToken, error)
- func (mock *NamespacedServiceAccountTokenInterfaceMock) GetCalls() []struct{ ... }
- func (mock *NamespacedServiceAccountTokenInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v3.NamespacedServiceAccountToken, error)
- func (mock *NamespacedServiceAccountTokenInterfaceMock) GetNamespacedCalls() []struct{ ... }
- func (mock *NamespacedServiceAccountTokenInterfaceMock) List(opts v1.ListOptions) (*v3.NamespacedServiceAccountTokenList, error)
- func (mock *NamespacedServiceAccountTokenInterfaceMock) ListCalls() []struct{ ... }
- func (mock *NamespacedServiceAccountTokenInterfaceMock) ObjectClient() *objectclient.ObjectClient
- func (mock *NamespacedServiceAccountTokenInterfaceMock) ObjectClientCalls() []struct{}
- func (mock *NamespacedServiceAccountTokenInterfaceMock) Update(in1 *v3.NamespacedServiceAccountToken) (*v3.NamespacedServiceAccountToken, error)
- func (mock *NamespacedServiceAccountTokenInterfaceMock) UpdateCalls() []struct{ ... }
- func (mock *NamespacedServiceAccountTokenInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
- func (mock *NamespacedServiceAccountTokenInterfaceMock) WatchCalls() []struct{ ... }
- type NamespacedServiceAccountTokenListerMock
- func (mock *NamespacedServiceAccountTokenListerMock) Get(namespace string, name string) (*v3.NamespacedServiceAccountToken, error)
- func (mock *NamespacedServiceAccountTokenListerMock) GetCalls() []struct{ ... }
- func (mock *NamespacedServiceAccountTokenListerMock) List(namespace string, selector labels.Selector) ([]*v3.NamespacedServiceAccountToken, error)
- func (mock *NamespacedServiceAccountTokenListerMock) ListCalls() []struct{ ... }
- type NamespacedServiceAccountTokensGetterMock
- type PipelineControllerMock
- func (mock *PipelineControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *PipelineControllerMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *PipelineControllerMock) AddHandler(ctx context.Context, name string, handler v3.PipelineHandlerFunc)
- func (mock *PipelineControllerMock) AddHandlerCalls() []struct{ ... }
- func (mock *PipelineControllerMock) Enqueue(namespace string, name string)
- func (mock *PipelineControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *PipelineControllerMock) Generic() controller.GenericController
- func (mock *PipelineControllerMock) GenericCalls() []struct{}
- func (mock *PipelineControllerMock) Informer() cache.SharedIndexInformer
- func (mock *PipelineControllerMock) InformerCalls() []struct{}
- func (mock *PipelineControllerMock) Lister() v3.PipelineLister
- func (mock *PipelineControllerMock) ListerCalls() []struct{}
- func (mock *PipelineControllerMock) Start(ctx context.Context, threadiness int) error
- func (mock *PipelineControllerMock) StartCalls() []struct{ ... }
- func (mock *PipelineControllerMock) Sync(ctx context.Context) error
- func (mock *PipelineControllerMock) SyncCalls() []struct{ ... }
- type PipelineExecutionControllerMock
- func (mock *PipelineExecutionControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *PipelineExecutionControllerMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *PipelineExecutionControllerMock) AddHandler(ctx context.Context, name string, handler v3.PipelineExecutionHandlerFunc)
- func (mock *PipelineExecutionControllerMock) AddHandlerCalls() []struct{ ... }
- func (mock *PipelineExecutionControllerMock) Enqueue(namespace string, name string)
- func (mock *PipelineExecutionControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *PipelineExecutionControllerMock) Generic() controller.GenericController
- func (mock *PipelineExecutionControllerMock) GenericCalls() []struct{}
- func (mock *PipelineExecutionControllerMock) Informer() cache.SharedIndexInformer
- func (mock *PipelineExecutionControllerMock) InformerCalls() []struct{}
- func (mock *PipelineExecutionControllerMock) Lister() v3.PipelineExecutionLister
- func (mock *PipelineExecutionControllerMock) ListerCalls() []struct{}
- func (mock *PipelineExecutionControllerMock) Start(ctx context.Context, threadiness int) error
- func (mock *PipelineExecutionControllerMock) StartCalls() []struct{ ... }
- func (mock *PipelineExecutionControllerMock) Sync(ctx context.Context) error
- func (mock *PipelineExecutionControllerMock) SyncCalls() []struct{ ... }
- type PipelineExecutionInterfaceMock
- func (mock *PipelineExecutionInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *PipelineExecutionInterfaceMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *PipelineExecutionInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, ...)
- func (mock *PipelineExecutionInterfaceMock) AddClusterScopedLifecycleCalls() []struct{ ... }
- func (mock *PipelineExecutionInterfaceMock) AddHandler(ctx context.Context, name string, sync v3.PipelineExecutionHandlerFunc)
- func (mock *PipelineExecutionInterfaceMock) AddHandlerCalls() []struct{ ... }
- func (mock *PipelineExecutionInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v3.PipelineExecutionLifecycle)
- func (mock *PipelineExecutionInterfaceMock) AddLifecycleCalls() []struct{ ... }
- func (mock *PipelineExecutionInterfaceMock) Controller() v3.PipelineExecutionController
- func (mock *PipelineExecutionInterfaceMock) ControllerCalls() []struct{}
- func (mock *PipelineExecutionInterfaceMock) Create(in1 *v3.PipelineExecution) (*v3.PipelineExecution, error)
- func (mock *PipelineExecutionInterfaceMock) CreateCalls() []struct{ ... }
- func (mock *PipelineExecutionInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
- func (mock *PipelineExecutionInterfaceMock) DeleteCalls() []struct{ ... }
- func (mock *PipelineExecutionInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
- func (mock *PipelineExecutionInterfaceMock) DeleteCollectionCalls() []struct{ ... }
- func (mock *PipelineExecutionInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
- func (mock *PipelineExecutionInterfaceMock) DeleteNamespacedCalls() []struct{ ... }
- func (mock *PipelineExecutionInterfaceMock) Get(name string, opts v1.GetOptions) (*v3.PipelineExecution, error)
- func (mock *PipelineExecutionInterfaceMock) GetCalls() []struct{ ... }
- func (mock *PipelineExecutionInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v3.PipelineExecution, error)
- func (mock *PipelineExecutionInterfaceMock) GetNamespacedCalls() []struct{ ... }
- func (mock *PipelineExecutionInterfaceMock) List(opts v1.ListOptions) (*v3.PipelineExecutionList, error)
- func (mock *PipelineExecutionInterfaceMock) ListCalls() []struct{ ... }
- func (mock *PipelineExecutionInterfaceMock) ObjectClient() *objectclient.ObjectClient
- func (mock *PipelineExecutionInterfaceMock) ObjectClientCalls() []struct{}
- func (mock *PipelineExecutionInterfaceMock) Update(in1 *v3.PipelineExecution) (*v3.PipelineExecution, error)
- func (mock *PipelineExecutionInterfaceMock) UpdateCalls() []struct{ ... }
- func (mock *PipelineExecutionInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
- func (mock *PipelineExecutionInterfaceMock) WatchCalls() []struct{ ... }
- type PipelineExecutionListerMock
- func (mock *PipelineExecutionListerMock) Get(namespace string, name string) (*v3.PipelineExecution, error)
- func (mock *PipelineExecutionListerMock) GetCalls() []struct{ ... }
- func (mock *PipelineExecutionListerMock) List(namespace string, selector labels.Selector) ([]*v3.PipelineExecution, error)
- func (mock *PipelineExecutionListerMock) ListCalls() []struct{ ... }
- type PipelineExecutionsGetterMock
- type PipelineInterfaceMock
- func (mock *PipelineInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *PipelineInterfaceMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *PipelineInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, ...)
- func (mock *PipelineInterfaceMock) AddClusterScopedLifecycleCalls() []struct{ ... }
- func (mock *PipelineInterfaceMock) AddHandler(ctx context.Context, name string, sync v3.PipelineHandlerFunc)
- func (mock *PipelineInterfaceMock) AddHandlerCalls() []struct{ ... }
- func (mock *PipelineInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v3.PipelineLifecycle)
- func (mock *PipelineInterfaceMock) AddLifecycleCalls() []struct{ ... }
- func (mock *PipelineInterfaceMock) Controller() v3.PipelineController
- func (mock *PipelineInterfaceMock) ControllerCalls() []struct{}
- func (mock *PipelineInterfaceMock) Create(in1 *v3.Pipeline) (*v3.Pipeline, error)
- func (mock *PipelineInterfaceMock) CreateCalls() []struct{ ... }
- func (mock *PipelineInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
- func (mock *PipelineInterfaceMock) DeleteCalls() []struct{ ... }
- func (mock *PipelineInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
- func (mock *PipelineInterfaceMock) DeleteCollectionCalls() []struct{ ... }
- func (mock *PipelineInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
- func (mock *PipelineInterfaceMock) DeleteNamespacedCalls() []struct{ ... }
- func (mock *PipelineInterfaceMock) Get(name string, opts v1.GetOptions) (*v3.Pipeline, error)
- func (mock *PipelineInterfaceMock) GetCalls() []struct{ ... }
- func (mock *PipelineInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v3.Pipeline, error)
- func (mock *PipelineInterfaceMock) GetNamespacedCalls() []struct{ ... }
- func (mock *PipelineInterfaceMock) List(opts v1.ListOptions) (*v3.PipelineList, error)
- func (mock *PipelineInterfaceMock) ListCalls() []struct{ ... }
- func (mock *PipelineInterfaceMock) ObjectClient() *objectclient.ObjectClient
- func (mock *PipelineInterfaceMock) ObjectClientCalls() []struct{}
- func (mock *PipelineInterfaceMock) Update(in1 *v3.Pipeline) (*v3.Pipeline, error)
- func (mock *PipelineInterfaceMock) UpdateCalls() []struct{ ... }
- func (mock *PipelineInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
- func (mock *PipelineInterfaceMock) WatchCalls() []struct{ ... }
- type PipelineListerMock
- func (mock *PipelineListerMock) Get(namespace string, name string) (*v3.Pipeline, error)
- func (mock *PipelineListerMock) GetCalls() []struct{ ... }
- func (mock *PipelineListerMock) List(namespace string, selector labels.Selector) ([]*v3.Pipeline, error)
- func (mock *PipelineListerMock) ListCalls() []struct{ ... }
- type PipelineSettingControllerMock
- func (mock *PipelineSettingControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *PipelineSettingControllerMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *PipelineSettingControllerMock) AddHandler(ctx context.Context, name string, handler v3.PipelineSettingHandlerFunc)
- func (mock *PipelineSettingControllerMock) AddHandlerCalls() []struct{ ... }
- func (mock *PipelineSettingControllerMock) Enqueue(namespace string, name string)
- func (mock *PipelineSettingControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *PipelineSettingControllerMock) Generic() controller.GenericController
- func (mock *PipelineSettingControllerMock) GenericCalls() []struct{}
- func (mock *PipelineSettingControllerMock) Informer() cache.SharedIndexInformer
- func (mock *PipelineSettingControllerMock) InformerCalls() []struct{}
- func (mock *PipelineSettingControllerMock) Lister() v3.PipelineSettingLister
- func (mock *PipelineSettingControllerMock) ListerCalls() []struct{}
- func (mock *PipelineSettingControllerMock) Start(ctx context.Context, threadiness int) error
- func (mock *PipelineSettingControllerMock) StartCalls() []struct{ ... }
- func (mock *PipelineSettingControllerMock) Sync(ctx context.Context) error
- func (mock *PipelineSettingControllerMock) SyncCalls() []struct{ ... }
- type PipelineSettingInterfaceMock
- func (mock *PipelineSettingInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *PipelineSettingInterfaceMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *PipelineSettingInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, ...)
- func (mock *PipelineSettingInterfaceMock) AddClusterScopedLifecycleCalls() []struct{ ... }
- func (mock *PipelineSettingInterfaceMock) AddHandler(ctx context.Context, name string, sync v3.PipelineSettingHandlerFunc)
- func (mock *PipelineSettingInterfaceMock) AddHandlerCalls() []struct{ ... }
- func (mock *PipelineSettingInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v3.PipelineSettingLifecycle)
- func (mock *PipelineSettingInterfaceMock) AddLifecycleCalls() []struct{ ... }
- func (mock *PipelineSettingInterfaceMock) Controller() v3.PipelineSettingController
- func (mock *PipelineSettingInterfaceMock) ControllerCalls() []struct{}
- func (mock *PipelineSettingInterfaceMock) Create(in1 *v3.PipelineSetting) (*v3.PipelineSetting, error)
- func (mock *PipelineSettingInterfaceMock) CreateCalls() []struct{ ... }
- func (mock *PipelineSettingInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
- func (mock *PipelineSettingInterfaceMock) DeleteCalls() []struct{ ... }
- func (mock *PipelineSettingInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
- func (mock *PipelineSettingInterfaceMock) DeleteCollectionCalls() []struct{ ... }
- func (mock *PipelineSettingInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
- func (mock *PipelineSettingInterfaceMock) DeleteNamespacedCalls() []struct{ ... }
- func (mock *PipelineSettingInterfaceMock) Get(name string, opts v1.GetOptions) (*v3.PipelineSetting, error)
- func (mock *PipelineSettingInterfaceMock) GetCalls() []struct{ ... }
- func (mock *PipelineSettingInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v3.PipelineSetting, error)
- func (mock *PipelineSettingInterfaceMock) GetNamespacedCalls() []struct{ ... }
- func (mock *PipelineSettingInterfaceMock) List(opts v1.ListOptions) (*v3.PipelineSettingList, error)
- func (mock *PipelineSettingInterfaceMock) ListCalls() []struct{ ... }
- func (mock *PipelineSettingInterfaceMock) ObjectClient() *objectclient.ObjectClient
- func (mock *PipelineSettingInterfaceMock) ObjectClientCalls() []struct{}
- func (mock *PipelineSettingInterfaceMock) Update(in1 *v3.PipelineSetting) (*v3.PipelineSetting, error)
- func (mock *PipelineSettingInterfaceMock) UpdateCalls() []struct{ ... }
- func (mock *PipelineSettingInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
- func (mock *PipelineSettingInterfaceMock) WatchCalls() []struct{ ... }
- type PipelineSettingListerMock
- func (mock *PipelineSettingListerMock) Get(namespace string, name string) (*v3.PipelineSetting, error)
- func (mock *PipelineSettingListerMock) GetCalls() []struct{ ... }
- func (mock *PipelineSettingListerMock) List(namespace string, selector labels.Selector) ([]*v3.PipelineSetting, error)
- func (mock *PipelineSettingListerMock) ListCalls() []struct{ ... }
- type PipelineSettingsGetterMock
- type PipelinesGetterMock
- type SSHAuthControllerMock
- func (mock *SSHAuthControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *SSHAuthControllerMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *SSHAuthControllerMock) AddHandler(ctx context.Context, name string, handler v3.SSHAuthHandlerFunc)
- func (mock *SSHAuthControllerMock) AddHandlerCalls() []struct{ ... }
- func (mock *SSHAuthControllerMock) Enqueue(namespace string, name string)
- func (mock *SSHAuthControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *SSHAuthControllerMock) Generic() controller.GenericController
- func (mock *SSHAuthControllerMock) GenericCalls() []struct{}
- func (mock *SSHAuthControllerMock) Informer() cache.SharedIndexInformer
- func (mock *SSHAuthControllerMock) InformerCalls() []struct{}
- func (mock *SSHAuthControllerMock) Lister() v3.SSHAuthLister
- func (mock *SSHAuthControllerMock) ListerCalls() []struct{}
- func (mock *SSHAuthControllerMock) Start(ctx context.Context, threadiness int) error
- func (mock *SSHAuthControllerMock) StartCalls() []struct{ ... }
- func (mock *SSHAuthControllerMock) Sync(ctx context.Context) error
- func (mock *SSHAuthControllerMock) SyncCalls() []struct{ ... }
- type SSHAuthInterfaceMock
- func (mock *SSHAuthInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *SSHAuthInterfaceMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *SSHAuthInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, ...)
- func (mock *SSHAuthInterfaceMock) AddClusterScopedLifecycleCalls() []struct{ ... }
- func (mock *SSHAuthInterfaceMock) AddHandler(ctx context.Context, name string, sync v3.SSHAuthHandlerFunc)
- func (mock *SSHAuthInterfaceMock) AddHandlerCalls() []struct{ ... }
- func (mock *SSHAuthInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v3.SSHAuthLifecycle)
- func (mock *SSHAuthInterfaceMock) AddLifecycleCalls() []struct{ ... }
- func (mock *SSHAuthInterfaceMock) Controller() v3.SSHAuthController
- func (mock *SSHAuthInterfaceMock) ControllerCalls() []struct{}
- func (mock *SSHAuthInterfaceMock) Create(in1 *v3.SSHAuth) (*v3.SSHAuth, error)
- func (mock *SSHAuthInterfaceMock) CreateCalls() []struct{ ... }
- func (mock *SSHAuthInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
- func (mock *SSHAuthInterfaceMock) DeleteCalls() []struct{ ... }
- func (mock *SSHAuthInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
- func (mock *SSHAuthInterfaceMock) DeleteCollectionCalls() []struct{ ... }
- func (mock *SSHAuthInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
- func (mock *SSHAuthInterfaceMock) DeleteNamespacedCalls() []struct{ ... }
- func (mock *SSHAuthInterfaceMock) Get(name string, opts v1.GetOptions) (*v3.SSHAuth, error)
- func (mock *SSHAuthInterfaceMock) GetCalls() []struct{ ... }
- func (mock *SSHAuthInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v3.SSHAuth, error)
- func (mock *SSHAuthInterfaceMock) GetNamespacedCalls() []struct{ ... }
- func (mock *SSHAuthInterfaceMock) List(opts v1.ListOptions) (*v3.SSHAuthList, error)
- func (mock *SSHAuthInterfaceMock) ListCalls() []struct{ ... }
- func (mock *SSHAuthInterfaceMock) ObjectClient() *objectclient.ObjectClient
- func (mock *SSHAuthInterfaceMock) ObjectClientCalls() []struct{}
- func (mock *SSHAuthInterfaceMock) Update(in1 *v3.SSHAuth) (*v3.SSHAuth, error)
- func (mock *SSHAuthInterfaceMock) UpdateCalls() []struct{ ... }
- func (mock *SSHAuthInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
- func (mock *SSHAuthInterfaceMock) WatchCalls() []struct{ ... }
- type SSHAuthListerMock
- func (mock *SSHAuthListerMock) Get(namespace string, name string) (*v3.SSHAuth, error)
- func (mock *SSHAuthListerMock) GetCalls() []struct{ ... }
- func (mock *SSHAuthListerMock) List(namespace string, selector labels.Selector) ([]*v3.SSHAuth, error)
- func (mock *SSHAuthListerMock) ListCalls() []struct{ ... }
- type SSHAuthsGetterMock
- type ServiceAccountTokenControllerMock
- func (mock *ServiceAccountTokenControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *ServiceAccountTokenControllerMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *ServiceAccountTokenControllerMock) AddHandler(ctx context.Context, name string, handler v3.ServiceAccountTokenHandlerFunc)
- func (mock *ServiceAccountTokenControllerMock) AddHandlerCalls() []struct{ ... }
- func (mock *ServiceAccountTokenControllerMock) Enqueue(namespace string, name string)
- func (mock *ServiceAccountTokenControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *ServiceAccountTokenControllerMock) Generic() controller.GenericController
- func (mock *ServiceAccountTokenControllerMock) GenericCalls() []struct{}
- func (mock *ServiceAccountTokenControllerMock) Informer() cache.SharedIndexInformer
- func (mock *ServiceAccountTokenControllerMock) InformerCalls() []struct{}
- func (mock *ServiceAccountTokenControllerMock) Lister() v3.ServiceAccountTokenLister
- func (mock *ServiceAccountTokenControllerMock) ListerCalls() []struct{}
- func (mock *ServiceAccountTokenControllerMock) Start(ctx context.Context, threadiness int) error
- func (mock *ServiceAccountTokenControllerMock) StartCalls() []struct{ ... }
- func (mock *ServiceAccountTokenControllerMock) Sync(ctx context.Context) error
- func (mock *ServiceAccountTokenControllerMock) SyncCalls() []struct{ ... }
- type ServiceAccountTokenInterfaceMock
- func (mock *ServiceAccountTokenInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *ServiceAccountTokenInterfaceMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *ServiceAccountTokenInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, ...)
- func (mock *ServiceAccountTokenInterfaceMock) AddClusterScopedLifecycleCalls() []struct{ ... }
- func (mock *ServiceAccountTokenInterfaceMock) AddHandler(ctx context.Context, name string, sync v3.ServiceAccountTokenHandlerFunc)
- func (mock *ServiceAccountTokenInterfaceMock) AddHandlerCalls() []struct{ ... }
- func (mock *ServiceAccountTokenInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v3.ServiceAccountTokenLifecycle)
- func (mock *ServiceAccountTokenInterfaceMock) AddLifecycleCalls() []struct{ ... }
- func (mock *ServiceAccountTokenInterfaceMock) Controller() v3.ServiceAccountTokenController
- func (mock *ServiceAccountTokenInterfaceMock) ControllerCalls() []struct{}
- func (mock *ServiceAccountTokenInterfaceMock) Create(in1 *v3.ServiceAccountToken) (*v3.ServiceAccountToken, error)
- func (mock *ServiceAccountTokenInterfaceMock) CreateCalls() []struct{ ... }
- func (mock *ServiceAccountTokenInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
- func (mock *ServiceAccountTokenInterfaceMock) DeleteCalls() []struct{ ... }
- func (mock *ServiceAccountTokenInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
- func (mock *ServiceAccountTokenInterfaceMock) DeleteCollectionCalls() []struct{ ... }
- func (mock *ServiceAccountTokenInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
- func (mock *ServiceAccountTokenInterfaceMock) DeleteNamespacedCalls() []struct{ ... }
- func (mock *ServiceAccountTokenInterfaceMock) Get(name string, opts v1.GetOptions) (*v3.ServiceAccountToken, error)
- func (mock *ServiceAccountTokenInterfaceMock) GetCalls() []struct{ ... }
- func (mock *ServiceAccountTokenInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v3.ServiceAccountToken, error)
- func (mock *ServiceAccountTokenInterfaceMock) GetNamespacedCalls() []struct{ ... }
- func (mock *ServiceAccountTokenInterfaceMock) List(opts v1.ListOptions) (*v3.ServiceAccountTokenList, error)
- func (mock *ServiceAccountTokenInterfaceMock) ListCalls() []struct{ ... }
- func (mock *ServiceAccountTokenInterfaceMock) ObjectClient() *objectclient.ObjectClient
- func (mock *ServiceAccountTokenInterfaceMock) ObjectClientCalls() []struct{}
- func (mock *ServiceAccountTokenInterfaceMock) Update(in1 *v3.ServiceAccountToken) (*v3.ServiceAccountToken, error)
- func (mock *ServiceAccountTokenInterfaceMock) UpdateCalls() []struct{ ... }
- func (mock *ServiceAccountTokenInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
- func (mock *ServiceAccountTokenInterfaceMock) WatchCalls() []struct{ ... }
- type ServiceAccountTokenListerMock
- func (mock *ServiceAccountTokenListerMock) Get(namespace string, name string) (*v3.ServiceAccountToken, error)
- func (mock *ServiceAccountTokenListerMock) GetCalls() []struct{ ... }
- func (mock *ServiceAccountTokenListerMock) List(namespace string, selector labels.Selector) ([]*v3.ServiceAccountToken, error)
- func (mock *ServiceAccountTokenListerMock) ListCalls() []struct{ ... }
- type ServiceAccountTokensGetterMock
- type SourceCodeCredentialControllerMock
- func (mock *SourceCodeCredentialControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *SourceCodeCredentialControllerMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *SourceCodeCredentialControllerMock) AddHandler(ctx context.Context, name string, handler v3.SourceCodeCredentialHandlerFunc)
- func (mock *SourceCodeCredentialControllerMock) AddHandlerCalls() []struct{ ... }
- func (mock *SourceCodeCredentialControllerMock) Enqueue(namespace string, name string)
- func (mock *SourceCodeCredentialControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *SourceCodeCredentialControllerMock) Generic() controller.GenericController
- func (mock *SourceCodeCredentialControllerMock) GenericCalls() []struct{}
- func (mock *SourceCodeCredentialControllerMock) Informer() cache.SharedIndexInformer
- func (mock *SourceCodeCredentialControllerMock) InformerCalls() []struct{}
- func (mock *SourceCodeCredentialControllerMock) Lister() v3.SourceCodeCredentialLister
- func (mock *SourceCodeCredentialControllerMock) ListerCalls() []struct{}
- func (mock *SourceCodeCredentialControllerMock) Start(ctx context.Context, threadiness int) error
- func (mock *SourceCodeCredentialControllerMock) StartCalls() []struct{ ... }
- func (mock *SourceCodeCredentialControllerMock) Sync(ctx context.Context) error
- func (mock *SourceCodeCredentialControllerMock) SyncCalls() []struct{ ... }
- type SourceCodeCredentialInterfaceMock
- func (mock *SourceCodeCredentialInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *SourceCodeCredentialInterfaceMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *SourceCodeCredentialInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, ...)
- func (mock *SourceCodeCredentialInterfaceMock) AddClusterScopedLifecycleCalls() []struct{ ... }
- func (mock *SourceCodeCredentialInterfaceMock) AddHandler(ctx context.Context, name string, sync v3.SourceCodeCredentialHandlerFunc)
- func (mock *SourceCodeCredentialInterfaceMock) AddHandlerCalls() []struct{ ... }
- func (mock *SourceCodeCredentialInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v3.SourceCodeCredentialLifecycle)
- func (mock *SourceCodeCredentialInterfaceMock) AddLifecycleCalls() []struct{ ... }
- func (mock *SourceCodeCredentialInterfaceMock) Controller() v3.SourceCodeCredentialController
- func (mock *SourceCodeCredentialInterfaceMock) ControllerCalls() []struct{}
- func (mock *SourceCodeCredentialInterfaceMock) Create(in1 *v3.SourceCodeCredential) (*v3.SourceCodeCredential, error)
- func (mock *SourceCodeCredentialInterfaceMock) CreateCalls() []struct{ ... }
- func (mock *SourceCodeCredentialInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
- func (mock *SourceCodeCredentialInterfaceMock) DeleteCalls() []struct{ ... }
- func (mock *SourceCodeCredentialInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
- func (mock *SourceCodeCredentialInterfaceMock) DeleteCollectionCalls() []struct{ ... }
- func (mock *SourceCodeCredentialInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
- func (mock *SourceCodeCredentialInterfaceMock) DeleteNamespacedCalls() []struct{ ... }
- func (mock *SourceCodeCredentialInterfaceMock) Get(name string, opts v1.GetOptions) (*v3.SourceCodeCredential, error)
- func (mock *SourceCodeCredentialInterfaceMock) GetCalls() []struct{ ... }
- func (mock *SourceCodeCredentialInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v3.SourceCodeCredential, error)
- func (mock *SourceCodeCredentialInterfaceMock) GetNamespacedCalls() []struct{ ... }
- func (mock *SourceCodeCredentialInterfaceMock) List(opts v1.ListOptions) (*v3.SourceCodeCredentialList, error)
- func (mock *SourceCodeCredentialInterfaceMock) ListCalls() []struct{ ... }
- func (mock *SourceCodeCredentialInterfaceMock) ObjectClient() *objectclient.ObjectClient
- func (mock *SourceCodeCredentialInterfaceMock) ObjectClientCalls() []struct{}
- func (mock *SourceCodeCredentialInterfaceMock) Update(in1 *v3.SourceCodeCredential) (*v3.SourceCodeCredential, error)
- func (mock *SourceCodeCredentialInterfaceMock) UpdateCalls() []struct{ ... }
- func (mock *SourceCodeCredentialInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
- func (mock *SourceCodeCredentialInterfaceMock) WatchCalls() []struct{ ... }
- type SourceCodeCredentialListerMock
- func (mock *SourceCodeCredentialListerMock) Get(namespace string, name string) (*v3.SourceCodeCredential, error)
- func (mock *SourceCodeCredentialListerMock) GetCalls() []struct{ ... }
- func (mock *SourceCodeCredentialListerMock) List(namespace string, selector labels.Selector) ([]*v3.SourceCodeCredential, error)
- func (mock *SourceCodeCredentialListerMock) ListCalls() []struct{ ... }
- type SourceCodeCredentialsGetterMock
- type SourceCodeProviderConfigControllerMock
- func (mock *SourceCodeProviderConfigControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *SourceCodeProviderConfigControllerMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *SourceCodeProviderConfigControllerMock) AddHandler(ctx context.Context, name string, ...)
- func (mock *SourceCodeProviderConfigControllerMock) AddHandlerCalls() []struct{ ... }
- func (mock *SourceCodeProviderConfigControllerMock) Enqueue(namespace string, name string)
- func (mock *SourceCodeProviderConfigControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *SourceCodeProviderConfigControllerMock) Generic() controller.GenericController
- func (mock *SourceCodeProviderConfigControllerMock) GenericCalls() []struct{}
- func (mock *SourceCodeProviderConfigControllerMock) Informer() cache.SharedIndexInformer
- func (mock *SourceCodeProviderConfigControllerMock) InformerCalls() []struct{}
- func (mock *SourceCodeProviderConfigControllerMock) Lister() v3.SourceCodeProviderConfigLister
- func (mock *SourceCodeProviderConfigControllerMock) ListerCalls() []struct{}
- func (mock *SourceCodeProviderConfigControllerMock) Start(ctx context.Context, threadiness int) error
- func (mock *SourceCodeProviderConfigControllerMock) StartCalls() []struct{ ... }
- func (mock *SourceCodeProviderConfigControllerMock) Sync(ctx context.Context) error
- func (mock *SourceCodeProviderConfigControllerMock) SyncCalls() []struct{ ... }
- type SourceCodeProviderConfigInterfaceMock
- func (mock *SourceCodeProviderConfigInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *SourceCodeProviderConfigInterfaceMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *SourceCodeProviderConfigInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, ...)
- func (mock *SourceCodeProviderConfigInterfaceMock) AddClusterScopedLifecycleCalls() []struct{ ... }
- func (mock *SourceCodeProviderConfigInterfaceMock) AddHandler(ctx context.Context, name string, sync v3.SourceCodeProviderConfigHandlerFunc)
- func (mock *SourceCodeProviderConfigInterfaceMock) AddHandlerCalls() []struct{ ... }
- func (mock *SourceCodeProviderConfigInterfaceMock) AddLifecycle(ctx context.Context, name string, ...)
- func (mock *SourceCodeProviderConfigInterfaceMock) AddLifecycleCalls() []struct{ ... }
- func (mock *SourceCodeProviderConfigInterfaceMock) Controller() v3.SourceCodeProviderConfigController
- func (mock *SourceCodeProviderConfigInterfaceMock) ControllerCalls() []struct{}
- func (mock *SourceCodeProviderConfigInterfaceMock) Create(in1 *v3.SourceCodeProviderConfig) (*v3.SourceCodeProviderConfig, error)
- func (mock *SourceCodeProviderConfigInterfaceMock) CreateCalls() []struct{ ... }
- func (mock *SourceCodeProviderConfigInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
- func (mock *SourceCodeProviderConfigInterfaceMock) DeleteCalls() []struct{ ... }
- func (mock *SourceCodeProviderConfigInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
- func (mock *SourceCodeProviderConfigInterfaceMock) DeleteCollectionCalls() []struct{ ... }
- func (mock *SourceCodeProviderConfigInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
- func (mock *SourceCodeProviderConfigInterfaceMock) DeleteNamespacedCalls() []struct{ ... }
- func (mock *SourceCodeProviderConfigInterfaceMock) Get(name string, opts v1.GetOptions) (*v3.SourceCodeProviderConfig, error)
- func (mock *SourceCodeProviderConfigInterfaceMock) GetCalls() []struct{ ... }
- func (mock *SourceCodeProviderConfigInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v3.SourceCodeProviderConfig, error)
- func (mock *SourceCodeProviderConfigInterfaceMock) GetNamespacedCalls() []struct{ ... }
- func (mock *SourceCodeProviderConfigInterfaceMock) List(opts v1.ListOptions) (*v3.SourceCodeProviderConfigList, error)
- func (mock *SourceCodeProviderConfigInterfaceMock) ListCalls() []struct{ ... }
- func (mock *SourceCodeProviderConfigInterfaceMock) ObjectClient() *objectclient.ObjectClient
- func (mock *SourceCodeProviderConfigInterfaceMock) ObjectClientCalls() []struct{}
- func (mock *SourceCodeProviderConfigInterfaceMock) Update(in1 *v3.SourceCodeProviderConfig) (*v3.SourceCodeProviderConfig, error)
- func (mock *SourceCodeProviderConfigInterfaceMock) UpdateCalls() []struct{ ... }
- func (mock *SourceCodeProviderConfigInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
- func (mock *SourceCodeProviderConfigInterfaceMock) WatchCalls() []struct{ ... }
- type SourceCodeProviderConfigListerMock
- func (mock *SourceCodeProviderConfigListerMock) Get(namespace string, name string) (*v3.SourceCodeProviderConfig, error)
- func (mock *SourceCodeProviderConfigListerMock) GetCalls() []struct{ ... }
- func (mock *SourceCodeProviderConfigListerMock) List(namespace string, selector labels.Selector) ([]*v3.SourceCodeProviderConfig, error)
- func (mock *SourceCodeProviderConfigListerMock) ListCalls() []struct{ ... }
- type SourceCodeProviderConfigsGetterMock
- type SourceCodeProviderControllerMock
- func (mock *SourceCodeProviderControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *SourceCodeProviderControllerMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *SourceCodeProviderControllerMock) AddHandler(ctx context.Context, name string, handler v3.SourceCodeProviderHandlerFunc)
- func (mock *SourceCodeProviderControllerMock) AddHandlerCalls() []struct{ ... }
- func (mock *SourceCodeProviderControllerMock) Enqueue(namespace string, name string)
- func (mock *SourceCodeProviderControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *SourceCodeProviderControllerMock) Generic() controller.GenericController
- func (mock *SourceCodeProviderControllerMock) GenericCalls() []struct{}
- func (mock *SourceCodeProviderControllerMock) Informer() cache.SharedIndexInformer
- func (mock *SourceCodeProviderControllerMock) InformerCalls() []struct{}
- func (mock *SourceCodeProviderControllerMock) Lister() v3.SourceCodeProviderLister
- func (mock *SourceCodeProviderControllerMock) ListerCalls() []struct{}
- func (mock *SourceCodeProviderControllerMock) Start(ctx context.Context, threadiness int) error
- func (mock *SourceCodeProviderControllerMock) StartCalls() []struct{ ... }
- func (mock *SourceCodeProviderControllerMock) Sync(ctx context.Context) error
- func (mock *SourceCodeProviderControllerMock) SyncCalls() []struct{ ... }
- type SourceCodeProviderInterfaceMock
- func (mock *SourceCodeProviderInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *SourceCodeProviderInterfaceMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *SourceCodeProviderInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, ...)
- func (mock *SourceCodeProviderInterfaceMock) AddClusterScopedLifecycleCalls() []struct{ ... }
- func (mock *SourceCodeProviderInterfaceMock) AddHandler(ctx context.Context, name string, sync v3.SourceCodeProviderHandlerFunc)
- func (mock *SourceCodeProviderInterfaceMock) AddHandlerCalls() []struct{ ... }
- func (mock *SourceCodeProviderInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v3.SourceCodeProviderLifecycle)
- func (mock *SourceCodeProviderInterfaceMock) AddLifecycleCalls() []struct{ ... }
- func (mock *SourceCodeProviderInterfaceMock) Controller() v3.SourceCodeProviderController
- func (mock *SourceCodeProviderInterfaceMock) ControllerCalls() []struct{}
- func (mock *SourceCodeProviderInterfaceMock) Create(in1 *v3.SourceCodeProvider) (*v3.SourceCodeProvider, error)
- func (mock *SourceCodeProviderInterfaceMock) CreateCalls() []struct{ ... }
- func (mock *SourceCodeProviderInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
- func (mock *SourceCodeProviderInterfaceMock) DeleteCalls() []struct{ ... }
- func (mock *SourceCodeProviderInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
- func (mock *SourceCodeProviderInterfaceMock) DeleteCollectionCalls() []struct{ ... }
- func (mock *SourceCodeProviderInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
- func (mock *SourceCodeProviderInterfaceMock) DeleteNamespacedCalls() []struct{ ... }
- func (mock *SourceCodeProviderInterfaceMock) Get(name string, opts v1.GetOptions) (*v3.SourceCodeProvider, error)
- func (mock *SourceCodeProviderInterfaceMock) GetCalls() []struct{ ... }
- func (mock *SourceCodeProviderInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v3.SourceCodeProvider, error)
- func (mock *SourceCodeProviderInterfaceMock) GetNamespacedCalls() []struct{ ... }
- func (mock *SourceCodeProviderInterfaceMock) List(opts v1.ListOptions) (*v3.SourceCodeProviderList, error)
- func (mock *SourceCodeProviderInterfaceMock) ListCalls() []struct{ ... }
- func (mock *SourceCodeProviderInterfaceMock) ObjectClient() *objectclient.ObjectClient
- func (mock *SourceCodeProviderInterfaceMock) ObjectClientCalls() []struct{}
- func (mock *SourceCodeProviderInterfaceMock) Update(in1 *v3.SourceCodeProvider) (*v3.SourceCodeProvider, error)
- func (mock *SourceCodeProviderInterfaceMock) UpdateCalls() []struct{ ... }
- func (mock *SourceCodeProviderInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
- func (mock *SourceCodeProviderInterfaceMock) WatchCalls() []struct{ ... }
- type SourceCodeProviderListerMock
- func (mock *SourceCodeProviderListerMock) Get(namespace string, name string) (*v3.SourceCodeProvider, error)
- func (mock *SourceCodeProviderListerMock) GetCalls() []struct{ ... }
- func (mock *SourceCodeProviderListerMock) List(namespace string, selector labels.Selector) ([]*v3.SourceCodeProvider, error)
- func (mock *SourceCodeProviderListerMock) ListCalls() []struct{ ... }
- type SourceCodeProvidersGetterMock
- type SourceCodeRepositoriesGetterMock
- type SourceCodeRepositoryControllerMock
- func (mock *SourceCodeRepositoryControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *SourceCodeRepositoryControllerMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *SourceCodeRepositoryControllerMock) AddHandler(ctx context.Context, name string, handler v3.SourceCodeRepositoryHandlerFunc)
- func (mock *SourceCodeRepositoryControllerMock) AddHandlerCalls() []struct{ ... }
- func (mock *SourceCodeRepositoryControllerMock) Enqueue(namespace string, name string)
- func (mock *SourceCodeRepositoryControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *SourceCodeRepositoryControllerMock) Generic() controller.GenericController
- func (mock *SourceCodeRepositoryControllerMock) GenericCalls() []struct{}
- func (mock *SourceCodeRepositoryControllerMock) Informer() cache.SharedIndexInformer
- func (mock *SourceCodeRepositoryControllerMock) InformerCalls() []struct{}
- func (mock *SourceCodeRepositoryControllerMock) Lister() v3.SourceCodeRepositoryLister
- func (mock *SourceCodeRepositoryControllerMock) ListerCalls() []struct{}
- func (mock *SourceCodeRepositoryControllerMock) Start(ctx context.Context, threadiness int) error
- func (mock *SourceCodeRepositoryControllerMock) StartCalls() []struct{ ... }
- func (mock *SourceCodeRepositoryControllerMock) Sync(ctx context.Context) error
- func (mock *SourceCodeRepositoryControllerMock) SyncCalls() []struct{ ... }
- type SourceCodeRepositoryInterfaceMock
- func (mock *SourceCodeRepositoryInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *SourceCodeRepositoryInterfaceMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *SourceCodeRepositoryInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, ...)
- func (mock *SourceCodeRepositoryInterfaceMock) AddClusterScopedLifecycleCalls() []struct{ ... }
- func (mock *SourceCodeRepositoryInterfaceMock) AddHandler(ctx context.Context, name string, sync v3.SourceCodeRepositoryHandlerFunc)
- func (mock *SourceCodeRepositoryInterfaceMock) AddHandlerCalls() []struct{ ... }
- func (mock *SourceCodeRepositoryInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v3.SourceCodeRepositoryLifecycle)
- func (mock *SourceCodeRepositoryInterfaceMock) AddLifecycleCalls() []struct{ ... }
- func (mock *SourceCodeRepositoryInterfaceMock) Controller() v3.SourceCodeRepositoryController
- func (mock *SourceCodeRepositoryInterfaceMock) ControllerCalls() []struct{}
- func (mock *SourceCodeRepositoryInterfaceMock) Create(in1 *v3.SourceCodeRepository) (*v3.SourceCodeRepository, error)
- func (mock *SourceCodeRepositoryInterfaceMock) CreateCalls() []struct{ ... }
- func (mock *SourceCodeRepositoryInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
- func (mock *SourceCodeRepositoryInterfaceMock) DeleteCalls() []struct{ ... }
- func (mock *SourceCodeRepositoryInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
- func (mock *SourceCodeRepositoryInterfaceMock) DeleteCollectionCalls() []struct{ ... }
- func (mock *SourceCodeRepositoryInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
- func (mock *SourceCodeRepositoryInterfaceMock) DeleteNamespacedCalls() []struct{ ... }
- func (mock *SourceCodeRepositoryInterfaceMock) Get(name string, opts v1.GetOptions) (*v3.SourceCodeRepository, error)
- func (mock *SourceCodeRepositoryInterfaceMock) GetCalls() []struct{ ... }
- func (mock *SourceCodeRepositoryInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v3.SourceCodeRepository, error)
- func (mock *SourceCodeRepositoryInterfaceMock) GetNamespacedCalls() []struct{ ... }
- func (mock *SourceCodeRepositoryInterfaceMock) List(opts v1.ListOptions) (*v3.SourceCodeRepositoryList, error)
- func (mock *SourceCodeRepositoryInterfaceMock) ListCalls() []struct{ ... }
- func (mock *SourceCodeRepositoryInterfaceMock) ObjectClient() *objectclient.ObjectClient
- func (mock *SourceCodeRepositoryInterfaceMock) ObjectClientCalls() []struct{}
- func (mock *SourceCodeRepositoryInterfaceMock) Update(in1 *v3.SourceCodeRepository) (*v3.SourceCodeRepository, error)
- func (mock *SourceCodeRepositoryInterfaceMock) UpdateCalls() []struct{ ... }
- func (mock *SourceCodeRepositoryInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
- func (mock *SourceCodeRepositoryInterfaceMock) WatchCalls() []struct{ ... }
- type SourceCodeRepositoryListerMock
- func (mock *SourceCodeRepositoryListerMock) Get(namespace string, name string) (*v3.SourceCodeRepository, error)
- func (mock *SourceCodeRepositoryListerMock) GetCalls() []struct{ ... }
- func (mock *SourceCodeRepositoryListerMock) List(namespace string, selector labels.Selector) ([]*v3.SourceCodeRepository, error)
- func (mock *SourceCodeRepositoryListerMock) ListCalls() []struct{ ... }
- type WorkloadControllerMock
- func (mock *WorkloadControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *WorkloadControllerMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *WorkloadControllerMock) AddHandler(ctx context.Context, name string, handler v3.WorkloadHandlerFunc)
- func (mock *WorkloadControllerMock) AddHandlerCalls() []struct{ ... }
- func (mock *WorkloadControllerMock) Enqueue(namespace string, name string)
- func (mock *WorkloadControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *WorkloadControllerMock) Generic() controller.GenericController
- func (mock *WorkloadControllerMock) GenericCalls() []struct{}
- func (mock *WorkloadControllerMock) Informer() cache.SharedIndexInformer
- func (mock *WorkloadControllerMock) InformerCalls() []struct{}
- func (mock *WorkloadControllerMock) Lister() v3.WorkloadLister
- func (mock *WorkloadControllerMock) ListerCalls() []struct{}
- func (mock *WorkloadControllerMock) Start(ctx context.Context, threadiness int) error
- func (mock *WorkloadControllerMock) StartCalls() []struct{ ... }
- func (mock *WorkloadControllerMock) Sync(ctx context.Context) error
- func (mock *WorkloadControllerMock) SyncCalls() []struct{ ... }
- type WorkloadInterfaceMock
- func (mock *WorkloadInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, ...)
- func (mock *WorkloadInterfaceMock) AddClusterScopedHandlerCalls() []struct{ ... }
- func (mock *WorkloadInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, ...)
- func (mock *WorkloadInterfaceMock) AddClusterScopedLifecycleCalls() []struct{ ... }
- func (mock *WorkloadInterfaceMock) AddHandler(ctx context.Context, name string, sync v3.WorkloadHandlerFunc)
- func (mock *WorkloadInterfaceMock) AddHandlerCalls() []struct{ ... }
- func (mock *WorkloadInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v3.WorkloadLifecycle)
- func (mock *WorkloadInterfaceMock) AddLifecycleCalls() []struct{ ... }
- func (mock *WorkloadInterfaceMock) Controller() v3.WorkloadController
- func (mock *WorkloadInterfaceMock) ControllerCalls() []struct{}
- func (mock *WorkloadInterfaceMock) Create(in1 *v3.Workload) (*v3.Workload, error)
- func (mock *WorkloadInterfaceMock) CreateCalls() []struct{ ... }
- func (mock *WorkloadInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
- func (mock *WorkloadInterfaceMock) DeleteCalls() []struct{ ... }
- func (mock *WorkloadInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
- func (mock *WorkloadInterfaceMock) DeleteCollectionCalls() []struct{ ... }
- func (mock *WorkloadInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
- func (mock *WorkloadInterfaceMock) DeleteNamespacedCalls() []struct{ ... }
- func (mock *WorkloadInterfaceMock) Get(name string, opts v1.GetOptions) (*v3.Workload, error)
- func (mock *WorkloadInterfaceMock) GetCalls() []struct{ ... }
- func (mock *WorkloadInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v3.Workload, error)
- func (mock *WorkloadInterfaceMock) GetNamespacedCalls() []struct{ ... }
- func (mock *WorkloadInterfaceMock) List(opts v1.ListOptions) (*v3.WorkloadList, error)
- func (mock *WorkloadInterfaceMock) ListCalls() []struct{ ... }
- func (mock *WorkloadInterfaceMock) ObjectClient() *objectclient.ObjectClient
- func (mock *WorkloadInterfaceMock) ObjectClientCalls() []struct{}
- func (mock *WorkloadInterfaceMock) Update(in1 *v3.Workload) (*v3.Workload, error)
- func (mock *WorkloadInterfaceMock) UpdateCalls() []struct{ ... }
- func (mock *WorkloadInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
- func (mock *WorkloadInterfaceMock) WatchCalls() []struct{ ... }
- type WorkloadListerMock
- func (mock *WorkloadListerMock) Get(namespace string, name string) (*v3.Workload, error)
- func (mock *WorkloadListerMock) GetCalls() []struct{ ... }
- func (mock *WorkloadListerMock) List(namespace string, selector labels.Selector) ([]*v3.Workload, error)
- func (mock *WorkloadListerMock) ListCalls() []struct{ ... }
- type WorkloadsGetterMock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppControllerMock ¶
type AppControllerMock struct { // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v3.AppHandlerFunc) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, handler v3.AppHandlerFunc) // EnqueueFunc mocks the Enqueue method. EnqueueFunc func(namespace string, name string) // GenericFunc mocks the Generic method. GenericFunc func() controller.GenericController // InformerFunc mocks the Informer method. InformerFunc func() cache.SharedIndexInformer // ListerFunc mocks the Lister method. ListerFunc func() v3.AppLister // StartFunc mocks the Start method. StartFunc func(ctx context.Context, threadiness int) error // SyncFunc mocks the Sync method. SyncFunc func(ctx context.Context) error // contains filtered or unexported fields }
AppControllerMock is a mock implementation of AppController.
func TestSomethingThatUsesAppController(t *testing.T) { // make and configure a mocked AppController mockedAppController := &AppControllerMock{ AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v3.AppHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddHandlerFunc: func(ctx context.Context, name string, handler v3.AppHandlerFunc) { panic("mock out the AddHandler method") }, EnqueueFunc: func(namespace string, name string) { panic("mock out the Enqueue method") }, GenericFunc: func() controller.GenericController { panic("mock out the Generic method") }, InformerFunc: func() cache.SharedIndexInformer { panic("mock out the Informer method") }, ListerFunc: func() v3.AppLister { panic("mock out the Lister method") }, StartFunc: func(ctx context.Context, threadiness int) error { panic("mock out the Start method") }, SyncFunc: func(ctx context.Context) error { panic("mock out the Sync method") }, } // use mockedAppController in code that requires AppController // and then make assertions. }
func (*AppControllerMock) AddClusterScopedHandler ¶
func (mock *AppControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v3.AppHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*AppControllerMock) AddClusterScopedHandlerCalls ¶
func (mock *AppControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Handler v3.AppHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedAppController.AddClusterScopedHandlerCalls())
func (*AppControllerMock) AddHandler ¶
func (mock *AppControllerMock) AddHandler(ctx context.Context, name string, handler v3.AppHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*AppControllerMock) AddHandlerCalls ¶
func (mock *AppControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string Handler v3.AppHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedAppController.AddHandlerCalls())
func (*AppControllerMock) Enqueue ¶
func (mock *AppControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*AppControllerMock) EnqueueCalls ¶
func (mock *AppControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedAppController.EnqueueCalls())
func (*AppControllerMock) Generic ¶
func (mock *AppControllerMock) Generic() controller.GenericController
Generic calls GenericFunc.
func (*AppControllerMock) GenericCalls ¶
func (mock *AppControllerMock) GenericCalls() []struct { }
GenericCalls gets all the calls that were made to Generic. Check the length with:
len(mockedAppController.GenericCalls())
func (*AppControllerMock) Informer ¶
func (mock *AppControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*AppControllerMock) InformerCalls ¶
func (mock *AppControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedAppController.InformerCalls())
func (*AppControllerMock) Lister ¶
func (mock *AppControllerMock) Lister() v3.AppLister
Lister calls ListerFunc.
func (*AppControllerMock) ListerCalls ¶
func (mock *AppControllerMock) ListerCalls() []struct { }
ListerCalls gets all the calls that were made to Lister. Check the length with:
len(mockedAppController.ListerCalls())
func (*AppControllerMock) Start ¶
func (mock *AppControllerMock) Start(ctx context.Context, threadiness int) error
Start calls StartFunc.
func (*AppControllerMock) StartCalls ¶
func (mock *AppControllerMock) StartCalls() []struct { Ctx context.Context Threadiness int }
StartCalls gets all the calls that were made to Start. Check the length with:
len(mockedAppController.StartCalls())
func (*AppControllerMock) Sync ¶
func (mock *AppControllerMock) Sync(ctx context.Context) error
Sync calls SyncFunc.
func (*AppControllerMock) SyncCalls ¶
func (mock *AppControllerMock) SyncCalls() []struct { Ctx context.Context }
SyncCalls gets all the calls that were made to Sync. Check the length with:
len(mockedAppController.SyncCalls())
type AppInterfaceMock ¶
type AppInterfaceMock struct { // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v3.AppHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v3.AppLifecycle) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, sync v3.AppHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. AddLifecycleFunc func(ctx context.Context, name string, lifecycle v3.AppLifecycle) // ControllerFunc mocks the Controller method. ControllerFunc func() v3.AppController // CreateFunc mocks the Create method. CreateFunc func(in1 *v3.App) (*v3.App, error) // DeleteFunc mocks the Delete method. DeleteFunc func(name string, options *v1.DeleteOptions) error // DeleteCollectionFunc mocks the DeleteCollection method. DeleteCollectionFunc func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error // DeleteNamespacedFunc mocks the DeleteNamespaced method. DeleteNamespacedFunc func(namespace string, name string, options *v1.DeleteOptions) error // GetFunc mocks the Get method. GetFunc func(name string, opts v1.GetOptions) (*v3.App, error) // GetNamespacedFunc mocks the GetNamespaced method. GetNamespacedFunc func(namespace string, name string, opts v1.GetOptions) (*v3.App, error) // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.AppList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v3.App) (*v3.App, error) // WatchFunc mocks the Watch method. WatchFunc func(opts v1.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
AppInterfaceMock is a mock implementation of AppInterface.
func TestSomethingThatUsesAppInterface(t *testing.T) { // make and configure a mocked AppInterface mockedAppInterface := &AppInterfaceMock{ AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v3.AppHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v3.AppLifecycle) { panic("mock out the AddClusterScopedLifecycle method") }, AddHandlerFunc: func(ctx context.Context, name string, sync v3.AppHandlerFunc) { panic("mock out the AddHandler method") }, AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v3.AppLifecycle) { panic("mock out the AddLifecycle method") }, ControllerFunc: func() v3.AppController { panic("mock out the Controller method") }, CreateFunc: func(in1 *v3.App) (*v3.App, error) { panic("mock out the Create method") }, DeleteFunc: func(name string, options *v1.DeleteOptions) error { panic("mock out the Delete method") }, DeleteCollectionFunc: func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error { panic("mock out the DeleteCollection method") }, DeleteNamespacedFunc: func(namespace string, name string, options *v1.DeleteOptions) error { panic("mock out the DeleteNamespaced method") }, GetFunc: func(name string, opts v1.GetOptions) (*v3.App, error) { panic("mock out the Get method") }, GetNamespacedFunc: func(namespace string, name string, opts v1.GetOptions) (*v3.App, error) { panic("mock out the GetNamespaced method") }, ListFunc: func(opts v1.ListOptions) (*v3.AppList, error) { panic("mock out the List method") }, ObjectClientFunc: func() *objectclient.ObjectClient { panic("mock out the ObjectClient method") }, UpdateFunc: func(in1 *v3.App) (*v3.App, error) { panic("mock out the Update method") }, WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedAppInterface in code that requires AppInterface // and then make assertions. }
func (*AppInterfaceMock) AddClusterScopedHandler ¶
func (mock *AppInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v3.AppHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*AppInterfaceMock) AddClusterScopedHandlerCalls ¶
func (mock *AppInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Sync v3.AppHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedAppInterface.AddClusterScopedHandlerCalls())
func (*AppInterfaceMock) AddClusterScopedLifecycle ¶
func (mock *AppInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v3.AppLifecycle)
AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.
func (*AppInterfaceMock) AddClusterScopedLifecycleCalls ¶
func (mock *AppInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string Lifecycle v3.AppLifecycle }
AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:
len(mockedAppInterface.AddClusterScopedLifecycleCalls())
func (*AppInterfaceMock) AddHandler ¶
func (mock *AppInterfaceMock) AddHandler(ctx context.Context, name string, sync v3.AppHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*AppInterfaceMock) AddHandlerCalls ¶
func (mock *AppInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string Sync v3.AppHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedAppInterface.AddHandlerCalls())
func (*AppInterfaceMock) AddLifecycle ¶
func (mock *AppInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v3.AppLifecycle)
AddLifecycle calls AddLifecycleFunc.
func (*AppInterfaceMock) AddLifecycleCalls ¶
func (mock *AppInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string Lifecycle v3.AppLifecycle }
AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:
len(mockedAppInterface.AddLifecycleCalls())
func (*AppInterfaceMock) Controller ¶
func (mock *AppInterfaceMock) Controller() v3.AppController
Controller calls ControllerFunc.
func (*AppInterfaceMock) ControllerCalls ¶
func (mock *AppInterfaceMock) ControllerCalls() []struct { }
ControllerCalls gets all the calls that were made to Controller. Check the length with:
len(mockedAppInterface.ControllerCalls())
func (*AppInterfaceMock) CreateCalls ¶
func (mock *AppInterfaceMock) CreateCalls() []struct { In1 *v3.App }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedAppInterface.CreateCalls())
func (*AppInterfaceMock) Delete ¶
func (mock *AppInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
Delete calls DeleteFunc.
func (*AppInterfaceMock) DeleteCalls ¶
func (mock *AppInterfaceMock) DeleteCalls() []struct { Name string Options *v1.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedAppInterface.DeleteCalls())
func (*AppInterfaceMock) DeleteCollection ¶
func (mock *AppInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection calls DeleteCollectionFunc.
func (*AppInterfaceMock) DeleteCollectionCalls ¶
func (mock *AppInterfaceMock) DeleteCollectionCalls() []struct { DeleteOpts *v1.DeleteOptions ListOpts v1.ListOptions }
DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:
len(mockedAppInterface.DeleteCollectionCalls())
func (*AppInterfaceMock) DeleteNamespaced ¶
func (mock *AppInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
DeleteNamespaced calls DeleteNamespacedFunc.
func (*AppInterfaceMock) DeleteNamespacedCalls ¶
func (mock *AppInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string Options *v1.DeleteOptions }
DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:
len(mockedAppInterface.DeleteNamespacedCalls())
func (*AppInterfaceMock) Get ¶
func (mock *AppInterfaceMock) Get(name string, opts v1.GetOptions) (*v3.App, error)
Get calls GetFunc.
func (*AppInterfaceMock) GetCalls ¶
func (mock *AppInterfaceMock) GetCalls() []struct { Name string Opts v1.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedAppInterface.GetCalls())
func (*AppInterfaceMock) GetNamespaced ¶
func (mock *AppInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v3.App, error)
GetNamespaced calls GetNamespacedFunc.
func (*AppInterfaceMock) GetNamespacedCalls ¶
func (mock *AppInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string Opts v1.GetOptions }
GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:
len(mockedAppInterface.GetNamespacedCalls())
func (*AppInterfaceMock) List ¶
func (mock *AppInterfaceMock) List(opts v1.ListOptions) (*v3.AppList, error)
List calls ListFunc.
func (*AppInterfaceMock) ListCalls ¶
func (mock *AppInterfaceMock) ListCalls() []struct { Opts v1.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedAppInterface.ListCalls())
func (*AppInterfaceMock) ObjectClient ¶
func (mock *AppInterfaceMock) ObjectClient() *objectclient.ObjectClient
ObjectClient calls ObjectClientFunc.
func (*AppInterfaceMock) ObjectClientCalls ¶
func (mock *AppInterfaceMock) ObjectClientCalls() []struct { }
ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:
len(mockedAppInterface.ObjectClientCalls())
func (*AppInterfaceMock) UpdateCalls ¶
func (mock *AppInterfaceMock) UpdateCalls() []struct { In1 *v3.App }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedAppInterface.UpdateCalls())
func (*AppInterfaceMock) Watch ¶
func (mock *AppInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*AppInterfaceMock) WatchCalls ¶
func (mock *AppInterfaceMock) WatchCalls() []struct { Opts v1.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedAppInterface.WatchCalls())
type AppListerMock ¶
type AppListerMock struct { // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v3.App, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v3.App, error) // contains filtered or unexported fields }
AppListerMock is a mock implementation of AppLister.
func TestSomethingThatUsesAppLister(t *testing.T) { // make and configure a mocked AppLister mockedAppLister := &AppListerMock{ GetFunc: func(namespace string, name string) (*v3.App, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v3.App, error) { panic("mock out the List method") }, } // use mockedAppLister in code that requires AppLister // and then make assertions. }
func (*AppListerMock) GetCalls ¶
func (mock *AppListerMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedAppLister.GetCalls())
type AppRevisionControllerMock ¶
type AppRevisionControllerMock struct { // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v3.AppRevisionHandlerFunc) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, handler v3.AppRevisionHandlerFunc) // EnqueueFunc mocks the Enqueue method. EnqueueFunc func(namespace string, name string) // GenericFunc mocks the Generic method. GenericFunc func() controller.GenericController // InformerFunc mocks the Informer method. InformerFunc func() cache.SharedIndexInformer // ListerFunc mocks the Lister method. ListerFunc func() v3.AppRevisionLister // StartFunc mocks the Start method. StartFunc func(ctx context.Context, threadiness int) error // SyncFunc mocks the Sync method. SyncFunc func(ctx context.Context) error // contains filtered or unexported fields }
AppRevisionControllerMock is a mock implementation of AppRevisionController.
func TestSomethingThatUsesAppRevisionController(t *testing.T) { // make and configure a mocked AppRevisionController mockedAppRevisionController := &AppRevisionControllerMock{ AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v3.AppRevisionHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddHandlerFunc: func(ctx context.Context, name string, handler v3.AppRevisionHandlerFunc) { panic("mock out the AddHandler method") }, EnqueueFunc: func(namespace string, name string) { panic("mock out the Enqueue method") }, GenericFunc: func() controller.GenericController { panic("mock out the Generic method") }, InformerFunc: func() cache.SharedIndexInformer { panic("mock out the Informer method") }, ListerFunc: func() v3.AppRevisionLister { panic("mock out the Lister method") }, StartFunc: func(ctx context.Context, threadiness int) error { panic("mock out the Start method") }, SyncFunc: func(ctx context.Context) error { panic("mock out the Sync method") }, } // use mockedAppRevisionController in code that requires AppRevisionController // and then make assertions. }
func (*AppRevisionControllerMock) AddClusterScopedHandler ¶
func (mock *AppRevisionControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v3.AppRevisionHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*AppRevisionControllerMock) AddClusterScopedHandlerCalls ¶
func (mock *AppRevisionControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Handler v3.AppRevisionHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedAppRevisionController.AddClusterScopedHandlerCalls())
func (*AppRevisionControllerMock) AddHandler ¶
func (mock *AppRevisionControllerMock) AddHandler(ctx context.Context, name string, handler v3.AppRevisionHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*AppRevisionControllerMock) AddHandlerCalls ¶
func (mock *AppRevisionControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string Handler v3.AppRevisionHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedAppRevisionController.AddHandlerCalls())
func (*AppRevisionControllerMock) Enqueue ¶
func (mock *AppRevisionControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*AppRevisionControllerMock) EnqueueCalls ¶
func (mock *AppRevisionControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedAppRevisionController.EnqueueCalls())
func (*AppRevisionControllerMock) Generic ¶
func (mock *AppRevisionControllerMock) Generic() controller.GenericController
Generic calls GenericFunc.
func (*AppRevisionControllerMock) GenericCalls ¶
func (mock *AppRevisionControllerMock) GenericCalls() []struct { }
GenericCalls gets all the calls that were made to Generic. Check the length with:
len(mockedAppRevisionController.GenericCalls())
func (*AppRevisionControllerMock) Informer ¶
func (mock *AppRevisionControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*AppRevisionControllerMock) InformerCalls ¶
func (mock *AppRevisionControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedAppRevisionController.InformerCalls())
func (*AppRevisionControllerMock) Lister ¶
func (mock *AppRevisionControllerMock) Lister() v3.AppRevisionLister
Lister calls ListerFunc.
func (*AppRevisionControllerMock) ListerCalls ¶
func (mock *AppRevisionControllerMock) ListerCalls() []struct { }
ListerCalls gets all the calls that were made to Lister. Check the length with:
len(mockedAppRevisionController.ListerCalls())
func (*AppRevisionControllerMock) Start ¶
func (mock *AppRevisionControllerMock) Start(ctx context.Context, threadiness int) error
Start calls StartFunc.
func (*AppRevisionControllerMock) StartCalls ¶
func (mock *AppRevisionControllerMock) StartCalls() []struct { Ctx context.Context Threadiness int }
StartCalls gets all the calls that were made to Start. Check the length with:
len(mockedAppRevisionController.StartCalls())
func (*AppRevisionControllerMock) Sync ¶
func (mock *AppRevisionControllerMock) Sync(ctx context.Context) error
Sync calls SyncFunc.
func (*AppRevisionControllerMock) SyncCalls ¶
func (mock *AppRevisionControllerMock) SyncCalls() []struct { Ctx context.Context }
SyncCalls gets all the calls that were made to Sync. Check the length with:
len(mockedAppRevisionController.SyncCalls())
type AppRevisionInterfaceMock ¶
type AppRevisionInterfaceMock struct { // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v3.AppRevisionHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v3.AppRevisionLifecycle) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, sync v3.AppRevisionHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. AddLifecycleFunc func(ctx context.Context, name string, lifecycle v3.AppRevisionLifecycle) // ControllerFunc mocks the Controller method. ControllerFunc func() v3.AppRevisionController // CreateFunc mocks the Create method. CreateFunc func(in1 *v3.AppRevision) (*v3.AppRevision, error) // DeleteFunc mocks the Delete method. DeleteFunc func(name string, options *v1.DeleteOptions) error // DeleteCollectionFunc mocks the DeleteCollection method. DeleteCollectionFunc func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error // DeleteNamespacedFunc mocks the DeleteNamespaced method. DeleteNamespacedFunc func(namespace string, name string, options *v1.DeleteOptions) error // GetFunc mocks the Get method. GetFunc func(name string, opts v1.GetOptions) (*v3.AppRevision, error) // GetNamespacedFunc mocks the GetNamespaced method. GetNamespacedFunc func(namespace string, name string, opts v1.GetOptions) (*v3.AppRevision, error) // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.AppRevisionList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v3.AppRevision) (*v3.AppRevision, error) // WatchFunc mocks the Watch method. WatchFunc func(opts v1.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
AppRevisionInterfaceMock is a mock implementation of AppRevisionInterface.
func TestSomethingThatUsesAppRevisionInterface(t *testing.T) { // make and configure a mocked AppRevisionInterface mockedAppRevisionInterface := &AppRevisionInterfaceMock{ AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v3.AppRevisionHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v3.AppRevisionLifecycle) { panic("mock out the AddClusterScopedLifecycle method") }, AddHandlerFunc: func(ctx context.Context, name string, sync v3.AppRevisionHandlerFunc) { panic("mock out the AddHandler method") }, AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v3.AppRevisionLifecycle) { panic("mock out the AddLifecycle method") }, ControllerFunc: func() v3.AppRevisionController { panic("mock out the Controller method") }, CreateFunc: func(in1 *v3.AppRevision) (*v3.AppRevision, error) { panic("mock out the Create method") }, DeleteFunc: func(name string, options *v1.DeleteOptions) error { panic("mock out the Delete method") }, DeleteCollectionFunc: func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error { panic("mock out the DeleteCollection method") }, DeleteNamespacedFunc: func(namespace string, name string, options *v1.DeleteOptions) error { panic("mock out the DeleteNamespaced method") }, GetFunc: func(name string, opts v1.GetOptions) (*v3.AppRevision, error) { panic("mock out the Get method") }, GetNamespacedFunc: func(namespace string, name string, opts v1.GetOptions) (*v3.AppRevision, error) { panic("mock out the GetNamespaced method") }, ListFunc: func(opts v1.ListOptions) (*v3.AppRevisionList, error) { panic("mock out the List method") }, ObjectClientFunc: func() *objectclient.ObjectClient { panic("mock out the ObjectClient method") }, UpdateFunc: func(in1 *v3.AppRevision) (*v3.AppRevision, error) { panic("mock out the Update method") }, WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedAppRevisionInterface in code that requires AppRevisionInterface // and then make assertions. }
func (*AppRevisionInterfaceMock) AddClusterScopedHandler ¶
func (mock *AppRevisionInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v3.AppRevisionHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*AppRevisionInterfaceMock) AddClusterScopedHandlerCalls ¶
func (mock *AppRevisionInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Sync v3.AppRevisionHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedAppRevisionInterface.AddClusterScopedHandlerCalls())
func (*AppRevisionInterfaceMock) AddClusterScopedLifecycle ¶
func (mock *AppRevisionInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v3.AppRevisionLifecycle)
AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.
func (*AppRevisionInterfaceMock) AddClusterScopedLifecycleCalls ¶
func (mock *AppRevisionInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string Lifecycle v3.AppRevisionLifecycle }
AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:
len(mockedAppRevisionInterface.AddClusterScopedLifecycleCalls())
func (*AppRevisionInterfaceMock) AddHandler ¶
func (mock *AppRevisionInterfaceMock) AddHandler(ctx context.Context, name string, sync v3.AppRevisionHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*AppRevisionInterfaceMock) AddHandlerCalls ¶
func (mock *AppRevisionInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string Sync v3.AppRevisionHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedAppRevisionInterface.AddHandlerCalls())
func (*AppRevisionInterfaceMock) AddLifecycle ¶
func (mock *AppRevisionInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v3.AppRevisionLifecycle)
AddLifecycle calls AddLifecycleFunc.
func (*AppRevisionInterfaceMock) AddLifecycleCalls ¶
func (mock *AppRevisionInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string Lifecycle v3.AppRevisionLifecycle }
AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:
len(mockedAppRevisionInterface.AddLifecycleCalls())
func (*AppRevisionInterfaceMock) Controller ¶
func (mock *AppRevisionInterfaceMock) Controller() v3.AppRevisionController
Controller calls ControllerFunc.
func (*AppRevisionInterfaceMock) ControllerCalls ¶
func (mock *AppRevisionInterfaceMock) ControllerCalls() []struct { }
ControllerCalls gets all the calls that were made to Controller. Check the length with:
len(mockedAppRevisionInterface.ControllerCalls())
func (*AppRevisionInterfaceMock) Create ¶
func (mock *AppRevisionInterfaceMock) Create(in1 *v3.AppRevision) (*v3.AppRevision, error)
Create calls CreateFunc.
func (*AppRevisionInterfaceMock) CreateCalls ¶
func (mock *AppRevisionInterfaceMock) CreateCalls() []struct { In1 *v3.AppRevision }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedAppRevisionInterface.CreateCalls())
func (*AppRevisionInterfaceMock) Delete ¶
func (mock *AppRevisionInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
Delete calls DeleteFunc.
func (*AppRevisionInterfaceMock) DeleteCalls ¶
func (mock *AppRevisionInterfaceMock) DeleteCalls() []struct { Name string Options *v1.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedAppRevisionInterface.DeleteCalls())
func (*AppRevisionInterfaceMock) DeleteCollection ¶
func (mock *AppRevisionInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection calls DeleteCollectionFunc.
func (*AppRevisionInterfaceMock) DeleteCollectionCalls ¶
func (mock *AppRevisionInterfaceMock) DeleteCollectionCalls() []struct { DeleteOpts *v1.DeleteOptions ListOpts v1.ListOptions }
DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:
len(mockedAppRevisionInterface.DeleteCollectionCalls())
func (*AppRevisionInterfaceMock) DeleteNamespaced ¶
func (mock *AppRevisionInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
DeleteNamespaced calls DeleteNamespacedFunc.
func (*AppRevisionInterfaceMock) DeleteNamespacedCalls ¶
func (mock *AppRevisionInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string Options *v1.DeleteOptions }
DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:
len(mockedAppRevisionInterface.DeleteNamespacedCalls())
func (*AppRevisionInterfaceMock) Get ¶
func (mock *AppRevisionInterfaceMock) Get(name string, opts v1.GetOptions) (*v3.AppRevision, error)
Get calls GetFunc.
func (*AppRevisionInterfaceMock) GetCalls ¶
func (mock *AppRevisionInterfaceMock) GetCalls() []struct { Name string Opts v1.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedAppRevisionInterface.GetCalls())
func (*AppRevisionInterfaceMock) GetNamespaced ¶
func (mock *AppRevisionInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v3.AppRevision, error)
GetNamespaced calls GetNamespacedFunc.
func (*AppRevisionInterfaceMock) GetNamespacedCalls ¶
func (mock *AppRevisionInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string Opts v1.GetOptions }
GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:
len(mockedAppRevisionInterface.GetNamespacedCalls())
func (*AppRevisionInterfaceMock) List ¶
func (mock *AppRevisionInterfaceMock) List(opts v1.ListOptions) (*v3.AppRevisionList, error)
List calls ListFunc.
func (*AppRevisionInterfaceMock) ListCalls ¶
func (mock *AppRevisionInterfaceMock) ListCalls() []struct { Opts v1.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedAppRevisionInterface.ListCalls())
func (*AppRevisionInterfaceMock) ObjectClient ¶
func (mock *AppRevisionInterfaceMock) ObjectClient() *objectclient.ObjectClient
ObjectClient calls ObjectClientFunc.
func (*AppRevisionInterfaceMock) ObjectClientCalls ¶
func (mock *AppRevisionInterfaceMock) ObjectClientCalls() []struct { }
ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:
len(mockedAppRevisionInterface.ObjectClientCalls())
func (*AppRevisionInterfaceMock) Update ¶
func (mock *AppRevisionInterfaceMock) Update(in1 *v3.AppRevision) (*v3.AppRevision, error)
Update calls UpdateFunc.
func (*AppRevisionInterfaceMock) UpdateCalls ¶
func (mock *AppRevisionInterfaceMock) UpdateCalls() []struct { In1 *v3.AppRevision }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedAppRevisionInterface.UpdateCalls())
func (*AppRevisionInterfaceMock) Watch ¶
func (mock *AppRevisionInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*AppRevisionInterfaceMock) WatchCalls ¶
func (mock *AppRevisionInterfaceMock) WatchCalls() []struct { Opts v1.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedAppRevisionInterface.WatchCalls())
type AppRevisionListerMock ¶
type AppRevisionListerMock struct { // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v3.AppRevision, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v3.AppRevision, error) // contains filtered or unexported fields }
AppRevisionListerMock is a mock implementation of AppRevisionLister.
func TestSomethingThatUsesAppRevisionLister(t *testing.T) { // make and configure a mocked AppRevisionLister mockedAppRevisionLister := &AppRevisionListerMock{ GetFunc: func(namespace string, name string) (*v3.AppRevision, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v3.AppRevision, error) { panic("mock out the List method") }, } // use mockedAppRevisionLister in code that requires AppRevisionLister // and then make assertions. }
func (*AppRevisionListerMock) Get ¶
func (mock *AppRevisionListerMock) Get(namespace string, name string) (*v3.AppRevision, error)
Get calls GetFunc.
func (*AppRevisionListerMock) GetCalls ¶
func (mock *AppRevisionListerMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedAppRevisionLister.GetCalls())
func (*AppRevisionListerMock) List ¶
func (mock *AppRevisionListerMock) List(namespace string, selector labels.Selector) ([]*v3.AppRevision, error)
List calls ListFunc.
type AppRevisionsGetterMock ¶
type AppRevisionsGetterMock struct { // AppRevisionsFunc mocks the AppRevisions method. AppRevisionsFunc func(namespace string) v3.AppRevisionInterface // contains filtered or unexported fields }
AppRevisionsGetterMock is a mock implementation of AppRevisionsGetter.
func TestSomethingThatUsesAppRevisionsGetter(t *testing.T) { // make and configure a mocked AppRevisionsGetter mockedAppRevisionsGetter := &AppRevisionsGetterMock{ AppRevisionsFunc: func(namespace string) v3.AppRevisionInterface { panic("mock out the AppRevisions method") }, } // use mockedAppRevisionsGetter in code that requires AppRevisionsGetter // and then make assertions. }
func (*AppRevisionsGetterMock) AppRevisions ¶
func (mock *AppRevisionsGetterMock) AppRevisions(namespace string) v3.AppRevisionInterface
AppRevisions calls AppRevisionsFunc.
func (*AppRevisionsGetterMock) AppRevisionsCalls ¶
func (mock *AppRevisionsGetterMock) AppRevisionsCalls() []struct { Namespace string }
AppRevisionsCalls gets all the calls that were made to AppRevisions. Check the length with:
len(mockedAppRevisionsGetter.AppRevisionsCalls())
type AppsGetterMock ¶
type AppsGetterMock struct { // AppsFunc mocks the Apps method. AppsFunc func(namespace string) v3.AppInterface // contains filtered or unexported fields }
AppsGetterMock is a mock implementation of AppsGetter.
func TestSomethingThatUsesAppsGetter(t *testing.T) { // make and configure a mocked AppsGetter mockedAppsGetter := &AppsGetterMock{ AppsFunc: func(namespace string) v3.AppInterface { panic("mock out the Apps method") }, } // use mockedAppsGetter in code that requires AppsGetter // and then make assertions. }
func (*AppsGetterMock) Apps ¶
func (mock *AppsGetterMock) Apps(namespace string) v3.AppInterface
Apps calls AppsFunc.
func (*AppsGetterMock) AppsCalls ¶
func (mock *AppsGetterMock) AppsCalls() []struct { Namespace string }
AppsCalls gets all the calls that were made to Apps. Check the length with:
len(mockedAppsGetter.AppsCalls())
type BasicAuthControllerMock ¶
type BasicAuthControllerMock struct { // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v3.BasicAuthHandlerFunc) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, handler v3.BasicAuthHandlerFunc) // EnqueueFunc mocks the Enqueue method. EnqueueFunc func(namespace string, name string) // GenericFunc mocks the Generic method. GenericFunc func() controller.GenericController // InformerFunc mocks the Informer method. InformerFunc func() cache.SharedIndexInformer // ListerFunc mocks the Lister method. ListerFunc func() v3.BasicAuthLister // StartFunc mocks the Start method. StartFunc func(ctx context.Context, threadiness int) error // SyncFunc mocks the Sync method. SyncFunc func(ctx context.Context) error // contains filtered or unexported fields }
BasicAuthControllerMock is a mock implementation of BasicAuthController.
func TestSomethingThatUsesBasicAuthController(t *testing.T) { // make and configure a mocked BasicAuthController mockedBasicAuthController := &BasicAuthControllerMock{ AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v3.BasicAuthHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddHandlerFunc: func(ctx context.Context, name string, handler v3.BasicAuthHandlerFunc) { panic("mock out the AddHandler method") }, EnqueueFunc: func(namespace string, name string) { panic("mock out the Enqueue method") }, GenericFunc: func() controller.GenericController { panic("mock out the Generic method") }, InformerFunc: func() cache.SharedIndexInformer { panic("mock out the Informer method") }, ListerFunc: func() v3.BasicAuthLister { panic("mock out the Lister method") }, StartFunc: func(ctx context.Context, threadiness int) error { panic("mock out the Start method") }, SyncFunc: func(ctx context.Context) error { panic("mock out the Sync method") }, } // use mockedBasicAuthController in code that requires BasicAuthController // and then make assertions. }
func (*BasicAuthControllerMock) AddClusterScopedHandler ¶
func (mock *BasicAuthControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v3.BasicAuthHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*BasicAuthControllerMock) AddClusterScopedHandlerCalls ¶
func (mock *BasicAuthControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Handler v3.BasicAuthHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedBasicAuthController.AddClusterScopedHandlerCalls())
func (*BasicAuthControllerMock) AddHandler ¶
func (mock *BasicAuthControllerMock) AddHandler(ctx context.Context, name string, handler v3.BasicAuthHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*BasicAuthControllerMock) AddHandlerCalls ¶
func (mock *BasicAuthControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string Handler v3.BasicAuthHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedBasicAuthController.AddHandlerCalls())
func (*BasicAuthControllerMock) Enqueue ¶
func (mock *BasicAuthControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*BasicAuthControllerMock) EnqueueCalls ¶
func (mock *BasicAuthControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedBasicAuthController.EnqueueCalls())
func (*BasicAuthControllerMock) Generic ¶
func (mock *BasicAuthControllerMock) Generic() controller.GenericController
Generic calls GenericFunc.
func (*BasicAuthControllerMock) GenericCalls ¶
func (mock *BasicAuthControllerMock) GenericCalls() []struct { }
GenericCalls gets all the calls that were made to Generic. Check the length with:
len(mockedBasicAuthController.GenericCalls())
func (*BasicAuthControllerMock) Informer ¶
func (mock *BasicAuthControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*BasicAuthControllerMock) InformerCalls ¶
func (mock *BasicAuthControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedBasicAuthController.InformerCalls())
func (*BasicAuthControllerMock) Lister ¶
func (mock *BasicAuthControllerMock) Lister() v3.BasicAuthLister
Lister calls ListerFunc.
func (*BasicAuthControllerMock) ListerCalls ¶
func (mock *BasicAuthControllerMock) ListerCalls() []struct { }
ListerCalls gets all the calls that were made to Lister. Check the length with:
len(mockedBasicAuthController.ListerCalls())
func (*BasicAuthControllerMock) Start ¶
func (mock *BasicAuthControllerMock) Start(ctx context.Context, threadiness int) error
Start calls StartFunc.
func (*BasicAuthControllerMock) StartCalls ¶
func (mock *BasicAuthControllerMock) StartCalls() []struct { Ctx context.Context Threadiness int }
StartCalls gets all the calls that were made to Start. Check the length with:
len(mockedBasicAuthController.StartCalls())
func (*BasicAuthControllerMock) Sync ¶
func (mock *BasicAuthControllerMock) Sync(ctx context.Context) error
Sync calls SyncFunc.
func (*BasicAuthControllerMock) SyncCalls ¶
func (mock *BasicAuthControllerMock) SyncCalls() []struct { Ctx context.Context }
SyncCalls gets all the calls that were made to Sync. Check the length with:
len(mockedBasicAuthController.SyncCalls())
type BasicAuthInterfaceMock ¶
type BasicAuthInterfaceMock struct { // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v3.BasicAuthHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v3.BasicAuthLifecycle) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, sync v3.BasicAuthHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. AddLifecycleFunc func(ctx context.Context, name string, lifecycle v3.BasicAuthLifecycle) // ControllerFunc mocks the Controller method. ControllerFunc func() v3.BasicAuthController // CreateFunc mocks the Create method. CreateFunc func(in1 *v3.BasicAuth) (*v3.BasicAuth, error) // DeleteFunc mocks the Delete method. DeleteFunc func(name string, options *v1.DeleteOptions) error // DeleteCollectionFunc mocks the DeleteCollection method. DeleteCollectionFunc func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error // DeleteNamespacedFunc mocks the DeleteNamespaced method. DeleteNamespacedFunc func(namespace string, name string, options *v1.DeleteOptions) error // GetFunc mocks the Get method. GetFunc func(name string, opts v1.GetOptions) (*v3.BasicAuth, error) // GetNamespacedFunc mocks the GetNamespaced method. GetNamespacedFunc func(namespace string, name string, opts v1.GetOptions) (*v3.BasicAuth, error) // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.BasicAuthList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v3.BasicAuth) (*v3.BasicAuth, error) // WatchFunc mocks the Watch method. WatchFunc func(opts v1.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
BasicAuthInterfaceMock is a mock implementation of BasicAuthInterface.
func TestSomethingThatUsesBasicAuthInterface(t *testing.T) { // make and configure a mocked BasicAuthInterface mockedBasicAuthInterface := &BasicAuthInterfaceMock{ AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v3.BasicAuthHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v3.BasicAuthLifecycle) { panic("mock out the AddClusterScopedLifecycle method") }, AddHandlerFunc: func(ctx context.Context, name string, sync v3.BasicAuthHandlerFunc) { panic("mock out the AddHandler method") }, AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v3.BasicAuthLifecycle) { panic("mock out the AddLifecycle method") }, ControllerFunc: func() v3.BasicAuthController { panic("mock out the Controller method") }, CreateFunc: func(in1 *v3.BasicAuth) (*v3.BasicAuth, error) { panic("mock out the Create method") }, DeleteFunc: func(name string, options *v1.DeleteOptions) error { panic("mock out the Delete method") }, DeleteCollectionFunc: func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error { panic("mock out the DeleteCollection method") }, DeleteNamespacedFunc: func(namespace string, name string, options *v1.DeleteOptions) error { panic("mock out the DeleteNamespaced method") }, GetFunc: func(name string, opts v1.GetOptions) (*v3.BasicAuth, error) { panic("mock out the Get method") }, GetNamespacedFunc: func(namespace string, name string, opts v1.GetOptions) (*v3.BasicAuth, error) { panic("mock out the GetNamespaced method") }, ListFunc: func(opts v1.ListOptions) (*v3.BasicAuthList, error) { panic("mock out the List method") }, ObjectClientFunc: func() *objectclient.ObjectClient { panic("mock out the ObjectClient method") }, UpdateFunc: func(in1 *v3.BasicAuth) (*v3.BasicAuth, error) { panic("mock out the Update method") }, WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedBasicAuthInterface in code that requires BasicAuthInterface // and then make assertions. }
func (*BasicAuthInterfaceMock) AddClusterScopedHandler ¶
func (mock *BasicAuthInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v3.BasicAuthHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*BasicAuthInterfaceMock) AddClusterScopedHandlerCalls ¶
func (mock *BasicAuthInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Sync v3.BasicAuthHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedBasicAuthInterface.AddClusterScopedHandlerCalls())
func (*BasicAuthInterfaceMock) AddClusterScopedLifecycle ¶
func (mock *BasicAuthInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v3.BasicAuthLifecycle)
AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.
func (*BasicAuthInterfaceMock) AddClusterScopedLifecycleCalls ¶
func (mock *BasicAuthInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string Lifecycle v3.BasicAuthLifecycle }
AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:
len(mockedBasicAuthInterface.AddClusterScopedLifecycleCalls())
func (*BasicAuthInterfaceMock) AddHandler ¶
func (mock *BasicAuthInterfaceMock) AddHandler(ctx context.Context, name string, sync v3.BasicAuthHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*BasicAuthInterfaceMock) AddHandlerCalls ¶
func (mock *BasicAuthInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string Sync v3.BasicAuthHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedBasicAuthInterface.AddHandlerCalls())
func (*BasicAuthInterfaceMock) AddLifecycle ¶
func (mock *BasicAuthInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v3.BasicAuthLifecycle)
AddLifecycle calls AddLifecycleFunc.
func (*BasicAuthInterfaceMock) AddLifecycleCalls ¶
func (mock *BasicAuthInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string Lifecycle v3.BasicAuthLifecycle }
AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:
len(mockedBasicAuthInterface.AddLifecycleCalls())
func (*BasicAuthInterfaceMock) Controller ¶
func (mock *BasicAuthInterfaceMock) Controller() v3.BasicAuthController
Controller calls ControllerFunc.
func (*BasicAuthInterfaceMock) ControllerCalls ¶
func (mock *BasicAuthInterfaceMock) ControllerCalls() []struct { }
ControllerCalls gets all the calls that were made to Controller. Check the length with:
len(mockedBasicAuthInterface.ControllerCalls())
func (*BasicAuthInterfaceMock) CreateCalls ¶
func (mock *BasicAuthInterfaceMock) CreateCalls() []struct { In1 *v3.BasicAuth }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedBasicAuthInterface.CreateCalls())
func (*BasicAuthInterfaceMock) Delete ¶
func (mock *BasicAuthInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
Delete calls DeleteFunc.
func (*BasicAuthInterfaceMock) DeleteCalls ¶
func (mock *BasicAuthInterfaceMock) DeleteCalls() []struct { Name string Options *v1.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedBasicAuthInterface.DeleteCalls())
func (*BasicAuthInterfaceMock) DeleteCollection ¶
func (mock *BasicAuthInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection calls DeleteCollectionFunc.
func (*BasicAuthInterfaceMock) DeleteCollectionCalls ¶
func (mock *BasicAuthInterfaceMock) DeleteCollectionCalls() []struct { DeleteOpts *v1.DeleteOptions ListOpts v1.ListOptions }
DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:
len(mockedBasicAuthInterface.DeleteCollectionCalls())
func (*BasicAuthInterfaceMock) DeleteNamespaced ¶
func (mock *BasicAuthInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
DeleteNamespaced calls DeleteNamespacedFunc.
func (*BasicAuthInterfaceMock) DeleteNamespacedCalls ¶
func (mock *BasicAuthInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string Options *v1.DeleteOptions }
DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:
len(mockedBasicAuthInterface.DeleteNamespacedCalls())
func (*BasicAuthInterfaceMock) Get ¶
func (mock *BasicAuthInterfaceMock) Get(name string, opts v1.GetOptions) (*v3.BasicAuth, error)
Get calls GetFunc.
func (*BasicAuthInterfaceMock) GetCalls ¶
func (mock *BasicAuthInterfaceMock) GetCalls() []struct { Name string Opts v1.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedBasicAuthInterface.GetCalls())
func (*BasicAuthInterfaceMock) GetNamespaced ¶
func (mock *BasicAuthInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v3.BasicAuth, error)
GetNamespaced calls GetNamespacedFunc.
func (*BasicAuthInterfaceMock) GetNamespacedCalls ¶
func (mock *BasicAuthInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string Opts v1.GetOptions }
GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:
len(mockedBasicAuthInterface.GetNamespacedCalls())
func (*BasicAuthInterfaceMock) List ¶
func (mock *BasicAuthInterfaceMock) List(opts v1.ListOptions) (*v3.BasicAuthList, error)
List calls ListFunc.
func (*BasicAuthInterfaceMock) ListCalls ¶
func (mock *BasicAuthInterfaceMock) ListCalls() []struct { Opts v1.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedBasicAuthInterface.ListCalls())
func (*BasicAuthInterfaceMock) ObjectClient ¶
func (mock *BasicAuthInterfaceMock) ObjectClient() *objectclient.ObjectClient
ObjectClient calls ObjectClientFunc.
func (*BasicAuthInterfaceMock) ObjectClientCalls ¶
func (mock *BasicAuthInterfaceMock) ObjectClientCalls() []struct { }
ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:
len(mockedBasicAuthInterface.ObjectClientCalls())
func (*BasicAuthInterfaceMock) UpdateCalls ¶
func (mock *BasicAuthInterfaceMock) UpdateCalls() []struct { In1 *v3.BasicAuth }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedBasicAuthInterface.UpdateCalls())
func (*BasicAuthInterfaceMock) Watch ¶
func (mock *BasicAuthInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*BasicAuthInterfaceMock) WatchCalls ¶
func (mock *BasicAuthInterfaceMock) WatchCalls() []struct { Opts v1.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedBasicAuthInterface.WatchCalls())
type BasicAuthListerMock ¶
type BasicAuthListerMock struct { // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v3.BasicAuth, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v3.BasicAuth, error) // contains filtered or unexported fields }
BasicAuthListerMock is a mock implementation of BasicAuthLister.
func TestSomethingThatUsesBasicAuthLister(t *testing.T) { // make and configure a mocked BasicAuthLister mockedBasicAuthLister := &BasicAuthListerMock{ GetFunc: func(namespace string, name string) (*v3.BasicAuth, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v3.BasicAuth, error) { panic("mock out the List method") }, } // use mockedBasicAuthLister in code that requires BasicAuthLister // and then make assertions. }
func (*BasicAuthListerMock) GetCalls ¶
func (mock *BasicAuthListerMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedBasicAuthLister.GetCalls())
type BasicAuthsGetterMock ¶
type BasicAuthsGetterMock struct { // BasicAuthsFunc mocks the BasicAuths method. BasicAuthsFunc func(namespace string) v3.BasicAuthInterface // contains filtered or unexported fields }
BasicAuthsGetterMock is a mock implementation of BasicAuthsGetter.
func TestSomethingThatUsesBasicAuthsGetter(t *testing.T) { // make and configure a mocked BasicAuthsGetter mockedBasicAuthsGetter := &BasicAuthsGetterMock{ BasicAuthsFunc: func(namespace string) v3.BasicAuthInterface { panic("mock out the BasicAuths method") }, } // use mockedBasicAuthsGetter in code that requires BasicAuthsGetter // and then make assertions. }
func (*BasicAuthsGetterMock) BasicAuths ¶
func (mock *BasicAuthsGetterMock) BasicAuths(namespace string) v3.BasicAuthInterface
BasicAuths calls BasicAuthsFunc.
func (*BasicAuthsGetterMock) BasicAuthsCalls ¶
func (mock *BasicAuthsGetterMock) BasicAuthsCalls() []struct { Namespace string }
BasicAuthsCalls gets all the calls that were made to BasicAuths. Check the length with:
len(mockedBasicAuthsGetter.BasicAuthsCalls())
type CertificateControllerMock ¶
type CertificateControllerMock struct { // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v3.CertificateHandlerFunc) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, handler v3.CertificateHandlerFunc) // EnqueueFunc mocks the Enqueue method. EnqueueFunc func(namespace string, name string) // GenericFunc mocks the Generic method. GenericFunc func() controller.GenericController // InformerFunc mocks the Informer method. InformerFunc func() cache.SharedIndexInformer // ListerFunc mocks the Lister method. ListerFunc func() v3.CertificateLister // StartFunc mocks the Start method. StartFunc func(ctx context.Context, threadiness int) error // SyncFunc mocks the Sync method. SyncFunc func(ctx context.Context) error // contains filtered or unexported fields }
CertificateControllerMock is a mock implementation of CertificateController.
func TestSomethingThatUsesCertificateController(t *testing.T) { // make and configure a mocked CertificateController mockedCertificateController := &CertificateControllerMock{ AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v3.CertificateHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddHandlerFunc: func(ctx context.Context, name string, handler v3.CertificateHandlerFunc) { panic("mock out the AddHandler method") }, EnqueueFunc: func(namespace string, name string) { panic("mock out the Enqueue method") }, GenericFunc: func() controller.GenericController { panic("mock out the Generic method") }, InformerFunc: func() cache.SharedIndexInformer { panic("mock out the Informer method") }, ListerFunc: func() v3.CertificateLister { panic("mock out the Lister method") }, StartFunc: func(ctx context.Context, threadiness int) error { panic("mock out the Start method") }, SyncFunc: func(ctx context.Context) error { panic("mock out the Sync method") }, } // use mockedCertificateController in code that requires CertificateController // and then make assertions. }
func (*CertificateControllerMock) AddClusterScopedHandler ¶
func (mock *CertificateControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v3.CertificateHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*CertificateControllerMock) AddClusterScopedHandlerCalls ¶
func (mock *CertificateControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Handler v3.CertificateHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedCertificateController.AddClusterScopedHandlerCalls())
func (*CertificateControllerMock) AddHandler ¶
func (mock *CertificateControllerMock) AddHandler(ctx context.Context, name string, handler v3.CertificateHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*CertificateControllerMock) AddHandlerCalls ¶
func (mock *CertificateControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string Handler v3.CertificateHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedCertificateController.AddHandlerCalls())
func (*CertificateControllerMock) Enqueue ¶
func (mock *CertificateControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*CertificateControllerMock) EnqueueCalls ¶
func (mock *CertificateControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedCertificateController.EnqueueCalls())
func (*CertificateControllerMock) Generic ¶
func (mock *CertificateControllerMock) Generic() controller.GenericController
Generic calls GenericFunc.
func (*CertificateControllerMock) GenericCalls ¶
func (mock *CertificateControllerMock) GenericCalls() []struct { }
GenericCalls gets all the calls that were made to Generic. Check the length with:
len(mockedCertificateController.GenericCalls())
func (*CertificateControllerMock) Informer ¶
func (mock *CertificateControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*CertificateControllerMock) InformerCalls ¶
func (mock *CertificateControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedCertificateController.InformerCalls())
func (*CertificateControllerMock) Lister ¶
func (mock *CertificateControllerMock) Lister() v3.CertificateLister
Lister calls ListerFunc.
func (*CertificateControllerMock) ListerCalls ¶
func (mock *CertificateControllerMock) ListerCalls() []struct { }
ListerCalls gets all the calls that were made to Lister. Check the length with:
len(mockedCertificateController.ListerCalls())
func (*CertificateControllerMock) Start ¶
func (mock *CertificateControllerMock) Start(ctx context.Context, threadiness int) error
Start calls StartFunc.
func (*CertificateControllerMock) StartCalls ¶
func (mock *CertificateControllerMock) StartCalls() []struct { Ctx context.Context Threadiness int }
StartCalls gets all the calls that were made to Start. Check the length with:
len(mockedCertificateController.StartCalls())
func (*CertificateControllerMock) Sync ¶
func (mock *CertificateControllerMock) Sync(ctx context.Context) error
Sync calls SyncFunc.
func (*CertificateControllerMock) SyncCalls ¶
func (mock *CertificateControllerMock) SyncCalls() []struct { Ctx context.Context }
SyncCalls gets all the calls that were made to Sync. Check the length with:
len(mockedCertificateController.SyncCalls())
type CertificateInterfaceMock ¶
type CertificateInterfaceMock struct { // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v3.CertificateHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v3.CertificateLifecycle) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, sync v3.CertificateHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. AddLifecycleFunc func(ctx context.Context, name string, lifecycle v3.CertificateLifecycle) // ControllerFunc mocks the Controller method. ControllerFunc func() v3.CertificateController // CreateFunc mocks the Create method. CreateFunc func(in1 *v3.Certificate) (*v3.Certificate, error) // DeleteFunc mocks the Delete method. DeleteFunc func(name string, options *v1.DeleteOptions) error // DeleteCollectionFunc mocks the DeleteCollection method. DeleteCollectionFunc func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error // DeleteNamespacedFunc mocks the DeleteNamespaced method. DeleteNamespacedFunc func(namespace string, name string, options *v1.DeleteOptions) error // GetFunc mocks the Get method. GetFunc func(name string, opts v1.GetOptions) (*v3.Certificate, error) // GetNamespacedFunc mocks the GetNamespaced method. GetNamespacedFunc func(namespace string, name string, opts v1.GetOptions) (*v3.Certificate, error) // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.CertificateList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v3.Certificate) (*v3.Certificate, error) // WatchFunc mocks the Watch method. WatchFunc func(opts v1.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
CertificateInterfaceMock is a mock implementation of CertificateInterface.
func TestSomethingThatUsesCertificateInterface(t *testing.T) { // make and configure a mocked CertificateInterface mockedCertificateInterface := &CertificateInterfaceMock{ AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v3.CertificateHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v3.CertificateLifecycle) { panic("mock out the AddClusterScopedLifecycle method") }, AddHandlerFunc: func(ctx context.Context, name string, sync v3.CertificateHandlerFunc) { panic("mock out the AddHandler method") }, AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v3.CertificateLifecycle) { panic("mock out the AddLifecycle method") }, ControllerFunc: func() v3.CertificateController { panic("mock out the Controller method") }, CreateFunc: func(in1 *v3.Certificate) (*v3.Certificate, error) { panic("mock out the Create method") }, DeleteFunc: func(name string, options *v1.DeleteOptions) error { panic("mock out the Delete method") }, DeleteCollectionFunc: func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error { panic("mock out the DeleteCollection method") }, DeleteNamespacedFunc: func(namespace string, name string, options *v1.DeleteOptions) error { panic("mock out the DeleteNamespaced method") }, GetFunc: func(name string, opts v1.GetOptions) (*v3.Certificate, error) { panic("mock out the Get method") }, GetNamespacedFunc: func(namespace string, name string, opts v1.GetOptions) (*v3.Certificate, error) { panic("mock out the GetNamespaced method") }, ListFunc: func(opts v1.ListOptions) (*v3.CertificateList, error) { panic("mock out the List method") }, ObjectClientFunc: func() *objectclient.ObjectClient { panic("mock out the ObjectClient method") }, UpdateFunc: func(in1 *v3.Certificate) (*v3.Certificate, error) { panic("mock out the Update method") }, WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedCertificateInterface in code that requires CertificateInterface // and then make assertions. }
func (*CertificateInterfaceMock) AddClusterScopedHandler ¶
func (mock *CertificateInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v3.CertificateHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*CertificateInterfaceMock) AddClusterScopedHandlerCalls ¶
func (mock *CertificateInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Sync v3.CertificateHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedCertificateInterface.AddClusterScopedHandlerCalls())
func (*CertificateInterfaceMock) AddClusterScopedLifecycle ¶
func (mock *CertificateInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v3.CertificateLifecycle)
AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.
func (*CertificateInterfaceMock) AddClusterScopedLifecycleCalls ¶
func (mock *CertificateInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string Lifecycle v3.CertificateLifecycle }
AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:
len(mockedCertificateInterface.AddClusterScopedLifecycleCalls())
func (*CertificateInterfaceMock) AddHandler ¶
func (mock *CertificateInterfaceMock) AddHandler(ctx context.Context, name string, sync v3.CertificateHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*CertificateInterfaceMock) AddHandlerCalls ¶
func (mock *CertificateInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string Sync v3.CertificateHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedCertificateInterface.AddHandlerCalls())
func (*CertificateInterfaceMock) AddLifecycle ¶
func (mock *CertificateInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v3.CertificateLifecycle)
AddLifecycle calls AddLifecycleFunc.
func (*CertificateInterfaceMock) AddLifecycleCalls ¶
func (mock *CertificateInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string Lifecycle v3.CertificateLifecycle }
AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:
len(mockedCertificateInterface.AddLifecycleCalls())
func (*CertificateInterfaceMock) Controller ¶
func (mock *CertificateInterfaceMock) Controller() v3.CertificateController
Controller calls ControllerFunc.
func (*CertificateInterfaceMock) ControllerCalls ¶
func (mock *CertificateInterfaceMock) ControllerCalls() []struct { }
ControllerCalls gets all the calls that were made to Controller. Check the length with:
len(mockedCertificateInterface.ControllerCalls())
func (*CertificateInterfaceMock) Create ¶
func (mock *CertificateInterfaceMock) Create(in1 *v3.Certificate) (*v3.Certificate, error)
Create calls CreateFunc.
func (*CertificateInterfaceMock) CreateCalls ¶
func (mock *CertificateInterfaceMock) CreateCalls() []struct { In1 *v3.Certificate }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedCertificateInterface.CreateCalls())
func (*CertificateInterfaceMock) Delete ¶
func (mock *CertificateInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
Delete calls DeleteFunc.
func (*CertificateInterfaceMock) DeleteCalls ¶
func (mock *CertificateInterfaceMock) DeleteCalls() []struct { Name string Options *v1.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedCertificateInterface.DeleteCalls())
func (*CertificateInterfaceMock) DeleteCollection ¶
func (mock *CertificateInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection calls DeleteCollectionFunc.
func (*CertificateInterfaceMock) DeleteCollectionCalls ¶
func (mock *CertificateInterfaceMock) DeleteCollectionCalls() []struct { DeleteOpts *v1.DeleteOptions ListOpts v1.ListOptions }
DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:
len(mockedCertificateInterface.DeleteCollectionCalls())
func (*CertificateInterfaceMock) DeleteNamespaced ¶
func (mock *CertificateInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
DeleteNamespaced calls DeleteNamespacedFunc.
func (*CertificateInterfaceMock) DeleteNamespacedCalls ¶
func (mock *CertificateInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string Options *v1.DeleteOptions }
DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:
len(mockedCertificateInterface.DeleteNamespacedCalls())
func (*CertificateInterfaceMock) Get ¶
func (mock *CertificateInterfaceMock) Get(name string, opts v1.GetOptions) (*v3.Certificate, error)
Get calls GetFunc.
func (*CertificateInterfaceMock) GetCalls ¶
func (mock *CertificateInterfaceMock) GetCalls() []struct { Name string Opts v1.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedCertificateInterface.GetCalls())
func (*CertificateInterfaceMock) GetNamespaced ¶
func (mock *CertificateInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v3.Certificate, error)
GetNamespaced calls GetNamespacedFunc.
func (*CertificateInterfaceMock) GetNamespacedCalls ¶
func (mock *CertificateInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string Opts v1.GetOptions }
GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:
len(mockedCertificateInterface.GetNamespacedCalls())
func (*CertificateInterfaceMock) List ¶
func (mock *CertificateInterfaceMock) List(opts v1.ListOptions) (*v3.CertificateList, error)
List calls ListFunc.
func (*CertificateInterfaceMock) ListCalls ¶
func (mock *CertificateInterfaceMock) ListCalls() []struct { Opts v1.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedCertificateInterface.ListCalls())
func (*CertificateInterfaceMock) ObjectClient ¶
func (mock *CertificateInterfaceMock) ObjectClient() *objectclient.ObjectClient
ObjectClient calls ObjectClientFunc.
func (*CertificateInterfaceMock) ObjectClientCalls ¶
func (mock *CertificateInterfaceMock) ObjectClientCalls() []struct { }
ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:
len(mockedCertificateInterface.ObjectClientCalls())
func (*CertificateInterfaceMock) Update ¶
func (mock *CertificateInterfaceMock) Update(in1 *v3.Certificate) (*v3.Certificate, error)
Update calls UpdateFunc.
func (*CertificateInterfaceMock) UpdateCalls ¶
func (mock *CertificateInterfaceMock) UpdateCalls() []struct { In1 *v3.Certificate }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedCertificateInterface.UpdateCalls())
func (*CertificateInterfaceMock) Watch ¶
func (mock *CertificateInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*CertificateInterfaceMock) WatchCalls ¶
func (mock *CertificateInterfaceMock) WatchCalls() []struct { Opts v1.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedCertificateInterface.WatchCalls())
type CertificateListerMock ¶
type CertificateListerMock struct { // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v3.Certificate, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v3.Certificate, error) // contains filtered or unexported fields }
CertificateListerMock is a mock implementation of CertificateLister.
func TestSomethingThatUsesCertificateLister(t *testing.T) { // make and configure a mocked CertificateLister mockedCertificateLister := &CertificateListerMock{ GetFunc: func(namespace string, name string) (*v3.Certificate, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v3.Certificate, error) { panic("mock out the List method") }, } // use mockedCertificateLister in code that requires CertificateLister // and then make assertions. }
func (*CertificateListerMock) Get ¶
func (mock *CertificateListerMock) Get(namespace string, name string) (*v3.Certificate, error)
Get calls GetFunc.
func (*CertificateListerMock) GetCalls ¶
func (mock *CertificateListerMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedCertificateLister.GetCalls())
func (*CertificateListerMock) List ¶
func (mock *CertificateListerMock) List(namespace string, selector labels.Selector) ([]*v3.Certificate, error)
List calls ListFunc.
type CertificatesGetterMock ¶
type CertificatesGetterMock struct { // CertificatesFunc mocks the Certificates method. CertificatesFunc func(namespace string) v3.CertificateInterface // contains filtered or unexported fields }
CertificatesGetterMock is a mock implementation of CertificatesGetter.
func TestSomethingThatUsesCertificatesGetter(t *testing.T) { // make and configure a mocked CertificatesGetter mockedCertificatesGetter := &CertificatesGetterMock{ CertificatesFunc: func(namespace string) v3.CertificateInterface { panic("mock out the Certificates method") }, } // use mockedCertificatesGetter in code that requires CertificatesGetter // and then make assertions. }
func (*CertificatesGetterMock) Certificates ¶
func (mock *CertificatesGetterMock) Certificates(namespace string) v3.CertificateInterface
Certificates calls CertificatesFunc.
func (*CertificatesGetterMock) CertificatesCalls ¶
func (mock *CertificatesGetterMock) CertificatesCalls() []struct { Namespace string }
CertificatesCalls gets all the calls that were made to Certificates. Check the length with:
len(mockedCertificatesGetter.CertificatesCalls())
type DockerCredentialControllerMock ¶
type DockerCredentialControllerMock struct { // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v3.DockerCredentialHandlerFunc) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, handler v3.DockerCredentialHandlerFunc) // EnqueueFunc mocks the Enqueue method. EnqueueFunc func(namespace string, name string) // GenericFunc mocks the Generic method. GenericFunc func() controller.GenericController // InformerFunc mocks the Informer method. InformerFunc func() cache.SharedIndexInformer // ListerFunc mocks the Lister method. ListerFunc func() v3.DockerCredentialLister // StartFunc mocks the Start method. StartFunc func(ctx context.Context, threadiness int) error // SyncFunc mocks the Sync method. SyncFunc func(ctx context.Context) error // contains filtered or unexported fields }
DockerCredentialControllerMock is a mock implementation of DockerCredentialController.
func TestSomethingThatUsesDockerCredentialController(t *testing.T) { // make and configure a mocked DockerCredentialController mockedDockerCredentialController := &DockerCredentialControllerMock{ AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v3.DockerCredentialHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddHandlerFunc: func(ctx context.Context, name string, handler v3.DockerCredentialHandlerFunc) { panic("mock out the AddHandler method") }, EnqueueFunc: func(namespace string, name string) { panic("mock out the Enqueue method") }, GenericFunc: func() controller.GenericController { panic("mock out the Generic method") }, InformerFunc: func() cache.SharedIndexInformer { panic("mock out the Informer method") }, ListerFunc: func() v3.DockerCredentialLister { panic("mock out the Lister method") }, StartFunc: func(ctx context.Context, threadiness int) error { panic("mock out the Start method") }, SyncFunc: func(ctx context.Context) error { panic("mock out the Sync method") }, } // use mockedDockerCredentialController in code that requires DockerCredentialController // and then make assertions. }
func (*DockerCredentialControllerMock) AddClusterScopedHandler ¶
func (mock *DockerCredentialControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v3.DockerCredentialHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*DockerCredentialControllerMock) AddClusterScopedHandlerCalls ¶
func (mock *DockerCredentialControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Handler v3.DockerCredentialHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedDockerCredentialController.AddClusterScopedHandlerCalls())
func (*DockerCredentialControllerMock) AddHandler ¶
func (mock *DockerCredentialControllerMock) AddHandler(ctx context.Context, name string, handler v3.DockerCredentialHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*DockerCredentialControllerMock) AddHandlerCalls ¶
func (mock *DockerCredentialControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string Handler v3.DockerCredentialHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedDockerCredentialController.AddHandlerCalls())
func (*DockerCredentialControllerMock) Enqueue ¶
func (mock *DockerCredentialControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*DockerCredentialControllerMock) EnqueueCalls ¶
func (mock *DockerCredentialControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedDockerCredentialController.EnqueueCalls())
func (*DockerCredentialControllerMock) Generic ¶
func (mock *DockerCredentialControllerMock) Generic() controller.GenericController
Generic calls GenericFunc.
func (*DockerCredentialControllerMock) GenericCalls ¶
func (mock *DockerCredentialControllerMock) GenericCalls() []struct { }
GenericCalls gets all the calls that were made to Generic. Check the length with:
len(mockedDockerCredentialController.GenericCalls())
func (*DockerCredentialControllerMock) Informer ¶
func (mock *DockerCredentialControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*DockerCredentialControllerMock) InformerCalls ¶
func (mock *DockerCredentialControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedDockerCredentialController.InformerCalls())
func (*DockerCredentialControllerMock) Lister ¶
func (mock *DockerCredentialControllerMock) Lister() v3.DockerCredentialLister
Lister calls ListerFunc.
func (*DockerCredentialControllerMock) ListerCalls ¶
func (mock *DockerCredentialControllerMock) ListerCalls() []struct { }
ListerCalls gets all the calls that were made to Lister. Check the length with:
len(mockedDockerCredentialController.ListerCalls())
func (*DockerCredentialControllerMock) Start ¶
func (mock *DockerCredentialControllerMock) Start(ctx context.Context, threadiness int) error
Start calls StartFunc.
func (*DockerCredentialControllerMock) StartCalls ¶
func (mock *DockerCredentialControllerMock) StartCalls() []struct { Ctx context.Context Threadiness int }
StartCalls gets all the calls that were made to Start. Check the length with:
len(mockedDockerCredentialController.StartCalls())
func (*DockerCredentialControllerMock) Sync ¶
func (mock *DockerCredentialControllerMock) Sync(ctx context.Context) error
Sync calls SyncFunc.
func (*DockerCredentialControllerMock) SyncCalls ¶
func (mock *DockerCredentialControllerMock) SyncCalls() []struct { Ctx context.Context }
SyncCalls gets all the calls that were made to Sync. Check the length with:
len(mockedDockerCredentialController.SyncCalls())
type DockerCredentialInterfaceMock ¶
type DockerCredentialInterfaceMock struct { // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v3.DockerCredentialHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v3.DockerCredentialLifecycle) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, sync v3.DockerCredentialHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. AddLifecycleFunc func(ctx context.Context, name string, lifecycle v3.DockerCredentialLifecycle) // ControllerFunc mocks the Controller method. ControllerFunc func() v3.DockerCredentialController // CreateFunc mocks the Create method. CreateFunc func(in1 *v3.DockerCredential) (*v3.DockerCredential, error) // DeleteFunc mocks the Delete method. DeleteFunc func(name string, options *v1.DeleteOptions) error // DeleteCollectionFunc mocks the DeleteCollection method. DeleteCollectionFunc func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error // DeleteNamespacedFunc mocks the DeleteNamespaced method. DeleteNamespacedFunc func(namespace string, name string, options *v1.DeleteOptions) error // GetFunc mocks the Get method. GetFunc func(name string, opts v1.GetOptions) (*v3.DockerCredential, error) // GetNamespacedFunc mocks the GetNamespaced method. GetNamespacedFunc func(namespace string, name string, opts v1.GetOptions) (*v3.DockerCredential, error) // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.DockerCredentialList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v3.DockerCredential) (*v3.DockerCredential, error) // WatchFunc mocks the Watch method. WatchFunc func(opts v1.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
DockerCredentialInterfaceMock is a mock implementation of DockerCredentialInterface.
func TestSomethingThatUsesDockerCredentialInterface(t *testing.T) { // make and configure a mocked DockerCredentialInterface mockedDockerCredentialInterface := &DockerCredentialInterfaceMock{ AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v3.DockerCredentialHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v3.DockerCredentialLifecycle) { panic("mock out the AddClusterScopedLifecycle method") }, AddHandlerFunc: func(ctx context.Context, name string, sync v3.DockerCredentialHandlerFunc) { panic("mock out the AddHandler method") }, AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v3.DockerCredentialLifecycle) { panic("mock out the AddLifecycle method") }, ControllerFunc: func() v3.DockerCredentialController { panic("mock out the Controller method") }, CreateFunc: func(in1 *v3.DockerCredential) (*v3.DockerCredential, error) { panic("mock out the Create method") }, DeleteFunc: func(name string, options *v1.DeleteOptions) error { panic("mock out the Delete method") }, DeleteCollectionFunc: func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error { panic("mock out the DeleteCollection method") }, DeleteNamespacedFunc: func(namespace string, name string, options *v1.DeleteOptions) error { panic("mock out the DeleteNamespaced method") }, GetFunc: func(name string, opts v1.GetOptions) (*v3.DockerCredential, error) { panic("mock out the Get method") }, GetNamespacedFunc: func(namespace string, name string, opts v1.GetOptions) (*v3.DockerCredential, error) { panic("mock out the GetNamespaced method") }, ListFunc: func(opts v1.ListOptions) (*v3.DockerCredentialList, error) { panic("mock out the List method") }, ObjectClientFunc: func() *objectclient.ObjectClient { panic("mock out the ObjectClient method") }, UpdateFunc: func(in1 *v3.DockerCredential) (*v3.DockerCredential, error) { panic("mock out the Update method") }, WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedDockerCredentialInterface in code that requires DockerCredentialInterface // and then make assertions. }
func (*DockerCredentialInterfaceMock) AddClusterScopedHandler ¶
func (mock *DockerCredentialInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v3.DockerCredentialHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*DockerCredentialInterfaceMock) AddClusterScopedHandlerCalls ¶
func (mock *DockerCredentialInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Sync v3.DockerCredentialHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedDockerCredentialInterface.AddClusterScopedHandlerCalls())
func (*DockerCredentialInterfaceMock) AddClusterScopedLifecycle ¶
func (mock *DockerCredentialInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v3.DockerCredentialLifecycle)
AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.
func (*DockerCredentialInterfaceMock) AddClusterScopedLifecycleCalls ¶
func (mock *DockerCredentialInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string Lifecycle v3.DockerCredentialLifecycle }
AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:
len(mockedDockerCredentialInterface.AddClusterScopedLifecycleCalls())
func (*DockerCredentialInterfaceMock) AddHandler ¶
func (mock *DockerCredentialInterfaceMock) AddHandler(ctx context.Context, name string, sync v3.DockerCredentialHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*DockerCredentialInterfaceMock) AddHandlerCalls ¶
func (mock *DockerCredentialInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string Sync v3.DockerCredentialHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedDockerCredentialInterface.AddHandlerCalls())
func (*DockerCredentialInterfaceMock) AddLifecycle ¶
func (mock *DockerCredentialInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v3.DockerCredentialLifecycle)
AddLifecycle calls AddLifecycleFunc.
func (*DockerCredentialInterfaceMock) AddLifecycleCalls ¶
func (mock *DockerCredentialInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string Lifecycle v3.DockerCredentialLifecycle }
AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:
len(mockedDockerCredentialInterface.AddLifecycleCalls())
func (*DockerCredentialInterfaceMock) Controller ¶
func (mock *DockerCredentialInterfaceMock) Controller() v3.DockerCredentialController
Controller calls ControllerFunc.
func (*DockerCredentialInterfaceMock) ControllerCalls ¶
func (mock *DockerCredentialInterfaceMock) ControllerCalls() []struct { }
ControllerCalls gets all the calls that were made to Controller. Check the length with:
len(mockedDockerCredentialInterface.ControllerCalls())
func (*DockerCredentialInterfaceMock) Create ¶
func (mock *DockerCredentialInterfaceMock) Create(in1 *v3.DockerCredential) (*v3.DockerCredential, error)
Create calls CreateFunc.
func (*DockerCredentialInterfaceMock) CreateCalls ¶
func (mock *DockerCredentialInterfaceMock) CreateCalls() []struct { In1 *v3.DockerCredential }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedDockerCredentialInterface.CreateCalls())
func (*DockerCredentialInterfaceMock) Delete ¶
func (mock *DockerCredentialInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
Delete calls DeleteFunc.
func (*DockerCredentialInterfaceMock) DeleteCalls ¶
func (mock *DockerCredentialInterfaceMock) DeleteCalls() []struct { Name string Options *v1.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedDockerCredentialInterface.DeleteCalls())
func (*DockerCredentialInterfaceMock) DeleteCollection ¶
func (mock *DockerCredentialInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection calls DeleteCollectionFunc.
func (*DockerCredentialInterfaceMock) DeleteCollectionCalls ¶
func (mock *DockerCredentialInterfaceMock) DeleteCollectionCalls() []struct { DeleteOpts *v1.DeleteOptions ListOpts v1.ListOptions }
DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:
len(mockedDockerCredentialInterface.DeleteCollectionCalls())
func (*DockerCredentialInterfaceMock) DeleteNamespaced ¶
func (mock *DockerCredentialInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
DeleteNamespaced calls DeleteNamespacedFunc.
func (*DockerCredentialInterfaceMock) DeleteNamespacedCalls ¶
func (mock *DockerCredentialInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string Options *v1.DeleteOptions }
DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:
len(mockedDockerCredentialInterface.DeleteNamespacedCalls())
func (*DockerCredentialInterfaceMock) Get ¶
func (mock *DockerCredentialInterfaceMock) Get(name string, opts v1.GetOptions) (*v3.DockerCredential, error)
Get calls GetFunc.
func (*DockerCredentialInterfaceMock) GetCalls ¶
func (mock *DockerCredentialInterfaceMock) GetCalls() []struct { Name string Opts v1.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedDockerCredentialInterface.GetCalls())
func (*DockerCredentialInterfaceMock) GetNamespaced ¶
func (mock *DockerCredentialInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v3.DockerCredential, error)
GetNamespaced calls GetNamespacedFunc.
func (*DockerCredentialInterfaceMock) GetNamespacedCalls ¶
func (mock *DockerCredentialInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string Opts v1.GetOptions }
GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:
len(mockedDockerCredentialInterface.GetNamespacedCalls())
func (*DockerCredentialInterfaceMock) List ¶
func (mock *DockerCredentialInterfaceMock) List(opts v1.ListOptions) (*v3.DockerCredentialList, error)
List calls ListFunc.
func (*DockerCredentialInterfaceMock) ListCalls ¶
func (mock *DockerCredentialInterfaceMock) ListCalls() []struct { Opts v1.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedDockerCredentialInterface.ListCalls())
func (*DockerCredentialInterfaceMock) ObjectClient ¶
func (mock *DockerCredentialInterfaceMock) ObjectClient() *objectclient.ObjectClient
ObjectClient calls ObjectClientFunc.
func (*DockerCredentialInterfaceMock) ObjectClientCalls ¶
func (mock *DockerCredentialInterfaceMock) ObjectClientCalls() []struct { }
ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:
len(mockedDockerCredentialInterface.ObjectClientCalls())
func (*DockerCredentialInterfaceMock) Update ¶
func (mock *DockerCredentialInterfaceMock) Update(in1 *v3.DockerCredential) (*v3.DockerCredential, error)
Update calls UpdateFunc.
func (*DockerCredentialInterfaceMock) UpdateCalls ¶
func (mock *DockerCredentialInterfaceMock) UpdateCalls() []struct { In1 *v3.DockerCredential }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedDockerCredentialInterface.UpdateCalls())
func (*DockerCredentialInterfaceMock) Watch ¶
func (mock *DockerCredentialInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*DockerCredentialInterfaceMock) WatchCalls ¶
func (mock *DockerCredentialInterfaceMock) WatchCalls() []struct { Opts v1.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedDockerCredentialInterface.WatchCalls())
type DockerCredentialListerMock ¶
type DockerCredentialListerMock struct { // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v3.DockerCredential, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v3.DockerCredential, error) // contains filtered or unexported fields }
DockerCredentialListerMock is a mock implementation of DockerCredentialLister.
func TestSomethingThatUsesDockerCredentialLister(t *testing.T) { // make and configure a mocked DockerCredentialLister mockedDockerCredentialLister := &DockerCredentialListerMock{ GetFunc: func(namespace string, name string) (*v3.DockerCredential, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v3.DockerCredential, error) { panic("mock out the List method") }, } // use mockedDockerCredentialLister in code that requires DockerCredentialLister // and then make assertions. }
func (*DockerCredentialListerMock) Get ¶
func (mock *DockerCredentialListerMock) Get(namespace string, name string) (*v3.DockerCredential, error)
Get calls GetFunc.
func (*DockerCredentialListerMock) GetCalls ¶
func (mock *DockerCredentialListerMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedDockerCredentialLister.GetCalls())
func (*DockerCredentialListerMock) List ¶
func (mock *DockerCredentialListerMock) List(namespace string, selector labels.Selector) ([]*v3.DockerCredential, error)
List calls ListFunc.
type DockerCredentialsGetterMock ¶
type DockerCredentialsGetterMock struct { // DockerCredentialsFunc mocks the DockerCredentials method. DockerCredentialsFunc func(namespace string) v3.DockerCredentialInterface // contains filtered or unexported fields }
DockerCredentialsGetterMock is a mock implementation of DockerCredentialsGetter.
func TestSomethingThatUsesDockerCredentialsGetter(t *testing.T) { // make and configure a mocked DockerCredentialsGetter mockedDockerCredentialsGetter := &DockerCredentialsGetterMock{ DockerCredentialsFunc: func(namespace string) v3.DockerCredentialInterface { panic("mock out the DockerCredentials method") }, } // use mockedDockerCredentialsGetter in code that requires DockerCredentialsGetter // and then make assertions. }
func (*DockerCredentialsGetterMock) DockerCredentials ¶
func (mock *DockerCredentialsGetterMock) DockerCredentials(namespace string) v3.DockerCredentialInterface
DockerCredentials calls DockerCredentialsFunc.
func (*DockerCredentialsGetterMock) DockerCredentialsCalls ¶
func (mock *DockerCredentialsGetterMock) DockerCredentialsCalls() []struct { Namespace string }
DockerCredentialsCalls gets all the calls that were made to DockerCredentials. Check the length with:
len(mockedDockerCredentialsGetter.DockerCredentialsCalls())
type NamespacedBasicAuthControllerMock ¶
type NamespacedBasicAuthControllerMock struct { // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v3.NamespacedBasicAuthHandlerFunc) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, handler v3.NamespacedBasicAuthHandlerFunc) // EnqueueFunc mocks the Enqueue method. EnqueueFunc func(namespace string, name string) // GenericFunc mocks the Generic method. GenericFunc func() controller.GenericController // InformerFunc mocks the Informer method. InformerFunc func() cache.SharedIndexInformer // ListerFunc mocks the Lister method. ListerFunc func() v3.NamespacedBasicAuthLister // StartFunc mocks the Start method. StartFunc func(ctx context.Context, threadiness int) error // SyncFunc mocks the Sync method. SyncFunc func(ctx context.Context) error // contains filtered or unexported fields }
NamespacedBasicAuthControllerMock is a mock implementation of NamespacedBasicAuthController.
func TestSomethingThatUsesNamespacedBasicAuthController(t *testing.T) { // make and configure a mocked NamespacedBasicAuthController mockedNamespacedBasicAuthController := &NamespacedBasicAuthControllerMock{ AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v3.NamespacedBasicAuthHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddHandlerFunc: func(ctx context.Context, name string, handler v3.NamespacedBasicAuthHandlerFunc) { panic("mock out the AddHandler method") }, EnqueueFunc: func(namespace string, name string) { panic("mock out the Enqueue method") }, GenericFunc: func() controller.GenericController { panic("mock out the Generic method") }, InformerFunc: func() cache.SharedIndexInformer { panic("mock out the Informer method") }, ListerFunc: func() v3.NamespacedBasicAuthLister { panic("mock out the Lister method") }, StartFunc: func(ctx context.Context, threadiness int) error { panic("mock out the Start method") }, SyncFunc: func(ctx context.Context) error { panic("mock out the Sync method") }, } // use mockedNamespacedBasicAuthController in code that requires NamespacedBasicAuthController // and then make assertions. }
func (*NamespacedBasicAuthControllerMock) AddClusterScopedHandler ¶
func (mock *NamespacedBasicAuthControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v3.NamespacedBasicAuthHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*NamespacedBasicAuthControllerMock) AddClusterScopedHandlerCalls ¶
func (mock *NamespacedBasicAuthControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Handler v3.NamespacedBasicAuthHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedNamespacedBasicAuthController.AddClusterScopedHandlerCalls())
func (*NamespacedBasicAuthControllerMock) AddHandler ¶
func (mock *NamespacedBasicAuthControllerMock) AddHandler(ctx context.Context, name string, handler v3.NamespacedBasicAuthHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*NamespacedBasicAuthControllerMock) AddHandlerCalls ¶
func (mock *NamespacedBasicAuthControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string Handler v3.NamespacedBasicAuthHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedNamespacedBasicAuthController.AddHandlerCalls())
func (*NamespacedBasicAuthControllerMock) Enqueue ¶
func (mock *NamespacedBasicAuthControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*NamespacedBasicAuthControllerMock) EnqueueCalls ¶
func (mock *NamespacedBasicAuthControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedNamespacedBasicAuthController.EnqueueCalls())
func (*NamespacedBasicAuthControllerMock) Generic ¶
func (mock *NamespacedBasicAuthControllerMock) Generic() controller.GenericController
Generic calls GenericFunc.
func (*NamespacedBasicAuthControllerMock) GenericCalls ¶
func (mock *NamespacedBasicAuthControllerMock) GenericCalls() []struct { }
GenericCalls gets all the calls that were made to Generic. Check the length with:
len(mockedNamespacedBasicAuthController.GenericCalls())
func (*NamespacedBasicAuthControllerMock) Informer ¶
func (mock *NamespacedBasicAuthControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*NamespacedBasicAuthControllerMock) InformerCalls ¶
func (mock *NamespacedBasicAuthControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedNamespacedBasicAuthController.InformerCalls())
func (*NamespacedBasicAuthControllerMock) Lister ¶
func (mock *NamespacedBasicAuthControllerMock) Lister() v3.NamespacedBasicAuthLister
Lister calls ListerFunc.
func (*NamespacedBasicAuthControllerMock) ListerCalls ¶
func (mock *NamespacedBasicAuthControllerMock) ListerCalls() []struct { }
ListerCalls gets all the calls that were made to Lister. Check the length with:
len(mockedNamespacedBasicAuthController.ListerCalls())
func (*NamespacedBasicAuthControllerMock) Start ¶
func (mock *NamespacedBasicAuthControllerMock) Start(ctx context.Context, threadiness int) error
Start calls StartFunc.
func (*NamespacedBasicAuthControllerMock) StartCalls ¶
func (mock *NamespacedBasicAuthControllerMock) StartCalls() []struct { Ctx context.Context Threadiness int }
StartCalls gets all the calls that were made to Start. Check the length with:
len(mockedNamespacedBasicAuthController.StartCalls())
func (*NamespacedBasicAuthControllerMock) Sync ¶
func (mock *NamespacedBasicAuthControllerMock) Sync(ctx context.Context) error
Sync calls SyncFunc.
func (*NamespacedBasicAuthControllerMock) SyncCalls ¶
func (mock *NamespacedBasicAuthControllerMock) SyncCalls() []struct { Ctx context.Context }
SyncCalls gets all the calls that were made to Sync. Check the length with:
len(mockedNamespacedBasicAuthController.SyncCalls())
type NamespacedBasicAuthInterfaceMock ¶
type NamespacedBasicAuthInterfaceMock struct { // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v3.NamespacedBasicAuthHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v3.NamespacedBasicAuthLifecycle) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, sync v3.NamespacedBasicAuthHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. AddLifecycleFunc func(ctx context.Context, name string, lifecycle v3.NamespacedBasicAuthLifecycle) // ControllerFunc mocks the Controller method. ControllerFunc func() v3.NamespacedBasicAuthController // CreateFunc mocks the Create method. CreateFunc func(in1 *v3.NamespacedBasicAuth) (*v3.NamespacedBasicAuth, error) // DeleteFunc mocks the Delete method. DeleteFunc func(name string, options *v1.DeleteOptions) error // DeleteCollectionFunc mocks the DeleteCollection method. DeleteCollectionFunc func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error // DeleteNamespacedFunc mocks the DeleteNamespaced method. DeleteNamespacedFunc func(namespace string, name string, options *v1.DeleteOptions) error // GetFunc mocks the Get method. GetFunc func(name string, opts v1.GetOptions) (*v3.NamespacedBasicAuth, error) // GetNamespacedFunc mocks the GetNamespaced method. GetNamespacedFunc func(namespace string, name string, opts v1.GetOptions) (*v3.NamespacedBasicAuth, error) // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.NamespacedBasicAuthList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v3.NamespacedBasicAuth) (*v3.NamespacedBasicAuth, error) // WatchFunc mocks the Watch method. WatchFunc func(opts v1.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
NamespacedBasicAuthInterfaceMock is a mock implementation of NamespacedBasicAuthInterface.
func TestSomethingThatUsesNamespacedBasicAuthInterface(t *testing.T) { // make and configure a mocked NamespacedBasicAuthInterface mockedNamespacedBasicAuthInterface := &NamespacedBasicAuthInterfaceMock{ AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v3.NamespacedBasicAuthHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v3.NamespacedBasicAuthLifecycle) { panic("mock out the AddClusterScopedLifecycle method") }, AddHandlerFunc: func(ctx context.Context, name string, sync v3.NamespacedBasicAuthHandlerFunc) { panic("mock out the AddHandler method") }, AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v3.NamespacedBasicAuthLifecycle) { panic("mock out the AddLifecycle method") }, ControllerFunc: func() v3.NamespacedBasicAuthController { panic("mock out the Controller method") }, CreateFunc: func(in1 *v3.NamespacedBasicAuth) (*v3.NamespacedBasicAuth, error) { panic("mock out the Create method") }, DeleteFunc: func(name string, options *v1.DeleteOptions) error { panic("mock out the Delete method") }, DeleteCollectionFunc: func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error { panic("mock out the DeleteCollection method") }, DeleteNamespacedFunc: func(namespace string, name string, options *v1.DeleteOptions) error { panic("mock out the DeleteNamespaced method") }, GetFunc: func(name string, opts v1.GetOptions) (*v3.NamespacedBasicAuth, error) { panic("mock out the Get method") }, GetNamespacedFunc: func(namespace string, name string, opts v1.GetOptions) (*v3.NamespacedBasicAuth, error) { panic("mock out the GetNamespaced method") }, ListFunc: func(opts v1.ListOptions) (*v3.NamespacedBasicAuthList, error) { panic("mock out the List method") }, ObjectClientFunc: func() *objectclient.ObjectClient { panic("mock out the ObjectClient method") }, UpdateFunc: func(in1 *v3.NamespacedBasicAuth) (*v3.NamespacedBasicAuth, error) { panic("mock out the Update method") }, WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedNamespacedBasicAuthInterface in code that requires NamespacedBasicAuthInterface // and then make assertions. }
func (*NamespacedBasicAuthInterfaceMock) AddClusterScopedHandler ¶
func (mock *NamespacedBasicAuthInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v3.NamespacedBasicAuthHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*NamespacedBasicAuthInterfaceMock) AddClusterScopedHandlerCalls ¶
func (mock *NamespacedBasicAuthInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Sync v3.NamespacedBasicAuthHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedNamespacedBasicAuthInterface.AddClusterScopedHandlerCalls())
func (*NamespacedBasicAuthInterfaceMock) AddClusterScopedLifecycle ¶
func (mock *NamespacedBasicAuthInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v3.NamespacedBasicAuthLifecycle)
AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.
func (*NamespacedBasicAuthInterfaceMock) AddClusterScopedLifecycleCalls ¶
func (mock *NamespacedBasicAuthInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string Lifecycle v3.NamespacedBasicAuthLifecycle }
AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:
len(mockedNamespacedBasicAuthInterface.AddClusterScopedLifecycleCalls())
func (*NamespacedBasicAuthInterfaceMock) AddHandler ¶
func (mock *NamespacedBasicAuthInterfaceMock) AddHandler(ctx context.Context, name string, sync v3.NamespacedBasicAuthHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*NamespacedBasicAuthInterfaceMock) AddHandlerCalls ¶
func (mock *NamespacedBasicAuthInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string Sync v3.NamespacedBasicAuthHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedNamespacedBasicAuthInterface.AddHandlerCalls())
func (*NamespacedBasicAuthInterfaceMock) AddLifecycle ¶
func (mock *NamespacedBasicAuthInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v3.NamespacedBasicAuthLifecycle)
AddLifecycle calls AddLifecycleFunc.
func (*NamespacedBasicAuthInterfaceMock) AddLifecycleCalls ¶
func (mock *NamespacedBasicAuthInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string Lifecycle v3.NamespacedBasicAuthLifecycle }
AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:
len(mockedNamespacedBasicAuthInterface.AddLifecycleCalls())
func (*NamespacedBasicAuthInterfaceMock) Controller ¶
func (mock *NamespacedBasicAuthInterfaceMock) Controller() v3.NamespacedBasicAuthController
Controller calls ControllerFunc.
func (*NamespacedBasicAuthInterfaceMock) ControllerCalls ¶
func (mock *NamespacedBasicAuthInterfaceMock) ControllerCalls() []struct { }
ControllerCalls gets all the calls that were made to Controller. Check the length with:
len(mockedNamespacedBasicAuthInterface.ControllerCalls())
func (*NamespacedBasicAuthInterfaceMock) Create ¶
func (mock *NamespacedBasicAuthInterfaceMock) Create(in1 *v3.NamespacedBasicAuth) (*v3.NamespacedBasicAuth, error)
Create calls CreateFunc.
func (*NamespacedBasicAuthInterfaceMock) CreateCalls ¶
func (mock *NamespacedBasicAuthInterfaceMock) CreateCalls() []struct { In1 *v3.NamespacedBasicAuth }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedNamespacedBasicAuthInterface.CreateCalls())
func (*NamespacedBasicAuthInterfaceMock) Delete ¶
func (mock *NamespacedBasicAuthInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
Delete calls DeleteFunc.
func (*NamespacedBasicAuthInterfaceMock) DeleteCalls ¶
func (mock *NamespacedBasicAuthInterfaceMock) DeleteCalls() []struct { Name string Options *v1.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedNamespacedBasicAuthInterface.DeleteCalls())
func (*NamespacedBasicAuthInterfaceMock) DeleteCollection ¶
func (mock *NamespacedBasicAuthInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection calls DeleteCollectionFunc.
func (*NamespacedBasicAuthInterfaceMock) DeleteCollectionCalls ¶
func (mock *NamespacedBasicAuthInterfaceMock) DeleteCollectionCalls() []struct { DeleteOpts *v1.DeleteOptions ListOpts v1.ListOptions }
DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:
len(mockedNamespacedBasicAuthInterface.DeleteCollectionCalls())
func (*NamespacedBasicAuthInterfaceMock) DeleteNamespaced ¶
func (mock *NamespacedBasicAuthInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
DeleteNamespaced calls DeleteNamespacedFunc.
func (*NamespacedBasicAuthInterfaceMock) DeleteNamespacedCalls ¶
func (mock *NamespacedBasicAuthInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string Options *v1.DeleteOptions }
DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:
len(mockedNamespacedBasicAuthInterface.DeleteNamespacedCalls())
func (*NamespacedBasicAuthInterfaceMock) Get ¶
func (mock *NamespacedBasicAuthInterfaceMock) Get(name string, opts v1.GetOptions) (*v3.NamespacedBasicAuth, error)
Get calls GetFunc.
func (*NamespacedBasicAuthInterfaceMock) GetCalls ¶
func (mock *NamespacedBasicAuthInterfaceMock) GetCalls() []struct { Name string Opts v1.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedNamespacedBasicAuthInterface.GetCalls())
func (*NamespacedBasicAuthInterfaceMock) GetNamespaced ¶
func (mock *NamespacedBasicAuthInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v3.NamespacedBasicAuth, error)
GetNamespaced calls GetNamespacedFunc.
func (*NamespacedBasicAuthInterfaceMock) GetNamespacedCalls ¶
func (mock *NamespacedBasicAuthInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string Opts v1.GetOptions }
GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:
len(mockedNamespacedBasicAuthInterface.GetNamespacedCalls())
func (*NamespacedBasicAuthInterfaceMock) List ¶
func (mock *NamespacedBasicAuthInterfaceMock) List(opts v1.ListOptions) (*v3.NamespacedBasicAuthList, error)
List calls ListFunc.
func (*NamespacedBasicAuthInterfaceMock) ListCalls ¶
func (mock *NamespacedBasicAuthInterfaceMock) ListCalls() []struct { Opts v1.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedNamespacedBasicAuthInterface.ListCalls())
func (*NamespacedBasicAuthInterfaceMock) ObjectClient ¶
func (mock *NamespacedBasicAuthInterfaceMock) ObjectClient() *objectclient.ObjectClient
ObjectClient calls ObjectClientFunc.
func (*NamespacedBasicAuthInterfaceMock) ObjectClientCalls ¶
func (mock *NamespacedBasicAuthInterfaceMock) ObjectClientCalls() []struct { }
ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:
len(mockedNamespacedBasicAuthInterface.ObjectClientCalls())
func (*NamespacedBasicAuthInterfaceMock) Update ¶
func (mock *NamespacedBasicAuthInterfaceMock) Update(in1 *v3.NamespacedBasicAuth) (*v3.NamespacedBasicAuth, error)
Update calls UpdateFunc.
func (*NamespacedBasicAuthInterfaceMock) UpdateCalls ¶
func (mock *NamespacedBasicAuthInterfaceMock) UpdateCalls() []struct { In1 *v3.NamespacedBasicAuth }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedNamespacedBasicAuthInterface.UpdateCalls())
func (*NamespacedBasicAuthInterfaceMock) Watch ¶
func (mock *NamespacedBasicAuthInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*NamespacedBasicAuthInterfaceMock) WatchCalls ¶
func (mock *NamespacedBasicAuthInterfaceMock) WatchCalls() []struct { Opts v1.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedNamespacedBasicAuthInterface.WatchCalls())
type NamespacedBasicAuthListerMock ¶
type NamespacedBasicAuthListerMock struct { // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v3.NamespacedBasicAuth, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v3.NamespacedBasicAuth, error) // contains filtered or unexported fields }
NamespacedBasicAuthListerMock is a mock implementation of NamespacedBasicAuthLister.
func TestSomethingThatUsesNamespacedBasicAuthLister(t *testing.T) { // make and configure a mocked NamespacedBasicAuthLister mockedNamespacedBasicAuthLister := &NamespacedBasicAuthListerMock{ GetFunc: func(namespace string, name string) (*v3.NamespacedBasicAuth, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v3.NamespacedBasicAuth, error) { panic("mock out the List method") }, } // use mockedNamespacedBasicAuthLister in code that requires NamespacedBasicAuthLister // and then make assertions. }
func (*NamespacedBasicAuthListerMock) Get ¶
func (mock *NamespacedBasicAuthListerMock) Get(namespace string, name string) (*v3.NamespacedBasicAuth, error)
Get calls GetFunc.
func (*NamespacedBasicAuthListerMock) GetCalls ¶
func (mock *NamespacedBasicAuthListerMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedNamespacedBasicAuthLister.GetCalls())
func (*NamespacedBasicAuthListerMock) List ¶
func (mock *NamespacedBasicAuthListerMock) List(namespace string, selector labels.Selector) ([]*v3.NamespacedBasicAuth, error)
List calls ListFunc.
type NamespacedBasicAuthsGetterMock ¶
type NamespacedBasicAuthsGetterMock struct { // NamespacedBasicAuthsFunc mocks the NamespacedBasicAuths method. NamespacedBasicAuthsFunc func(namespace string) v3.NamespacedBasicAuthInterface // contains filtered or unexported fields }
NamespacedBasicAuthsGetterMock is a mock implementation of NamespacedBasicAuthsGetter.
func TestSomethingThatUsesNamespacedBasicAuthsGetter(t *testing.T) { // make and configure a mocked NamespacedBasicAuthsGetter mockedNamespacedBasicAuthsGetter := &NamespacedBasicAuthsGetterMock{ NamespacedBasicAuthsFunc: func(namespace string) v3.NamespacedBasicAuthInterface { panic("mock out the NamespacedBasicAuths method") }, } // use mockedNamespacedBasicAuthsGetter in code that requires NamespacedBasicAuthsGetter // and then make assertions. }
func (*NamespacedBasicAuthsGetterMock) NamespacedBasicAuths ¶
func (mock *NamespacedBasicAuthsGetterMock) NamespacedBasicAuths(namespace string) v3.NamespacedBasicAuthInterface
NamespacedBasicAuths calls NamespacedBasicAuthsFunc.
func (*NamespacedBasicAuthsGetterMock) NamespacedBasicAuthsCalls ¶
func (mock *NamespacedBasicAuthsGetterMock) NamespacedBasicAuthsCalls() []struct { Namespace string }
NamespacedBasicAuthsCalls gets all the calls that were made to NamespacedBasicAuths. Check the length with:
len(mockedNamespacedBasicAuthsGetter.NamespacedBasicAuthsCalls())
type NamespacedCertificateControllerMock ¶
type NamespacedCertificateControllerMock struct { // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v3.NamespacedCertificateHandlerFunc) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, handler v3.NamespacedCertificateHandlerFunc) // EnqueueFunc mocks the Enqueue method. EnqueueFunc func(namespace string, name string) // GenericFunc mocks the Generic method. GenericFunc func() controller.GenericController // InformerFunc mocks the Informer method. InformerFunc func() cache.SharedIndexInformer // ListerFunc mocks the Lister method. ListerFunc func() v3.NamespacedCertificateLister // StartFunc mocks the Start method. StartFunc func(ctx context.Context, threadiness int) error // SyncFunc mocks the Sync method. SyncFunc func(ctx context.Context) error // contains filtered or unexported fields }
NamespacedCertificateControllerMock is a mock implementation of NamespacedCertificateController.
func TestSomethingThatUsesNamespacedCertificateController(t *testing.T) { // make and configure a mocked NamespacedCertificateController mockedNamespacedCertificateController := &NamespacedCertificateControllerMock{ AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v3.NamespacedCertificateHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddHandlerFunc: func(ctx context.Context, name string, handler v3.NamespacedCertificateHandlerFunc) { panic("mock out the AddHandler method") }, EnqueueFunc: func(namespace string, name string) { panic("mock out the Enqueue method") }, GenericFunc: func() controller.GenericController { panic("mock out the Generic method") }, InformerFunc: func() cache.SharedIndexInformer { panic("mock out the Informer method") }, ListerFunc: func() v3.NamespacedCertificateLister { panic("mock out the Lister method") }, StartFunc: func(ctx context.Context, threadiness int) error { panic("mock out the Start method") }, SyncFunc: func(ctx context.Context) error { panic("mock out the Sync method") }, } // use mockedNamespacedCertificateController in code that requires NamespacedCertificateController // and then make assertions. }
func (*NamespacedCertificateControllerMock) AddClusterScopedHandler ¶
func (mock *NamespacedCertificateControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v3.NamespacedCertificateHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*NamespacedCertificateControllerMock) AddClusterScopedHandlerCalls ¶
func (mock *NamespacedCertificateControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Handler v3.NamespacedCertificateHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedNamespacedCertificateController.AddClusterScopedHandlerCalls())
func (*NamespacedCertificateControllerMock) AddHandler ¶
func (mock *NamespacedCertificateControllerMock) AddHandler(ctx context.Context, name string, handler v3.NamespacedCertificateHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*NamespacedCertificateControllerMock) AddHandlerCalls ¶
func (mock *NamespacedCertificateControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string Handler v3.NamespacedCertificateHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedNamespacedCertificateController.AddHandlerCalls())
func (*NamespacedCertificateControllerMock) Enqueue ¶
func (mock *NamespacedCertificateControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*NamespacedCertificateControllerMock) EnqueueCalls ¶
func (mock *NamespacedCertificateControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedNamespacedCertificateController.EnqueueCalls())
func (*NamespacedCertificateControllerMock) Generic ¶
func (mock *NamespacedCertificateControllerMock) Generic() controller.GenericController
Generic calls GenericFunc.
func (*NamespacedCertificateControllerMock) GenericCalls ¶
func (mock *NamespacedCertificateControllerMock) GenericCalls() []struct { }
GenericCalls gets all the calls that were made to Generic. Check the length with:
len(mockedNamespacedCertificateController.GenericCalls())
func (*NamespacedCertificateControllerMock) Informer ¶
func (mock *NamespacedCertificateControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*NamespacedCertificateControllerMock) InformerCalls ¶
func (mock *NamespacedCertificateControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedNamespacedCertificateController.InformerCalls())
func (*NamespacedCertificateControllerMock) Lister ¶
func (mock *NamespacedCertificateControllerMock) Lister() v3.NamespacedCertificateLister
Lister calls ListerFunc.
func (*NamespacedCertificateControllerMock) ListerCalls ¶
func (mock *NamespacedCertificateControllerMock) ListerCalls() []struct { }
ListerCalls gets all the calls that were made to Lister. Check the length with:
len(mockedNamespacedCertificateController.ListerCalls())
func (*NamespacedCertificateControllerMock) Start ¶
func (mock *NamespacedCertificateControllerMock) Start(ctx context.Context, threadiness int) error
Start calls StartFunc.
func (*NamespacedCertificateControllerMock) StartCalls ¶
func (mock *NamespacedCertificateControllerMock) StartCalls() []struct { Ctx context.Context Threadiness int }
StartCalls gets all the calls that were made to Start. Check the length with:
len(mockedNamespacedCertificateController.StartCalls())
func (*NamespacedCertificateControllerMock) Sync ¶
func (mock *NamespacedCertificateControllerMock) Sync(ctx context.Context) error
Sync calls SyncFunc.
func (*NamespacedCertificateControllerMock) SyncCalls ¶
func (mock *NamespacedCertificateControllerMock) SyncCalls() []struct { Ctx context.Context }
SyncCalls gets all the calls that were made to Sync. Check the length with:
len(mockedNamespacedCertificateController.SyncCalls())
type NamespacedCertificateInterfaceMock ¶
type NamespacedCertificateInterfaceMock struct { // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v3.NamespacedCertificateHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v3.NamespacedCertificateLifecycle) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, sync v3.NamespacedCertificateHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. AddLifecycleFunc func(ctx context.Context, name string, lifecycle v3.NamespacedCertificateLifecycle) // ControllerFunc mocks the Controller method. ControllerFunc func() v3.NamespacedCertificateController // CreateFunc mocks the Create method. CreateFunc func(in1 *v3.NamespacedCertificate) (*v3.NamespacedCertificate, error) // DeleteFunc mocks the Delete method. DeleteFunc func(name string, options *v1.DeleteOptions) error // DeleteCollectionFunc mocks the DeleteCollection method. DeleteCollectionFunc func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error // DeleteNamespacedFunc mocks the DeleteNamespaced method. DeleteNamespacedFunc func(namespace string, name string, options *v1.DeleteOptions) error // GetFunc mocks the Get method. GetFunc func(name string, opts v1.GetOptions) (*v3.NamespacedCertificate, error) // GetNamespacedFunc mocks the GetNamespaced method. GetNamespacedFunc func(namespace string, name string, opts v1.GetOptions) (*v3.NamespacedCertificate, error) // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.NamespacedCertificateList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v3.NamespacedCertificate) (*v3.NamespacedCertificate, error) // WatchFunc mocks the Watch method. WatchFunc func(opts v1.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
NamespacedCertificateInterfaceMock is a mock implementation of NamespacedCertificateInterface.
func TestSomethingThatUsesNamespacedCertificateInterface(t *testing.T) { // make and configure a mocked NamespacedCertificateInterface mockedNamespacedCertificateInterface := &NamespacedCertificateInterfaceMock{ AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v3.NamespacedCertificateHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v3.NamespacedCertificateLifecycle) { panic("mock out the AddClusterScopedLifecycle method") }, AddHandlerFunc: func(ctx context.Context, name string, sync v3.NamespacedCertificateHandlerFunc) { panic("mock out the AddHandler method") }, AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v3.NamespacedCertificateLifecycle) { panic("mock out the AddLifecycle method") }, ControllerFunc: func() v3.NamespacedCertificateController { panic("mock out the Controller method") }, CreateFunc: func(in1 *v3.NamespacedCertificate) (*v3.NamespacedCertificate, error) { panic("mock out the Create method") }, DeleteFunc: func(name string, options *v1.DeleteOptions) error { panic("mock out the Delete method") }, DeleteCollectionFunc: func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error { panic("mock out the DeleteCollection method") }, DeleteNamespacedFunc: func(namespace string, name string, options *v1.DeleteOptions) error { panic("mock out the DeleteNamespaced method") }, GetFunc: func(name string, opts v1.GetOptions) (*v3.NamespacedCertificate, error) { panic("mock out the Get method") }, GetNamespacedFunc: func(namespace string, name string, opts v1.GetOptions) (*v3.NamespacedCertificate, error) { panic("mock out the GetNamespaced method") }, ListFunc: func(opts v1.ListOptions) (*v3.NamespacedCertificateList, error) { panic("mock out the List method") }, ObjectClientFunc: func() *objectclient.ObjectClient { panic("mock out the ObjectClient method") }, UpdateFunc: func(in1 *v3.NamespacedCertificate) (*v3.NamespacedCertificate, error) { panic("mock out the Update method") }, WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedNamespacedCertificateInterface in code that requires NamespacedCertificateInterface // and then make assertions. }
func (*NamespacedCertificateInterfaceMock) AddClusterScopedHandler ¶
func (mock *NamespacedCertificateInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v3.NamespacedCertificateHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*NamespacedCertificateInterfaceMock) AddClusterScopedHandlerCalls ¶
func (mock *NamespacedCertificateInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Sync v3.NamespacedCertificateHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedNamespacedCertificateInterface.AddClusterScopedHandlerCalls())
func (*NamespacedCertificateInterfaceMock) AddClusterScopedLifecycle ¶
func (mock *NamespacedCertificateInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v3.NamespacedCertificateLifecycle)
AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.
func (*NamespacedCertificateInterfaceMock) AddClusterScopedLifecycleCalls ¶
func (mock *NamespacedCertificateInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string Lifecycle v3.NamespacedCertificateLifecycle }
AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:
len(mockedNamespacedCertificateInterface.AddClusterScopedLifecycleCalls())
func (*NamespacedCertificateInterfaceMock) AddHandler ¶
func (mock *NamespacedCertificateInterfaceMock) AddHandler(ctx context.Context, name string, sync v3.NamespacedCertificateHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*NamespacedCertificateInterfaceMock) AddHandlerCalls ¶
func (mock *NamespacedCertificateInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string Sync v3.NamespacedCertificateHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedNamespacedCertificateInterface.AddHandlerCalls())
func (*NamespacedCertificateInterfaceMock) AddLifecycle ¶
func (mock *NamespacedCertificateInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v3.NamespacedCertificateLifecycle)
AddLifecycle calls AddLifecycleFunc.
func (*NamespacedCertificateInterfaceMock) AddLifecycleCalls ¶
func (mock *NamespacedCertificateInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string Lifecycle v3.NamespacedCertificateLifecycle }
AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:
len(mockedNamespacedCertificateInterface.AddLifecycleCalls())
func (*NamespacedCertificateInterfaceMock) Controller ¶
func (mock *NamespacedCertificateInterfaceMock) Controller() v3.NamespacedCertificateController
Controller calls ControllerFunc.
func (*NamespacedCertificateInterfaceMock) ControllerCalls ¶
func (mock *NamespacedCertificateInterfaceMock) ControllerCalls() []struct { }
ControllerCalls gets all the calls that were made to Controller. Check the length with:
len(mockedNamespacedCertificateInterface.ControllerCalls())
func (*NamespacedCertificateInterfaceMock) Create ¶
func (mock *NamespacedCertificateInterfaceMock) Create(in1 *v3.NamespacedCertificate) (*v3.NamespacedCertificate, error)
Create calls CreateFunc.
func (*NamespacedCertificateInterfaceMock) CreateCalls ¶
func (mock *NamespacedCertificateInterfaceMock) CreateCalls() []struct { In1 *v3.NamespacedCertificate }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedNamespacedCertificateInterface.CreateCalls())
func (*NamespacedCertificateInterfaceMock) Delete ¶
func (mock *NamespacedCertificateInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
Delete calls DeleteFunc.
func (*NamespacedCertificateInterfaceMock) DeleteCalls ¶
func (mock *NamespacedCertificateInterfaceMock) DeleteCalls() []struct { Name string Options *v1.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedNamespacedCertificateInterface.DeleteCalls())
func (*NamespacedCertificateInterfaceMock) DeleteCollection ¶
func (mock *NamespacedCertificateInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection calls DeleteCollectionFunc.
func (*NamespacedCertificateInterfaceMock) DeleteCollectionCalls ¶
func (mock *NamespacedCertificateInterfaceMock) DeleteCollectionCalls() []struct { DeleteOpts *v1.DeleteOptions ListOpts v1.ListOptions }
DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:
len(mockedNamespacedCertificateInterface.DeleteCollectionCalls())
func (*NamespacedCertificateInterfaceMock) DeleteNamespaced ¶
func (mock *NamespacedCertificateInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
DeleteNamespaced calls DeleteNamespacedFunc.
func (*NamespacedCertificateInterfaceMock) DeleteNamespacedCalls ¶
func (mock *NamespacedCertificateInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string Options *v1.DeleteOptions }
DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:
len(mockedNamespacedCertificateInterface.DeleteNamespacedCalls())
func (*NamespacedCertificateInterfaceMock) Get ¶
func (mock *NamespacedCertificateInterfaceMock) Get(name string, opts v1.GetOptions) (*v3.NamespacedCertificate, error)
Get calls GetFunc.
func (*NamespacedCertificateInterfaceMock) GetCalls ¶
func (mock *NamespacedCertificateInterfaceMock) GetCalls() []struct { Name string Opts v1.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedNamespacedCertificateInterface.GetCalls())
func (*NamespacedCertificateInterfaceMock) GetNamespaced ¶
func (mock *NamespacedCertificateInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v3.NamespacedCertificate, error)
GetNamespaced calls GetNamespacedFunc.
func (*NamespacedCertificateInterfaceMock) GetNamespacedCalls ¶
func (mock *NamespacedCertificateInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string Opts v1.GetOptions }
GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:
len(mockedNamespacedCertificateInterface.GetNamespacedCalls())
func (*NamespacedCertificateInterfaceMock) List ¶
func (mock *NamespacedCertificateInterfaceMock) List(opts v1.ListOptions) (*v3.NamespacedCertificateList, error)
List calls ListFunc.
func (*NamespacedCertificateInterfaceMock) ListCalls ¶
func (mock *NamespacedCertificateInterfaceMock) ListCalls() []struct { Opts v1.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedNamespacedCertificateInterface.ListCalls())
func (*NamespacedCertificateInterfaceMock) ObjectClient ¶
func (mock *NamespacedCertificateInterfaceMock) ObjectClient() *objectclient.ObjectClient
ObjectClient calls ObjectClientFunc.
func (*NamespacedCertificateInterfaceMock) ObjectClientCalls ¶
func (mock *NamespacedCertificateInterfaceMock) ObjectClientCalls() []struct { }
ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:
len(mockedNamespacedCertificateInterface.ObjectClientCalls())
func (*NamespacedCertificateInterfaceMock) Update ¶
func (mock *NamespacedCertificateInterfaceMock) Update(in1 *v3.NamespacedCertificate) (*v3.NamespacedCertificate, error)
Update calls UpdateFunc.
func (*NamespacedCertificateInterfaceMock) UpdateCalls ¶
func (mock *NamespacedCertificateInterfaceMock) UpdateCalls() []struct { In1 *v3.NamespacedCertificate }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedNamespacedCertificateInterface.UpdateCalls())
func (*NamespacedCertificateInterfaceMock) Watch ¶
func (mock *NamespacedCertificateInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*NamespacedCertificateInterfaceMock) WatchCalls ¶
func (mock *NamespacedCertificateInterfaceMock) WatchCalls() []struct { Opts v1.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedNamespacedCertificateInterface.WatchCalls())
type NamespacedCertificateListerMock ¶
type NamespacedCertificateListerMock struct { // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v3.NamespacedCertificate, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v3.NamespacedCertificate, error) // contains filtered or unexported fields }
NamespacedCertificateListerMock is a mock implementation of NamespacedCertificateLister.
func TestSomethingThatUsesNamespacedCertificateLister(t *testing.T) { // make and configure a mocked NamespacedCertificateLister mockedNamespacedCertificateLister := &NamespacedCertificateListerMock{ GetFunc: func(namespace string, name string) (*v3.NamespacedCertificate, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v3.NamespacedCertificate, error) { panic("mock out the List method") }, } // use mockedNamespacedCertificateLister in code that requires NamespacedCertificateLister // and then make assertions. }
func (*NamespacedCertificateListerMock) Get ¶
func (mock *NamespacedCertificateListerMock) Get(namespace string, name string) (*v3.NamespacedCertificate, error)
Get calls GetFunc.
func (*NamespacedCertificateListerMock) GetCalls ¶
func (mock *NamespacedCertificateListerMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedNamespacedCertificateLister.GetCalls())
func (*NamespacedCertificateListerMock) List ¶
func (mock *NamespacedCertificateListerMock) List(namespace string, selector labels.Selector) ([]*v3.NamespacedCertificate, error)
List calls ListFunc.
type NamespacedCertificatesGetterMock ¶
type NamespacedCertificatesGetterMock struct { // NamespacedCertificatesFunc mocks the NamespacedCertificates method. NamespacedCertificatesFunc func(namespace string) v3.NamespacedCertificateInterface // contains filtered or unexported fields }
NamespacedCertificatesGetterMock is a mock implementation of NamespacedCertificatesGetter.
func TestSomethingThatUsesNamespacedCertificatesGetter(t *testing.T) { // make and configure a mocked NamespacedCertificatesGetter mockedNamespacedCertificatesGetter := &NamespacedCertificatesGetterMock{ NamespacedCertificatesFunc: func(namespace string) v3.NamespacedCertificateInterface { panic("mock out the NamespacedCertificates method") }, } // use mockedNamespacedCertificatesGetter in code that requires NamespacedCertificatesGetter // and then make assertions. }
func (*NamespacedCertificatesGetterMock) NamespacedCertificates ¶
func (mock *NamespacedCertificatesGetterMock) NamespacedCertificates(namespace string) v3.NamespacedCertificateInterface
NamespacedCertificates calls NamespacedCertificatesFunc.
func (*NamespacedCertificatesGetterMock) NamespacedCertificatesCalls ¶
func (mock *NamespacedCertificatesGetterMock) NamespacedCertificatesCalls() []struct { Namespace string }
NamespacedCertificatesCalls gets all the calls that were made to NamespacedCertificates. Check the length with:
len(mockedNamespacedCertificatesGetter.NamespacedCertificatesCalls())
type NamespacedDockerCredentialControllerMock ¶
type NamespacedDockerCredentialControllerMock struct { // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v3.NamespacedDockerCredentialHandlerFunc) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, handler v3.NamespacedDockerCredentialHandlerFunc) // EnqueueFunc mocks the Enqueue method. EnqueueFunc func(namespace string, name string) // GenericFunc mocks the Generic method. GenericFunc func() controller.GenericController // InformerFunc mocks the Informer method. InformerFunc func() cache.SharedIndexInformer // ListerFunc mocks the Lister method. ListerFunc func() v3.NamespacedDockerCredentialLister // StartFunc mocks the Start method. StartFunc func(ctx context.Context, threadiness int) error // SyncFunc mocks the Sync method. SyncFunc func(ctx context.Context) error // contains filtered or unexported fields }
NamespacedDockerCredentialControllerMock is a mock implementation of NamespacedDockerCredentialController.
func TestSomethingThatUsesNamespacedDockerCredentialController(t *testing.T) { // make and configure a mocked NamespacedDockerCredentialController mockedNamespacedDockerCredentialController := &NamespacedDockerCredentialControllerMock{ AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v3.NamespacedDockerCredentialHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddHandlerFunc: func(ctx context.Context, name string, handler v3.NamespacedDockerCredentialHandlerFunc) { panic("mock out the AddHandler method") }, EnqueueFunc: func(namespace string, name string) { panic("mock out the Enqueue method") }, GenericFunc: func() controller.GenericController { panic("mock out the Generic method") }, InformerFunc: func() cache.SharedIndexInformer { panic("mock out the Informer method") }, ListerFunc: func() v3.NamespacedDockerCredentialLister { panic("mock out the Lister method") }, StartFunc: func(ctx context.Context, threadiness int) error { panic("mock out the Start method") }, SyncFunc: func(ctx context.Context) error { panic("mock out the Sync method") }, } // use mockedNamespacedDockerCredentialController in code that requires NamespacedDockerCredentialController // and then make assertions. }
func (*NamespacedDockerCredentialControllerMock) AddClusterScopedHandler ¶
func (mock *NamespacedDockerCredentialControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v3.NamespacedDockerCredentialHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*NamespacedDockerCredentialControllerMock) AddClusterScopedHandlerCalls ¶
func (mock *NamespacedDockerCredentialControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Handler v3.NamespacedDockerCredentialHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedNamespacedDockerCredentialController.AddClusterScopedHandlerCalls())
func (*NamespacedDockerCredentialControllerMock) AddHandler ¶
func (mock *NamespacedDockerCredentialControllerMock) AddHandler(ctx context.Context, name string, handler v3.NamespacedDockerCredentialHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*NamespacedDockerCredentialControllerMock) AddHandlerCalls ¶
func (mock *NamespacedDockerCredentialControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string Handler v3.NamespacedDockerCredentialHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedNamespacedDockerCredentialController.AddHandlerCalls())
func (*NamespacedDockerCredentialControllerMock) Enqueue ¶
func (mock *NamespacedDockerCredentialControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*NamespacedDockerCredentialControllerMock) EnqueueCalls ¶
func (mock *NamespacedDockerCredentialControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedNamespacedDockerCredentialController.EnqueueCalls())
func (*NamespacedDockerCredentialControllerMock) Generic ¶
func (mock *NamespacedDockerCredentialControllerMock) Generic() controller.GenericController
Generic calls GenericFunc.
func (*NamespacedDockerCredentialControllerMock) GenericCalls ¶
func (mock *NamespacedDockerCredentialControllerMock) GenericCalls() []struct { }
GenericCalls gets all the calls that were made to Generic. Check the length with:
len(mockedNamespacedDockerCredentialController.GenericCalls())
func (*NamespacedDockerCredentialControllerMock) Informer ¶
func (mock *NamespacedDockerCredentialControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*NamespacedDockerCredentialControllerMock) InformerCalls ¶
func (mock *NamespacedDockerCredentialControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedNamespacedDockerCredentialController.InformerCalls())
func (*NamespacedDockerCredentialControllerMock) Lister ¶
func (mock *NamespacedDockerCredentialControllerMock) Lister() v3.NamespacedDockerCredentialLister
Lister calls ListerFunc.
func (*NamespacedDockerCredentialControllerMock) ListerCalls ¶
func (mock *NamespacedDockerCredentialControllerMock) ListerCalls() []struct { }
ListerCalls gets all the calls that were made to Lister. Check the length with:
len(mockedNamespacedDockerCredentialController.ListerCalls())
func (*NamespacedDockerCredentialControllerMock) Start ¶
func (mock *NamespacedDockerCredentialControllerMock) Start(ctx context.Context, threadiness int) error
Start calls StartFunc.
func (*NamespacedDockerCredentialControllerMock) StartCalls ¶
func (mock *NamespacedDockerCredentialControllerMock) StartCalls() []struct { Ctx context.Context Threadiness int }
StartCalls gets all the calls that were made to Start. Check the length with:
len(mockedNamespacedDockerCredentialController.StartCalls())
func (*NamespacedDockerCredentialControllerMock) Sync ¶
func (mock *NamespacedDockerCredentialControllerMock) Sync(ctx context.Context) error
Sync calls SyncFunc.
func (*NamespacedDockerCredentialControllerMock) SyncCalls ¶
func (mock *NamespacedDockerCredentialControllerMock) SyncCalls() []struct { Ctx context.Context }
SyncCalls gets all the calls that were made to Sync. Check the length with:
len(mockedNamespacedDockerCredentialController.SyncCalls())
type NamespacedDockerCredentialInterfaceMock ¶
type NamespacedDockerCredentialInterfaceMock struct { // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v3.NamespacedDockerCredentialHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v3.NamespacedDockerCredentialLifecycle) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, sync v3.NamespacedDockerCredentialHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. AddLifecycleFunc func(ctx context.Context, name string, lifecycle v3.NamespacedDockerCredentialLifecycle) // ControllerFunc mocks the Controller method. ControllerFunc func() v3.NamespacedDockerCredentialController // CreateFunc mocks the Create method. CreateFunc func(in1 *v3.NamespacedDockerCredential) (*v3.NamespacedDockerCredential, error) // DeleteFunc mocks the Delete method. DeleteFunc func(name string, options *v1.DeleteOptions) error // DeleteCollectionFunc mocks the DeleteCollection method. DeleteCollectionFunc func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error // DeleteNamespacedFunc mocks the DeleteNamespaced method. DeleteNamespacedFunc func(namespace string, name string, options *v1.DeleteOptions) error // GetFunc mocks the Get method. GetFunc func(name string, opts v1.GetOptions) (*v3.NamespacedDockerCredential, error) // GetNamespacedFunc mocks the GetNamespaced method. GetNamespacedFunc func(namespace string, name string, opts v1.GetOptions) (*v3.NamespacedDockerCredential, error) // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.NamespacedDockerCredentialList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v3.NamespacedDockerCredential) (*v3.NamespacedDockerCredential, error) // WatchFunc mocks the Watch method. WatchFunc func(opts v1.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
NamespacedDockerCredentialInterfaceMock is a mock implementation of NamespacedDockerCredentialInterface.
func TestSomethingThatUsesNamespacedDockerCredentialInterface(t *testing.T) { // make and configure a mocked NamespacedDockerCredentialInterface mockedNamespacedDockerCredentialInterface := &NamespacedDockerCredentialInterfaceMock{ AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v3.NamespacedDockerCredentialHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v3.NamespacedDockerCredentialLifecycle) { panic("mock out the AddClusterScopedLifecycle method") }, AddHandlerFunc: func(ctx context.Context, name string, sync v3.NamespacedDockerCredentialHandlerFunc) { panic("mock out the AddHandler method") }, AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v3.NamespacedDockerCredentialLifecycle) { panic("mock out the AddLifecycle method") }, ControllerFunc: func() v3.NamespacedDockerCredentialController { panic("mock out the Controller method") }, CreateFunc: func(in1 *v3.NamespacedDockerCredential) (*v3.NamespacedDockerCredential, error) { panic("mock out the Create method") }, DeleteFunc: func(name string, options *v1.DeleteOptions) error { panic("mock out the Delete method") }, DeleteCollectionFunc: func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error { panic("mock out the DeleteCollection method") }, DeleteNamespacedFunc: func(namespace string, name string, options *v1.DeleteOptions) error { panic("mock out the DeleteNamespaced method") }, GetFunc: func(name string, opts v1.GetOptions) (*v3.NamespacedDockerCredential, error) { panic("mock out the Get method") }, GetNamespacedFunc: func(namespace string, name string, opts v1.GetOptions) (*v3.NamespacedDockerCredential, error) { panic("mock out the GetNamespaced method") }, ListFunc: func(opts v1.ListOptions) (*v3.NamespacedDockerCredentialList, error) { panic("mock out the List method") }, ObjectClientFunc: func() *objectclient.ObjectClient { panic("mock out the ObjectClient method") }, UpdateFunc: func(in1 *v3.NamespacedDockerCredential) (*v3.NamespacedDockerCredential, error) { panic("mock out the Update method") }, WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedNamespacedDockerCredentialInterface in code that requires NamespacedDockerCredentialInterface // and then make assertions. }
func (*NamespacedDockerCredentialInterfaceMock) AddClusterScopedHandler ¶
func (mock *NamespacedDockerCredentialInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v3.NamespacedDockerCredentialHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*NamespacedDockerCredentialInterfaceMock) AddClusterScopedHandlerCalls ¶
func (mock *NamespacedDockerCredentialInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Sync v3.NamespacedDockerCredentialHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedNamespacedDockerCredentialInterface.AddClusterScopedHandlerCalls())
func (*NamespacedDockerCredentialInterfaceMock) AddClusterScopedLifecycle ¶
func (mock *NamespacedDockerCredentialInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v3.NamespacedDockerCredentialLifecycle)
AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.
func (*NamespacedDockerCredentialInterfaceMock) AddClusterScopedLifecycleCalls ¶
func (mock *NamespacedDockerCredentialInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string Lifecycle v3.NamespacedDockerCredentialLifecycle }
AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:
len(mockedNamespacedDockerCredentialInterface.AddClusterScopedLifecycleCalls())
func (*NamespacedDockerCredentialInterfaceMock) AddHandler ¶
func (mock *NamespacedDockerCredentialInterfaceMock) AddHandler(ctx context.Context, name string, sync v3.NamespacedDockerCredentialHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*NamespacedDockerCredentialInterfaceMock) AddHandlerCalls ¶
func (mock *NamespacedDockerCredentialInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string Sync v3.NamespacedDockerCredentialHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedNamespacedDockerCredentialInterface.AddHandlerCalls())
func (*NamespacedDockerCredentialInterfaceMock) AddLifecycle ¶
func (mock *NamespacedDockerCredentialInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v3.NamespacedDockerCredentialLifecycle)
AddLifecycle calls AddLifecycleFunc.
func (*NamespacedDockerCredentialInterfaceMock) AddLifecycleCalls ¶
func (mock *NamespacedDockerCredentialInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string Lifecycle v3.NamespacedDockerCredentialLifecycle }
AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:
len(mockedNamespacedDockerCredentialInterface.AddLifecycleCalls())
func (*NamespacedDockerCredentialInterfaceMock) Controller ¶
func (mock *NamespacedDockerCredentialInterfaceMock) Controller() v3.NamespacedDockerCredentialController
Controller calls ControllerFunc.
func (*NamespacedDockerCredentialInterfaceMock) ControllerCalls ¶
func (mock *NamespacedDockerCredentialInterfaceMock) ControllerCalls() []struct { }
ControllerCalls gets all the calls that were made to Controller. Check the length with:
len(mockedNamespacedDockerCredentialInterface.ControllerCalls())
func (*NamespacedDockerCredentialInterfaceMock) Create ¶
func (mock *NamespacedDockerCredentialInterfaceMock) Create(in1 *v3.NamespacedDockerCredential) (*v3.NamespacedDockerCredential, error)
Create calls CreateFunc.
func (*NamespacedDockerCredentialInterfaceMock) CreateCalls ¶
func (mock *NamespacedDockerCredentialInterfaceMock) CreateCalls() []struct { In1 *v3.NamespacedDockerCredential }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedNamespacedDockerCredentialInterface.CreateCalls())
func (*NamespacedDockerCredentialInterfaceMock) Delete ¶
func (mock *NamespacedDockerCredentialInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
Delete calls DeleteFunc.
func (*NamespacedDockerCredentialInterfaceMock) DeleteCalls ¶
func (mock *NamespacedDockerCredentialInterfaceMock) DeleteCalls() []struct { Name string Options *v1.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedNamespacedDockerCredentialInterface.DeleteCalls())
func (*NamespacedDockerCredentialInterfaceMock) DeleteCollection ¶
func (mock *NamespacedDockerCredentialInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection calls DeleteCollectionFunc.
func (*NamespacedDockerCredentialInterfaceMock) DeleteCollectionCalls ¶
func (mock *NamespacedDockerCredentialInterfaceMock) DeleteCollectionCalls() []struct { DeleteOpts *v1.DeleteOptions ListOpts v1.ListOptions }
DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:
len(mockedNamespacedDockerCredentialInterface.DeleteCollectionCalls())
func (*NamespacedDockerCredentialInterfaceMock) DeleteNamespaced ¶
func (mock *NamespacedDockerCredentialInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
DeleteNamespaced calls DeleteNamespacedFunc.
func (*NamespacedDockerCredentialInterfaceMock) DeleteNamespacedCalls ¶
func (mock *NamespacedDockerCredentialInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string Options *v1.DeleteOptions }
DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:
len(mockedNamespacedDockerCredentialInterface.DeleteNamespacedCalls())
func (*NamespacedDockerCredentialInterfaceMock) Get ¶
func (mock *NamespacedDockerCredentialInterfaceMock) Get(name string, opts v1.GetOptions) (*v3.NamespacedDockerCredential, error)
Get calls GetFunc.
func (*NamespacedDockerCredentialInterfaceMock) GetCalls ¶
func (mock *NamespacedDockerCredentialInterfaceMock) GetCalls() []struct { Name string Opts v1.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedNamespacedDockerCredentialInterface.GetCalls())
func (*NamespacedDockerCredentialInterfaceMock) GetNamespaced ¶
func (mock *NamespacedDockerCredentialInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v3.NamespacedDockerCredential, error)
GetNamespaced calls GetNamespacedFunc.
func (*NamespacedDockerCredentialInterfaceMock) GetNamespacedCalls ¶
func (mock *NamespacedDockerCredentialInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string Opts v1.GetOptions }
GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:
len(mockedNamespacedDockerCredentialInterface.GetNamespacedCalls())
func (*NamespacedDockerCredentialInterfaceMock) List ¶
func (mock *NamespacedDockerCredentialInterfaceMock) List(opts v1.ListOptions) (*v3.NamespacedDockerCredentialList, error)
List calls ListFunc.
func (*NamespacedDockerCredentialInterfaceMock) ListCalls ¶
func (mock *NamespacedDockerCredentialInterfaceMock) ListCalls() []struct { Opts v1.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedNamespacedDockerCredentialInterface.ListCalls())
func (*NamespacedDockerCredentialInterfaceMock) ObjectClient ¶
func (mock *NamespacedDockerCredentialInterfaceMock) ObjectClient() *objectclient.ObjectClient
ObjectClient calls ObjectClientFunc.
func (*NamespacedDockerCredentialInterfaceMock) ObjectClientCalls ¶
func (mock *NamespacedDockerCredentialInterfaceMock) ObjectClientCalls() []struct { }
ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:
len(mockedNamespacedDockerCredentialInterface.ObjectClientCalls())
func (*NamespacedDockerCredentialInterfaceMock) Update ¶
func (mock *NamespacedDockerCredentialInterfaceMock) Update(in1 *v3.NamespacedDockerCredential) (*v3.NamespacedDockerCredential, error)
Update calls UpdateFunc.
func (*NamespacedDockerCredentialInterfaceMock) UpdateCalls ¶
func (mock *NamespacedDockerCredentialInterfaceMock) UpdateCalls() []struct { In1 *v3.NamespacedDockerCredential }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedNamespacedDockerCredentialInterface.UpdateCalls())
func (*NamespacedDockerCredentialInterfaceMock) Watch ¶
func (mock *NamespacedDockerCredentialInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*NamespacedDockerCredentialInterfaceMock) WatchCalls ¶
func (mock *NamespacedDockerCredentialInterfaceMock) WatchCalls() []struct { Opts v1.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedNamespacedDockerCredentialInterface.WatchCalls())
type NamespacedDockerCredentialListerMock ¶
type NamespacedDockerCredentialListerMock struct { // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v3.NamespacedDockerCredential, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v3.NamespacedDockerCredential, error) // contains filtered or unexported fields }
NamespacedDockerCredentialListerMock is a mock implementation of NamespacedDockerCredentialLister.
func TestSomethingThatUsesNamespacedDockerCredentialLister(t *testing.T) { // make and configure a mocked NamespacedDockerCredentialLister mockedNamespacedDockerCredentialLister := &NamespacedDockerCredentialListerMock{ GetFunc: func(namespace string, name string) (*v3.NamespacedDockerCredential, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v3.NamespacedDockerCredential, error) { panic("mock out the List method") }, } // use mockedNamespacedDockerCredentialLister in code that requires NamespacedDockerCredentialLister // and then make assertions. }
func (*NamespacedDockerCredentialListerMock) Get ¶
func (mock *NamespacedDockerCredentialListerMock) Get(namespace string, name string) (*v3.NamespacedDockerCredential, error)
Get calls GetFunc.
func (*NamespacedDockerCredentialListerMock) GetCalls ¶
func (mock *NamespacedDockerCredentialListerMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedNamespacedDockerCredentialLister.GetCalls())
func (*NamespacedDockerCredentialListerMock) List ¶
func (mock *NamespacedDockerCredentialListerMock) List(namespace string, selector labels.Selector) ([]*v3.NamespacedDockerCredential, error)
List calls ListFunc.
func (*NamespacedDockerCredentialListerMock) ListCalls ¶
func (mock *NamespacedDockerCredentialListerMock) ListCalls() []struct { Namespace string Selector labels.Selector }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedNamespacedDockerCredentialLister.ListCalls())
type NamespacedDockerCredentialsGetterMock ¶
type NamespacedDockerCredentialsGetterMock struct { // NamespacedDockerCredentialsFunc mocks the NamespacedDockerCredentials method. NamespacedDockerCredentialsFunc func(namespace string) v3.NamespacedDockerCredentialInterface // contains filtered or unexported fields }
NamespacedDockerCredentialsGetterMock is a mock implementation of NamespacedDockerCredentialsGetter.
func TestSomethingThatUsesNamespacedDockerCredentialsGetter(t *testing.T) { // make and configure a mocked NamespacedDockerCredentialsGetter mockedNamespacedDockerCredentialsGetter := &NamespacedDockerCredentialsGetterMock{ NamespacedDockerCredentialsFunc: func(namespace string) v3.NamespacedDockerCredentialInterface { panic("mock out the NamespacedDockerCredentials method") }, } // use mockedNamespacedDockerCredentialsGetter in code that requires NamespacedDockerCredentialsGetter // and then make assertions. }
func (*NamespacedDockerCredentialsGetterMock) NamespacedDockerCredentials ¶
func (mock *NamespacedDockerCredentialsGetterMock) NamespacedDockerCredentials(namespace string) v3.NamespacedDockerCredentialInterface
NamespacedDockerCredentials calls NamespacedDockerCredentialsFunc.
func (*NamespacedDockerCredentialsGetterMock) NamespacedDockerCredentialsCalls ¶
func (mock *NamespacedDockerCredentialsGetterMock) NamespacedDockerCredentialsCalls() []struct { Namespace string }
NamespacedDockerCredentialsCalls gets all the calls that were made to NamespacedDockerCredentials. Check the length with:
len(mockedNamespacedDockerCredentialsGetter.NamespacedDockerCredentialsCalls())
type NamespacedSSHAuthControllerMock ¶
type NamespacedSSHAuthControllerMock struct { // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v3.NamespacedSSHAuthHandlerFunc) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, handler v3.NamespacedSSHAuthHandlerFunc) // EnqueueFunc mocks the Enqueue method. EnqueueFunc func(namespace string, name string) // GenericFunc mocks the Generic method. GenericFunc func() controller.GenericController // InformerFunc mocks the Informer method. InformerFunc func() cache.SharedIndexInformer // ListerFunc mocks the Lister method. ListerFunc func() v3.NamespacedSSHAuthLister // StartFunc mocks the Start method. StartFunc func(ctx context.Context, threadiness int) error // SyncFunc mocks the Sync method. SyncFunc func(ctx context.Context) error // contains filtered or unexported fields }
NamespacedSSHAuthControllerMock is a mock implementation of NamespacedSSHAuthController.
func TestSomethingThatUsesNamespacedSSHAuthController(t *testing.T) { // make and configure a mocked NamespacedSSHAuthController mockedNamespacedSSHAuthController := &NamespacedSSHAuthControllerMock{ AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v3.NamespacedSSHAuthHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddHandlerFunc: func(ctx context.Context, name string, handler v3.NamespacedSSHAuthHandlerFunc) { panic("mock out the AddHandler method") }, EnqueueFunc: func(namespace string, name string) { panic("mock out the Enqueue method") }, GenericFunc: func() controller.GenericController { panic("mock out the Generic method") }, InformerFunc: func() cache.SharedIndexInformer { panic("mock out the Informer method") }, ListerFunc: func() v3.NamespacedSSHAuthLister { panic("mock out the Lister method") }, StartFunc: func(ctx context.Context, threadiness int) error { panic("mock out the Start method") }, SyncFunc: func(ctx context.Context) error { panic("mock out the Sync method") }, } // use mockedNamespacedSSHAuthController in code that requires NamespacedSSHAuthController // and then make assertions. }
func (*NamespacedSSHAuthControllerMock) AddClusterScopedHandler ¶
func (mock *NamespacedSSHAuthControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v3.NamespacedSSHAuthHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*NamespacedSSHAuthControllerMock) AddClusterScopedHandlerCalls ¶
func (mock *NamespacedSSHAuthControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Handler v3.NamespacedSSHAuthHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedNamespacedSSHAuthController.AddClusterScopedHandlerCalls())
func (*NamespacedSSHAuthControllerMock) AddHandler ¶
func (mock *NamespacedSSHAuthControllerMock) AddHandler(ctx context.Context, name string, handler v3.NamespacedSSHAuthHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*NamespacedSSHAuthControllerMock) AddHandlerCalls ¶
func (mock *NamespacedSSHAuthControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string Handler v3.NamespacedSSHAuthHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedNamespacedSSHAuthController.AddHandlerCalls())
func (*NamespacedSSHAuthControllerMock) Enqueue ¶
func (mock *NamespacedSSHAuthControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*NamespacedSSHAuthControllerMock) EnqueueCalls ¶
func (mock *NamespacedSSHAuthControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedNamespacedSSHAuthController.EnqueueCalls())
func (*NamespacedSSHAuthControllerMock) Generic ¶
func (mock *NamespacedSSHAuthControllerMock) Generic() controller.GenericController
Generic calls GenericFunc.
func (*NamespacedSSHAuthControllerMock) GenericCalls ¶
func (mock *NamespacedSSHAuthControllerMock) GenericCalls() []struct { }
GenericCalls gets all the calls that were made to Generic. Check the length with:
len(mockedNamespacedSSHAuthController.GenericCalls())
func (*NamespacedSSHAuthControllerMock) Informer ¶
func (mock *NamespacedSSHAuthControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*NamespacedSSHAuthControllerMock) InformerCalls ¶
func (mock *NamespacedSSHAuthControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedNamespacedSSHAuthController.InformerCalls())
func (*NamespacedSSHAuthControllerMock) Lister ¶
func (mock *NamespacedSSHAuthControllerMock) Lister() v3.NamespacedSSHAuthLister
Lister calls ListerFunc.
func (*NamespacedSSHAuthControllerMock) ListerCalls ¶
func (mock *NamespacedSSHAuthControllerMock) ListerCalls() []struct { }
ListerCalls gets all the calls that were made to Lister. Check the length with:
len(mockedNamespacedSSHAuthController.ListerCalls())
func (*NamespacedSSHAuthControllerMock) Start ¶
func (mock *NamespacedSSHAuthControllerMock) Start(ctx context.Context, threadiness int) error
Start calls StartFunc.
func (*NamespacedSSHAuthControllerMock) StartCalls ¶
func (mock *NamespacedSSHAuthControllerMock) StartCalls() []struct { Ctx context.Context Threadiness int }
StartCalls gets all the calls that were made to Start. Check the length with:
len(mockedNamespacedSSHAuthController.StartCalls())
func (*NamespacedSSHAuthControllerMock) Sync ¶
func (mock *NamespacedSSHAuthControllerMock) Sync(ctx context.Context) error
Sync calls SyncFunc.
func (*NamespacedSSHAuthControllerMock) SyncCalls ¶
func (mock *NamespacedSSHAuthControllerMock) SyncCalls() []struct { Ctx context.Context }
SyncCalls gets all the calls that were made to Sync. Check the length with:
len(mockedNamespacedSSHAuthController.SyncCalls())
type NamespacedSSHAuthInterfaceMock ¶
type NamespacedSSHAuthInterfaceMock struct { // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v3.NamespacedSSHAuthHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v3.NamespacedSSHAuthLifecycle) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, sync v3.NamespacedSSHAuthHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. AddLifecycleFunc func(ctx context.Context, name string, lifecycle v3.NamespacedSSHAuthLifecycle) // ControllerFunc mocks the Controller method. ControllerFunc func() v3.NamespacedSSHAuthController // CreateFunc mocks the Create method. CreateFunc func(in1 *v3.NamespacedSSHAuth) (*v3.NamespacedSSHAuth, error) // DeleteFunc mocks the Delete method. DeleteFunc func(name string, options *v1.DeleteOptions) error // DeleteCollectionFunc mocks the DeleteCollection method. DeleteCollectionFunc func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error // DeleteNamespacedFunc mocks the DeleteNamespaced method. DeleteNamespacedFunc func(namespace string, name string, options *v1.DeleteOptions) error // GetFunc mocks the Get method. GetFunc func(name string, opts v1.GetOptions) (*v3.NamespacedSSHAuth, error) // GetNamespacedFunc mocks the GetNamespaced method. GetNamespacedFunc func(namespace string, name string, opts v1.GetOptions) (*v3.NamespacedSSHAuth, error) // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.NamespacedSSHAuthList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v3.NamespacedSSHAuth) (*v3.NamespacedSSHAuth, error) // WatchFunc mocks the Watch method. WatchFunc func(opts v1.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
NamespacedSSHAuthInterfaceMock is a mock implementation of NamespacedSSHAuthInterface.
func TestSomethingThatUsesNamespacedSSHAuthInterface(t *testing.T) { // make and configure a mocked NamespacedSSHAuthInterface mockedNamespacedSSHAuthInterface := &NamespacedSSHAuthInterfaceMock{ AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v3.NamespacedSSHAuthHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v3.NamespacedSSHAuthLifecycle) { panic("mock out the AddClusterScopedLifecycle method") }, AddHandlerFunc: func(ctx context.Context, name string, sync v3.NamespacedSSHAuthHandlerFunc) { panic("mock out the AddHandler method") }, AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v3.NamespacedSSHAuthLifecycle) { panic("mock out the AddLifecycle method") }, ControllerFunc: func() v3.NamespacedSSHAuthController { panic("mock out the Controller method") }, CreateFunc: func(in1 *v3.NamespacedSSHAuth) (*v3.NamespacedSSHAuth, error) { panic("mock out the Create method") }, DeleteFunc: func(name string, options *v1.DeleteOptions) error { panic("mock out the Delete method") }, DeleteCollectionFunc: func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error { panic("mock out the DeleteCollection method") }, DeleteNamespacedFunc: func(namespace string, name string, options *v1.DeleteOptions) error { panic("mock out the DeleteNamespaced method") }, GetFunc: func(name string, opts v1.GetOptions) (*v3.NamespacedSSHAuth, error) { panic("mock out the Get method") }, GetNamespacedFunc: func(namespace string, name string, opts v1.GetOptions) (*v3.NamespacedSSHAuth, error) { panic("mock out the GetNamespaced method") }, ListFunc: func(opts v1.ListOptions) (*v3.NamespacedSSHAuthList, error) { panic("mock out the List method") }, ObjectClientFunc: func() *objectclient.ObjectClient { panic("mock out the ObjectClient method") }, UpdateFunc: func(in1 *v3.NamespacedSSHAuth) (*v3.NamespacedSSHAuth, error) { panic("mock out the Update method") }, WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedNamespacedSSHAuthInterface in code that requires NamespacedSSHAuthInterface // and then make assertions. }
func (*NamespacedSSHAuthInterfaceMock) AddClusterScopedHandler ¶
func (mock *NamespacedSSHAuthInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v3.NamespacedSSHAuthHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*NamespacedSSHAuthInterfaceMock) AddClusterScopedHandlerCalls ¶
func (mock *NamespacedSSHAuthInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Sync v3.NamespacedSSHAuthHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedNamespacedSSHAuthInterface.AddClusterScopedHandlerCalls())
func (*NamespacedSSHAuthInterfaceMock) AddClusterScopedLifecycle ¶
func (mock *NamespacedSSHAuthInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v3.NamespacedSSHAuthLifecycle)
AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.
func (*NamespacedSSHAuthInterfaceMock) AddClusterScopedLifecycleCalls ¶
func (mock *NamespacedSSHAuthInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string Lifecycle v3.NamespacedSSHAuthLifecycle }
AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:
len(mockedNamespacedSSHAuthInterface.AddClusterScopedLifecycleCalls())
func (*NamespacedSSHAuthInterfaceMock) AddHandler ¶
func (mock *NamespacedSSHAuthInterfaceMock) AddHandler(ctx context.Context, name string, sync v3.NamespacedSSHAuthHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*NamespacedSSHAuthInterfaceMock) AddHandlerCalls ¶
func (mock *NamespacedSSHAuthInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string Sync v3.NamespacedSSHAuthHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedNamespacedSSHAuthInterface.AddHandlerCalls())
func (*NamespacedSSHAuthInterfaceMock) AddLifecycle ¶
func (mock *NamespacedSSHAuthInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v3.NamespacedSSHAuthLifecycle)
AddLifecycle calls AddLifecycleFunc.
func (*NamespacedSSHAuthInterfaceMock) AddLifecycleCalls ¶
func (mock *NamespacedSSHAuthInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string Lifecycle v3.NamespacedSSHAuthLifecycle }
AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:
len(mockedNamespacedSSHAuthInterface.AddLifecycleCalls())
func (*NamespacedSSHAuthInterfaceMock) Controller ¶
func (mock *NamespacedSSHAuthInterfaceMock) Controller() v3.NamespacedSSHAuthController
Controller calls ControllerFunc.
func (*NamespacedSSHAuthInterfaceMock) ControllerCalls ¶
func (mock *NamespacedSSHAuthInterfaceMock) ControllerCalls() []struct { }
ControllerCalls gets all the calls that were made to Controller. Check the length with:
len(mockedNamespacedSSHAuthInterface.ControllerCalls())
func (*NamespacedSSHAuthInterfaceMock) Create ¶
func (mock *NamespacedSSHAuthInterfaceMock) Create(in1 *v3.NamespacedSSHAuth) (*v3.NamespacedSSHAuth, error)
Create calls CreateFunc.
func (*NamespacedSSHAuthInterfaceMock) CreateCalls ¶
func (mock *NamespacedSSHAuthInterfaceMock) CreateCalls() []struct { In1 *v3.NamespacedSSHAuth }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedNamespacedSSHAuthInterface.CreateCalls())
func (*NamespacedSSHAuthInterfaceMock) Delete ¶
func (mock *NamespacedSSHAuthInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
Delete calls DeleteFunc.
func (*NamespacedSSHAuthInterfaceMock) DeleteCalls ¶
func (mock *NamespacedSSHAuthInterfaceMock) DeleteCalls() []struct { Name string Options *v1.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedNamespacedSSHAuthInterface.DeleteCalls())
func (*NamespacedSSHAuthInterfaceMock) DeleteCollection ¶
func (mock *NamespacedSSHAuthInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection calls DeleteCollectionFunc.
func (*NamespacedSSHAuthInterfaceMock) DeleteCollectionCalls ¶
func (mock *NamespacedSSHAuthInterfaceMock) DeleteCollectionCalls() []struct { DeleteOpts *v1.DeleteOptions ListOpts v1.ListOptions }
DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:
len(mockedNamespacedSSHAuthInterface.DeleteCollectionCalls())
func (*NamespacedSSHAuthInterfaceMock) DeleteNamespaced ¶
func (mock *NamespacedSSHAuthInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
DeleteNamespaced calls DeleteNamespacedFunc.
func (*NamespacedSSHAuthInterfaceMock) DeleteNamespacedCalls ¶
func (mock *NamespacedSSHAuthInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string Options *v1.DeleteOptions }
DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:
len(mockedNamespacedSSHAuthInterface.DeleteNamespacedCalls())
func (*NamespacedSSHAuthInterfaceMock) Get ¶
func (mock *NamespacedSSHAuthInterfaceMock) Get(name string, opts v1.GetOptions) (*v3.NamespacedSSHAuth, error)
Get calls GetFunc.
func (*NamespacedSSHAuthInterfaceMock) GetCalls ¶
func (mock *NamespacedSSHAuthInterfaceMock) GetCalls() []struct { Name string Opts v1.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedNamespacedSSHAuthInterface.GetCalls())
func (*NamespacedSSHAuthInterfaceMock) GetNamespaced ¶
func (mock *NamespacedSSHAuthInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v3.NamespacedSSHAuth, error)
GetNamespaced calls GetNamespacedFunc.
func (*NamespacedSSHAuthInterfaceMock) GetNamespacedCalls ¶
func (mock *NamespacedSSHAuthInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string Opts v1.GetOptions }
GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:
len(mockedNamespacedSSHAuthInterface.GetNamespacedCalls())
func (*NamespacedSSHAuthInterfaceMock) List ¶
func (mock *NamespacedSSHAuthInterfaceMock) List(opts v1.ListOptions) (*v3.NamespacedSSHAuthList, error)
List calls ListFunc.
func (*NamespacedSSHAuthInterfaceMock) ListCalls ¶
func (mock *NamespacedSSHAuthInterfaceMock) ListCalls() []struct { Opts v1.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedNamespacedSSHAuthInterface.ListCalls())
func (*NamespacedSSHAuthInterfaceMock) ObjectClient ¶
func (mock *NamespacedSSHAuthInterfaceMock) ObjectClient() *objectclient.ObjectClient
ObjectClient calls ObjectClientFunc.
func (*NamespacedSSHAuthInterfaceMock) ObjectClientCalls ¶
func (mock *NamespacedSSHAuthInterfaceMock) ObjectClientCalls() []struct { }
ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:
len(mockedNamespacedSSHAuthInterface.ObjectClientCalls())
func (*NamespacedSSHAuthInterfaceMock) Update ¶
func (mock *NamespacedSSHAuthInterfaceMock) Update(in1 *v3.NamespacedSSHAuth) (*v3.NamespacedSSHAuth, error)
Update calls UpdateFunc.
func (*NamespacedSSHAuthInterfaceMock) UpdateCalls ¶
func (mock *NamespacedSSHAuthInterfaceMock) UpdateCalls() []struct { In1 *v3.NamespacedSSHAuth }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedNamespacedSSHAuthInterface.UpdateCalls())
func (*NamespacedSSHAuthInterfaceMock) Watch ¶
func (mock *NamespacedSSHAuthInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*NamespacedSSHAuthInterfaceMock) WatchCalls ¶
func (mock *NamespacedSSHAuthInterfaceMock) WatchCalls() []struct { Opts v1.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedNamespacedSSHAuthInterface.WatchCalls())
type NamespacedSSHAuthListerMock ¶
type NamespacedSSHAuthListerMock struct { // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v3.NamespacedSSHAuth, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v3.NamespacedSSHAuth, error) // contains filtered or unexported fields }
NamespacedSSHAuthListerMock is a mock implementation of NamespacedSSHAuthLister.
func TestSomethingThatUsesNamespacedSSHAuthLister(t *testing.T) { // make and configure a mocked NamespacedSSHAuthLister mockedNamespacedSSHAuthLister := &NamespacedSSHAuthListerMock{ GetFunc: func(namespace string, name string) (*v3.NamespacedSSHAuth, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v3.NamespacedSSHAuth, error) { panic("mock out the List method") }, } // use mockedNamespacedSSHAuthLister in code that requires NamespacedSSHAuthLister // and then make assertions. }
func (*NamespacedSSHAuthListerMock) Get ¶
func (mock *NamespacedSSHAuthListerMock) Get(namespace string, name string) (*v3.NamespacedSSHAuth, error)
Get calls GetFunc.
func (*NamespacedSSHAuthListerMock) GetCalls ¶
func (mock *NamespacedSSHAuthListerMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedNamespacedSSHAuthLister.GetCalls())
func (*NamespacedSSHAuthListerMock) List ¶
func (mock *NamespacedSSHAuthListerMock) List(namespace string, selector labels.Selector) ([]*v3.NamespacedSSHAuth, error)
List calls ListFunc.
type NamespacedSSHAuthsGetterMock ¶
type NamespacedSSHAuthsGetterMock struct { // NamespacedSSHAuthsFunc mocks the NamespacedSSHAuths method. NamespacedSSHAuthsFunc func(namespace string) v3.NamespacedSSHAuthInterface // contains filtered or unexported fields }
NamespacedSSHAuthsGetterMock is a mock implementation of NamespacedSSHAuthsGetter.
func TestSomethingThatUsesNamespacedSSHAuthsGetter(t *testing.T) { // make and configure a mocked NamespacedSSHAuthsGetter mockedNamespacedSSHAuthsGetter := &NamespacedSSHAuthsGetterMock{ NamespacedSSHAuthsFunc: func(namespace string) v3.NamespacedSSHAuthInterface { panic("mock out the NamespacedSSHAuths method") }, } // use mockedNamespacedSSHAuthsGetter in code that requires NamespacedSSHAuthsGetter // and then make assertions. }
func (*NamespacedSSHAuthsGetterMock) NamespacedSSHAuths ¶
func (mock *NamespacedSSHAuthsGetterMock) NamespacedSSHAuths(namespace string) v3.NamespacedSSHAuthInterface
NamespacedSSHAuths calls NamespacedSSHAuthsFunc.
func (*NamespacedSSHAuthsGetterMock) NamespacedSSHAuthsCalls ¶
func (mock *NamespacedSSHAuthsGetterMock) NamespacedSSHAuthsCalls() []struct { Namespace string }
NamespacedSSHAuthsCalls gets all the calls that were made to NamespacedSSHAuths. Check the length with:
len(mockedNamespacedSSHAuthsGetter.NamespacedSSHAuthsCalls())
type NamespacedServiceAccountTokenControllerMock ¶
type NamespacedServiceAccountTokenControllerMock struct { // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v3.NamespacedServiceAccountTokenHandlerFunc) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, handler v3.NamespacedServiceAccountTokenHandlerFunc) // EnqueueFunc mocks the Enqueue method. EnqueueFunc func(namespace string, name string) // GenericFunc mocks the Generic method. GenericFunc func() controller.GenericController // InformerFunc mocks the Informer method. InformerFunc func() cache.SharedIndexInformer // ListerFunc mocks the Lister method. ListerFunc func() v3.NamespacedServiceAccountTokenLister // StartFunc mocks the Start method. StartFunc func(ctx context.Context, threadiness int) error // SyncFunc mocks the Sync method. SyncFunc func(ctx context.Context) error // contains filtered or unexported fields }
NamespacedServiceAccountTokenControllerMock is a mock implementation of NamespacedServiceAccountTokenController.
func TestSomethingThatUsesNamespacedServiceAccountTokenController(t *testing.T) { // make and configure a mocked NamespacedServiceAccountTokenController mockedNamespacedServiceAccountTokenController := &NamespacedServiceAccountTokenControllerMock{ AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v3.NamespacedServiceAccountTokenHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddHandlerFunc: func(ctx context.Context, name string, handler v3.NamespacedServiceAccountTokenHandlerFunc) { panic("mock out the AddHandler method") }, EnqueueFunc: func(namespace string, name string) { panic("mock out the Enqueue method") }, GenericFunc: func() controller.GenericController { panic("mock out the Generic method") }, InformerFunc: func() cache.SharedIndexInformer { panic("mock out the Informer method") }, ListerFunc: func() v3.NamespacedServiceAccountTokenLister { panic("mock out the Lister method") }, StartFunc: func(ctx context.Context, threadiness int) error { panic("mock out the Start method") }, SyncFunc: func(ctx context.Context) error { panic("mock out the Sync method") }, } // use mockedNamespacedServiceAccountTokenController in code that requires NamespacedServiceAccountTokenController // and then make assertions. }
func (*NamespacedServiceAccountTokenControllerMock) AddClusterScopedHandler ¶
func (mock *NamespacedServiceAccountTokenControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v3.NamespacedServiceAccountTokenHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*NamespacedServiceAccountTokenControllerMock) AddClusterScopedHandlerCalls ¶
func (mock *NamespacedServiceAccountTokenControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Handler v3.NamespacedServiceAccountTokenHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedNamespacedServiceAccountTokenController.AddClusterScopedHandlerCalls())
func (*NamespacedServiceAccountTokenControllerMock) AddHandler ¶
func (mock *NamespacedServiceAccountTokenControllerMock) AddHandler(ctx context.Context, name string, handler v3.NamespacedServiceAccountTokenHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*NamespacedServiceAccountTokenControllerMock) AddHandlerCalls ¶
func (mock *NamespacedServiceAccountTokenControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string Handler v3.NamespacedServiceAccountTokenHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedNamespacedServiceAccountTokenController.AddHandlerCalls())
func (*NamespacedServiceAccountTokenControllerMock) Enqueue ¶
func (mock *NamespacedServiceAccountTokenControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*NamespacedServiceAccountTokenControllerMock) EnqueueCalls ¶
func (mock *NamespacedServiceAccountTokenControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedNamespacedServiceAccountTokenController.EnqueueCalls())
func (*NamespacedServiceAccountTokenControllerMock) Generic ¶
func (mock *NamespacedServiceAccountTokenControllerMock) Generic() controller.GenericController
Generic calls GenericFunc.
func (*NamespacedServiceAccountTokenControllerMock) GenericCalls ¶
func (mock *NamespacedServiceAccountTokenControllerMock) GenericCalls() []struct { }
GenericCalls gets all the calls that were made to Generic. Check the length with:
len(mockedNamespacedServiceAccountTokenController.GenericCalls())
func (*NamespacedServiceAccountTokenControllerMock) Informer ¶
func (mock *NamespacedServiceAccountTokenControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*NamespacedServiceAccountTokenControllerMock) InformerCalls ¶
func (mock *NamespacedServiceAccountTokenControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedNamespacedServiceAccountTokenController.InformerCalls())
func (*NamespacedServiceAccountTokenControllerMock) Lister ¶
func (mock *NamespacedServiceAccountTokenControllerMock) Lister() v3.NamespacedServiceAccountTokenLister
Lister calls ListerFunc.
func (*NamespacedServiceAccountTokenControllerMock) ListerCalls ¶
func (mock *NamespacedServiceAccountTokenControllerMock) ListerCalls() []struct { }
ListerCalls gets all the calls that were made to Lister. Check the length with:
len(mockedNamespacedServiceAccountTokenController.ListerCalls())
func (*NamespacedServiceAccountTokenControllerMock) Start ¶
func (mock *NamespacedServiceAccountTokenControllerMock) Start(ctx context.Context, threadiness int) error
Start calls StartFunc.
func (*NamespacedServiceAccountTokenControllerMock) StartCalls ¶
func (mock *NamespacedServiceAccountTokenControllerMock) StartCalls() []struct { Ctx context.Context Threadiness int }
StartCalls gets all the calls that were made to Start. Check the length with:
len(mockedNamespacedServiceAccountTokenController.StartCalls())
func (*NamespacedServiceAccountTokenControllerMock) Sync ¶
func (mock *NamespacedServiceAccountTokenControllerMock) Sync(ctx context.Context) error
Sync calls SyncFunc.
func (*NamespacedServiceAccountTokenControllerMock) SyncCalls ¶
func (mock *NamespacedServiceAccountTokenControllerMock) SyncCalls() []struct { Ctx context.Context }
SyncCalls gets all the calls that were made to Sync. Check the length with:
len(mockedNamespacedServiceAccountTokenController.SyncCalls())
type NamespacedServiceAccountTokenInterfaceMock ¶
type NamespacedServiceAccountTokenInterfaceMock struct { // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v3.NamespacedServiceAccountTokenHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v3.NamespacedServiceAccountTokenLifecycle) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, sync v3.NamespacedServiceAccountTokenHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. AddLifecycleFunc func(ctx context.Context, name string, lifecycle v3.NamespacedServiceAccountTokenLifecycle) // ControllerFunc mocks the Controller method. ControllerFunc func() v3.NamespacedServiceAccountTokenController // CreateFunc mocks the Create method. CreateFunc func(in1 *v3.NamespacedServiceAccountToken) (*v3.NamespacedServiceAccountToken, error) // DeleteFunc mocks the Delete method. DeleteFunc func(name string, options *v1.DeleteOptions) error // DeleteCollectionFunc mocks the DeleteCollection method. DeleteCollectionFunc func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error // DeleteNamespacedFunc mocks the DeleteNamespaced method. DeleteNamespacedFunc func(namespace string, name string, options *v1.DeleteOptions) error // GetFunc mocks the Get method. GetFunc func(name string, opts v1.GetOptions) (*v3.NamespacedServiceAccountToken, error) // GetNamespacedFunc mocks the GetNamespaced method. GetNamespacedFunc func(namespace string, name string, opts v1.GetOptions) (*v3.NamespacedServiceAccountToken, error) // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.NamespacedServiceAccountTokenList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v3.NamespacedServiceAccountToken) (*v3.NamespacedServiceAccountToken, error) // WatchFunc mocks the Watch method. WatchFunc func(opts v1.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
NamespacedServiceAccountTokenInterfaceMock is a mock implementation of NamespacedServiceAccountTokenInterface.
func TestSomethingThatUsesNamespacedServiceAccountTokenInterface(t *testing.T) { // make and configure a mocked NamespacedServiceAccountTokenInterface mockedNamespacedServiceAccountTokenInterface := &NamespacedServiceAccountTokenInterfaceMock{ AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v3.NamespacedServiceAccountTokenHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v3.NamespacedServiceAccountTokenLifecycle) { panic("mock out the AddClusterScopedLifecycle method") }, AddHandlerFunc: func(ctx context.Context, name string, sync v3.NamespacedServiceAccountTokenHandlerFunc) { panic("mock out the AddHandler method") }, AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v3.NamespacedServiceAccountTokenLifecycle) { panic("mock out the AddLifecycle method") }, ControllerFunc: func() v3.NamespacedServiceAccountTokenController { panic("mock out the Controller method") }, CreateFunc: func(in1 *v3.NamespacedServiceAccountToken) (*v3.NamespacedServiceAccountToken, error) { panic("mock out the Create method") }, DeleteFunc: func(name string, options *v1.DeleteOptions) error { panic("mock out the Delete method") }, DeleteCollectionFunc: func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error { panic("mock out the DeleteCollection method") }, DeleteNamespacedFunc: func(namespace string, name string, options *v1.DeleteOptions) error { panic("mock out the DeleteNamespaced method") }, GetFunc: func(name string, opts v1.GetOptions) (*v3.NamespacedServiceAccountToken, error) { panic("mock out the Get method") }, GetNamespacedFunc: func(namespace string, name string, opts v1.GetOptions) (*v3.NamespacedServiceAccountToken, error) { panic("mock out the GetNamespaced method") }, ListFunc: func(opts v1.ListOptions) (*v3.NamespacedServiceAccountTokenList, error) { panic("mock out the List method") }, ObjectClientFunc: func() *objectclient.ObjectClient { panic("mock out the ObjectClient method") }, UpdateFunc: func(in1 *v3.NamespacedServiceAccountToken) (*v3.NamespacedServiceAccountToken, error) { panic("mock out the Update method") }, WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedNamespacedServiceAccountTokenInterface in code that requires NamespacedServiceAccountTokenInterface // and then make assertions. }
func (*NamespacedServiceAccountTokenInterfaceMock) AddClusterScopedHandler ¶
func (mock *NamespacedServiceAccountTokenInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v3.NamespacedServiceAccountTokenHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*NamespacedServiceAccountTokenInterfaceMock) AddClusterScopedHandlerCalls ¶
func (mock *NamespacedServiceAccountTokenInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Sync v3.NamespacedServiceAccountTokenHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedNamespacedServiceAccountTokenInterface.AddClusterScopedHandlerCalls())
func (*NamespacedServiceAccountTokenInterfaceMock) AddClusterScopedLifecycle ¶
func (mock *NamespacedServiceAccountTokenInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v3.NamespacedServiceAccountTokenLifecycle)
AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.
func (*NamespacedServiceAccountTokenInterfaceMock) AddClusterScopedLifecycleCalls ¶
func (mock *NamespacedServiceAccountTokenInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string Lifecycle v3.NamespacedServiceAccountTokenLifecycle }
AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:
len(mockedNamespacedServiceAccountTokenInterface.AddClusterScopedLifecycleCalls())
func (*NamespacedServiceAccountTokenInterfaceMock) AddHandler ¶
func (mock *NamespacedServiceAccountTokenInterfaceMock) AddHandler(ctx context.Context, name string, sync v3.NamespacedServiceAccountTokenHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*NamespacedServiceAccountTokenInterfaceMock) AddHandlerCalls ¶
func (mock *NamespacedServiceAccountTokenInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string Sync v3.NamespacedServiceAccountTokenHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedNamespacedServiceAccountTokenInterface.AddHandlerCalls())
func (*NamespacedServiceAccountTokenInterfaceMock) AddLifecycle ¶
func (mock *NamespacedServiceAccountTokenInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v3.NamespacedServiceAccountTokenLifecycle)
AddLifecycle calls AddLifecycleFunc.
func (*NamespacedServiceAccountTokenInterfaceMock) AddLifecycleCalls ¶
func (mock *NamespacedServiceAccountTokenInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string Lifecycle v3.NamespacedServiceAccountTokenLifecycle }
AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:
len(mockedNamespacedServiceAccountTokenInterface.AddLifecycleCalls())
func (*NamespacedServiceAccountTokenInterfaceMock) Controller ¶
func (mock *NamespacedServiceAccountTokenInterfaceMock) Controller() v3.NamespacedServiceAccountTokenController
Controller calls ControllerFunc.
func (*NamespacedServiceAccountTokenInterfaceMock) ControllerCalls ¶
func (mock *NamespacedServiceAccountTokenInterfaceMock) ControllerCalls() []struct { }
ControllerCalls gets all the calls that were made to Controller. Check the length with:
len(mockedNamespacedServiceAccountTokenInterface.ControllerCalls())
func (*NamespacedServiceAccountTokenInterfaceMock) Create ¶
func (mock *NamespacedServiceAccountTokenInterfaceMock) Create(in1 *v3.NamespacedServiceAccountToken) (*v3.NamespacedServiceAccountToken, error)
Create calls CreateFunc.
func (*NamespacedServiceAccountTokenInterfaceMock) CreateCalls ¶
func (mock *NamespacedServiceAccountTokenInterfaceMock) CreateCalls() []struct { In1 *v3.NamespacedServiceAccountToken }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedNamespacedServiceAccountTokenInterface.CreateCalls())
func (*NamespacedServiceAccountTokenInterfaceMock) Delete ¶
func (mock *NamespacedServiceAccountTokenInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
Delete calls DeleteFunc.
func (*NamespacedServiceAccountTokenInterfaceMock) DeleteCalls ¶
func (mock *NamespacedServiceAccountTokenInterfaceMock) DeleteCalls() []struct { Name string Options *v1.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedNamespacedServiceAccountTokenInterface.DeleteCalls())
func (*NamespacedServiceAccountTokenInterfaceMock) DeleteCollection ¶
func (mock *NamespacedServiceAccountTokenInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection calls DeleteCollectionFunc.
func (*NamespacedServiceAccountTokenInterfaceMock) DeleteCollectionCalls ¶
func (mock *NamespacedServiceAccountTokenInterfaceMock) DeleteCollectionCalls() []struct { DeleteOpts *v1.DeleteOptions ListOpts v1.ListOptions }
DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:
len(mockedNamespacedServiceAccountTokenInterface.DeleteCollectionCalls())
func (*NamespacedServiceAccountTokenInterfaceMock) DeleteNamespaced ¶
func (mock *NamespacedServiceAccountTokenInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
DeleteNamespaced calls DeleteNamespacedFunc.
func (*NamespacedServiceAccountTokenInterfaceMock) DeleteNamespacedCalls ¶
func (mock *NamespacedServiceAccountTokenInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string Options *v1.DeleteOptions }
DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:
len(mockedNamespacedServiceAccountTokenInterface.DeleteNamespacedCalls())
func (*NamespacedServiceAccountTokenInterfaceMock) Get ¶
func (mock *NamespacedServiceAccountTokenInterfaceMock) Get(name string, opts v1.GetOptions) (*v3.NamespacedServiceAccountToken, error)
Get calls GetFunc.
func (*NamespacedServiceAccountTokenInterfaceMock) GetCalls ¶
func (mock *NamespacedServiceAccountTokenInterfaceMock) GetCalls() []struct { Name string Opts v1.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedNamespacedServiceAccountTokenInterface.GetCalls())
func (*NamespacedServiceAccountTokenInterfaceMock) GetNamespaced ¶
func (mock *NamespacedServiceAccountTokenInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v3.NamespacedServiceAccountToken, error)
GetNamespaced calls GetNamespacedFunc.
func (*NamespacedServiceAccountTokenInterfaceMock) GetNamespacedCalls ¶
func (mock *NamespacedServiceAccountTokenInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string Opts v1.GetOptions }
GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:
len(mockedNamespacedServiceAccountTokenInterface.GetNamespacedCalls())
func (*NamespacedServiceAccountTokenInterfaceMock) List ¶
func (mock *NamespacedServiceAccountTokenInterfaceMock) List(opts v1.ListOptions) (*v3.NamespacedServiceAccountTokenList, error)
List calls ListFunc.
func (*NamespacedServiceAccountTokenInterfaceMock) ListCalls ¶
func (mock *NamespacedServiceAccountTokenInterfaceMock) ListCalls() []struct { Opts v1.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedNamespacedServiceAccountTokenInterface.ListCalls())
func (*NamespacedServiceAccountTokenInterfaceMock) ObjectClient ¶
func (mock *NamespacedServiceAccountTokenInterfaceMock) ObjectClient() *objectclient.ObjectClient
ObjectClient calls ObjectClientFunc.
func (*NamespacedServiceAccountTokenInterfaceMock) ObjectClientCalls ¶
func (mock *NamespacedServiceAccountTokenInterfaceMock) ObjectClientCalls() []struct { }
ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:
len(mockedNamespacedServiceAccountTokenInterface.ObjectClientCalls())
func (*NamespacedServiceAccountTokenInterfaceMock) Update ¶
func (mock *NamespacedServiceAccountTokenInterfaceMock) Update(in1 *v3.NamespacedServiceAccountToken) (*v3.NamespacedServiceAccountToken, error)
Update calls UpdateFunc.
func (*NamespacedServiceAccountTokenInterfaceMock) UpdateCalls ¶
func (mock *NamespacedServiceAccountTokenInterfaceMock) UpdateCalls() []struct { In1 *v3.NamespacedServiceAccountToken }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedNamespacedServiceAccountTokenInterface.UpdateCalls())
func (*NamespacedServiceAccountTokenInterfaceMock) Watch ¶
func (mock *NamespacedServiceAccountTokenInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*NamespacedServiceAccountTokenInterfaceMock) WatchCalls ¶
func (mock *NamespacedServiceAccountTokenInterfaceMock) WatchCalls() []struct { Opts v1.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedNamespacedServiceAccountTokenInterface.WatchCalls())
type NamespacedServiceAccountTokenListerMock ¶
type NamespacedServiceAccountTokenListerMock struct { // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v3.NamespacedServiceAccountToken, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v3.NamespacedServiceAccountToken, error) // contains filtered or unexported fields }
NamespacedServiceAccountTokenListerMock is a mock implementation of NamespacedServiceAccountTokenLister.
func TestSomethingThatUsesNamespacedServiceAccountTokenLister(t *testing.T) { // make and configure a mocked NamespacedServiceAccountTokenLister mockedNamespacedServiceAccountTokenLister := &NamespacedServiceAccountTokenListerMock{ GetFunc: func(namespace string, name string) (*v3.NamespacedServiceAccountToken, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v3.NamespacedServiceAccountToken, error) { panic("mock out the List method") }, } // use mockedNamespacedServiceAccountTokenLister in code that requires NamespacedServiceAccountTokenLister // and then make assertions. }
func (*NamespacedServiceAccountTokenListerMock) Get ¶
func (mock *NamespacedServiceAccountTokenListerMock) Get(namespace string, name string) (*v3.NamespacedServiceAccountToken, error)
Get calls GetFunc.
func (*NamespacedServiceAccountTokenListerMock) GetCalls ¶
func (mock *NamespacedServiceAccountTokenListerMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedNamespacedServiceAccountTokenLister.GetCalls())
func (*NamespacedServiceAccountTokenListerMock) List ¶
func (mock *NamespacedServiceAccountTokenListerMock) List(namespace string, selector labels.Selector) ([]*v3.NamespacedServiceAccountToken, error)
List calls ListFunc.
func (*NamespacedServiceAccountTokenListerMock) ListCalls ¶
func (mock *NamespacedServiceAccountTokenListerMock) ListCalls() []struct { Namespace string Selector labels.Selector }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedNamespacedServiceAccountTokenLister.ListCalls())
type NamespacedServiceAccountTokensGetterMock ¶
type NamespacedServiceAccountTokensGetterMock struct { // NamespacedServiceAccountTokensFunc mocks the NamespacedServiceAccountTokens method. NamespacedServiceAccountTokensFunc func(namespace string) v3.NamespacedServiceAccountTokenInterface // contains filtered or unexported fields }
NamespacedServiceAccountTokensGetterMock is a mock implementation of NamespacedServiceAccountTokensGetter.
func TestSomethingThatUsesNamespacedServiceAccountTokensGetter(t *testing.T) { // make and configure a mocked NamespacedServiceAccountTokensGetter mockedNamespacedServiceAccountTokensGetter := &NamespacedServiceAccountTokensGetterMock{ NamespacedServiceAccountTokensFunc: func(namespace string) v3.NamespacedServiceAccountTokenInterface { panic("mock out the NamespacedServiceAccountTokens method") }, } // use mockedNamespacedServiceAccountTokensGetter in code that requires NamespacedServiceAccountTokensGetter // and then make assertions. }
func (*NamespacedServiceAccountTokensGetterMock) NamespacedServiceAccountTokens ¶
func (mock *NamespacedServiceAccountTokensGetterMock) NamespacedServiceAccountTokens(namespace string) v3.NamespacedServiceAccountTokenInterface
NamespacedServiceAccountTokens calls NamespacedServiceAccountTokensFunc.
func (*NamespacedServiceAccountTokensGetterMock) NamespacedServiceAccountTokensCalls ¶
func (mock *NamespacedServiceAccountTokensGetterMock) NamespacedServiceAccountTokensCalls() []struct { Namespace string }
NamespacedServiceAccountTokensCalls gets all the calls that were made to NamespacedServiceAccountTokens. Check the length with:
len(mockedNamespacedServiceAccountTokensGetter.NamespacedServiceAccountTokensCalls())
type PipelineControllerMock ¶
type PipelineControllerMock struct { // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v3.PipelineHandlerFunc) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, handler v3.PipelineHandlerFunc) // EnqueueFunc mocks the Enqueue method. EnqueueFunc func(namespace string, name string) // GenericFunc mocks the Generic method. GenericFunc func() controller.GenericController // InformerFunc mocks the Informer method. InformerFunc func() cache.SharedIndexInformer // ListerFunc mocks the Lister method. ListerFunc func() v3.PipelineLister // StartFunc mocks the Start method. StartFunc func(ctx context.Context, threadiness int) error // SyncFunc mocks the Sync method. SyncFunc func(ctx context.Context) error // contains filtered or unexported fields }
PipelineControllerMock is a mock implementation of PipelineController.
func TestSomethingThatUsesPipelineController(t *testing.T) { // make and configure a mocked PipelineController mockedPipelineController := &PipelineControllerMock{ AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v3.PipelineHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddHandlerFunc: func(ctx context.Context, name string, handler v3.PipelineHandlerFunc) { panic("mock out the AddHandler method") }, EnqueueFunc: func(namespace string, name string) { panic("mock out the Enqueue method") }, GenericFunc: func() controller.GenericController { panic("mock out the Generic method") }, InformerFunc: func() cache.SharedIndexInformer { panic("mock out the Informer method") }, ListerFunc: func() v3.PipelineLister { panic("mock out the Lister method") }, StartFunc: func(ctx context.Context, threadiness int) error { panic("mock out the Start method") }, SyncFunc: func(ctx context.Context) error { panic("mock out the Sync method") }, } // use mockedPipelineController in code that requires PipelineController // and then make assertions. }
func (*PipelineControllerMock) AddClusterScopedHandler ¶
func (mock *PipelineControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v3.PipelineHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*PipelineControllerMock) AddClusterScopedHandlerCalls ¶
func (mock *PipelineControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Handler v3.PipelineHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedPipelineController.AddClusterScopedHandlerCalls())
func (*PipelineControllerMock) AddHandler ¶
func (mock *PipelineControllerMock) AddHandler(ctx context.Context, name string, handler v3.PipelineHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*PipelineControllerMock) AddHandlerCalls ¶
func (mock *PipelineControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string Handler v3.PipelineHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedPipelineController.AddHandlerCalls())
func (*PipelineControllerMock) Enqueue ¶
func (mock *PipelineControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*PipelineControllerMock) EnqueueCalls ¶
func (mock *PipelineControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedPipelineController.EnqueueCalls())
func (*PipelineControllerMock) Generic ¶
func (mock *PipelineControllerMock) Generic() controller.GenericController
Generic calls GenericFunc.
func (*PipelineControllerMock) GenericCalls ¶
func (mock *PipelineControllerMock) GenericCalls() []struct { }
GenericCalls gets all the calls that were made to Generic. Check the length with:
len(mockedPipelineController.GenericCalls())
func (*PipelineControllerMock) Informer ¶
func (mock *PipelineControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*PipelineControllerMock) InformerCalls ¶
func (mock *PipelineControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedPipelineController.InformerCalls())
func (*PipelineControllerMock) Lister ¶
func (mock *PipelineControllerMock) Lister() v3.PipelineLister
Lister calls ListerFunc.
func (*PipelineControllerMock) ListerCalls ¶
func (mock *PipelineControllerMock) ListerCalls() []struct { }
ListerCalls gets all the calls that were made to Lister. Check the length with:
len(mockedPipelineController.ListerCalls())
func (*PipelineControllerMock) Start ¶
func (mock *PipelineControllerMock) Start(ctx context.Context, threadiness int) error
Start calls StartFunc.
func (*PipelineControllerMock) StartCalls ¶
func (mock *PipelineControllerMock) StartCalls() []struct { Ctx context.Context Threadiness int }
StartCalls gets all the calls that were made to Start. Check the length with:
len(mockedPipelineController.StartCalls())
func (*PipelineControllerMock) Sync ¶
func (mock *PipelineControllerMock) Sync(ctx context.Context) error
Sync calls SyncFunc.
func (*PipelineControllerMock) SyncCalls ¶
func (mock *PipelineControllerMock) SyncCalls() []struct { Ctx context.Context }
SyncCalls gets all the calls that were made to Sync. Check the length with:
len(mockedPipelineController.SyncCalls())
type PipelineExecutionControllerMock ¶
type PipelineExecutionControllerMock struct { // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v3.PipelineExecutionHandlerFunc) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, handler v3.PipelineExecutionHandlerFunc) // EnqueueFunc mocks the Enqueue method. EnqueueFunc func(namespace string, name string) // GenericFunc mocks the Generic method. GenericFunc func() controller.GenericController // InformerFunc mocks the Informer method. InformerFunc func() cache.SharedIndexInformer // ListerFunc mocks the Lister method. ListerFunc func() v3.PipelineExecutionLister // StartFunc mocks the Start method. StartFunc func(ctx context.Context, threadiness int) error // SyncFunc mocks the Sync method. SyncFunc func(ctx context.Context) error // contains filtered or unexported fields }
PipelineExecutionControllerMock is a mock implementation of PipelineExecutionController.
func TestSomethingThatUsesPipelineExecutionController(t *testing.T) { // make and configure a mocked PipelineExecutionController mockedPipelineExecutionController := &PipelineExecutionControllerMock{ AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v3.PipelineExecutionHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddHandlerFunc: func(ctx context.Context, name string, handler v3.PipelineExecutionHandlerFunc) { panic("mock out the AddHandler method") }, EnqueueFunc: func(namespace string, name string) { panic("mock out the Enqueue method") }, GenericFunc: func() controller.GenericController { panic("mock out the Generic method") }, InformerFunc: func() cache.SharedIndexInformer { panic("mock out the Informer method") }, ListerFunc: func() v3.PipelineExecutionLister { panic("mock out the Lister method") }, StartFunc: func(ctx context.Context, threadiness int) error { panic("mock out the Start method") }, SyncFunc: func(ctx context.Context) error { panic("mock out the Sync method") }, } // use mockedPipelineExecutionController in code that requires PipelineExecutionController // and then make assertions. }
func (*PipelineExecutionControllerMock) AddClusterScopedHandler ¶
func (mock *PipelineExecutionControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v3.PipelineExecutionHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*PipelineExecutionControllerMock) AddClusterScopedHandlerCalls ¶
func (mock *PipelineExecutionControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Handler v3.PipelineExecutionHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedPipelineExecutionController.AddClusterScopedHandlerCalls())
func (*PipelineExecutionControllerMock) AddHandler ¶
func (mock *PipelineExecutionControllerMock) AddHandler(ctx context.Context, name string, handler v3.PipelineExecutionHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*PipelineExecutionControllerMock) AddHandlerCalls ¶
func (mock *PipelineExecutionControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string Handler v3.PipelineExecutionHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedPipelineExecutionController.AddHandlerCalls())
func (*PipelineExecutionControllerMock) Enqueue ¶
func (mock *PipelineExecutionControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*PipelineExecutionControllerMock) EnqueueCalls ¶
func (mock *PipelineExecutionControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedPipelineExecutionController.EnqueueCalls())
func (*PipelineExecutionControllerMock) Generic ¶
func (mock *PipelineExecutionControllerMock) Generic() controller.GenericController
Generic calls GenericFunc.
func (*PipelineExecutionControllerMock) GenericCalls ¶
func (mock *PipelineExecutionControllerMock) GenericCalls() []struct { }
GenericCalls gets all the calls that were made to Generic. Check the length with:
len(mockedPipelineExecutionController.GenericCalls())
func (*PipelineExecutionControllerMock) Informer ¶
func (mock *PipelineExecutionControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*PipelineExecutionControllerMock) InformerCalls ¶
func (mock *PipelineExecutionControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedPipelineExecutionController.InformerCalls())
func (*PipelineExecutionControllerMock) Lister ¶
func (mock *PipelineExecutionControllerMock) Lister() v3.PipelineExecutionLister
Lister calls ListerFunc.
func (*PipelineExecutionControllerMock) ListerCalls ¶
func (mock *PipelineExecutionControllerMock) ListerCalls() []struct { }
ListerCalls gets all the calls that were made to Lister. Check the length with:
len(mockedPipelineExecutionController.ListerCalls())
func (*PipelineExecutionControllerMock) Start ¶
func (mock *PipelineExecutionControllerMock) Start(ctx context.Context, threadiness int) error
Start calls StartFunc.
func (*PipelineExecutionControllerMock) StartCalls ¶
func (mock *PipelineExecutionControllerMock) StartCalls() []struct { Ctx context.Context Threadiness int }
StartCalls gets all the calls that were made to Start. Check the length with:
len(mockedPipelineExecutionController.StartCalls())
func (*PipelineExecutionControllerMock) Sync ¶
func (mock *PipelineExecutionControllerMock) Sync(ctx context.Context) error
Sync calls SyncFunc.
func (*PipelineExecutionControllerMock) SyncCalls ¶
func (mock *PipelineExecutionControllerMock) SyncCalls() []struct { Ctx context.Context }
SyncCalls gets all the calls that were made to Sync. Check the length with:
len(mockedPipelineExecutionController.SyncCalls())
type PipelineExecutionInterfaceMock ¶
type PipelineExecutionInterfaceMock struct { // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v3.PipelineExecutionHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v3.PipelineExecutionLifecycle) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, sync v3.PipelineExecutionHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. AddLifecycleFunc func(ctx context.Context, name string, lifecycle v3.PipelineExecutionLifecycle) // ControllerFunc mocks the Controller method. ControllerFunc func() v3.PipelineExecutionController // CreateFunc mocks the Create method. CreateFunc func(in1 *v3.PipelineExecution) (*v3.PipelineExecution, error) // DeleteFunc mocks the Delete method. DeleteFunc func(name string, options *v1.DeleteOptions) error // DeleteCollectionFunc mocks the DeleteCollection method. DeleteCollectionFunc func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error // DeleteNamespacedFunc mocks the DeleteNamespaced method. DeleteNamespacedFunc func(namespace string, name string, options *v1.DeleteOptions) error // GetFunc mocks the Get method. GetFunc func(name string, opts v1.GetOptions) (*v3.PipelineExecution, error) // GetNamespacedFunc mocks the GetNamespaced method. GetNamespacedFunc func(namespace string, name string, opts v1.GetOptions) (*v3.PipelineExecution, error) // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.PipelineExecutionList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v3.PipelineExecution) (*v3.PipelineExecution, error) // WatchFunc mocks the Watch method. WatchFunc func(opts v1.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
PipelineExecutionInterfaceMock is a mock implementation of PipelineExecutionInterface.
func TestSomethingThatUsesPipelineExecutionInterface(t *testing.T) { // make and configure a mocked PipelineExecutionInterface mockedPipelineExecutionInterface := &PipelineExecutionInterfaceMock{ AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v3.PipelineExecutionHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v3.PipelineExecutionLifecycle) { panic("mock out the AddClusterScopedLifecycle method") }, AddHandlerFunc: func(ctx context.Context, name string, sync v3.PipelineExecutionHandlerFunc) { panic("mock out the AddHandler method") }, AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v3.PipelineExecutionLifecycle) { panic("mock out the AddLifecycle method") }, ControllerFunc: func() v3.PipelineExecutionController { panic("mock out the Controller method") }, CreateFunc: func(in1 *v3.PipelineExecution) (*v3.PipelineExecution, error) { panic("mock out the Create method") }, DeleteFunc: func(name string, options *v1.DeleteOptions) error { panic("mock out the Delete method") }, DeleteCollectionFunc: func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error { panic("mock out the DeleteCollection method") }, DeleteNamespacedFunc: func(namespace string, name string, options *v1.DeleteOptions) error { panic("mock out the DeleteNamespaced method") }, GetFunc: func(name string, opts v1.GetOptions) (*v3.PipelineExecution, error) { panic("mock out the Get method") }, GetNamespacedFunc: func(namespace string, name string, opts v1.GetOptions) (*v3.PipelineExecution, error) { panic("mock out the GetNamespaced method") }, ListFunc: func(opts v1.ListOptions) (*v3.PipelineExecutionList, error) { panic("mock out the List method") }, ObjectClientFunc: func() *objectclient.ObjectClient { panic("mock out the ObjectClient method") }, UpdateFunc: func(in1 *v3.PipelineExecution) (*v3.PipelineExecution, error) { panic("mock out the Update method") }, WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedPipelineExecutionInterface in code that requires PipelineExecutionInterface // and then make assertions. }
func (*PipelineExecutionInterfaceMock) AddClusterScopedHandler ¶
func (mock *PipelineExecutionInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v3.PipelineExecutionHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*PipelineExecutionInterfaceMock) AddClusterScopedHandlerCalls ¶
func (mock *PipelineExecutionInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Sync v3.PipelineExecutionHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedPipelineExecutionInterface.AddClusterScopedHandlerCalls())
func (*PipelineExecutionInterfaceMock) AddClusterScopedLifecycle ¶
func (mock *PipelineExecutionInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v3.PipelineExecutionLifecycle)
AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.
func (*PipelineExecutionInterfaceMock) AddClusterScopedLifecycleCalls ¶
func (mock *PipelineExecutionInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string Lifecycle v3.PipelineExecutionLifecycle }
AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:
len(mockedPipelineExecutionInterface.AddClusterScopedLifecycleCalls())
func (*PipelineExecutionInterfaceMock) AddHandler ¶
func (mock *PipelineExecutionInterfaceMock) AddHandler(ctx context.Context, name string, sync v3.PipelineExecutionHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*PipelineExecutionInterfaceMock) AddHandlerCalls ¶
func (mock *PipelineExecutionInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string Sync v3.PipelineExecutionHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedPipelineExecutionInterface.AddHandlerCalls())
func (*PipelineExecutionInterfaceMock) AddLifecycle ¶
func (mock *PipelineExecutionInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v3.PipelineExecutionLifecycle)
AddLifecycle calls AddLifecycleFunc.
func (*PipelineExecutionInterfaceMock) AddLifecycleCalls ¶
func (mock *PipelineExecutionInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string Lifecycle v3.PipelineExecutionLifecycle }
AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:
len(mockedPipelineExecutionInterface.AddLifecycleCalls())
func (*PipelineExecutionInterfaceMock) Controller ¶
func (mock *PipelineExecutionInterfaceMock) Controller() v3.PipelineExecutionController
Controller calls ControllerFunc.
func (*PipelineExecutionInterfaceMock) ControllerCalls ¶
func (mock *PipelineExecutionInterfaceMock) ControllerCalls() []struct { }
ControllerCalls gets all the calls that were made to Controller. Check the length with:
len(mockedPipelineExecutionInterface.ControllerCalls())
func (*PipelineExecutionInterfaceMock) Create ¶
func (mock *PipelineExecutionInterfaceMock) Create(in1 *v3.PipelineExecution) (*v3.PipelineExecution, error)
Create calls CreateFunc.
func (*PipelineExecutionInterfaceMock) CreateCalls ¶
func (mock *PipelineExecutionInterfaceMock) CreateCalls() []struct { In1 *v3.PipelineExecution }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedPipelineExecutionInterface.CreateCalls())
func (*PipelineExecutionInterfaceMock) Delete ¶
func (mock *PipelineExecutionInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
Delete calls DeleteFunc.
func (*PipelineExecutionInterfaceMock) DeleteCalls ¶
func (mock *PipelineExecutionInterfaceMock) DeleteCalls() []struct { Name string Options *v1.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedPipelineExecutionInterface.DeleteCalls())
func (*PipelineExecutionInterfaceMock) DeleteCollection ¶
func (mock *PipelineExecutionInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection calls DeleteCollectionFunc.
func (*PipelineExecutionInterfaceMock) DeleteCollectionCalls ¶
func (mock *PipelineExecutionInterfaceMock) DeleteCollectionCalls() []struct { DeleteOpts *v1.DeleteOptions ListOpts v1.ListOptions }
DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:
len(mockedPipelineExecutionInterface.DeleteCollectionCalls())
func (*PipelineExecutionInterfaceMock) DeleteNamespaced ¶
func (mock *PipelineExecutionInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
DeleteNamespaced calls DeleteNamespacedFunc.
func (*PipelineExecutionInterfaceMock) DeleteNamespacedCalls ¶
func (mock *PipelineExecutionInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string Options *v1.DeleteOptions }
DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:
len(mockedPipelineExecutionInterface.DeleteNamespacedCalls())
func (*PipelineExecutionInterfaceMock) Get ¶
func (mock *PipelineExecutionInterfaceMock) Get(name string, opts v1.GetOptions) (*v3.PipelineExecution, error)
Get calls GetFunc.
func (*PipelineExecutionInterfaceMock) GetCalls ¶
func (mock *PipelineExecutionInterfaceMock) GetCalls() []struct { Name string Opts v1.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedPipelineExecutionInterface.GetCalls())
func (*PipelineExecutionInterfaceMock) GetNamespaced ¶
func (mock *PipelineExecutionInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v3.PipelineExecution, error)
GetNamespaced calls GetNamespacedFunc.
func (*PipelineExecutionInterfaceMock) GetNamespacedCalls ¶
func (mock *PipelineExecutionInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string Opts v1.GetOptions }
GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:
len(mockedPipelineExecutionInterface.GetNamespacedCalls())
func (*PipelineExecutionInterfaceMock) List ¶
func (mock *PipelineExecutionInterfaceMock) List(opts v1.ListOptions) (*v3.PipelineExecutionList, error)
List calls ListFunc.
func (*PipelineExecutionInterfaceMock) ListCalls ¶
func (mock *PipelineExecutionInterfaceMock) ListCalls() []struct { Opts v1.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedPipelineExecutionInterface.ListCalls())
func (*PipelineExecutionInterfaceMock) ObjectClient ¶
func (mock *PipelineExecutionInterfaceMock) ObjectClient() *objectclient.ObjectClient
ObjectClient calls ObjectClientFunc.
func (*PipelineExecutionInterfaceMock) ObjectClientCalls ¶
func (mock *PipelineExecutionInterfaceMock) ObjectClientCalls() []struct { }
ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:
len(mockedPipelineExecutionInterface.ObjectClientCalls())
func (*PipelineExecutionInterfaceMock) Update ¶
func (mock *PipelineExecutionInterfaceMock) Update(in1 *v3.PipelineExecution) (*v3.PipelineExecution, error)
Update calls UpdateFunc.
func (*PipelineExecutionInterfaceMock) UpdateCalls ¶
func (mock *PipelineExecutionInterfaceMock) UpdateCalls() []struct { In1 *v3.PipelineExecution }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedPipelineExecutionInterface.UpdateCalls())
func (*PipelineExecutionInterfaceMock) Watch ¶
func (mock *PipelineExecutionInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*PipelineExecutionInterfaceMock) WatchCalls ¶
func (mock *PipelineExecutionInterfaceMock) WatchCalls() []struct { Opts v1.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedPipelineExecutionInterface.WatchCalls())
type PipelineExecutionListerMock ¶
type PipelineExecutionListerMock struct { // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v3.PipelineExecution, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v3.PipelineExecution, error) // contains filtered or unexported fields }
PipelineExecutionListerMock is a mock implementation of PipelineExecutionLister.
func TestSomethingThatUsesPipelineExecutionLister(t *testing.T) { // make and configure a mocked PipelineExecutionLister mockedPipelineExecutionLister := &PipelineExecutionListerMock{ GetFunc: func(namespace string, name string) (*v3.PipelineExecution, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v3.PipelineExecution, error) { panic("mock out the List method") }, } // use mockedPipelineExecutionLister in code that requires PipelineExecutionLister // and then make assertions. }
func (*PipelineExecutionListerMock) Get ¶
func (mock *PipelineExecutionListerMock) Get(namespace string, name string) (*v3.PipelineExecution, error)
Get calls GetFunc.
func (*PipelineExecutionListerMock) GetCalls ¶
func (mock *PipelineExecutionListerMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedPipelineExecutionLister.GetCalls())
func (*PipelineExecutionListerMock) List ¶
func (mock *PipelineExecutionListerMock) List(namespace string, selector labels.Selector) ([]*v3.PipelineExecution, error)
List calls ListFunc.
type PipelineExecutionsGetterMock ¶
type PipelineExecutionsGetterMock struct { // PipelineExecutionsFunc mocks the PipelineExecutions method. PipelineExecutionsFunc func(namespace string) v3.PipelineExecutionInterface // contains filtered or unexported fields }
PipelineExecutionsGetterMock is a mock implementation of PipelineExecutionsGetter.
func TestSomethingThatUsesPipelineExecutionsGetter(t *testing.T) { // make and configure a mocked PipelineExecutionsGetter mockedPipelineExecutionsGetter := &PipelineExecutionsGetterMock{ PipelineExecutionsFunc: func(namespace string) v3.PipelineExecutionInterface { panic("mock out the PipelineExecutions method") }, } // use mockedPipelineExecutionsGetter in code that requires PipelineExecutionsGetter // and then make assertions. }
func (*PipelineExecutionsGetterMock) PipelineExecutions ¶
func (mock *PipelineExecutionsGetterMock) PipelineExecutions(namespace string) v3.PipelineExecutionInterface
PipelineExecutions calls PipelineExecutionsFunc.
func (*PipelineExecutionsGetterMock) PipelineExecutionsCalls ¶
func (mock *PipelineExecutionsGetterMock) PipelineExecutionsCalls() []struct { Namespace string }
PipelineExecutionsCalls gets all the calls that were made to PipelineExecutions. Check the length with:
len(mockedPipelineExecutionsGetter.PipelineExecutionsCalls())
type PipelineInterfaceMock ¶
type PipelineInterfaceMock struct { // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v3.PipelineHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v3.PipelineLifecycle) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, sync v3.PipelineHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. AddLifecycleFunc func(ctx context.Context, name string, lifecycle v3.PipelineLifecycle) // ControllerFunc mocks the Controller method. ControllerFunc func() v3.PipelineController // CreateFunc mocks the Create method. CreateFunc func(in1 *v3.Pipeline) (*v3.Pipeline, error) // DeleteFunc mocks the Delete method. DeleteFunc func(name string, options *v1.DeleteOptions) error // DeleteCollectionFunc mocks the DeleteCollection method. DeleteCollectionFunc func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error // DeleteNamespacedFunc mocks the DeleteNamespaced method. DeleteNamespacedFunc func(namespace string, name string, options *v1.DeleteOptions) error // GetFunc mocks the Get method. GetFunc func(name string, opts v1.GetOptions) (*v3.Pipeline, error) // GetNamespacedFunc mocks the GetNamespaced method. GetNamespacedFunc func(namespace string, name string, opts v1.GetOptions) (*v3.Pipeline, error) // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.PipelineList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v3.Pipeline) (*v3.Pipeline, error) // WatchFunc mocks the Watch method. WatchFunc func(opts v1.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
PipelineInterfaceMock is a mock implementation of PipelineInterface.
func TestSomethingThatUsesPipelineInterface(t *testing.T) { // make and configure a mocked PipelineInterface mockedPipelineInterface := &PipelineInterfaceMock{ AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v3.PipelineHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v3.PipelineLifecycle) { panic("mock out the AddClusterScopedLifecycle method") }, AddHandlerFunc: func(ctx context.Context, name string, sync v3.PipelineHandlerFunc) { panic("mock out the AddHandler method") }, AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v3.PipelineLifecycle) { panic("mock out the AddLifecycle method") }, ControllerFunc: func() v3.PipelineController { panic("mock out the Controller method") }, CreateFunc: func(in1 *v3.Pipeline) (*v3.Pipeline, error) { panic("mock out the Create method") }, DeleteFunc: func(name string, options *v1.DeleteOptions) error { panic("mock out the Delete method") }, DeleteCollectionFunc: func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error { panic("mock out the DeleteCollection method") }, DeleteNamespacedFunc: func(namespace string, name string, options *v1.DeleteOptions) error { panic("mock out the DeleteNamespaced method") }, GetFunc: func(name string, opts v1.GetOptions) (*v3.Pipeline, error) { panic("mock out the Get method") }, GetNamespacedFunc: func(namespace string, name string, opts v1.GetOptions) (*v3.Pipeline, error) { panic("mock out the GetNamespaced method") }, ListFunc: func(opts v1.ListOptions) (*v3.PipelineList, error) { panic("mock out the List method") }, ObjectClientFunc: func() *objectclient.ObjectClient { panic("mock out the ObjectClient method") }, UpdateFunc: func(in1 *v3.Pipeline) (*v3.Pipeline, error) { panic("mock out the Update method") }, WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedPipelineInterface in code that requires PipelineInterface // and then make assertions. }
func (*PipelineInterfaceMock) AddClusterScopedHandler ¶
func (mock *PipelineInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v3.PipelineHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*PipelineInterfaceMock) AddClusterScopedHandlerCalls ¶
func (mock *PipelineInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Sync v3.PipelineHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedPipelineInterface.AddClusterScopedHandlerCalls())
func (*PipelineInterfaceMock) AddClusterScopedLifecycle ¶
func (mock *PipelineInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v3.PipelineLifecycle)
AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.
func (*PipelineInterfaceMock) AddClusterScopedLifecycleCalls ¶
func (mock *PipelineInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string Lifecycle v3.PipelineLifecycle }
AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:
len(mockedPipelineInterface.AddClusterScopedLifecycleCalls())
func (*PipelineInterfaceMock) AddHandler ¶
func (mock *PipelineInterfaceMock) AddHandler(ctx context.Context, name string, sync v3.PipelineHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*PipelineInterfaceMock) AddHandlerCalls ¶
func (mock *PipelineInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string Sync v3.PipelineHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedPipelineInterface.AddHandlerCalls())
func (*PipelineInterfaceMock) AddLifecycle ¶
func (mock *PipelineInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v3.PipelineLifecycle)
AddLifecycle calls AddLifecycleFunc.
func (*PipelineInterfaceMock) AddLifecycleCalls ¶
func (mock *PipelineInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string Lifecycle v3.PipelineLifecycle }
AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:
len(mockedPipelineInterface.AddLifecycleCalls())
func (*PipelineInterfaceMock) Controller ¶
func (mock *PipelineInterfaceMock) Controller() v3.PipelineController
Controller calls ControllerFunc.
func (*PipelineInterfaceMock) ControllerCalls ¶
func (mock *PipelineInterfaceMock) ControllerCalls() []struct { }
ControllerCalls gets all the calls that were made to Controller. Check the length with:
len(mockedPipelineInterface.ControllerCalls())
func (*PipelineInterfaceMock) CreateCalls ¶
func (mock *PipelineInterfaceMock) CreateCalls() []struct { In1 *v3.Pipeline }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedPipelineInterface.CreateCalls())
func (*PipelineInterfaceMock) Delete ¶
func (mock *PipelineInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
Delete calls DeleteFunc.
func (*PipelineInterfaceMock) DeleteCalls ¶
func (mock *PipelineInterfaceMock) DeleteCalls() []struct { Name string Options *v1.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedPipelineInterface.DeleteCalls())
func (*PipelineInterfaceMock) DeleteCollection ¶
func (mock *PipelineInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection calls DeleteCollectionFunc.
func (*PipelineInterfaceMock) DeleteCollectionCalls ¶
func (mock *PipelineInterfaceMock) DeleteCollectionCalls() []struct { DeleteOpts *v1.DeleteOptions ListOpts v1.ListOptions }
DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:
len(mockedPipelineInterface.DeleteCollectionCalls())
func (*PipelineInterfaceMock) DeleteNamespaced ¶
func (mock *PipelineInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
DeleteNamespaced calls DeleteNamespacedFunc.
func (*PipelineInterfaceMock) DeleteNamespacedCalls ¶
func (mock *PipelineInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string Options *v1.DeleteOptions }
DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:
len(mockedPipelineInterface.DeleteNamespacedCalls())
func (*PipelineInterfaceMock) Get ¶
func (mock *PipelineInterfaceMock) Get(name string, opts v1.GetOptions) (*v3.Pipeline, error)
Get calls GetFunc.
func (*PipelineInterfaceMock) GetCalls ¶
func (mock *PipelineInterfaceMock) GetCalls() []struct { Name string Opts v1.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedPipelineInterface.GetCalls())
func (*PipelineInterfaceMock) GetNamespaced ¶
func (mock *PipelineInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v3.Pipeline, error)
GetNamespaced calls GetNamespacedFunc.
func (*PipelineInterfaceMock) GetNamespacedCalls ¶
func (mock *PipelineInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string Opts v1.GetOptions }
GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:
len(mockedPipelineInterface.GetNamespacedCalls())
func (*PipelineInterfaceMock) List ¶
func (mock *PipelineInterfaceMock) List(opts v1.ListOptions) (*v3.PipelineList, error)
List calls ListFunc.
func (*PipelineInterfaceMock) ListCalls ¶
func (mock *PipelineInterfaceMock) ListCalls() []struct { Opts v1.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedPipelineInterface.ListCalls())
func (*PipelineInterfaceMock) ObjectClient ¶
func (mock *PipelineInterfaceMock) ObjectClient() *objectclient.ObjectClient
ObjectClient calls ObjectClientFunc.
func (*PipelineInterfaceMock) ObjectClientCalls ¶
func (mock *PipelineInterfaceMock) ObjectClientCalls() []struct { }
ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:
len(mockedPipelineInterface.ObjectClientCalls())
func (*PipelineInterfaceMock) UpdateCalls ¶
func (mock *PipelineInterfaceMock) UpdateCalls() []struct { In1 *v3.Pipeline }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedPipelineInterface.UpdateCalls())
func (*PipelineInterfaceMock) Watch ¶
func (mock *PipelineInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*PipelineInterfaceMock) WatchCalls ¶
func (mock *PipelineInterfaceMock) WatchCalls() []struct { Opts v1.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedPipelineInterface.WatchCalls())
type PipelineListerMock ¶
type PipelineListerMock struct { // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v3.Pipeline, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v3.Pipeline, error) // contains filtered or unexported fields }
PipelineListerMock is a mock implementation of PipelineLister.
func TestSomethingThatUsesPipelineLister(t *testing.T) { // make and configure a mocked PipelineLister mockedPipelineLister := &PipelineListerMock{ GetFunc: func(namespace string, name string) (*v3.Pipeline, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v3.Pipeline, error) { panic("mock out the List method") }, } // use mockedPipelineLister in code that requires PipelineLister // and then make assertions. }
func (*PipelineListerMock) GetCalls ¶
func (mock *PipelineListerMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedPipelineLister.GetCalls())
type PipelineSettingControllerMock ¶
type PipelineSettingControllerMock struct { // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v3.PipelineSettingHandlerFunc) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, handler v3.PipelineSettingHandlerFunc) // EnqueueFunc mocks the Enqueue method. EnqueueFunc func(namespace string, name string) // GenericFunc mocks the Generic method. GenericFunc func() controller.GenericController // InformerFunc mocks the Informer method. InformerFunc func() cache.SharedIndexInformer // ListerFunc mocks the Lister method. ListerFunc func() v3.PipelineSettingLister // StartFunc mocks the Start method. StartFunc func(ctx context.Context, threadiness int) error // SyncFunc mocks the Sync method. SyncFunc func(ctx context.Context) error // contains filtered or unexported fields }
PipelineSettingControllerMock is a mock implementation of PipelineSettingController.
func TestSomethingThatUsesPipelineSettingController(t *testing.T) { // make and configure a mocked PipelineSettingController mockedPipelineSettingController := &PipelineSettingControllerMock{ AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v3.PipelineSettingHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddHandlerFunc: func(ctx context.Context, name string, handler v3.PipelineSettingHandlerFunc) { panic("mock out the AddHandler method") }, EnqueueFunc: func(namespace string, name string) { panic("mock out the Enqueue method") }, GenericFunc: func() controller.GenericController { panic("mock out the Generic method") }, InformerFunc: func() cache.SharedIndexInformer { panic("mock out the Informer method") }, ListerFunc: func() v3.PipelineSettingLister { panic("mock out the Lister method") }, StartFunc: func(ctx context.Context, threadiness int) error { panic("mock out the Start method") }, SyncFunc: func(ctx context.Context) error { panic("mock out the Sync method") }, } // use mockedPipelineSettingController in code that requires PipelineSettingController // and then make assertions. }
func (*PipelineSettingControllerMock) AddClusterScopedHandler ¶
func (mock *PipelineSettingControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v3.PipelineSettingHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*PipelineSettingControllerMock) AddClusterScopedHandlerCalls ¶
func (mock *PipelineSettingControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Handler v3.PipelineSettingHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedPipelineSettingController.AddClusterScopedHandlerCalls())
func (*PipelineSettingControllerMock) AddHandler ¶
func (mock *PipelineSettingControllerMock) AddHandler(ctx context.Context, name string, handler v3.PipelineSettingHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*PipelineSettingControllerMock) AddHandlerCalls ¶
func (mock *PipelineSettingControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string Handler v3.PipelineSettingHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedPipelineSettingController.AddHandlerCalls())
func (*PipelineSettingControllerMock) Enqueue ¶
func (mock *PipelineSettingControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*PipelineSettingControllerMock) EnqueueCalls ¶
func (mock *PipelineSettingControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedPipelineSettingController.EnqueueCalls())
func (*PipelineSettingControllerMock) Generic ¶
func (mock *PipelineSettingControllerMock) Generic() controller.GenericController
Generic calls GenericFunc.
func (*PipelineSettingControllerMock) GenericCalls ¶
func (mock *PipelineSettingControllerMock) GenericCalls() []struct { }
GenericCalls gets all the calls that were made to Generic. Check the length with:
len(mockedPipelineSettingController.GenericCalls())
func (*PipelineSettingControllerMock) Informer ¶
func (mock *PipelineSettingControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*PipelineSettingControllerMock) InformerCalls ¶
func (mock *PipelineSettingControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedPipelineSettingController.InformerCalls())
func (*PipelineSettingControllerMock) Lister ¶
func (mock *PipelineSettingControllerMock) Lister() v3.PipelineSettingLister
Lister calls ListerFunc.
func (*PipelineSettingControllerMock) ListerCalls ¶
func (mock *PipelineSettingControllerMock) ListerCalls() []struct { }
ListerCalls gets all the calls that were made to Lister. Check the length with:
len(mockedPipelineSettingController.ListerCalls())
func (*PipelineSettingControllerMock) Start ¶
func (mock *PipelineSettingControllerMock) Start(ctx context.Context, threadiness int) error
Start calls StartFunc.
func (*PipelineSettingControllerMock) StartCalls ¶
func (mock *PipelineSettingControllerMock) StartCalls() []struct { Ctx context.Context Threadiness int }
StartCalls gets all the calls that were made to Start. Check the length with:
len(mockedPipelineSettingController.StartCalls())
func (*PipelineSettingControllerMock) Sync ¶
func (mock *PipelineSettingControllerMock) Sync(ctx context.Context) error
Sync calls SyncFunc.
func (*PipelineSettingControllerMock) SyncCalls ¶
func (mock *PipelineSettingControllerMock) SyncCalls() []struct { Ctx context.Context }
SyncCalls gets all the calls that were made to Sync. Check the length with:
len(mockedPipelineSettingController.SyncCalls())
type PipelineSettingInterfaceMock ¶
type PipelineSettingInterfaceMock struct { // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v3.PipelineSettingHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v3.PipelineSettingLifecycle) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, sync v3.PipelineSettingHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. AddLifecycleFunc func(ctx context.Context, name string, lifecycle v3.PipelineSettingLifecycle) // ControllerFunc mocks the Controller method. ControllerFunc func() v3.PipelineSettingController // CreateFunc mocks the Create method. CreateFunc func(in1 *v3.PipelineSetting) (*v3.PipelineSetting, error) // DeleteFunc mocks the Delete method. DeleteFunc func(name string, options *v1.DeleteOptions) error // DeleteCollectionFunc mocks the DeleteCollection method. DeleteCollectionFunc func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error // DeleteNamespacedFunc mocks the DeleteNamespaced method. DeleteNamespacedFunc func(namespace string, name string, options *v1.DeleteOptions) error // GetFunc mocks the Get method. GetFunc func(name string, opts v1.GetOptions) (*v3.PipelineSetting, error) // GetNamespacedFunc mocks the GetNamespaced method. GetNamespacedFunc func(namespace string, name string, opts v1.GetOptions) (*v3.PipelineSetting, error) // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.PipelineSettingList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v3.PipelineSetting) (*v3.PipelineSetting, error) // WatchFunc mocks the Watch method. WatchFunc func(opts v1.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
PipelineSettingInterfaceMock is a mock implementation of PipelineSettingInterface.
func TestSomethingThatUsesPipelineSettingInterface(t *testing.T) { // make and configure a mocked PipelineSettingInterface mockedPipelineSettingInterface := &PipelineSettingInterfaceMock{ AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v3.PipelineSettingHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v3.PipelineSettingLifecycle) { panic("mock out the AddClusterScopedLifecycle method") }, AddHandlerFunc: func(ctx context.Context, name string, sync v3.PipelineSettingHandlerFunc) { panic("mock out the AddHandler method") }, AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v3.PipelineSettingLifecycle) { panic("mock out the AddLifecycle method") }, ControllerFunc: func() v3.PipelineSettingController { panic("mock out the Controller method") }, CreateFunc: func(in1 *v3.PipelineSetting) (*v3.PipelineSetting, error) { panic("mock out the Create method") }, DeleteFunc: func(name string, options *v1.DeleteOptions) error { panic("mock out the Delete method") }, DeleteCollectionFunc: func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error { panic("mock out the DeleteCollection method") }, DeleteNamespacedFunc: func(namespace string, name string, options *v1.DeleteOptions) error { panic("mock out the DeleteNamespaced method") }, GetFunc: func(name string, opts v1.GetOptions) (*v3.PipelineSetting, error) { panic("mock out the Get method") }, GetNamespacedFunc: func(namespace string, name string, opts v1.GetOptions) (*v3.PipelineSetting, error) { panic("mock out the GetNamespaced method") }, ListFunc: func(opts v1.ListOptions) (*v3.PipelineSettingList, error) { panic("mock out the List method") }, ObjectClientFunc: func() *objectclient.ObjectClient { panic("mock out the ObjectClient method") }, UpdateFunc: func(in1 *v3.PipelineSetting) (*v3.PipelineSetting, error) { panic("mock out the Update method") }, WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedPipelineSettingInterface in code that requires PipelineSettingInterface // and then make assertions. }
func (*PipelineSettingInterfaceMock) AddClusterScopedHandler ¶
func (mock *PipelineSettingInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v3.PipelineSettingHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*PipelineSettingInterfaceMock) AddClusterScopedHandlerCalls ¶
func (mock *PipelineSettingInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Sync v3.PipelineSettingHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedPipelineSettingInterface.AddClusterScopedHandlerCalls())
func (*PipelineSettingInterfaceMock) AddClusterScopedLifecycle ¶
func (mock *PipelineSettingInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v3.PipelineSettingLifecycle)
AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.
func (*PipelineSettingInterfaceMock) AddClusterScopedLifecycleCalls ¶
func (mock *PipelineSettingInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string Lifecycle v3.PipelineSettingLifecycle }
AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:
len(mockedPipelineSettingInterface.AddClusterScopedLifecycleCalls())
func (*PipelineSettingInterfaceMock) AddHandler ¶
func (mock *PipelineSettingInterfaceMock) AddHandler(ctx context.Context, name string, sync v3.PipelineSettingHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*PipelineSettingInterfaceMock) AddHandlerCalls ¶
func (mock *PipelineSettingInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string Sync v3.PipelineSettingHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedPipelineSettingInterface.AddHandlerCalls())
func (*PipelineSettingInterfaceMock) AddLifecycle ¶
func (mock *PipelineSettingInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v3.PipelineSettingLifecycle)
AddLifecycle calls AddLifecycleFunc.
func (*PipelineSettingInterfaceMock) AddLifecycleCalls ¶
func (mock *PipelineSettingInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string Lifecycle v3.PipelineSettingLifecycle }
AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:
len(mockedPipelineSettingInterface.AddLifecycleCalls())
func (*PipelineSettingInterfaceMock) Controller ¶
func (mock *PipelineSettingInterfaceMock) Controller() v3.PipelineSettingController
Controller calls ControllerFunc.
func (*PipelineSettingInterfaceMock) ControllerCalls ¶
func (mock *PipelineSettingInterfaceMock) ControllerCalls() []struct { }
ControllerCalls gets all the calls that were made to Controller. Check the length with:
len(mockedPipelineSettingInterface.ControllerCalls())
func (*PipelineSettingInterfaceMock) Create ¶
func (mock *PipelineSettingInterfaceMock) Create(in1 *v3.PipelineSetting) (*v3.PipelineSetting, error)
Create calls CreateFunc.
func (*PipelineSettingInterfaceMock) CreateCalls ¶
func (mock *PipelineSettingInterfaceMock) CreateCalls() []struct { In1 *v3.PipelineSetting }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedPipelineSettingInterface.CreateCalls())
func (*PipelineSettingInterfaceMock) Delete ¶
func (mock *PipelineSettingInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
Delete calls DeleteFunc.
func (*PipelineSettingInterfaceMock) DeleteCalls ¶
func (mock *PipelineSettingInterfaceMock) DeleteCalls() []struct { Name string Options *v1.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedPipelineSettingInterface.DeleteCalls())
func (*PipelineSettingInterfaceMock) DeleteCollection ¶
func (mock *PipelineSettingInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection calls DeleteCollectionFunc.
func (*PipelineSettingInterfaceMock) DeleteCollectionCalls ¶
func (mock *PipelineSettingInterfaceMock) DeleteCollectionCalls() []struct { DeleteOpts *v1.DeleteOptions ListOpts v1.ListOptions }
DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:
len(mockedPipelineSettingInterface.DeleteCollectionCalls())
func (*PipelineSettingInterfaceMock) DeleteNamespaced ¶
func (mock *PipelineSettingInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
DeleteNamespaced calls DeleteNamespacedFunc.
func (*PipelineSettingInterfaceMock) DeleteNamespacedCalls ¶
func (mock *PipelineSettingInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string Options *v1.DeleteOptions }
DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:
len(mockedPipelineSettingInterface.DeleteNamespacedCalls())
func (*PipelineSettingInterfaceMock) Get ¶
func (mock *PipelineSettingInterfaceMock) Get(name string, opts v1.GetOptions) (*v3.PipelineSetting, error)
Get calls GetFunc.
func (*PipelineSettingInterfaceMock) GetCalls ¶
func (mock *PipelineSettingInterfaceMock) GetCalls() []struct { Name string Opts v1.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedPipelineSettingInterface.GetCalls())
func (*PipelineSettingInterfaceMock) GetNamespaced ¶
func (mock *PipelineSettingInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v3.PipelineSetting, error)
GetNamespaced calls GetNamespacedFunc.
func (*PipelineSettingInterfaceMock) GetNamespacedCalls ¶
func (mock *PipelineSettingInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string Opts v1.GetOptions }
GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:
len(mockedPipelineSettingInterface.GetNamespacedCalls())
func (*PipelineSettingInterfaceMock) List ¶
func (mock *PipelineSettingInterfaceMock) List(opts v1.ListOptions) (*v3.PipelineSettingList, error)
List calls ListFunc.
func (*PipelineSettingInterfaceMock) ListCalls ¶
func (mock *PipelineSettingInterfaceMock) ListCalls() []struct { Opts v1.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedPipelineSettingInterface.ListCalls())
func (*PipelineSettingInterfaceMock) ObjectClient ¶
func (mock *PipelineSettingInterfaceMock) ObjectClient() *objectclient.ObjectClient
ObjectClient calls ObjectClientFunc.
func (*PipelineSettingInterfaceMock) ObjectClientCalls ¶
func (mock *PipelineSettingInterfaceMock) ObjectClientCalls() []struct { }
ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:
len(mockedPipelineSettingInterface.ObjectClientCalls())
func (*PipelineSettingInterfaceMock) Update ¶
func (mock *PipelineSettingInterfaceMock) Update(in1 *v3.PipelineSetting) (*v3.PipelineSetting, error)
Update calls UpdateFunc.
func (*PipelineSettingInterfaceMock) UpdateCalls ¶
func (mock *PipelineSettingInterfaceMock) UpdateCalls() []struct { In1 *v3.PipelineSetting }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedPipelineSettingInterface.UpdateCalls())
func (*PipelineSettingInterfaceMock) Watch ¶
func (mock *PipelineSettingInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*PipelineSettingInterfaceMock) WatchCalls ¶
func (mock *PipelineSettingInterfaceMock) WatchCalls() []struct { Opts v1.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedPipelineSettingInterface.WatchCalls())
type PipelineSettingListerMock ¶
type PipelineSettingListerMock struct { // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v3.PipelineSetting, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v3.PipelineSetting, error) // contains filtered or unexported fields }
PipelineSettingListerMock is a mock implementation of PipelineSettingLister.
func TestSomethingThatUsesPipelineSettingLister(t *testing.T) { // make and configure a mocked PipelineSettingLister mockedPipelineSettingLister := &PipelineSettingListerMock{ GetFunc: func(namespace string, name string) (*v3.PipelineSetting, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v3.PipelineSetting, error) { panic("mock out the List method") }, } // use mockedPipelineSettingLister in code that requires PipelineSettingLister // and then make assertions. }
func (*PipelineSettingListerMock) Get ¶
func (mock *PipelineSettingListerMock) Get(namespace string, name string) (*v3.PipelineSetting, error)
Get calls GetFunc.
func (*PipelineSettingListerMock) GetCalls ¶
func (mock *PipelineSettingListerMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedPipelineSettingLister.GetCalls())
func (*PipelineSettingListerMock) List ¶
func (mock *PipelineSettingListerMock) List(namespace string, selector labels.Selector) ([]*v3.PipelineSetting, error)
List calls ListFunc.
type PipelineSettingsGetterMock ¶
type PipelineSettingsGetterMock struct { // PipelineSettingsFunc mocks the PipelineSettings method. PipelineSettingsFunc func(namespace string) v3.PipelineSettingInterface // contains filtered or unexported fields }
PipelineSettingsGetterMock is a mock implementation of PipelineSettingsGetter.
func TestSomethingThatUsesPipelineSettingsGetter(t *testing.T) { // make and configure a mocked PipelineSettingsGetter mockedPipelineSettingsGetter := &PipelineSettingsGetterMock{ PipelineSettingsFunc: func(namespace string) v3.PipelineSettingInterface { panic("mock out the PipelineSettings method") }, } // use mockedPipelineSettingsGetter in code that requires PipelineSettingsGetter // and then make assertions. }
func (*PipelineSettingsGetterMock) PipelineSettings ¶
func (mock *PipelineSettingsGetterMock) PipelineSettings(namespace string) v3.PipelineSettingInterface
PipelineSettings calls PipelineSettingsFunc.
func (*PipelineSettingsGetterMock) PipelineSettingsCalls ¶
func (mock *PipelineSettingsGetterMock) PipelineSettingsCalls() []struct { Namespace string }
PipelineSettingsCalls gets all the calls that were made to PipelineSettings. Check the length with:
len(mockedPipelineSettingsGetter.PipelineSettingsCalls())
type PipelinesGetterMock ¶
type PipelinesGetterMock struct { // PipelinesFunc mocks the Pipelines method. PipelinesFunc func(namespace string) v3.PipelineInterface // contains filtered or unexported fields }
PipelinesGetterMock is a mock implementation of PipelinesGetter.
func TestSomethingThatUsesPipelinesGetter(t *testing.T) { // make and configure a mocked PipelinesGetter mockedPipelinesGetter := &PipelinesGetterMock{ PipelinesFunc: func(namespace string) v3.PipelineInterface { panic("mock out the Pipelines method") }, } // use mockedPipelinesGetter in code that requires PipelinesGetter // and then make assertions. }
func (*PipelinesGetterMock) Pipelines ¶
func (mock *PipelinesGetterMock) Pipelines(namespace string) v3.PipelineInterface
Pipelines calls PipelinesFunc.
func (*PipelinesGetterMock) PipelinesCalls ¶
func (mock *PipelinesGetterMock) PipelinesCalls() []struct { Namespace string }
PipelinesCalls gets all the calls that were made to Pipelines. Check the length with:
len(mockedPipelinesGetter.PipelinesCalls())
type SSHAuthControllerMock ¶
type SSHAuthControllerMock struct { // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v3.SSHAuthHandlerFunc) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, handler v3.SSHAuthHandlerFunc) // EnqueueFunc mocks the Enqueue method. EnqueueFunc func(namespace string, name string) // GenericFunc mocks the Generic method. GenericFunc func() controller.GenericController // InformerFunc mocks the Informer method. InformerFunc func() cache.SharedIndexInformer // ListerFunc mocks the Lister method. ListerFunc func() v3.SSHAuthLister // StartFunc mocks the Start method. StartFunc func(ctx context.Context, threadiness int) error // SyncFunc mocks the Sync method. SyncFunc func(ctx context.Context) error // contains filtered or unexported fields }
SSHAuthControllerMock is a mock implementation of SSHAuthController.
func TestSomethingThatUsesSSHAuthController(t *testing.T) { // make and configure a mocked SSHAuthController mockedSSHAuthController := &SSHAuthControllerMock{ AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v3.SSHAuthHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddHandlerFunc: func(ctx context.Context, name string, handler v3.SSHAuthHandlerFunc) { panic("mock out the AddHandler method") }, EnqueueFunc: func(namespace string, name string) { panic("mock out the Enqueue method") }, GenericFunc: func() controller.GenericController { panic("mock out the Generic method") }, InformerFunc: func() cache.SharedIndexInformer { panic("mock out the Informer method") }, ListerFunc: func() v3.SSHAuthLister { panic("mock out the Lister method") }, StartFunc: func(ctx context.Context, threadiness int) error { panic("mock out the Start method") }, SyncFunc: func(ctx context.Context) error { panic("mock out the Sync method") }, } // use mockedSSHAuthController in code that requires SSHAuthController // and then make assertions. }
func (*SSHAuthControllerMock) AddClusterScopedHandler ¶
func (mock *SSHAuthControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v3.SSHAuthHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*SSHAuthControllerMock) AddClusterScopedHandlerCalls ¶
func (mock *SSHAuthControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Handler v3.SSHAuthHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedSSHAuthController.AddClusterScopedHandlerCalls())
func (*SSHAuthControllerMock) AddHandler ¶
func (mock *SSHAuthControllerMock) AddHandler(ctx context.Context, name string, handler v3.SSHAuthHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*SSHAuthControllerMock) AddHandlerCalls ¶
func (mock *SSHAuthControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string Handler v3.SSHAuthHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedSSHAuthController.AddHandlerCalls())
func (*SSHAuthControllerMock) Enqueue ¶
func (mock *SSHAuthControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*SSHAuthControllerMock) EnqueueCalls ¶
func (mock *SSHAuthControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedSSHAuthController.EnqueueCalls())
func (*SSHAuthControllerMock) Generic ¶
func (mock *SSHAuthControllerMock) Generic() controller.GenericController
Generic calls GenericFunc.
func (*SSHAuthControllerMock) GenericCalls ¶
func (mock *SSHAuthControllerMock) GenericCalls() []struct { }
GenericCalls gets all the calls that were made to Generic. Check the length with:
len(mockedSSHAuthController.GenericCalls())
func (*SSHAuthControllerMock) Informer ¶
func (mock *SSHAuthControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*SSHAuthControllerMock) InformerCalls ¶
func (mock *SSHAuthControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedSSHAuthController.InformerCalls())
func (*SSHAuthControllerMock) Lister ¶
func (mock *SSHAuthControllerMock) Lister() v3.SSHAuthLister
Lister calls ListerFunc.
func (*SSHAuthControllerMock) ListerCalls ¶
func (mock *SSHAuthControllerMock) ListerCalls() []struct { }
ListerCalls gets all the calls that were made to Lister. Check the length with:
len(mockedSSHAuthController.ListerCalls())
func (*SSHAuthControllerMock) Start ¶
func (mock *SSHAuthControllerMock) Start(ctx context.Context, threadiness int) error
Start calls StartFunc.
func (*SSHAuthControllerMock) StartCalls ¶
func (mock *SSHAuthControllerMock) StartCalls() []struct { Ctx context.Context Threadiness int }
StartCalls gets all the calls that were made to Start. Check the length with:
len(mockedSSHAuthController.StartCalls())
func (*SSHAuthControllerMock) Sync ¶
func (mock *SSHAuthControllerMock) Sync(ctx context.Context) error
Sync calls SyncFunc.
func (*SSHAuthControllerMock) SyncCalls ¶
func (mock *SSHAuthControllerMock) SyncCalls() []struct { Ctx context.Context }
SyncCalls gets all the calls that were made to Sync. Check the length with:
len(mockedSSHAuthController.SyncCalls())
type SSHAuthInterfaceMock ¶
type SSHAuthInterfaceMock struct { // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v3.SSHAuthHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v3.SSHAuthLifecycle) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, sync v3.SSHAuthHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. AddLifecycleFunc func(ctx context.Context, name string, lifecycle v3.SSHAuthLifecycle) // ControllerFunc mocks the Controller method. ControllerFunc func() v3.SSHAuthController // CreateFunc mocks the Create method. CreateFunc func(in1 *v3.SSHAuth) (*v3.SSHAuth, error) // DeleteFunc mocks the Delete method. DeleteFunc func(name string, options *v1.DeleteOptions) error // DeleteCollectionFunc mocks the DeleteCollection method. DeleteCollectionFunc func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error // DeleteNamespacedFunc mocks the DeleteNamespaced method. DeleteNamespacedFunc func(namespace string, name string, options *v1.DeleteOptions) error // GetFunc mocks the Get method. GetFunc func(name string, opts v1.GetOptions) (*v3.SSHAuth, error) // GetNamespacedFunc mocks the GetNamespaced method. GetNamespacedFunc func(namespace string, name string, opts v1.GetOptions) (*v3.SSHAuth, error) // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.SSHAuthList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v3.SSHAuth) (*v3.SSHAuth, error) // WatchFunc mocks the Watch method. WatchFunc func(opts v1.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
SSHAuthInterfaceMock is a mock implementation of SSHAuthInterface.
func TestSomethingThatUsesSSHAuthInterface(t *testing.T) { // make and configure a mocked SSHAuthInterface mockedSSHAuthInterface := &SSHAuthInterfaceMock{ AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v3.SSHAuthHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v3.SSHAuthLifecycle) { panic("mock out the AddClusterScopedLifecycle method") }, AddHandlerFunc: func(ctx context.Context, name string, sync v3.SSHAuthHandlerFunc) { panic("mock out the AddHandler method") }, AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v3.SSHAuthLifecycle) { panic("mock out the AddLifecycle method") }, ControllerFunc: func() v3.SSHAuthController { panic("mock out the Controller method") }, CreateFunc: func(in1 *v3.SSHAuth) (*v3.SSHAuth, error) { panic("mock out the Create method") }, DeleteFunc: func(name string, options *v1.DeleteOptions) error { panic("mock out the Delete method") }, DeleteCollectionFunc: func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error { panic("mock out the DeleteCollection method") }, DeleteNamespacedFunc: func(namespace string, name string, options *v1.DeleteOptions) error { panic("mock out the DeleteNamespaced method") }, GetFunc: func(name string, opts v1.GetOptions) (*v3.SSHAuth, error) { panic("mock out the Get method") }, GetNamespacedFunc: func(namespace string, name string, opts v1.GetOptions) (*v3.SSHAuth, error) { panic("mock out the GetNamespaced method") }, ListFunc: func(opts v1.ListOptions) (*v3.SSHAuthList, error) { panic("mock out the List method") }, ObjectClientFunc: func() *objectclient.ObjectClient { panic("mock out the ObjectClient method") }, UpdateFunc: func(in1 *v3.SSHAuth) (*v3.SSHAuth, error) { panic("mock out the Update method") }, WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedSSHAuthInterface in code that requires SSHAuthInterface // and then make assertions. }
func (*SSHAuthInterfaceMock) AddClusterScopedHandler ¶
func (mock *SSHAuthInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v3.SSHAuthHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*SSHAuthInterfaceMock) AddClusterScopedHandlerCalls ¶
func (mock *SSHAuthInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Sync v3.SSHAuthHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedSSHAuthInterface.AddClusterScopedHandlerCalls())
func (*SSHAuthInterfaceMock) AddClusterScopedLifecycle ¶
func (mock *SSHAuthInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v3.SSHAuthLifecycle)
AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.
func (*SSHAuthInterfaceMock) AddClusterScopedLifecycleCalls ¶
func (mock *SSHAuthInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string Lifecycle v3.SSHAuthLifecycle }
AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:
len(mockedSSHAuthInterface.AddClusterScopedLifecycleCalls())
func (*SSHAuthInterfaceMock) AddHandler ¶
func (mock *SSHAuthInterfaceMock) AddHandler(ctx context.Context, name string, sync v3.SSHAuthHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*SSHAuthInterfaceMock) AddHandlerCalls ¶
func (mock *SSHAuthInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string Sync v3.SSHAuthHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedSSHAuthInterface.AddHandlerCalls())
func (*SSHAuthInterfaceMock) AddLifecycle ¶
func (mock *SSHAuthInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v3.SSHAuthLifecycle)
AddLifecycle calls AddLifecycleFunc.
func (*SSHAuthInterfaceMock) AddLifecycleCalls ¶
func (mock *SSHAuthInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string Lifecycle v3.SSHAuthLifecycle }
AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:
len(mockedSSHAuthInterface.AddLifecycleCalls())
func (*SSHAuthInterfaceMock) Controller ¶
func (mock *SSHAuthInterfaceMock) Controller() v3.SSHAuthController
Controller calls ControllerFunc.
func (*SSHAuthInterfaceMock) ControllerCalls ¶
func (mock *SSHAuthInterfaceMock) ControllerCalls() []struct { }
ControllerCalls gets all the calls that were made to Controller. Check the length with:
len(mockedSSHAuthInterface.ControllerCalls())
func (*SSHAuthInterfaceMock) CreateCalls ¶
func (mock *SSHAuthInterfaceMock) CreateCalls() []struct { In1 *v3.SSHAuth }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedSSHAuthInterface.CreateCalls())
func (*SSHAuthInterfaceMock) Delete ¶
func (mock *SSHAuthInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
Delete calls DeleteFunc.
func (*SSHAuthInterfaceMock) DeleteCalls ¶
func (mock *SSHAuthInterfaceMock) DeleteCalls() []struct { Name string Options *v1.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedSSHAuthInterface.DeleteCalls())
func (*SSHAuthInterfaceMock) DeleteCollection ¶
func (mock *SSHAuthInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection calls DeleteCollectionFunc.
func (*SSHAuthInterfaceMock) DeleteCollectionCalls ¶
func (mock *SSHAuthInterfaceMock) DeleteCollectionCalls() []struct { DeleteOpts *v1.DeleteOptions ListOpts v1.ListOptions }
DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:
len(mockedSSHAuthInterface.DeleteCollectionCalls())
func (*SSHAuthInterfaceMock) DeleteNamespaced ¶
func (mock *SSHAuthInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
DeleteNamespaced calls DeleteNamespacedFunc.
func (*SSHAuthInterfaceMock) DeleteNamespacedCalls ¶
func (mock *SSHAuthInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string Options *v1.DeleteOptions }
DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:
len(mockedSSHAuthInterface.DeleteNamespacedCalls())
func (*SSHAuthInterfaceMock) Get ¶
func (mock *SSHAuthInterfaceMock) Get(name string, opts v1.GetOptions) (*v3.SSHAuth, error)
Get calls GetFunc.
func (*SSHAuthInterfaceMock) GetCalls ¶
func (mock *SSHAuthInterfaceMock) GetCalls() []struct { Name string Opts v1.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedSSHAuthInterface.GetCalls())
func (*SSHAuthInterfaceMock) GetNamespaced ¶
func (mock *SSHAuthInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v3.SSHAuth, error)
GetNamespaced calls GetNamespacedFunc.
func (*SSHAuthInterfaceMock) GetNamespacedCalls ¶
func (mock *SSHAuthInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string Opts v1.GetOptions }
GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:
len(mockedSSHAuthInterface.GetNamespacedCalls())
func (*SSHAuthInterfaceMock) List ¶
func (mock *SSHAuthInterfaceMock) List(opts v1.ListOptions) (*v3.SSHAuthList, error)
List calls ListFunc.
func (*SSHAuthInterfaceMock) ListCalls ¶
func (mock *SSHAuthInterfaceMock) ListCalls() []struct { Opts v1.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedSSHAuthInterface.ListCalls())
func (*SSHAuthInterfaceMock) ObjectClient ¶
func (mock *SSHAuthInterfaceMock) ObjectClient() *objectclient.ObjectClient
ObjectClient calls ObjectClientFunc.
func (*SSHAuthInterfaceMock) ObjectClientCalls ¶
func (mock *SSHAuthInterfaceMock) ObjectClientCalls() []struct { }
ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:
len(mockedSSHAuthInterface.ObjectClientCalls())
func (*SSHAuthInterfaceMock) UpdateCalls ¶
func (mock *SSHAuthInterfaceMock) UpdateCalls() []struct { In1 *v3.SSHAuth }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedSSHAuthInterface.UpdateCalls())
func (*SSHAuthInterfaceMock) Watch ¶
func (mock *SSHAuthInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*SSHAuthInterfaceMock) WatchCalls ¶
func (mock *SSHAuthInterfaceMock) WatchCalls() []struct { Opts v1.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedSSHAuthInterface.WatchCalls())
type SSHAuthListerMock ¶
type SSHAuthListerMock struct { // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v3.SSHAuth, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v3.SSHAuth, error) // contains filtered or unexported fields }
SSHAuthListerMock is a mock implementation of SSHAuthLister.
func TestSomethingThatUsesSSHAuthLister(t *testing.T) { // make and configure a mocked SSHAuthLister mockedSSHAuthLister := &SSHAuthListerMock{ GetFunc: func(namespace string, name string) (*v3.SSHAuth, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v3.SSHAuth, error) { panic("mock out the List method") }, } // use mockedSSHAuthLister in code that requires SSHAuthLister // and then make assertions. }
func (*SSHAuthListerMock) GetCalls ¶
func (mock *SSHAuthListerMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedSSHAuthLister.GetCalls())
type SSHAuthsGetterMock ¶
type SSHAuthsGetterMock struct { // SSHAuthsFunc mocks the SSHAuths method. SSHAuthsFunc func(namespace string) v3.SSHAuthInterface // contains filtered or unexported fields }
SSHAuthsGetterMock is a mock implementation of SSHAuthsGetter.
func TestSomethingThatUsesSSHAuthsGetter(t *testing.T) { // make and configure a mocked SSHAuthsGetter mockedSSHAuthsGetter := &SSHAuthsGetterMock{ SSHAuthsFunc: func(namespace string) v3.SSHAuthInterface { panic("mock out the SSHAuths method") }, } // use mockedSSHAuthsGetter in code that requires SSHAuthsGetter // and then make assertions. }
func (*SSHAuthsGetterMock) SSHAuths ¶
func (mock *SSHAuthsGetterMock) SSHAuths(namespace string) v3.SSHAuthInterface
SSHAuths calls SSHAuthsFunc.
func (*SSHAuthsGetterMock) SSHAuthsCalls ¶
func (mock *SSHAuthsGetterMock) SSHAuthsCalls() []struct { Namespace string }
SSHAuthsCalls gets all the calls that were made to SSHAuths. Check the length with:
len(mockedSSHAuthsGetter.SSHAuthsCalls())
type ServiceAccountTokenControllerMock ¶
type ServiceAccountTokenControllerMock struct { // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v3.ServiceAccountTokenHandlerFunc) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, handler v3.ServiceAccountTokenHandlerFunc) // EnqueueFunc mocks the Enqueue method. EnqueueFunc func(namespace string, name string) // GenericFunc mocks the Generic method. GenericFunc func() controller.GenericController // InformerFunc mocks the Informer method. InformerFunc func() cache.SharedIndexInformer // ListerFunc mocks the Lister method. ListerFunc func() v3.ServiceAccountTokenLister // StartFunc mocks the Start method. StartFunc func(ctx context.Context, threadiness int) error // SyncFunc mocks the Sync method. SyncFunc func(ctx context.Context) error // contains filtered or unexported fields }
ServiceAccountTokenControllerMock is a mock implementation of ServiceAccountTokenController.
func TestSomethingThatUsesServiceAccountTokenController(t *testing.T) { // make and configure a mocked ServiceAccountTokenController mockedServiceAccountTokenController := &ServiceAccountTokenControllerMock{ AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v3.ServiceAccountTokenHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddHandlerFunc: func(ctx context.Context, name string, handler v3.ServiceAccountTokenHandlerFunc) { panic("mock out the AddHandler method") }, EnqueueFunc: func(namespace string, name string) { panic("mock out the Enqueue method") }, GenericFunc: func() controller.GenericController { panic("mock out the Generic method") }, InformerFunc: func() cache.SharedIndexInformer { panic("mock out the Informer method") }, ListerFunc: func() v3.ServiceAccountTokenLister { panic("mock out the Lister method") }, StartFunc: func(ctx context.Context, threadiness int) error { panic("mock out the Start method") }, SyncFunc: func(ctx context.Context) error { panic("mock out the Sync method") }, } // use mockedServiceAccountTokenController in code that requires ServiceAccountTokenController // and then make assertions. }
func (*ServiceAccountTokenControllerMock) AddClusterScopedHandler ¶
func (mock *ServiceAccountTokenControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v3.ServiceAccountTokenHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*ServiceAccountTokenControllerMock) AddClusterScopedHandlerCalls ¶
func (mock *ServiceAccountTokenControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Handler v3.ServiceAccountTokenHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedServiceAccountTokenController.AddClusterScopedHandlerCalls())
func (*ServiceAccountTokenControllerMock) AddHandler ¶
func (mock *ServiceAccountTokenControllerMock) AddHandler(ctx context.Context, name string, handler v3.ServiceAccountTokenHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*ServiceAccountTokenControllerMock) AddHandlerCalls ¶
func (mock *ServiceAccountTokenControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string Handler v3.ServiceAccountTokenHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedServiceAccountTokenController.AddHandlerCalls())
func (*ServiceAccountTokenControllerMock) Enqueue ¶
func (mock *ServiceAccountTokenControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*ServiceAccountTokenControllerMock) EnqueueCalls ¶
func (mock *ServiceAccountTokenControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedServiceAccountTokenController.EnqueueCalls())
func (*ServiceAccountTokenControllerMock) Generic ¶
func (mock *ServiceAccountTokenControllerMock) Generic() controller.GenericController
Generic calls GenericFunc.
func (*ServiceAccountTokenControllerMock) GenericCalls ¶
func (mock *ServiceAccountTokenControllerMock) GenericCalls() []struct { }
GenericCalls gets all the calls that were made to Generic. Check the length with:
len(mockedServiceAccountTokenController.GenericCalls())
func (*ServiceAccountTokenControllerMock) Informer ¶
func (mock *ServiceAccountTokenControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*ServiceAccountTokenControllerMock) InformerCalls ¶
func (mock *ServiceAccountTokenControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedServiceAccountTokenController.InformerCalls())
func (*ServiceAccountTokenControllerMock) Lister ¶
func (mock *ServiceAccountTokenControllerMock) Lister() v3.ServiceAccountTokenLister
Lister calls ListerFunc.
func (*ServiceAccountTokenControllerMock) ListerCalls ¶
func (mock *ServiceAccountTokenControllerMock) ListerCalls() []struct { }
ListerCalls gets all the calls that were made to Lister. Check the length with:
len(mockedServiceAccountTokenController.ListerCalls())
func (*ServiceAccountTokenControllerMock) Start ¶
func (mock *ServiceAccountTokenControllerMock) Start(ctx context.Context, threadiness int) error
Start calls StartFunc.
func (*ServiceAccountTokenControllerMock) StartCalls ¶
func (mock *ServiceAccountTokenControllerMock) StartCalls() []struct { Ctx context.Context Threadiness int }
StartCalls gets all the calls that were made to Start. Check the length with:
len(mockedServiceAccountTokenController.StartCalls())
func (*ServiceAccountTokenControllerMock) Sync ¶
func (mock *ServiceAccountTokenControllerMock) Sync(ctx context.Context) error
Sync calls SyncFunc.
func (*ServiceAccountTokenControllerMock) SyncCalls ¶
func (mock *ServiceAccountTokenControllerMock) SyncCalls() []struct { Ctx context.Context }
SyncCalls gets all the calls that were made to Sync. Check the length with:
len(mockedServiceAccountTokenController.SyncCalls())
type ServiceAccountTokenInterfaceMock ¶
type ServiceAccountTokenInterfaceMock struct { // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v3.ServiceAccountTokenHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v3.ServiceAccountTokenLifecycle) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, sync v3.ServiceAccountTokenHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. AddLifecycleFunc func(ctx context.Context, name string, lifecycle v3.ServiceAccountTokenLifecycle) // ControllerFunc mocks the Controller method. ControllerFunc func() v3.ServiceAccountTokenController // CreateFunc mocks the Create method. CreateFunc func(in1 *v3.ServiceAccountToken) (*v3.ServiceAccountToken, error) // DeleteFunc mocks the Delete method. DeleteFunc func(name string, options *v1.DeleteOptions) error // DeleteCollectionFunc mocks the DeleteCollection method. DeleteCollectionFunc func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error // DeleteNamespacedFunc mocks the DeleteNamespaced method. DeleteNamespacedFunc func(namespace string, name string, options *v1.DeleteOptions) error // GetFunc mocks the Get method. GetFunc func(name string, opts v1.GetOptions) (*v3.ServiceAccountToken, error) // GetNamespacedFunc mocks the GetNamespaced method. GetNamespacedFunc func(namespace string, name string, opts v1.GetOptions) (*v3.ServiceAccountToken, error) // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.ServiceAccountTokenList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v3.ServiceAccountToken) (*v3.ServiceAccountToken, error) // WatchFunc mocks the Watch method. WatchFunc func(opts v1.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
ServiceAccountTokenInterfaceMock is a mock implementation of ServiceAccountTokenInterface.
func TestSomethingThatUsesServiceAccountTokenInterface(t *testing.T) { // make and configure a mocked ServiceAccountTokenInterface mockedServiceAccountTokenInterface := &ServiceAccountTokenInterfaceMock{ AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v3.ServiceAccountTokenHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v3.ServiceAccountTokenLifecycle) { panic("mock out the AddClusterScopedLifecycle method") }, AddHandlerFunc: func(ctx context.Context, name string, sync v3.ServiceAccountTokenHandlerFunc) { panic("mock out the AddHandler method") }, AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v3.ServiceAccountTokenLifecycle) { panic("mock out the AddLifecycle method") }, ControllerFunc: func() v3.ServiceAccountTokenController { panic("mock out the Controller method") }, CreateFunc: func(in1 *v3.ServiceAccountToken) (*v3.ServiceAccountToken, error) { panic("mock out the Create method") }, DeleteFunc: func(name string, options *v1.DeleteOptions) error { panic("mock out the Delete method") }, DeleteCollectionFunc: func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error { panic("mock out the DeleteCollection method") }, DeleteNamespacedFunc: func(namespace string, name string, options *v1.DeleteOptions) error { panic("mock out the DeleteNamespaced method") }, GetFunc: func(name string, opts v1.GetOptions) (*v3.ServiceAccountToken, error) { panic("mock out the Get method") }, GetNamespacedFunc: func(namespace string, name string, opts v1.GetOptions) (*v3.ServiceAccountToken, error) { panic("mock out the GetNamespaced method") }, ListFunc: func(opts v1.ListOptions) (*v3.ServiceAccountTokenList, error) { panic("mock out the List method") }, ObjectClientFunc: func() *objectclient.ObjectClient { panic("mock out the ObjectClient method") }, UpdateFunc: func(in1 *v3.ServiceAccountToken) (*v3.ServiceAccountToken, error) { panic("mock out the Update method") }, WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedServiceAccountTokenInterface in code that requires ServiceAccountTokenInterface // and then make assertions. }
func (*ServiceAccountTokenInterfaceMock) AddClusterScopedHandler ¶
func (mock *ServiceAccountTokenInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v3.ServiceAccountTokenHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*ServiceAccountTokenInterfaceMock) AddClusterScopedHandlerCalls ¶
func (mock *ServiceAccountTokenInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Sync v3.ServiceAccountTokenHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedServiceAccountTokenInterface.AddClusterScopedHandlerCalls())
func (*ServiceAccountTokenInterfaceMock) AddClusterScopedLifecycle ¶
func (mock *ServiceAccountTokenInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v3.ServiceAccountTokenLifecycle)
AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.
func (*ServiceAccountTokenInterfaceMock) AddClusterScopedLifecycleCalls ¶
func (mock *ServiceAccountTokenInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string Lifecycle v3.ServiceAccountTokenLifecycle }
AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:
len(mockedServiceAccountTokenInterface.AddClusterScopedLifecycleCalls())
func (*ServiceAccountTokenInterfaceMock) AddHandler ¶
func (mock *ServiceAccountTokenInterfaceMock) AddHandler(ctx context.Context, name string, sync v3.ServiceAccountTokenHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*ServiceAccountTokenInterfaceMock) AddHandlerCalls ¶
func (mock *ServiceAccountTokenInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string Sync v3.ServiceAccountTokenHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedServiceAccountTokenInterface.AddHandlerCalls())
func (*ServiceAccountTokenInterfaceMock) AddLifecycle ¶
func (mock *ServiceAccountTokenInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v3.ServiceAccountTokenLifecycle)
AddLifecycle calls AddLifecycleFunc.
func (*ServiceAccountTokenInterfaceMock) AddLifecycleCalls ¶
func (mock *ServiceAccountTokenInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string Lifecycle v3.ServiceAccountTokenLifecycle }
AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:
len(mockedServiceAccountTokenInterface.AddLifecycleCalls())
func (*ServiceAccountTokenInterfaceMock) Controller ¶
func (mock *ServiceAccountTokenInterfaceMock) Controller() v3.ServiceAccountTokenController
Controller calls ControllerFunc.
func (*ServiceAccountTokenInterfaceMock) ControllerCalls ¶
func (mock *ServiceAccountTokenInterfaceMock) ControllerCalls() []struct { }
ControllerCalls gets all the calls that were made to Controller. Check the length with:
len(mockedServiceAccountTokenInterface.ControllerCalls())
func (*ServiceAccountTokenInterfaceMock) Create ¶
func (mock *ServiceAccountTokenInterfaceMock) Create(in1 *v3.ServiceAccountToken) (*v3.ServiceAccountToken, error)
Create calls CreateFunc.
func (*ServiceAccountTokenInterfaceMock) CreateCalls ¶
func (mock *ServiceAccountTokenInterfaceMock) CreateCalls() []struct { In1 *v3.ServiceAccountToken }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedServiceAccountTokenInterface.CreateCalls())
func (*ServiceAccountTokenInterfaceMock) Delete ¶
func (mock *ServiceAccountTokenInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
Delete calls DeleteFunc.
func (*ServiceAccountTokenInterfaceMock) DeleteCalls ¶
func (mock *ServiceAccountTokenInterfaceMock) DeleteCalls() []struct { Name string Options *v1.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedServiceAccountTokenInterface.DeleteCalls())
func (*ServiceAccountTokenInterfaceMock) DeleteCollection ¶
func (mock *ServiceAccountTokenInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection calls DeleteCollectionFunc.
func (*ServiceAccountTokenInterfaceMock) DeleteCollectionCalls ¶
func (mock *ServiceAccountTokenInterfaceMock) DeleteCollectionCalls() []struct { DeleteOpts *v1.DeleteOptions ListOpts v1.ListOptions }
DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:
len(mockedServiceAccountTokenInterface.DeleteCollectionCalls())
func (*ServiceAccountTokenInterfaceMock) DeleteNamespaced ¶
func (mock *ServiceAccountTokenInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
DeleteNamespaced calls DeleteNamespacedFunc.
func (*ServiceAccountTokenInterfaceMock) DeleteNamespacedCalls ¶
func (mock *ServiceAccountTokenInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string Options *v1.DeleteOptions }
DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:
len(mockedServiceAccountTokenInterface.DeleteNamespacedCalls())
func (*ServiceAccountTokenInterfaceMock) Get ¶
func (mock *ServiceAccountTokenInterfaceMock) Get(name string, opts v1.GetOptions) (*v3.ServiceAccountToken, error)
Get calls GetFunc.
func (*ServiceAccountTokenInterfaceMock) GetCalls ¶
func (mock *ServiceAccountTokenInterfaceMock) GetCalls() []struct { Name string Opts v1.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedServiceAccountTokenInterface.GetCalls())
func (*ServiceAccountTokenInterfaceMock) GetNamespaced ¶
func (mock *ServiceAccountTokenInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v3.ServiceAccountToken, error)
GetNamespaced calls GetNamespacedFunc.
func (*ServiceAccountTokenInterfaceMock) GetNamespacedCalls ¶
func (mock *ServiceAccountTokenInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string Opts v1.GetOptions }
GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:
len(mockedServiceAccountTokenInterface.GetNamespacedCalls())
func (*ServiceAccountTokenInterfaceMock) List ¶
func (mock *ServiceAccountTokenInterfaceMock) List(opts v1.ListOptions) (*v3.ServiceAccountTokenList, error)
List calls ListFunc.
func (*ServiceAccountTokenInterfaceMock) ListCalls ¶
func (mock *ServiceAccountTokenInterfaceMock) ListCalls() []struct { Opts v1.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedServiceAccountTokenInterface.ListCalls())
func (*ServiceAccountTokenInterfaceMock) ObjectClient ¶
func (mock *ServiceAccountTokenInterfaceMock) ObjectClient() *objectclient.ObjectClient
ObjectClient calls ObjectClientFunc.
func (*ServiceAccountTokenInterfaceMock) ObjectClientCalls ¶
func (mock *ServiceAccountTokenInterfaceMock) ObjectClientCalls() []struct { }
ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:
len(mockedServiceAccountTokenInterface.ObjectClientCalls())
func (*ServiceAccountTokenInterfaceMock) Update ¶
func (mock *ServiceAccountTokenInterfaceMock) Update(in1 *v3.ServiceAccountToken) (*v3.ServiceAccountToken, error)
Update calls UpdateFunc.
func (*ServiceAccountTokenInterfaceMock) UpdateCalls ¶
func (mock *ServiceAccountTokenInterfaceMock) UpdateCalls() []struct { In1 *v3.ServiceAccountToken }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedServiceAccountTokenInterface.UpdateCalls())
func (*ServiceAccountTokenInterfaceMock) Watch ¶
func (mock *ServiceAccountTokenInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*ServiceAccountTokenInterfaceMock) WatchCalls ¶
func (mock *ServiceAccountTokenInterfaceMock) WatchCalls() []struct { Opts v1.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedServiceAccountTokenInterface.WatchCalls())
type ServiceAccountTokenListerMock ¶
type ServiceAccountTokenListerMock struct { // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v3.ServiceAccountToken, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v3.ServiceAccountToken, error) // contains filtered or unexported fields }
ServiceAccountTokenListerMock is a mock implementation of ServiceAccountTokenLister.
func TestSomethingThatUsesServiceAccountTokenLister(t *testing.T) { // make and configure a mocked ServiceAccountTokenLister mockedServiceAccountTokenLister := &ServiceAccountTokenListerMock{ GetFunc: func(namespace string, name string) (*v3.ServiceAccountToken, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v3.ServiceAccountToken, error) { panic("mock out the List method") }, } // use mockedServiceAccountTokenLister in code that requires ServiceAccountTokenLister // and then make assertions. }
func (*ServiceAccountTokenListerMock) Get ¶
func (mock *ServiceAccountTokenListerMock) Get(namespace string, name string) (*v3.ServiceAccountToken, error)
Get calls GetFunc.
func (*ServiceAccountTokenListerMock) GetCalls ¶
func (mock *ServiceAccountTokenListerMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedServiceAccountTokenLister.GetCalls())
func (*ServiceAccountTokenListerMock) List ¶
func (mock *ServiceAccountTokenListerMock) List(namespace string, selector labels.Selector) ([]*v3.ServiceAccountToken, error)
List calls ListFunc.
type ServiceAccountTokensGetterMock ¶
type ServiceAccountTokensGetterMock struct { // ServiceAccountTokensFunc mocks the ServiceAccountTokens method. ServiceAccountTokensFunc func(namespace string) v3.ServiceAccountTokenInterface // contains filtered or unexported fields }
ServiceAccountTokensGetterMock is a mock implementation of ServiceAccountTokensGetter.
func TestSomethingThatUsesServiceAccountTokensGetter(t *testing.T) { // make and configure a mocked ServiceAccountTokensGetter mockedServiceAccountTokensGetter := &ServiceAccountTokensGetterMock{ ServiceAccountTokensFunc: func(namespace string) v3.ServiceAccountTokenInterface { panic("mock out the ServiceAccountTokens method") }, } // use mockedServiceAccountTokensGetter in code that requires ServiceAccountTokensGetter // and then make assertions. }
func (*ServiceAccountTokensGetterMock) ServiceAccountTokens ¶
func (mock *ServiceAccountTokensGetterMock) ServiceAccountTokens(namespace string) v3.ServiceAccountTokenInterface
ServiceAccountTokens calls ServiceAccountTokensFunc.
func (*ServiceAccountTokensGetterMock) ServiceAccountTokensCalls ¶
func (mock *ServiceAccountTokensGetterMock) ServiceAccountTokensCalls() []struct { Namespace string }
ServiceAccountTokensCalls gets all the calls that were made to ServiceAccountTokens. Check the length with:
len(mockedServiceAccountTokensGetter.ServiceAccountTokensCalls())
type SourceCodeCredentialControllerMock ¶
type SourceCodeCredentialControllerMock struct { // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v3.SourceCodeCredentialHandlerFunc) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, handler v3.SourceCodeCredentialHandlerFunc) // EnqueueFunc mocks the Enqueue method. EnqueueFunc func(namespace string, name string) // GenericFunc mocks the Generic method. GenericFunc func() controller.GenericController // InformerFunc mocks the Informer method. InformerFunc func() cache.SharedIndexInformer // ListerFunc mocks the Lister method. ListerFunc func() v3.SourceCodeCredentialLister // StartFunc mocks the Start method. StartFunc func(ctx context.Context, threadiness int) error // SyncFunc mocks the Sync method. SyncFunc func(ctx context.Context) error // contains filtered or unexported fields }
SourceCodeCredentialControllerMock is a mock implementation of SourceCodeCredentialController.
func TestSomethingThatUsesSourceCodeCredentialController(t *testing.T) { // make and configure a mocked SourceCodeCredentialController mockedSourceCodeCredentialController := &SourceCodeCredentialControllerMock{ AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v3.SourceCodeCredentialHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddHandlerFunc: func(ctx context.Context, name string, handler v3.SourceCodeCredentialHandlerFunc) { panic("mock out the AddHandler method") }, EnqueueFunc: func(namespace string, name string) { panic("mock out the Enqueue method") }, GenericFunc: func() controller.GenericController { panic("mock out the Generic method") }, InformerFunc: func() cache.SharedIndexInformer { panic("mock out the Informer method") }, ListerFunc: func() v3.SourceCodeCredentialLister { panic("mock out the Lister method") }, StartFunc: func(ctx context.Context, threadiness int) error { panic("mock out the Start method") }, SyncFunc: func(ctx context.Context) error { panic("mock out the Sync method") }, } // use mockedSourceCodeCredentialController in code that requires SourceCodeCredentialController // and then make assertions. }
func (*SourceCodeCredentialControllerMock) AddClusterScopedHandler ¶
func (mock *SourceCodeCredentialControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v3.SourceCodeCredentialHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*SourceCodeCredentialControllerMock) AddClusterScopedHandlerCalls ¶
func (mock *SourceCodeCredentialControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Handler v3.SourceCodeCredentialHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedSourceCodeCredentialController.AddClusterScopedHandlerCalls())
func (*SourceCodeCredentialControllerMock) AddHandler ¶
func (mock *SourceCodeCredentialControllerMock) AddHandler(ctx context.Context, name string, handler v3.SourceCodeCredentialHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*SourceCodeCredentialControllerMock) AddHandlerCalls ¶
func (mock *SourceCodeCredentialControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string Handler v3.SourceCodeCredentialHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedSourceCodeCredentialController.AddHandlerCalls())
func (*SourceCodeCredentialControllerMock) Enqueue ¶
func (mock *SourceCodeCredentialControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*SourceCodeCredentialControllerMock) EnqueueCalls ¶
func (mock *SourceCodeCredentialControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedSourceCodeCredentialController.EnqueueCalls())
func (*SourceCodeCredentialControllerMock) Generic ¶
func (mock *SourceCodeCredentialControllerMock) Generic() controller.GenericController
Generic calls GenericFunc.
func (*SourceCodeCredentialControllerMock) GenericCalls ¶
func (mock *SourceCodeCredentialControllerMock) GenericCalls() []struct { }
GenericCalls gets all the calls that were made to Generic. Check the length with:
len(mockedSourceCodeCredentialController.GenericCalls())
func (*SourceCodeCredentialControllerMock) Informer ¶
func (mock *SourceCodeCredentialControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*SourceCodeCredentialControllerMock) InformerCalls ¶
func (mock *SourceCodeCredentialControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedSourceCodeCredentialController.InformerCalls())
func (*SourceCodeCredentialControllerMock) Lister ¶
func (mock *SourceCodeCredentialControllerMock) Lister() v3.SourceCodeCredentialLister
Lister calls ListerFunc.
func (*SourceCodeCredentialControllerMock) ListerCalls ¶
func (mock *SourceCodeCredentialControllerMock) ListerCalls() []struct { }
ListerCalls gets all the calls that were made to Lister. Check the length with:
len(mockedSourceCodeCredentialController.ListerCalls())
func (*SourceCodeCredentialControllerMock) Start ¶
func (mock *SourceCodeCredentialControllerMock) Start(ctx context.Context, threadiness int) error
Start calls StartFunc.
func (*SourceCodeCredentialControllerMock) StartCalls ¶
func (mock *SourceCodeCredentialControllerMock) StartCalls() []struct { Ctx context.Context Threadiness int }
StartCalls gets all the calls that were made to Start. Check the length with:
len(mockedSourceCodeCredentialController.StartCalls())
func (*SourceCodeCredentialControllerMock) Sync ¶
func (mock *SourceCodeCredentialControllerMock) Sync(ctx context.Context) error
Sync calls SyncFunc.
func (*SourceCodeCredentialControllerMock) SyncCalls ¶
func (mock *SourceCodeCredentialControllerMock) SyncCalls() []struct { Ctx context.Context }
SyncCalls gets all the calls that were made to Sync. Check the length with:
len(mockedSourceCodeCredentialController.SyncCalls())
type SourceCodeCredentialInterfaceMock ¶
type SourceCodeCredentialInterfaceMock struct { // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v3.SourceCodeCredentialHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v3.SourceCodeCredentialLifecycle) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, sync v3.SourceCodeCredentialHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. AddLifecycleFunc func(ctx context.Context, name string, lifecycle v3.SourceCodeCredentialLifecycle) // ControllerFunc mocks the Controller method. ControllerFunc func() v3.SourceCodeCredentialController // CreateFunc mocks the Create method. CreateFunc func(in1 *v3.SourceCodeCredential) (*v3.SourceCodeCredential, error) // DeleteFunc mocks the Delete method. DeleteFunc func(name string, options *v1.DeleteOptions) error // DeleteCollectionFunc mocks the DeleteCollection method. DeleteCollectionFunc func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error // DeleteNamespacedFunc mocks the DeleteNamespaced method. DeleteNamespacedFunc func(namespace string, name string, options *v1.DeleteOptions) error // GetFunc mocks the Get method. GetFunc func(name string, opts v1.GetOptions) (*v3.SourceCodeCredential, error) // GetNamespacedFunc mocks the GetNamespaced method. GetNamespacedFunc func(namespace string, name string, opts v1.GetOptions) (*v3.SourceCodeCredential, error) // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.SourceCodeCredentialList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v3.SourceCodeCredential) (*v3.SourceCodeCredential, error) // WatchFunc mocks the Watch method. WatchFunc func(opts v1.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
SourceCodeCredentialInterfaceMock is a mock implementation of SourceCodeCredentialInterface.
func TestSomethingThatUsesSourceCodeCredentialInterface(t *testing.T) { // make and configure a mocked SourceCodeCredentialInterface mockedSourceCodeCredentialInterface := &SourceCodeCredentialInterfaceMock{ AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v3.SourceCodeCredentialHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v3.SourceCodeCredentialLifecycle) { panic("mock out the AddClusterScopedLifecycle method") }, AddHandlerFunc: func(ctx context.Context, name string, sync v3.SourceCodeCredentialHandlerFunc) { panic("mock out the AddHandler method") }, AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v3.SourceCodeCredentialLifecycle) { panic("mock out the AddLifecycle method") }, ControllerFunc: func() v3.SourceCodeCredentialController { panic("mock out the Controller method") }, CreateFunc: func(in1 *v3.SourceCodeCredential) (*v3.SourceCodeCredential, error) { panic("mock out the Create method") }, DeleteFunc: func(name string, options *v1.DeleteOptions) error { panic("mock out the Delete method") }, DeleteCollectionFunc: func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error { panic("mock out the DeleteCollection method") }, DeleteNamespacedFunc: func(namespace string, name string, options *v1.DeleteOptions) error { panic("mock out the DeleteNamespaced method") }, GetFunc: func(name string, opts v1.GetOptions) (*v3.SourceCodeCredential, error) { panic("mock out the Get method") }, GetNamespacedFunc: func(namespace string, name string, opts v1.GetOptions) (*v3.SourceCodeCredential, error) { panic("mock out the GetNamespaced method") }, ListFunc: func(opts v1.ListOptions) (*v3.SourceCodeCredentialList, error) { panic("mock out the List method") }, ObjectClientFunc: func() *objectclient.ObjectClient { panic("mock out the ObjectClient method") }, UpdateFunc: func(in1 *v3.SourceCodeCredential) (*v3.SourceCodeCredential, error) { panic("mock out the Update method") }, WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedSourceCodeCredentialInterface in code that requires SourceCodeCredentialInterface // and then make assertions. }
func (*SourceCodeCredentialInterfaceMock) AddClusterScopedHandler ¶
func (mock *SourceCodeCredentialInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v3.SourceCodeCredentialHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*SourceCodeCredentialInterfaceMock) AddClusterScopedHandlerCalls ¶
func (mock *SourceCodeCredentialInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Sync v3.SourceCodeCredentialHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedSourceCodeCredentialInterface.AddClusterScopedHandlerCalls())
func (*SourceCodeCredentialInterfaceMock) AddClusterScopedLifecycle ¶
func (mock *SourceCodeCredentialInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v3.SourceCodeCredentialLifecycle)
AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.
func (*SourceCodeCredentialInterfaceMock) AddClusterScopedLifecycleCalls ¶
func (mock *SourceCodeCredentialInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string Lifecycle v3.SourceCodeCredentialLifecycle }
AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:
len(mockedSourceCodeCredentialInterface.AddClusterScopedLifecycleCalls())
func (*SourceCodeCredentialInterfaceMock) AddHandler ¶
func (mock *SourceCodeCredentialInterfaceMock) AddHandler(ctx context.Context, name string, sync v3.SourceCodeCredentialHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*SourceCodeCredentialInterfaceMock) AddHandlerCalls ¶
func (mock *SourceCodeCredentialInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string Sync v3.SourceCodeCredentialHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedSourceCodeCredentialInterface.AddHandlerCalls())
func (*SourceCodeCredentialInterfaceMock) AddLifecycle ¶
func (mock *SourceCodeCredentialInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v3.SourceCodeCredentialLifecycle)
AddLifecycle calls AddLifecycleFunc.
func (*SourceCodeCredentialInterfaceMock) AddLifecycleCalls ¶
func (mock *SourceCodeCredentialInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string Lifecycle v3.SourceCodeCredentialLifecycle }
AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:
len(mockedSourceCodeCredentialInterface.AddLifecycleCalls())
func (*SourceCodeCredentialInterfaceMock) Controller ¶
func (mock *SourceCodeCredentialInterfaceMock) Controller() v3.SourceCodeCredentialController
Controller calls ControllerFunc.
func (*SourceCodeCredentialInterfaceMock) ControllerCalls ¶
func (mock *SourceCodeCredentialInterfaceMock) ControllerCalls() []struct { }
ControllerCalls gets all the calls that were made to Controller. Check the length with:
len(mockedSourceCodeCredentialInterface.ControllerCalls())
func (*SourceCodeCredentialInterfaceMock) Create ¶
func (mock *SourceCodeCredentialInterfaceMock) Create(in1 *v3.SourceCodeCredential) (*v3.SourceCodeCredential, error)
Create calls CreateFunc.
func (*SourceCodeCredentialInterfaceMock) CreateCalls ¶
func (mock *SourceCodeCredentialInterfaceMock) CreateCalls() []struct { In1 *v3.SourceCodeCredential }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedSourceCodeCredentialInterface.CreateCalls())
func (*SourceCodeCredentialInterfaceMock) Delete ¶
func (mock *SourceCodeCredentialInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
Delete calls DeleteFunc.
func (*SourceCodeCredentialInterfaceMock) DeleteCalls ¶
func (mock *SourceCodeCredentialInterfaceMock) DeleteCalls() []struct { Name string Options *v1.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedSourceCodeCredentialInterface.DeleteCalls())
func (*SourceCodeCredentialInterfaceMock) DeleteCollection ¶
func (mock *SourceCodeCredentialInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection calls DeleteCollectionFunc.
func (*SourceCodeCredentialInterfaceMock) DeleteCollectionCalls ¶
func (mock *SourceCodeCredentialInterfaceMock) DeleteCollectionCalls() []struct { DeleteOpts *v1.DeleteOptions ListOpts v1.ListOptions }
DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:
len(mockedSourceCodeCredentialInterface.DeleteCollectionCalls())
func (*SourceCodeCredentialInterfaceMock) DeleteNamespaced ¶
func (mock *SourceCodeCredentialInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
DeleteNamespaced calls DeleteNamespacedFunc.
func (*SourceCodeCredentialInterfaceMock) DeleteNamespacedCalls ¶
func (mock *SourceCodeCredentialInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string Options *v1.DeleteOptions }
DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:
len(mockedSourceCodeCredentialInterface.DeleteNamespacedCalls())
func (*SourceCodeCredentialInterfaceMock) Get ¶
func (mock *SourceCodeCredentialInterfaceMock) Get(name string, opts v1.GetOptions) (*v3.SourceCodeCredential, error)
Get calls GetFunc.
func (*SourceCodeCredentialInterfaceMock) GetCalls ¶
func (mock *SourceCodeCredentialInterfaceMock) GetCalls() []struct { Name string Opts v1.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedSourceCodeCredentialInterface.GetCalls())
func (*SourceCodeCredentialInterfaceMock) GetNamespaced ¶
func (mock *SourceCodeCredentialInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v3.SourceCodeCredential, error)
GetNamespaced calls GetNamespacedFunc.
func (*SourceCodeCredentialInterfaceMock) GetNamespacedCalls ¶
func (mock *SourceCodeCredentialInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string Opts v1.GetOptions }
GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:
len(mockedSourceCodeCredentialInterface.GetNamespacedCalls())
func (*SourceCodeCredentialInterfaceMock) List ¶
func (mock *SourceCodeCredentialInterfaceMock) List(opts v1.ListOptions) (*v3.SourceCodeCredentialList, error)
List calls ListFunc.
func (*SourceCodeCredentialInterfaceMock) ListCalls ¶
func (mock *SourceCodeCredentialInterfaceMock) ListCalls() []struct { Opts v1.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedSourceCodeCredentialInterface.ListCalls())
func (*SourceCodeCredentialInterfaceMock) ObjectClient ¶
func (mock *SourceCodeCredentialInterfaceMock) ObjectClient() *objectclient.ObjectClient
ObjectClient calls ObjectClientFunc.
func (*SourceCodeCredentialInterfaceMock) ObjectClientCalls ¶
func (mock *SourceCodeCredentialInterfaceMock) ObjectClientCalls() []struct { }
ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:
len(mockedSourceCodeCredentialInterface.ObjectClientCalls())
func (*SourceCodeCredentialInterfaceMock) Update ¶
func (mock *SourceCodeCredentialInterfaceMock) Update(in1 *v3.SourceCodeCredential) (*v3.SourceCodeCredential, error)
Update calls UpdateFunc.
func (*SourceCodeCredentialInterfaceMock) UpdateCalls ¶
func (mock *SourceCodeCredentialInterfaceMock) UpdateCalls() []struct { In1 *v3.SourceCodeCredential }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedSourceCodeCredentialInterface.UpdateCalls())
func (*SourceCodeCredentialInterfaceMock) Watch ¶
func (mock *SourceCodeCredentialInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*SourceCodeCredentialInterfaceMock) WatchCalls ¶
func (mock *SourceCodeCredentialInterfaceMock) WatchCalls() []struct { Opts v1.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedSourceCodeCredentialInterface.WatchCalls())
type SourceCodeCredentialListerMock ¶
type SourceCodeCredentialListerMock struct { // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v3.SourceCodeCredential, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v3.SourceCodeCredential, error) // contains filtered or unexported fields }
SourceCodeCredentialListerMock is a mock implementation of SourceCodeCredentialLister.
func TestSomethingThatUsesSourceCodeCredentialLister(t *testing.T) { // make and configure a mocked SourceCodeCredentialLister mockedSourceCodeCredentialLister := &SourceCodeCredentialListerMock{ GetFunc: func(namespace string, name string) (*v3.SourceCodeCredential, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v3.SourceCodeCredential, error) { panic("mock out the List method") }, } // use mockedSourceCodeCredentialLister in code that requires SourceCodeCredentialLister // and then make assertions. }
func (*SourceCodeCredentialListerMock) Get ¶
func (mock *SourceCodeCredentialListerMock) Get(namespace string, name string) (*v3.SourceCodeCredential, error)
Get calls GetFunc.
func (*SourceCodeCredentialListerMock) GetCalls ¶
func (mock *SourceCodeCredentialListerMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedSourceCodeCredentialLister.GetCalls())
func (*SourceCodeCredentialListerMock) List ¶
func (mock *SourceCodeCredentialListerMock) List(namespace string, selector labels.Selector) ([]*v3.SourceCodeCredential, error)
List calls ListFunc.
type SourceCodeCredentialsGetterMock ¶
type SourceCodeCredentialsGetterMock struct { // SourceCodeCredentialsFunc mocks the SourceCodeCredentials method. SourceCodeCredentialsFunc func(namespace string) v3.SourceCodeCredentialInterface // contains filtered or unexported fields }
SourceCodeCredentialsGetterMock is a mock implementation of SourceCodeCredentialsGetter.
func TestSomethingThatUsesSourceCodeCredentialsGetter(t *testing.T) { // make and configure a mocked SourceCodeCredentialsGetter mockedSourceCodeCredentialsGetter := &SourceCodeCredentialsGetterMock{ SourceCodeCredentialsFunc: func(namespace string) v3.SourceCodeCredentialInterface { panic("mock out the SourceCodeCredentials method") }, } // use mockedSourceCodeCredentialsGetter in code that requires SourceCodeCredentialsGetter // and then make assertions. }
func (*SourceCodeCredentialsGetterMock) SourceCodeCredentials ¶
func (mock *SourceCodeCredentialsGetterMock) SourceCodeCredentials(namespace string) v3.SourceCodeCredentialInterface
SourceCodeCredentials calls SourceCodeCredentialsFunc.
func (*SourceCodeCredentialsGetterMock) SourceCodeCredentialsCalls ¶
func (mock *SourceCodeCredentialsGetterMock) SourceCodeCredentialsCalls() []struct { Namespace string }
SourceCodeCredentialsCalls gets all the calls that were made to SourceCodeCredentials. Check the length with:
len(mockedSourceCodeCredentialsGetter.SourceCodeCredentialsCalls())
type SourceCodeProviderConfigControllerMock ¶
type SourceCodeProviderConfigControllerMock struct { // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v3.SourceCodeProviderConfigHandlerFunc) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, handler v3.SourceCodeProviderConfigHandlerFunc) // EnqueueFunc mocks the Enqueue method. EnqueueFunc func(namespace string, name string) // GenericFunc mocks the Generic method. GenericFunc func() controller.GenericController // InformerFunc mocks the Informer method. InformerFunc func() cache.SharedIndexInformer // ListerFunc mocks the Lister method. ListerFunc func() v3.SourceCodeProviderConfigLister // StartFunc mocks the Start method. StartFunc func(ctx context.Context, threadiness int) error // SyncFunc mocks the Sync method. SyncFunc func(ctx context.Context) error // contains filtered or unexported fields }
SourceCodeProviderConfigControllerMock is a mock implementation of SourceCodeProviderConfigController.
func TestSomethingThatUsesSourceCodeProviderConfigController(t *testing.T) { // make and configure a mocked SourceCodeProviderConfigController mockedSourceCodeProviderConfigController := &SourceCodeProviderConfigControllerMock{ AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v3.SourceCodeProviderConfigHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddHandlerFunc: func(ctx context.Context, name string, handler v3.SourceCodeProviderConfigHandlerFunc) { panic("mock out the AddHandler method") }, EnqueueFunc: func(namespace string, name string) { panic("mock out the Enqueue method") }, GenericFunc: func() controller.GenericController { panic("mock out the Generic method") }, InformerFunc: func() cache.SharedIndexInformer { panic("mock out the Informer method") }, ListerFunc: func() v3.SourceCodeProviderConfigLister { panic("mock out the Lister method") }, StartFunc: func(ctx context.Context, threadiness int) error { panic("mock out the Start method") }, SyncFunc: func(ctx context.Context) error { panic("mock out the Sync method") }, } // use mockedSourceCodeProviderConfigController in code that requires SourceCodeProviderConfigController // and then make assertions. }
func (*SourceCodeProviderConfigControllerMock) AddClusterScopedHandler ¶
func (mock *SourceCodeProviderConfigControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v3.SourceCodeProviderConfigHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*SourceCodeProviderConfigControllerMock) AddClusterScopedHandlerCalls ¶
func (mock *SourceCodeProviderConfigControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Handler v3.SourceCodeProviderConfigHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedSourceCodeProviderConfigController.AddClusterScopedHandlerCalls())
func (*SourceCodeProviderConfigControllerMock) AddHandler ¶
func (mock *SourceCodeProviderConfigControllerMock) AddHandler(ctx context.Context, name string, handler v3.SourceCodeProviderConfigHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*SourceCodeProviderConfigControllerMock) AddHandlerCalls ¶
func (mock *SourceCodeProviderConfigControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string Handler v3.SourceCodeProviderConfigHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedSourceCodeProviderConfigController.AddHandlerCalls())
func (*SourceCodeProviderConfigControllerMock) Enqueue ¶
func (mock *SourceCodeProviderConfigControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*SourceCodeProviderConfigControllerMock) EnqueueCalls ¶
func (mock *SourceCodeProviderConfigControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedSourceCodeProviderConfigController.EnqueueCalls())
func (*SourceCodeProviderConfigControllerMock) Generic ¶
func (mock *SourceCodeProviderConfigControllerMock) Generic() controller.GenericController
Generic calls GenericFunc.
func (*SourceCodeProviderConfigControllerMock) GenericCalls ¶
func (mock *SourceCodeProviderConfigControllerMock) GenericCalls() []struct { }
GenericCalls gets all the calls that were made to Generic. Check the length with:
len(mockedSourceCodeProviderConfigController.GenericCalls())
func (*SourceCodeProviderConfigControllerMock) Informer ¶
func (mock *SourceCodeProviderConfigControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*SourceCodeProviderConfigControllerMock) InformerCalls ¶
func (mock *SourceCodeProviderConfigControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedSourceCodeProviderConfigController.InformerCalls())
func (*SourceCodeProviderConfigControllerMock) Lister ¶
func (mock *SourceCodeProviderConfigControllerMock) Lister() v3.SourceCodeProviderConfigLister
Lister calls ListerFunc.
func (*SourceCodeProviderConfigControllerMock) ListerCalls ¶
func (mock *SourceCodeProviderConfigControllerMock) ListerCalls() []struct { }
ListerCalls gets all the calls that were made to Lister. Check the length with:
len(mockedSourceCodeProviderConfigController.ListerCalls())
func (*SourceCodeProviderConfigControllerMock) Start ¶
func (mock *SourceCodeProviderConfigControllerMock) Start(ctx context.Context, threadiness int) error
Start calls StartFunc.
func (*SourceCodeProviderConfigControllerMock) StartCalls ¶
func (mock *SourceCodeProviderConfigControllerMock) StartCalls() []struct { Ctx context.Context Threadiness int }
StartCalls gets all the calls that were made to Start. Check the length with:
len(mockedSourceCodeProviderConfigController.StartCalls())
func (*SourceCodeProviderConfigControllerMock) Sync ¶
func (mock *SourceCodeProviderConfigControllerMock) Sync(ctx context.Context) error
Sync calls SyncFunc.
func (*SourceCodeProviderConfigControllerMock) SyncCalls ¶
func (mock *SourceCodeProviderConfigControllerMock) SyncCalls() []struct { Ctx context.Context }
SyncCalls gets all the calls that were made to Sync. Check the length with:
len(mockedSourceCodeProviderConfigController.SyncCalls())
type SourceCodeProviderConfigInterfaceMock ¶
type SourceCodeProviderConfigInterfaceMock struct { // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v3.SourceCodeProviderConfigHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v3.SourceCodeProviderConfigLifecycle) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, sync v3.SourceCodeProviderConfigHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. AddLifecycleFunc func(ctx context.Context, name string, lifecycle v3.SourceCodeProviderConfigLifecycle) // ControllerFunc mocks the Controller method. ControllerFunc func() v3.SourceCodeProviderConfigController // CreateFunc mocks the Create method. CreateFunc func(in1 *v3.SourceCodeProviderConfig) (*v3.SourceCodeProviderConfig, error) // DeleteFunc mocks the Delete method. DeleteFunc func(name string, options *v1.DeleteOptions) error // DeleteCollectionFunc mocks the DeleteCollection method. DeleteCollectionFunc func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error // DeleteNamespacedFunc mocks the DeleteNamespaced method. DeleteNamespacedFunc func(namespace string, name string, options *v1.DeleteOptions) error // GetFunc mocks the Get method. GetFunc func(name string, opts v1.GetOptions) (*v3.SourceCodeProviderConfig, error) // GetNamespacedFunc mocks the GetNamespaced method. GetNamespacedFunc func(namespace string, name string, opts v1.GetOptions) (*v3.SourceCodeProviderConfig, error) // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.SourceCodeProviderConfigList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v3.SourceCodeProviderConfig) (*v3.SourceCodeProviderConfig, error) // WatchFunc mocks the Watch method. WatchFunc func(opts v1.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
SourceCodeProviderConfigInterfaceMock is a mock implementation of SourceCodeProviderConfigInterface.
func TestSomethingThatUsesSourceCodeProviderConfigInterface(t *testing.T) { // make and configure a mocked SourceCodeProviderConfigInterface mockedSourceCodeProviderConfigInterface := &SourceCodeProviderConfigInterfaceMock{ AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v3.SourceCodeProviderConfigHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v3.SourceCodeProviderConfigLifecycle) { panic("mock out the AddClusterScopedLifecycle method") }, AddHandlerFunc: func(ctx context.Context, name string, sync v3.SourceCodeProviderConfigHandlerFunc) { panic("mock out the AddHandler method") }, AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v3.SourceCodeProviderConfigLifecycle) { panic("mock out the AddLifecycle method") }, ControllerFunc: func() v3.SourceCodeProviderConfigController { panic("mock out the Controller method") }, CreateFunc: func(in1 *v3.SourceCodeProviderConfig) (*v3.SourceCodeProviderConfig, error) { panic("mock out the Create method") }, DeleteFunc: func(name string, options *v1.DeleteOptions) error { panic("mock out the Delete method") }, DeleteCollectionFunc: func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error { panic("mock out the DeleteCollection method") }, DeleteNamespacedFunc: func(namespace string, name string, options *v1.DeleteOptions) error { panic("mock out the DeleteNamespaced method") }, GetFunc: func(name string, opts v1.GetOptions) (*v3.SourceCodeProviderConfig, error) { panic("mock out the Get method") }, GetNamespacedFunc: func(namespace string, name string, opts v1.GetOptions) (*v3.SourceCodeProviderConfig, error) { panic("mock out the GetNamespaced method") }, ListFunc: func(opts v1.ListOptions) (*v3.SourceCodeProviderConfigList, error) { panic("mock out the List method") }, ObjectClientFunc: func() *objectclient.ObjectClient { panic("mock out the ObjectClient method") }, UpdateFunc: func(in1 *v3.SourceCodeProviderConfig) (*v3.SourceCodeProviderConfig, error) { panic("mock out the Update method") }, WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedSourceCodeProviderConfigInterface in code that requires SourceCodeProviderConfigInterface // and then make assertions. }
func (*SourceCodeProviderConfigInterfaceMock) AddClusterScopedHandler ¶
func (mock *SourceCodeProviderConfigInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v3.SourceCodeProviderConfigHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*SourceCodeProviderConfigInterfaceMock) AddClusterScopedHandlerCalls ¶
func (mock *SourceCodeProviderConfigInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Sync v3.SourceCodeProviderConfigHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedSourceCodeProviderConfigInterface.AddClusterScopedHandlerCalls())
func (*SourceCodeProviderConfigInterfaceMock) AddClusterScopedLifecycle ¶
func (mock *SourceCodeProviderConfigInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v3.SourceCodeProviderConfigLifecycle)
AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.
func (*SourceCodeProviderConfigInterfaceMock) AddClusterScopedLifecycleCalls ¶
func (mock *SourceCodeProviderConfigInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string Lifecycle v3.SourceCodeProviderConfigLifecycle }
AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:
len(mockedSourceCodeProviderConfigInterface.AddClusterScopedLifecycleCalls())
func (*SourceCodeProviderConfigInterfaceMock) AddHandler ¶
func (mock *SourceCodeProviderConfigInterfaceMock) AddHandler(ctx context.Context, name string, sync v3.SourceCodeProviderConfigHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*SourceCodeProviderConfigInterfaceMock) AddHandlerCalls ¶
func (mock *SourceCodeProviderConfigInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string Sync v3.SourceCodeProviderConfigHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedSourceCodeProviderConfigInterface.AddHandlerCalls())
func (*SourceCodeProviderConfigInterfaceMock) AddLifecycle ¶
func (mock *SourceCodeProviderConfigInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v3.SourceCodeProviderConfigLifecycle)
AddLifecycle calls AddLifecycleFunc.
func (*SourceCodeProviderConfigInterfaceMock) AddLifecycleCalls ¶
func (mock *SourceCodeProviderConfigInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string Lifecycle v3.SourceCodeProviderConfigLifecycle }
AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:
len(mockedSourceCodeProviderConfigInterface.AddLifecycleCalls())
func (*SourceCodeProviderConfigInterfaceMock) Controller ¶
func (mock *SourceCodeProviderConfigInterfaceMock) Controller() v3.SourceCodeProviderConfigController
Controller calls ControllerFunc.
func (*SourceCodeProviderConfigInterfaceMock) ControllerCalls ¶
func (mock *SourceCodeProviderConfigInterfaceMock) ControllerCalls() []struct { }
ControllerCalls gets all the calls that were made to Controller. Check the length with:
len(mockedSourceCodeProviderConfigInterface.ControllerCalls())
func (*SourceCodeProviderConfigInterfaceMock) Create ¶
func (mock *SourceCodeProviderConfigInterfaceMock) Create(in1 *v3.SourceCodeProviderConfig) (*v3.SourceCodeProviderConfig, error)
Create calls CreateFunc.
func (*SourceCodeProviderConfigInterfaceMock) CreateCalls ¶
func (mock *SourceCodeProviderConfigInterfaceMock) CreateCalls() []struct { In1 *v3.SourceCodeProviderConfig }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedSourceCodeProviderConfigInterface.CreateCalls())
func (*SourceCodeProviderConfigInterfaceMock) Delete ¶
func (mock *SourceCodeProviderConfigInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
Delete calls DeleteFunc.
func (*SourceCodeProviderConfigInterfaceMock) DeleteCalls ¶
func (mock *SourceCodeProviderConfigInterfaceMock) DeleteCalls() []struct { Name string Options *v1.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedSourceCodeProviderConfigInterface.DeleteCalls())
func (*SourceCodeProviderConfigInterfaceMock) DeleteCollection ¶
func (mock *SourceCodeProviderConfigInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection calls DeleteCollectionFunc.
func (*SourceCodeProviderConfigInterfaceMock) DeleteCollectionCalls ¶
func (mock *SourceCodeProviderConfigInterfaceMock) DeleteCollectionCalls() []struct { DeleteOpts *v1.DeleteOptions ListOpts v1.ListOptions }
DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:
len(mockedSourceCodeProviderConfigInterface.DeleteCollectionCalls())
func (*SourceCodeProviderConfigInterfaceMock) DeleteNamespaced ¶
func (mock *SourceCodeProviderConfigInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
DeleteNamespaced calls DeleteNamespacedFunc.
func (*SourceCodeProviderConfigInterfaceMock) DeleteNamespacedCalls ¶
func (mock *SourceCodeProviderConfigInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string Options *v1.DeleteOptions }
DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:
len(mockedSourceCodeProviderConfigInterface.DeleteNamespacedCalls())
func (*SourceCodeProviderConfigInterfaceMock) Get ¶
func (mock *SourceCodeProviderConfigInterfaceMock) Get(name string, opts v1.GetOptions) (*v3.SourceCodeProviderConfig, error)
Get calls GetFunc.
func (*SourceCodeProviderConfigInterfaceMock) GetCalls ¶
func (mock *SourceCodeProviderConfigInterfaceMock) GetCalls() []struct { Name string Opts v1.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedSourceCodeProviderConfigInterface.GetCalls())
func (*SourceCodeProviderConfigInterfaceMock) GetNamespaced ¶
func (mock *SourceCodeProviderConfigInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v3.SourceCodeProviderConfig, error)
GetNamespaced calls GetNamespacedFunc.
func (*SourceCodeProviderConfigInterfaceMock) GetNamespacedCalls ¶
func (mock *SourceCodeProviderConfigInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string Opts v1.GetOptions }
GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:
len(mockedSourceCodeProviderConfigInterface.GetNamespacedCalls())
func (*SourceCodeProviderConfigInterfaceMock) List ¶
func (mock *SourceCodeProviderConfigInterfaceMock) List(opts v1.ListOptions) (*v3.SourceCodeProviderConfigList, error)
List calls ListFunc.
func (*SourceCodeProviderConfigInterfaceMock) ListCalls ¶
func (mock *SourceCodeProviderConfigInterfaceMock) ListCalls() []struct { Opts v1.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedSourceCodeProviderConfigInterface.ListCalls())
func (*SourceCodeProviderConfigInterfaceMock) ObjectClient ¶
func (mock *SourceCodeProviderConfigInterfaceMock) ObjectClient() *objectclient.ObjectClient
ObjectClient calls ObjectClientFunc.
func (*SourceCodeProviderConfigInterfaceMock) ObjectClientCalls ¶
func (mock *SourceCodeProviderConfigInterfaceMock) ObjectClientCalls() []struct { }
ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:
len(mockedSourceCodeProviderConfigInterface.ObjectClientCalls())
func (*SourceCodeProviderConfigInterfaceMock) Update ¶
func (mock *SourceCodeProviderConfigInterfaceMock) Update(in1 *v3.SourceCodeProviderConfig) (*v3.SourceCodeProviderConfig, error)
Update calls UpdateFunc.
func (*SourceCodeProviderConfigInterfaceMock) UpdateCalls ¶
func (mock *SourceCodeProviderConfigInterfaceMock) UpdateCalls() []struct { In1 *v3.SourceCodeProviderConfig }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedSourceCodeProviderConfigInterface.UpdateCalls())
func (*SourceCodeProviderConfigInterfaceMock) Watch ¶
func (mock *SourceCodeProviderConfigInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*SourceCodeProviderConfigInterfaceMock) WatchCalls ¶
func (mock *SourceCodeProviderConfigInterfaceMock) WatchCalls() []struct { Opts v1.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedSourceCodeProviderConfigInterface.WatchCalls())
type SourceCodeProviderConfigListerMock ¶
type SourceCodeProviderConfigListerMock struct { // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v3.SourceCodeProviderConfig, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v3.SourceCodeProviderConfig, error) // contains filtered or unexported fields }
SourceCodeProviderConfigListerMock is a mock implementation of SourceCodeProviderConfigLister.
func TestSomethingThatUsesSourceCodeProviderConfigLister(t *testing.T) { // make and configure a mocked SourceCodeProviderConfigLister mockedSourceCodeProviderConfigLister := &SourceCodeProviderConfigListerMock{ GetFunc: func(namespace string, name string) (*v3.SourceCodeProviderConfig, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v3.SourceCodeProviderConfig, error) { panic("mock out the List method") }, } // use mockedSourceCodeProviderConfigLister in code that requires SourceCodeProviderConfigLister // and then make assertions. }
func (*SourceCodeProviderConfigListerMock) Get ¶
func (mock *SourceCodeProviderConfigListerMock) Get(namespace string, name string) (*v3.SourceCodeProviderConfig, error)
Get calls GetFunc.
func (*SourceCodeProviderConfigListerMock) GetCalls ¶
func (mock *SourceCodeProviderConfigListerMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedSourceCodeProviderConfigLister.GetCalls())
func (*SourceCodeProviderConfigListerMock) List ¶
func (mock *SourceCodeProviderConfigListerMock) List(namespace string, selector labels.Selector) ([]*v3.SourceCodeProviderConfig, error)
List calls ListFunc.
type SourceCodeProviderConfigsGetterMock ¶
type SourceCodeProviderConfigsGetterMock struct { // SourceCodeProviderConfigsFunc mocks the SourceCodeProviderConfigs method. SourceCodeProviderConfigsFunc func(namespace string) v3.SourceCodeProviderConfigInterface // contains filtered or unexported fields }
SourceCodeProviderConfigsGetterMock is a mock implementation of SourceCodeProviderConfigsGetter.
func TestSomethingThatUsesSourceCodeProviderConfigsGetter(t *testing.T) { // make and configure a mocked SourceCodeProviderConfigsGetter mockedSourceCodeProviderConfigsGetter := &SourceCodeProviderConfigsGetterMock{ SourceCodeProviderConfigsFunc: func(namespace string) v3.SourceCodeProviderConfigInterface { panic("mock out the SourceCodeProviderConfigs method") }, } // use mockedSourceCodeProviderConfigsGetter in code that requires SourceCodeProviderConfigsGetter // and then make assertions. }
func (*SourceCodeProviderConfigsGetterMock) SourceCodeProviderConfigs ¶
func (mock *SourceCodeProviderConfigsGetterMock) SourceCodeProviderConfigs(namespace string) v3.SourceCodeProviderConfigInterface
SourceCodeProviderConfigs calls SourceCodeProviderConfigsFunc.
func (*SourceCodeProviderConfigsGetterMock) SourceCodeProviderConfigsCalls ¶
func (mock *SourceCodeProviderConfigsGetterMock) SourceCodeProviderConfigsCalls() []struct { Namespace string }
SourceCodeProviderConfigsCalls gets all the calls that were made to SourceCodeProviderConfigs. Check the length with:
len(mockedSourceCodeProviderConfigsGetter.SourceCodeProviderConfigsCalls())
type SourceCodeProviderControllerMock ¶
type SourceCodeProviderControllerMock struct { // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v3.SourceCodeProviderHandlerFunc) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, handler v3.SourceCodeProviderHandlerFunc) // EnqueueFunc mocks the Enqueue method. EnqueueFunc func(namespace string, name string) // GenericFunc mocks the Generic method. GenericFunc func() controller.GenericController // InformerFunc mocks the Informer method. InformerFunc func() cache.SharedIndexInformer // ListerFunc mocks the Lister method. ListerFunc func() v3.SourceCodeProviderLister // StartFunc mocks the Start method. StartFunc func(ctx context.Context, threadiness int) error // SyncFunc mocks the Sync method. SyncFunc func(ctx context.Context) error // contains filtered or unexported fields }
SourceCodeProviderControllerMock is a mock implementation of SourceCodeProviderController.
func TestSomethingThatUsesSourceCodeProviderController(t *testing.T) { // make and configure a mocked SourceCodeProviderController mockedSourceCodeProviderController := &SourceCodeProviderControllerMock{ AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v3.SourceCodeProviderHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddHandlerFunc: func(ctx context.Context, name string, handler v3.SourceCodeProviderHandlerFunc) { panic("mock out the AddHandler method") }, EnqueueFunc: func(namespace string, name string) { panic("mock out the Enqueue method") }, GenericFunc: func() controller.GenericController { panic("mock out the Generic method") }, InformerFunc: func() cache.SharedIndexInformer { panic("mock out the Informer method") }, ListerFunc: func() v3.SourceCodeProviderLister { panic("mock out the Lister method") }, StartFunc: func(ctx context.Context, threadiness int) error { panic("mock out the Start method") }, SyncFunc: func(ctx context.Context) error { panic("mock out the Sync method") }, } // use mockedSourceCodeProviderController in code that requires SourceCodeProviderController // and then make assertions. }
func (*SourceCodeProviderControllerMock) AddClusterScopedHandler ¶
func (mock *SourceCodeProviderControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v3.SourceCodeProviderHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*SourceCodeProviderControllerMock) AddClusterScopedHandlerCalls ¶
func (mock *SourceCodeProviderControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Handler v3.SourceCodeProviderHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedSourceCodeProviderController.AddClusterScopedHandlerCalls())
func (*SourceCodeProviderControllerMock) AddHandler ¶
func (mock *SourceCodeProviderControllerMock) AddHandler(ctx context.Context, name string, handler v3.SourceCodeProviderHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*SourceCodeProviderControllerMock) AddHandlerCalls ¶
func (mock *SourceCodeProviderControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string Handler v3.SourceCodeProviderHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedSourceCodeProviderController.AddHandlerCalls())
func (*SourceCodeProviderControllerMock) Enqueue ¶
func (mock *SourceCodeProviderControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*SourceCodeProviderControllerMock) EnqueueCalls ¶
func (mock *SourceCodeProviderControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedSourceCodeProviderController.EnqueueCalls())
func (*SourceCodeProviderControllerMock) Generic ¶
func (mock *SourceCodeProviderControllerMock) Generic() controller.GenericController
Generic calls GenericFunc.
func (*SourceCodeProviderControllerMock) GenericCalls ¶
func (mock *SourceCodeProviderControllerMock) GenericCalls() []struct { }
GenericCalls gets all the calls that were made to Generic. Check the length with:
len(mockedSourceCodeProviderController.GenericCalls())
func (*SourceCodeProviderControllerMock) Informer ¶
func (mock *SourceCodeProviderControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*SourceCodeProviderControllerMock) InformerCalls ¶
func (mock *SourceCodeProviderControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedSourceCodeProviderController.InformerCalls())
func (*SourceCodeProviderControllerMock) Lister ¶
func (mock *SourceCodeProviderControllerMock) Lister() v3.SourceCodeProviderLister
Lister calls ListerFunc.
func (*SourceCodeProviderControllerMock) ListerCalls ¶
func (mock *SourceCodeProviderControllerMock) ListerCalls() []struct { }
ListerCalls gets all the calls that were made to Lister. Check the length with:
len(mockedSourceCodeProviderController.ListerCalls())
func (*SourceCodeProviderControllerMock) Start ¶
func (mock *SourceCodeProviderControllerMock) Start(ctx context.Context, threadiness int) error
Start calls StartFunc.
func (*SourceCodeProviderControllerMock) StartCalls ¶
func (mock *SourceCodeProviderControllerMock) StartCalls() []struct { Ctx context.Context Threadiness int }
StartCalls gets all the calls that were made to Start. Check the length with:
len(mockedSourceCodeProviderController.StartCalls())
func (*SourceCodeProviderControllerMock) Sync ¶
func (mock *SourceCodeProviderControllerMock) Sync(ctx context.Context) error
Sync calls SyncFunc.
func (*SourceCodeProviderControllerMock) SyncCalls ¶
func (mock *SourceCodeProviderControllerMock) SyncCalls() []struct { Ctx context.Context }
SyncCalls gets all the calls that were made to Sync. Check the length with:
len(mockedSourceCodeProviderController.SyncCalls())
type SourceCodeProviderInterfaceMock ¶
type SourceCodeProviderInterfaceMock struct { // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v3.SourceCodeProviderHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v3.SourceCodeProviderLifecycle) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, sync v3.SourceCodeProviderHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. AddLifecycleFunc func(ctx context.Context, name string, lifecycle v3.SourceCodeProviderLifecycle) // ControllerFunc mocks the Controller method. ControllerFunc func() v3.SourceCodeProviderController // CreateFunc mocks the Create method. CreateFunc func(in1 *v3.SourceCodeProvider) (*v3.SourceCodeProvider, error) // DeleteFunc mocks the Delete method. DeleteFunc func(name string, options *v1.DeleteOptions) error // DeleteCollectionFunc mocks the DeleteCollection method. DeleteCollectionFunc func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error // DeleteNamespacedFunc mocks the DeleteNamespaced method. DeleteNamespacedFunc func(namespace string, name string, options *v1.DeleteOptions) error // GetFunc mocks the Get method. GetFunc func(name string, opts v1.GetOptions) (*v3.SourceCodeProvider, error) // GetNamespacedFunc mocks the GetNamespaced method. GetNamespacedFunc func(namespace string, name string, opts v1.GetOptions) (*v3.SourceCodeProvider, error) // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.SourceCodeProviderList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v3.SourceCodeProvider) (*v3.SourceCodeProvider, error) // WatchFunc mocks the Watch method. WatchFunc func(opts v1.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
SourceCodeProviderInterfaceMock is a mock implementation of SourceCodeProviderInterface.
func TestSomethingThatUsesSourceCodeProviderInterface(t *testing.T) { // make and configure a mocked SourceCodeProviderInterface mockedSourceCodeProviderInterface := &SourceCodeProviderInterfaceMock{ AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v3.SourceCodeProviderHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v3.SourceCodeProviderLifecycle) { panic("mock out the AddClusterScopedLifecycle method") }, AddHandlerFunc: func(ctx context.Context, name string, sync v3.SourceCodeProviderHandlerFunc) { panic("mock out the AddHandler method") }, AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v3.SourceCodeProviderLifecycle) { panic("mock out the AddLifecycle method") }, ControllerFunc: func() v3.SourceCodeProviderController { panic("mock out the Controller method") }, CreateFunc: func(in1 *v3.SourceCodeProvider) (*v3.SourceCodeProvider, error) { panic("mock out the Create method") }, DeleteFunc: func(name string, options *v1.DeleteOptions) error { panic("mock out the Delete method") }, DeleteCollectionFunc: func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error { panic("mock out the DeleteCollection method") }, DeleteNamespacedFunc: func(namespace string, name string, options *v1.DeleteOptions) error { panic("mock out the DeleteNamespaced method") }, GetFunc: func(name string, opts v1.GetOptions) (*v3.SourceCodeProvider, error) { panic("mock out the Get method") }, GetNamespacedFunc: func(namespace string, name string, opts v1.GetOptions) (*v3.SourceCodeProvider, error) { panic("mock out the GetNamespaced method") }, ListFunc: func(opts v1.ListOptions) (*v3.SourceCodeProviderList, error) { panic("mock out the List method") }, ObjectClientFunc: func() *objectclient.ObjectClient { panic("mock out the ObjectClient method") }, UpdateFunc: func(in1 *v3.SourceCodeProvider) (*v3.SourceCodeProvider, error) { panic("mock out the Update method") }, WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedSourceCodeProviderInterface in code that requires SourceCodeProviderInterface // and then make assertions. }
func (*SourceCodeProviderInterfaceMock) AddClusterScopedHandler ¶
func (mock *SourceCodeProviderInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v3.SourceCodeProviderHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*SourceCodeProviderInterfaceMock) AddClusterScopedHandlerCalls ¶
func (mock *SourceCodeProviderInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Sync v3.SourceCodeProviderHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedSourceCodeProviderInterface.AddClusterScopedHandlerCalls())
func (*SourceCodeProviderInterfaceMock) AddClusterScopedLifecycle ¶
func (mock *SourceCodeProviderInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v3.SourceCodeProviderLifecycle)
AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.
func (*SourceCodeProviderInterfaceMock) AddClusterScopedLifecycleCalls ¶
func (mock *SourceCodeProviderInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string Lifecycle v3.SourceCodeProviderLifecycle }
AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:
len(mockedSourceCodeProviderInterface.AddClusterScopedLifecycleCalls())
func (*SourceCodeProviderInterfaceMock) AddHandler ¶
func (mock *SourceCodeProviderInterfaceMock) AddHandler(ctx context.Context, name string, sync v3.SourceCodeProviderHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*SourceCodeProviderInterfaceMock) AddHandlerCalls ¶
func (mock *SourceCodeProviderInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string Sync v3.SourceCodeProviderHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedSourceCodeProviderInterface.AddHandlerCalls())
func (*SourceCodeProviderInterfaceMock) AddLifecycle ¶
func (mock *SourceCodeProviderInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v3.SourceCodeProviderLifecycle)
AddLifecycle calls AddLifecycleFunc.
func (*SourceCodeProviderInterfaceMock) AddLifecycleCalls ¶
func (mock *SourceCodeProviderInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string Lifecycle v3.SourceCodeProviderLifecycle }
AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:
len(mockedSourceCodeProviderInterface.AddLifecycleCalls())
func (*SourceCodeProviderInterfaceMock) Controller ¶
func (mock *SourceCodeProviderInterfaceMock) Controller() v3.SourceCodeProviderController
Controller calls ControllerFunc.
func (*SourceCodeProviderInterfaceMock) ControllerCalls ¶
func (mock *SourceCodeProviderInterfaceMock) ControllerCalls() []struct { }
ControllerCalls gets all the calls that were made to Controller. Check the length with:
len(mockedSourceCodeProviderInterface.ControllerCalls())
func (*SourceCodeProviderInterfaceMock) Create ¶
func (mock *SourceCodeProviderInterfaceMock) Create(in1 *v3.SourceCodeProvider) (*v3.SourceCodeProvider, error)
Create calls CreateFunc.
func (*SourceCodeProviderInterfaceMock) CreateCalls ¶
func (mock *SourceCodeProviderInterfaceMock) CreateCalls() []struct { In1 *v3.SourceCodeProvider }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedSourceCodeProviderInterface.CreateCalls())
func (*SourceCodeProviderInterfaceMock) Delete ¶
func (mock *SourceCodeProviderInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
Delete calls DeleteFunc.
func (*SourceCodeProviderInterfaceMock) DeleteCalls ¶
func (mock *SourceCodeProviderInterfaceMock) DeleteCalls() []struct { Name string Options *v1.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedSourceCodeProviderInterface.DeleteCalls())
func (*SourceCodeProviderInterfaceMock) DeleteCollection ¶
func (mock *SourceCodeProviderInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection calls DeleteCollectionFunc.
func (*SourceCodeProviderInterfaceMock) DeleteCollectionCalls ¶
func (mock *SourceCodeProviderInterfaceMock) DeleteCollectionCalls() []struct { DeleteOpts *v1.DeleteOptions ListOpts v1.ListOptions }
DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:
len(mockedSourceCodeProviderInterface.DeleteCollectionCalls())
func (*SourceCodeProviderInterfaceMock) DeleteNamespaced ¶
func (mock *SourceCodeProviderInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
DeleteNamespaced calls DeleteNamespacedFunc.
func (*SourceCodeProviderInterfaceMock) DeleteNamespacedCalls ¶
func (mock *SourceCodeProviderInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string Options *v1.DeleteOptions }
DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:
len(mockedSourceCodeProviderInterface.DeleteNamespacedCalls())
func (*SourceCodeProviderInterfaceMock) Get ¶
func (mock *SourceCodeProviderInterfaceMock) Get(name string, opts v1.GetOptions) (*v3.SourceCodeProvider, error)
Get calls GetFunc.
func (*SourceCodeProviderInterfaceMock) GetCalls ¶
func (mock *SourceCodeProviderInterfaceMock) GetCalls() []struct { Name string Opts v1.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedSourceCodeProviderInterface.GetCalls())
func (*SourceCodeProviderInterfaceMock) GetNamespaced ¶
func (mock *SourceCodeProviderInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v3.SourceCodeProvider, error)
GetNamespaced calls GetNamespacedFunc.
func (*SourceCodeProviderInterfaceMock) GetNamespacedCalls ¶
func (mock *SourceCodeProviderInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string Opts v1.GetOptions }
GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:
len(mockedSourceCodeProviderInterface.GetNamespacedCalls())
func (*SourceCodeProviderInterfaceMock) List ¶
func (mock *SourceCodeProviderInterfaceMock) List(opts v1.ListOptions) (*v3.SourceCodeProviderList, error)
List calls ListFunc.
func (*SourceCodeProviderInterfaceMock) ListCalls ¶
func (mock *SourceCodeProviderInterfaceMock) ListCalls() []struct { Opts v1.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedSourceCodeProviderInterface.ListCalls())
func (*SourceCodeProviderInterfaceMock) ObjectClient ¶
func (mock *SourceCodeProviderInterfaceMock) ObjectClient() *objectclient.ObjectClient
ObjectClient calls ObjectClientFunc.
func (*SourceCodeProviderInterfaceMock) ObjectClientCalls ¶
func (mock *SourceCodeProviderInterfaceMock) ObjectClientCalls() []struct { }
ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:
len(mockedSourceCodeProviderInterface.ObjectClientCalls())
func (*SourceCodeProviderInterfaceMock) Update ¶
func (mock *SourceCodeProviderInterfaceMock) Update(in1 *v3.SourceCodeProvider) (*v3.SourceCodeProvider, error)
Update calls UpdateFunc.
func (*SourceCodeProviderInterfaceMock) UpdateCalls ¶
func (mock *SourceCodeProviderInterfaceMock) UpdateCalls() []struct { In1 *v3.SourceCodeProvider }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedSourceCodeProviderInterface.UpdateCalls())
func (*SourceCodeProviderInterfaceMock) Watch ¶
func (mock *SourceCodeProviderInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*SourceCodeProviderInterfaceMock) WatchCalls ¶
func (mock *SourceCodeProviderInterfaceMock) WatchCalls() []struct { Opts v1.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedSourceCodeProviderInterface.WatchCalls())
type SourceCodeProviderListerMock ¶
type SourceCodeProviderListerMock struct { // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v3.SourceCodeProvider, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v3.SourceCodeProvider, error) // contains filtered or unexported fields }
SourceCodeProviderListerMock is a mock implementation of SourceCodeProviderLister.
func TestSomethingThatUsesSourceCodeProviderLister(t *testing.T) { // make and configure a mocked SourceCodeProviderLister mockedSourceCodeProviderLister := &SourceCodeProviderListerMock{ GetFunc: func(namespace string, name string) (*v3.SourceCodeProvider, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v3.SourceCodeProvider, error) { panic("mock out the List method") }, } // use mockedSourceCodeProviderLister in code that requires SourceCodeProviderLister // and then make assertions. }
func (*SourceCodeProviderListerMock) Get ¶
func (mock *SourceCodeProviderListerMock) Get(namespace string, name string) (*v3.SourceCodeProvider, error)
Get calls GetFunc.
func (*SourceCodeProviderListerMock) GetCalls ¶
func (mock *SourceCodeProviderListerMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedSourceCodeProviderLister.GetCalls())
func (*SourceCodeProviderListerMock) List ¶
func (mock *SourceCodeProviderListerMock) List(namespace string, selector labels.Selector) ([]*v3.SourceCodeProvider, error)
List calls ListFunc.
type SourceCodeProvidersGetterMock ¶
type SourceCodeProvidersGetterMock struct { // SourceCodeProvidersFunc mocks the SourceCodeProviders method. SourceCodeProvidersFunc func(namespace string) v3.SourceCodeProviderInterface // contains filtered or unexported fields }
SourceCodeProvidersGetterMock is a mock implementation of SourceCodeProvidersGetter.
func TestSomethingThatUsesSourceCodeProvidersGetter(t *testing.T) { // make and configure a mocked SourceCodeProvidersGetter mockedSourceCodeProvidersGetter := &SourceCodeProvidersGetterMock{ SourceCodeProvidersFunc: func(namespace string) v3.SourceCodeProviderInterface { panic("mock out the SourceCodeProviders method") }, } // use mockedSourceCodeProvidersGetter in code that requires SourceCodeProvidersGetter // and then make assertions. }
func (*SourceCodeProvidersGetterMock) SourceCodeProviders ¶
func (mock *SourceCodeProvidersGetterMock) SourceCodeProviders(namespace string) v3.SourceCodeProviderInterface
SourceCodeProviders calls SourceCodeProvidersFunc.
func (*SourceCodeProvidersGetterMock) SourceCodeProvidersCalls ¶
func (mock *SourceCodeProvidersGetterMock) SourceCodeProvidersCalls() []struct { Namespace string }
SourceCodeProvidersCalls gets all the calls that were made to SourceCodeProviders. Check the length with:
len(mockedSourceCodeProvidersGetter.SourceCodeProvidersCalls())
type SourceCodeRepositoriesGetterMock ¶
type SourceCodeRepositoriesGetterMock struct { // SourceCodeRepositoriesFunc mocks the SourceCodeRepositories method. SourceCodeRepositoriesFunc func(namespace string) v3.SourceCodeRepositoryInterface // contains filtered or unexported fields }
SourceCodeRepositoriesGetterMock is a mock implementation of SourceCodeRepositoriesGetter.
func TestSomethingThatUsesSourceCodeRepositoriesGetter(t *testing.T) { // make and configure a mocked SourceCodeRepositoriesGetter mockedSourceCodeRepositoriesGetter := &SourceCodeRepositoriesGetterMock{ SourceCodeRepositoriesFunc: func(namespace string) v3.SourceCodeRepositoryInterface { panic("mock out the SourceCodeRepositories method") }, } // use mockedSourceCodeRepositoriesGetter in code that requires SourceCodeRepositoriesGetter // and then make assertions. }
func (*SourceCodeRepositoriesGetterMock) SourceCodeRepositories ¶
func (mock *SourceCodeRepositoriesGetterMock) SourceCodeRepositories(namespace string) v3.SourceCodeRepositoryInterface
SourceCodeRepositories calls SourceCodeRepositoriesFunc.
func (*SourceCodeRepositoriesGetterMock) SourceCodeRepositoriesCalls ¶
func (mock *SourceCodeRepositoriesGetterMock) SourceCodeRepositoriesCalls() []struct { Namespace string }
SourceCodeRepositoriesCalls gets all the calls that were made to SourceCodeRepositories. Check the length with:
len(mockedSourceCodeRepositoriesGetter.SourceCodeRepositoriesCalls())
type SourceCodeRepositoryControllerMock ¶
type SourceCodeRepositoryControllerMock struct { // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v3.SourceCodeRepositoryHandlerFunc) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, handler v3.SourceCodeRepositoryHandlerFunc) // EnqueueFunc mocks the Enqueue method. EnqueueFunc func(namespace string, name string) // GenericFunc mocks the Generic method. GenericFunc func() controller.GenericController // InformerFunc mocks the Informer method. InformerFunc func() cache.SharedIndexInformer // ListerFunc mocks the Lister method. ListerFunc func() v3.SourceCodeRepositoryLister // StartFunc mocks the Start method. StartFunc func(ctx context.Context, threadiness int) error // SyncFunc mocks the Sync method. SyncFunc func(ctx context.Context) error // contains filtered or unexported fields }
SourceCodeRepositoryControllerMock is a mock implementation of SourceCodeRepositoryController.
func TestSomethingThatUsesSourceCodeRepositoryController(t *testing.T) { // make and configure a mocked SourceCodeRepositoryController mockedSourceCodeRepositoryController := &SourceCodeRepositoryControllerMock{ AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v3.SourceCodeRepositoryHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddHandlerFunc: func(ctx context.Context, name string, handler v3.SourceCodeRepositoryHandlerFunc) { panic("mock out the AddHandler method") }, EnqueueFunc: func(namespace string, name string) { panic("mock out the Enqueue method") }, GenericFunc: func() controller.GenericController { panic("mock out the Generic method") }, InformerFunc: func() cache.SharedIndexInformer { panic("mock out the Informer method") }, ListerFunc: func() v3.SourceCodeRepositoryLister { panic("mock out the Lister method") }, StartFunc: func(ctx context.Context, threadiness int) error { panic("mock out the Start method") }, SyncFunc: func(ctx context.Context) error { panic("mock out the Sync method") }, } // use mockedSourceCodeRepositoryController in code that requires SourceCodeRepositoryController // and then make assertions. }
func (*SourceCodeRepositoryControllerMock) AddClusterScopedHandler ¶
func (mock *SourceCodeRepositoryControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v3.SourceCodeRepositoryHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*SourceCodeRepositoryControllerMock) AddClusterScopedHandlerCalls ¶
func (mock *SourceCodeRepositoryControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Handler v3.SourceCodeRepositoryHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedSourceCodeRepositoryController.AddClusterScopedHandlerCalls())
func (*SourceCodeRepositoryControllerMock) AddHandler ¶
func (mock *SourceCodeRepositoryControllerMock) AddHandler(ctx context.Context, name string, handler v3.SourceCodeRepositoryHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*SourceCodeRepositoryControllerMock) AddHandlerCalls ¶
func (mock *SourceCodeRepositoryControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string Handler v3.SourceCodeRepositoryHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedSourceCodeRepositoryController.AddHandlerCalls())
func (*SourceCodeRepositoryControllerMock) Enqueue ¶
func (mock *SourceCodeRepositoryControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*SourceCodeRepositoryControllerMock) EnqueueCalls ¶
func (mock *SourceCodeRepositoryControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedSourceCodeRepositoryController.EnqueueCalls())
func (*SourceCodeRepositoryControllerMock) Generic ¶
func (mock *SourceCodeRepositoryControllerMock) Generic() controller.GenericController
Generic calls GenericFunc.
func (*SourceCodeRepositoryControllerMock) GenericCalls ¶
func (mock *SourceCodeRepositoryControllerMock) GenericCalls() []struct { }
GenericCalls gets all the calls that were made to Generic. Check the length with:
len(mockedSourceCodeRepositoryController.GenericCalls())
func (*SourceCodeRepositoryControllerMock) Informer ¶
func (mock *SourceCodeRepositoryControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*SourceCodeRepositoryControllerMock) InformerCalls ¶
func (mock *SourceCodeRepositoryControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedSourceCodeRepositoryController.InformerCalls())
func (*SourceCodeRepositoryControllerMock) Lister ¶
func (mock *SourceCodeRepositoryControllerMock) Lister() v3.SourceCodeRepositoryLister
Lister calls ListerFunc.
func (*SourceCodeRepositoryControllerMock) ListerCalls ¶
func (mock *SourceCodeRepositoryControllerMock) ListerCalls() []struct { }
ListerCalls gets all the calls that were made to Lister. Check the length with:
len(mockedSourceCodeRepositoryController.ListerCalls())
func (*SourceCodeRepositoryControllerMock) Start ¶
func (mock *SourceCodeRepositoryControllerMock) Start(ctx context.Context, threadiness int) error
Start calls StartFunc.
func (*SourceCodeRepositoryControllerMock) StartCalls ¶
func (mock *SourceCodeRepositoryControllerMock) StartCalls() []struct { Ctx context.Context Threadiness int }
StartCalls gets all the calls that were made to Start. Check the length with:
len(mockedSourceCodeRepositoryController.StartCalls())
func (*SourceCodeRepositoryControllerMock) Sync ¶
func (mock *SourceCodeRepositoryControllerMock) Sync(ctx context.Context) error
Sync calls SyncFunc.
func (*SourceCodeRepositoryControllerMock) SyncCalls ¶
func (mock *SourceCodeRepositoryControllerMock) SyncCalls() []struct { Ctx context.Context }
SyncCalls gets all the calls that were made to Sync. Check the length with:
len(mockedSourceCodeRepositoryController.SyncCalls())
type SourceCodeRepositoryInterfaceMock ¶
type SourceCodeRepositoryInterfaceMock struct { // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v3.SourceCodeRepositoryHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v3.SourceCodeRepositoryLifecycle) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, sync v3.SourceCodeRepositoryHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. AddLifecycleFunc func(ctx context.Context, name string, lifecycle v3.SourceCodeRepositoryLifecycle) // ControllerFunc mocks the Controller method. ControllerFunc func() v3.SourceCodeRepositoryController // CreateFunc mocks the Create method. CreateFunc func(in1 *v3.SourceCodeRepository) (*v3.SourceCodeRepository, error) // DeleteFunc mocks the Delete method. DeleteFunc func(name string, options *v1.DeleteOptions) error // DeleteCollectionFunc mocks the DeleteCollection method. DeleteCollectionFunc func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error // DeleteNamespacedFunc mocks the DeleteNamespaced method. DeleteNamespacedFunc func(namespace string, name string, options *v1.DeleteOptions) error // GetFunc mocks the Get method. GetFunc func(name string, opts v1.GetOptions) (*v3.SourceCodeRepository, error) // GetNamespacedFunc mocks the GetNamespaced method. GetNamespacedFunc func(namespace string, name string, opts v1.GetOptions) (*v3.SourceCodeRepository, error) // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.SourceCodeRepositoryList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v3.SourceCodeRepository) (*v3.SourceCodeRepository, error) // WatchFunc mocks the Watch method. WatchFunc func(opts v1.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
SourceCodeRepositoryInterfaceMock is a mock implementation of SourceCodeRepositoryInterface.
func TestSomethingThatUsesSourceCodeRepositoryInterface(t *testing.T) { // make and configure a mocked SourceCodeRepositoryInterface mockedSourceCodeRepositoryInterface := &SourceCodeRepositoryInterfaceMock{ AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v3.SourceCodeRepositoryHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v3.SourceCodeRepositoryLifecycle) { panic("mock out the AddClusterScopedLifecycle method") }, AddHandlerFunc: func(ctx context.Context, name string, sync v3.SourceCodeRepositoryHandlerFunc) { panic("mock out the AddHandler method") }, AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v3.SourceCodeRepositoryLifecycle) { panic("mock out the AddLifecycle method") }, ControllerFunc: func() v3.SourceCodeRepositoryController { panic("mock out the Controller method") }, CreateFunc: func(in1 *v3.SourceCodeRepository) (*v3.SourceCodeRepository, error) { panic("mock out the Create method") }, DeleteFunc: func(name string, options *v1.DeleteOptions) error { panic("mock out the Delete method") }, DeleteCollectionFunc: func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error { panic("mock out the DeleteCollection method") }, DeleteNamespacedFunc: func(namespace string, name string, options *v1.DeleteOptions) error { panic("mock out the DeleteNamespaced method") }, GetFunc: func(name string, opts v1.GetOptions) (*v3.SourceCodeRepository, error) { panic("mock out the Get method") }, GetNamespacedFunc: func(namespace string, name string, opts v1.GetOptions) (*v3.SourceCodeRepository, error) { panic("mock out the GetNamespaced method") }, ListFunc: func(opts v1.ListOptions) (*v3.SourceCodeRepositoryList, error) { panic("mock out the List method") }, ObjectClientFunc: func() *objectclient.ObjectClient { panic("mock out the ObjectClient method") }, UpdateFunc: func(in1 *v3.SourceCodeRepository) (*v3.SourceCodeRepository, error) { panic("mock out the Update method") }, WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedSourceCodeRepositoryInterface in code that requires SourceCodeRepositoryInterface // and then make assertions. }
func (*SourceCodeRepositoryInterfaceMock) AddClusterScopedHandler ¶
func (mock *SourceCodeRepositoryInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v3.SourceCodeRepositoryHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*SourceCodeRepositoryInterfaceMock) AddClusterScopedHandlerCalls ¶
func (mock *SourceCodeRepositoryInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Sync v3.SourceCodeRepositoryHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedSourceCodeRepositoryInterface.AddClusterScopedHandlerCalls())
func (*SourceCodeRepositoryInterfaceMock) AddClusterScopedLifecycle ¶
func (mock *SourceCodeRepositoryInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v3.SourceCodeRepositoryLifecycle)
AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.
func (*SourceCodeRepositoryInterfaceMock) AddClusterScopedLifecycleCalls ¶
func (mock *SourceCodeRepositoryInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string Lifecycle v3.SourceCodeRepositoryLifecycle }
AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:
len(mockedSourceCodeRepositoryInterface.AddClusterScopedLifecycleCalls())
func (*SourceCodeRepositoryInterfaceMock) AddHandler ¶
func (mock *SourceCodeRepositoryInterfaceMock) AddHandler(ctx context.Context, name string, sync v3.SourceCodeRepositoryHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*SourceCodeRepositoryInterfaceMock) AddHandlerCalls ¶
func (mock *SourceCodeRepositoryInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string Sync v3.SourceCodeRepositoryHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedSourceCodeRepositoryInterface.AddHandlerCalls())
func (*SourceCodeRepositoryInterfaceMock) AddLifecycle ¶
func (mock *SourceCodeRepositoryInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v3.SourceCodeRepositoryLifecycle)
AddLifecycle calls AddLifecycleFunc.
func (*SourceCodeRepositoryInterfaceMock) AddLifecycleCalls ¶
func (mock *SourceCodeRepositoryInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string Lifecycle v3.SourceCodeRepositoryLifecycle }
AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:
len(mockedSourceCodeRepositoryInterface.AddLifecycleCalls())
func (*SourceCodeRepositoryInterfaceMock) Controller ¶
func (mock *SourceCodeRepositoryInterfaceMock) Controller() v3.SourceCodeRepositoryController
Controller calls ControllerFunc.
func (*SourceCodeRepositoryInterfaceMock) ControllerCalls ¶
func (mock *SourceCodeRepositoryInterfaceMock) ControllerCalls() []struct { }
ControllerCalls gets all the calls that were made to Controller. Check the length with:
len(mockedSourceCodeRepositoryInterface.ControllerCalls())
func (*SourceCodeRepositoryInterfaceMock) Create ¶
func (mock *SourceCodeRepositoryInterfaceMock) Create(in1 *v3.SourceCodeRepository) (*v3.SourceCodeRepository, error)
Create calls CreateFunc.
func (*SourceCodeRepositoryInterfaceMock) CreateCalls ¶
func (mock *SourceCodeRepositoryInterfaceMock) CreateCalls() []struct { In1 *v3.SourceCodeRepository }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedSourceCodeRepositoryInterface.CreateCalls())
func (*SourceCodeRepositoryInterfaceMock) Delete ¶
func (mock *SourceCodeRepositoryInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
Delete calls DeleteFunc.
func (*SourceCodeRepositoryInterfaceMock) DeleteCalls ¶
func (mock *SourceCodeRepositoryInterfaceMock) DeleteCalls() []struct { Name string Options *v1.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedSourceCodeRepositoryInterface.DeleteCalls())
func (*SourceCodeRepositoryInterfaceMock) DeleteCollection ¶
func (mock *SourceCodeRepositoryInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection calls DeleteCollectionFunc.
func (*SourceCodeRepositoryInterfaceMock) DeleteCollectionCalls ¶
func (mock *SourceCodeRepositoryInterfaceMock) DeleteCollectionCalls() []struct { DeleteOpts *v1.DeleteOptions ListOpts v1.ListOptions }
DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:
len(mockedSourceCodeRepositoryInterface.DeleteCollectionCalls())
func (*SourceCodeRepositoryInterfaceMock) DeleteNamespaced ¶
func (mock *SourceCodeRepositoryInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
DeleteNamespaced calls DeleteNamespacedFunc.
func (*SourceCodeRepositoryInterfaceMock) DeleteNamespacedCalls ¶
func (mock *SourceCodeRepositoryInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string Options *v1.DeleteOptions }
DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:
len(mockedSourceCodeRepositoryInterface.DeleteNamespacedCalls())
func (*SourceCodeRepositoryInterfaceMock) Get ¶
func (mock *SourceCodeRepositoryInterfaceMock) Get(name string, opts v1.GetOptions) (*v3.SourceCodeRepository, error)
Get calls GetFunc.
func (*SourceCodeRepositoryInterfaceMock) GetCalls ¶
func (mock *SourceCodeRepositoryInterfaceMock) GetCalls() []struct { Name string Opts v1.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedSourceCodeRepositoryInterface.GetCalls())
func (*SourceCodeRepositoryInterfaceMock) GetNamespaced ¶
func (mock *SourceCodeRepositoryInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v3.SourceCodeRepository, error)
GetNamespaced calls GetNamespacedFunc.
func (*SourceCodeRepositoryInterfaceMock) GetNamespacedCalls ¶
func (mock *SourceCodeRepositoryInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string Opts v1.GetOptions }
GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:
len(mockedSourceCodeRepositoryInterface.GetNamespacedCalls())
func (*SourceCodeRepositoryInterfaceMock) List ¶
func (mock *SourceCodeRepositoryInterfaceMock) List(opts v1.ListOptions) (*v3.SourceCodeRepositoryList, error)
List calls ListFunc.
func (*SourceCodeRepositoryInterfaceMock) ListCalls ¶
func (mock *SourceCodeRepositoryInterfaceMock) ListCalls() []struct { Opts v1.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedSourceCodeRepositoryInterface.ListCalls())
func (*SourceCodeRepositoryInterfaceMock) ObjectClient ¶
func (mock *SourceCodeRepositoryInterfaceMock) ObjectClient() *objectclient.ObjectClient
ObjectClient calls ObjectClientFunc.
func (*SourceCodeRepositoryInterfaceMock) ObjectClientCalls ¶
func (mock *SourceCodeRepositoryInterfaceMock) ObjectClientCalls() []struct { }
ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:
len(mockedSourceCodeRepositoryInterface.ObjectClientCalls())
func (*SourceCodeRepositoryInterfaceMock) Update ¶
func (mock *SourceCodeRepositoryInterfaceMock) Update(in1 *v3.SourceCodeRepository) (*v3.SourceCodeRepository, error)
Update calls UpdateFunc.
func (*SourceCodeRepositoryInterfaceMock) UpdateCalls ¶
func (mock *SourceCodeRepositoryInterfaceMock) UpdateCalls() []struct { In1 *v3.SourceCodeRepository }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedSourceCodeRepositoryInterface.UpdateCalls())
func (*SourceCodeRepositoryInterfaceMock) Watch ¶
func (mock *SourceCodeRepositoryInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*SourceCodeRepositoryInterfaceMock) WatchCalls ¶
func (mock *SourceCodeRepositoryInterfaceMock) WatchCalls() []struct { Opts v1.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedSourceCodeRepositoryInterface.WatchCalls())
type SourceCodeRepositoryListerMock ¶
type SourceCodeRepositoryListerMock struct { // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v3.SourceCodeRepository, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v3.SourceCodeRepository, error) // contains filtered or unexported fields }
SourceCodeRepositoryListerMock is a mock implementation of SourceCodeRepositoryLister.
func TestSomethingThatUsesSourceCodeRepositoryLister(t *testing.T) { // make and configure a mocked SourceCodeRepositoryLister mockedSourceCodeRepositoryLister := &SourceCodeRepositoryListerMock{ GetFunc: func(namespace string, name string) (*v3.SourceCodeRepository, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v3.SourceCodeRepository, error) { panic("mock out the List method") }, } // use mockedSourceCodeRepositoryLister in code that requires SourceCodeRepositoryLister // and then make assertions. }
func (*SourceCodeRepositoryListerMock) Get ¶
func (mock *SourceCodeRepositoryListerMock) Get(namespace string, name string) (*v3.SourceCodeRepository, error)
Get calls GetFunc.
func (*SourceCodeRepositoryListerMock) GetCalls ¶
func (mock *SourceCodeRepositoryListerMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedSourceCodeRepositoryLister.GetCalls())
func (*SourceCodeRepositoryListerMock) List ¶
func (mock *SourceCodeRepositoryListerMock) List(namespace string, selector labels.Selector) ([]*v3.SourceCodeRepository, error)
List calls ListFunc.
type WorkloadControllerMock ¶
type WorkloadControllerMock struct { // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v3.WorkloadHandlerFunc) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, handler v3.WorkloadHandlerFunc) // EnqueueFunc mocks the Enqueue method. EnqueueFunc func(namespace string, name string) // GenericFunc mocks the Generic method. GenericFunc func() controller.GenericController // InformerFunc mocks the Informer method. InformerFunc func() cache.SharedIndexInformer // ListerFunc mocks the Lister method. ListerFunc func() v3.WorkloadLister // StartFunc mocks the Start method. StartFunc func(ctx context.Context, threadiness int) error // SyncFunc mocks the Sync method. SyncFunc func(ctx context.Context) error // contains filtered or unexported fields }
WorkloadControllerMock is a mock implementation of WorkloadController.
func TestSomethingThatUsesWorkloadController(t *testing.T) { // make and configure a mocked WorkloadController mockedWorkloadController := &WorkloadControllerMock{ AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v3.WorkloadHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddHandlerFunc: func(ctx context.Context, name string, handler v3.WorkloadHandlerFunc) { panic("mock out the AddHandler method") }, EnqueueFunc: func(namespace string, name string) { panic("mock out the Enqueue method") }, GenericFunc: func() controller.GenericController { panic("mock out the Generic method") }, InformerFunc: func() cache.SharedIndexInformer { panic("mock out the Informer method") }, ListerFunc: func() v3.WorkloadLister { panic("mock out the Lister method") }, StartFunc: func(ctx context.Context, threadiness int) error { panic("mock out the Start method") }, SyncFunc: func(ctx context.Context) error { panic("mock out the Sync method") }, } // use mockedWorkloadController in code that requires WorkloadController // and then make assertions. }
func (*WorkloadControllerMock) AddClusterScopedHandler ¶
func (mock *WorkloadControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v3.WorkloadHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*WorkloadControllerMock) AddClusterScopedHandlerCalls ¶
func (mock *WorkloadControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Handler v3.WorkloadHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedWorkloadController.AddClusterScopedHandlerCalls())
func (*WorkloadControllerMock) AddHandler ¶
func (mock *WorkloadControllerMock) AddHandler(ctx context.Context, name string, handler v3.WorkloadHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*WorkloadControllerMock) AddHandlerCalls ¶
func (mock *WorkloadControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string Handler v3.WorkloadHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedWorkloadController.AddHandlerCalls())
func (*WorkloadControllerMock) Enqueue ¶
func (mock *WorkloadControllerMock) Enqueue(namespace string, name string)
Enqueue calls EnqueueFunc.
func (*WorkloadControllerMock) EnqueueCalls ¶
func (mock *WorkloadControllerMock) EnqueueCalls() []struct { Namespace string Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedWorkloadController.EnqueueCalls())
func (*WorkloadControllerMock) Generic ¶
func (mock *WorkloadControllerMock) Generic() controller.GenericController
Generic calls GenericFunc.
func (*WorkloadControllerMock) GenericCalls ¶
func (mock *WorkloadControllerMock) GenericCalls() []struct { }
GenericCalls gets all the calls that were made to Generic. Check the length with:
len(mockedWorkloadController.GenericCalls())
func (*WorkloadControllerMock) Informer ¶
func (mock *WorkloadControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*WorkloadControllerMock) InformerCalls ¶
func (mock *WorkloadControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedWorkloadController.InformerCalls())
func (*WorkloadControllerMock) Lister ¶
func (mock *WorkloadControllerMock) Lister() v3.WorkloadLister
Lister calls ListerFunc.
func (*WorkloadControllerMock) ListerCalls ¶
func (mock *WorkloadControllerMock) ListerCalls() []struct { }
ListerCalls gets all the calls that were made to Lister. Check the length with:
len(mockedWorkloadController.ListerCalls())
func (*WorkloadControllerMock) Start ¶
func (mock *WorkloadControllerMock) Start(ctx context.Context, threadiness int) error
Start calls StartFunc.
func (*WorkloadControllerMock) StartCalls ¶
func (mock *WorkloadControllerMock) StartCalls() []struct { Ctx context.Context Threadiness int }
StartCalls gets all the calls that were made to Start. Check the length with:
len(mockedWorkloadController.StartCalls())
func (*WorkloadControllerMock) Sync ¶
func (mock *WorkloadControllerMock) Sync(ctx context.Context) error
Sync calls SyncFunc.
func (*WorkloadControllerMock) SyncCalls ¶
func (mock *WorkloadControllerMock) SyncCalls() []struct { Ctx context.Context }
SyncCalls gets all the calls that were made to Sync. Check the length with:
len(mockedWorkloadController.SyncCalls())
type WorkloadInterfaceMock ¶
type WorkloadInterfaceMock struct { // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v3.WorkloadHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v3.WorkloadLifecycle) // AddHandlerFunc mocks the AddHandler method. AddHandlerFunc func(ctx context.Context, name string, sync v3.WorkloadHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. AddLifecycleFunc func(ctx context.Context, name string, lifecycle v3.WorkloadLifecycle) // ControllerFunc mocks the Controller method. ControllerFunc func() v3.WorkloadController // CreateFunc mocks the Create method. CreateFunc func(in1 *v3.Workload) (*v3.Workload, error) // DeleteFunc mocks the Delete method. DeleteFunc func(name string, options *v1.DeleteOptions) error // DeleteCollectionFunc mocks the DeleteCollection method. DeleteCollectionFunc func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error // DeleteNamespacedFunc mocks the DeleteNamespaced method. DeleteNamespacedFunc func(namespace string, name string, options *v1.DeleteOptions) error // GetFunc mocks the Get method. GetFunc func(name string, opts v1.GetOptions) (*v3.Workload, error) // GetNamespacedFunc mocks the GetNamespaced method. GetNamespacedFunc func(namespace string, name string, opts v1.GetOptions) (*v3.Workload, error) // ListFunc mocks the List method. ListFunc func(opts v1.ListOptions) (*v3.WorkloadList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. UpdateFunc func(in1 *v3.Workload) (*v3.Workload, error) // WatchFunc mocks the Watch method. WatchFunc func(opts v1.ListOptions) (watch.Interface, error) // contains filtered or unexported fields }
WorkloadInterfaceMock is a mock implementation of WorkloadInterface.
func TestSomethingThatUsesWorkloadInterface(t *testing.T) { // make and configure a mocked WorkloadInterface mockedWorkloadInterface := &WorkloadInterfaceMock{ AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v3.WorkloadHandlerFunc) { panic("mock out the AddClusterScopedHandler method") }, AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v3.WorkloadLifecycle) { panic("mock out the AddClusterScopedLifecycle method") }, AddHandlerFunc: func(ctx context.Context, name string, sync v3.WorkloadHandlerFunc) { panic("mock out the AddHandler method") }, AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v3.WorkloadLifecycle) { panic("mock out the AddLifecycle method") }, ControllerFunc: func() v3.WorkloadController { panic("mock out the Controller method") }, CreateFunc: func(in1 *v3.Workload) (*v3.Workload, error) { panic("mock out the Create method") }, DeleteFunc: func(name string, options *v1.DeleteOptions) error { panic("mock out the Delete method") }, DeleteCollectionFunc: func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error { panic("mock out the DeleteCollection method") }, DeleteNamespacedFunc: func(namespace string, name string, options *v1.DeleteOptions) error { panic("mock out the DeleteNamespaced method") }, GetFunc: func(name string, opts v1.GetOptions) (*v3.Workload, error) { panic("mock out the Get method") }, GetNamespacedFunc: func(namespace string, name string, opts v1.GetOptions) (*v3.Workload, error) { panic("mock out the GetNamespaced method") }, ListFunc: func(opts v1.ListOptions) (*v3.WorkloadList, error) { panic("mock out the List method") }, ObjectClientFunc: func() *objectclient.ObjectClient { panic("mock out the ObjectClient method") }, UpdateFunc: func(in1 *v3.Workload) (*v3.Workload, error) { panic("mock out the Update method") }, WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) { panic("mock out the Watch method") }, } // use mockedWorkloadInterface in code that requires WorkloadInterface // and then make assertions. }
func (*WorkloadInterfaceMock) AddClusterScopedHandler ¶
func (mock *WorkloadInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v3.WorkloadHandlerFunc)
AddClusterScopedHandler calls AddClusterScopedHandlerFunc.
func (*WorkloadInterfaceMock) AddClusterScopedHandlerCalls ¶
func (mock *WorkloadInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string Sync v3.WorkloadHandlerFunc }
AddClusterScopedHandlerCalls gets all the calls that were made to AddClusterScopedHandler. Check the length with:
len(mockedWorkloadInterface.AddClusterScopedHandlerCalls())
func (*WorkloadInterfaceMock) AddClusterScopedLifecycle ¶
func (mock *WorkloadInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v3.WorkloadLifecycle)
AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc.
func (*WorkloadInterfaceMock) AddClusterScopedLifecycleCalls ¶
func (mock *WorkloadInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string Lifecycle v3.WorkloadLifecycle }
AddClusterScopedLifecycleCalls gets all the calls that were made to AddClusterScopedLifecycle. Check the length with:
len(mockedWorkloadInterface.AddClusterScopedLifecycleCalls())
func (*WorkloadInterfaceMock) AddHandler ¶
func (mock *WorkloadInterfaceMock) AddHandler(ctx context.Context, name string, sync v3.WorkloadHandlerFunc)
AddHandler calls AddHandlerFunc.
func (*WorkloadInterfaceMock) AddHandlerCalls ¶
func (mock *WorkloadInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string Sync v3.WorkloadHandlerFunc }
AddHandlerCalls gets all the calls that were made to AddHandler. Check the length with:
len(mockedWorkloadInterface.AddHandlerCalls())
func (*WorkloadInterfaceMock) AddLifecycle ¶
func (mock *WorkloadInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v3.WorkloadLifecycle)
AddLifecycle calls AddLifecycleFunc.
func (*WorkloadInterfaceMock) AddLifecycleCalls ¶
func (mock *WorkloadInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string Lifecycle v3.WorkloadLifecycle }
AddLifecycleCalls gets all the calls that were made to AddLifecycle. Check the length with:
len(mockedWorkloadInterface.AddLifecycleCalls())
func (*WorkloadInterfaceMock) Controller ¶
func (mock *WorkloadInterfaceMock) Controller() v3.WorkloadController
Controller calls ControllerFunc.
func (*WorkloadInterfaceMock) ControllerCalls ¶
func (mock *WorkloadInterfaceMock) ControllerCalls() []struct { }
ControllerCalls gets all the calls that were made to Controller. Check the length with:
len(mockedWorkloadInterface.ControllerCalls())
func (*WorkloadInterfaceMock) CreateCalls ¶
func (mock *WorkloadInterfaceMock) CreateCalls() []struct { In1 *v3.Workload }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedWorkloadInterface.CreateCalls())
func (*WorkloadInterfaceMock) Delete ¶
func (mock *WorkloadInterfaceMock) Delete(name string, options *v1.DeleteOptions) error
Delete calls DeleteFunc.
func (*WorkloadInterfaceMock) DeleteCalls ¶
func (mock *WorkloadInterfaceMock) DeleteCalls() []struct { Name string Options *v1.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedWorkloadInterface.DeleteCalls())
func (*WorkloadInterfaceMock) DeleteCollection ¶
func (mock *WorkloadInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection calls DeleteCollectionFunc.
func (*WorkloadInterfaceMock) DeleteCollectionCalls ¶
func (mock *WorkloadInterfaceMock) DeleteCollectionCalls() []struct { DeleteOpts *v1.DeleteOptions ListOpts v1.ListOptions }
DeleteCollectionCalls gets all the calls that were made to DeleteCollection. Check the length with:
len(mockedWorkloadInterface.DeleteCollectionCalls())
func (*WorkloadInterfaceMock) DeleteNamespaced ¶
func (mock *WorkloadInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error
DeleteNamespaced calls DeleteNamespacedFunc.
func (*WorkloadInterfaceMock) DeleteNamespacedCalls ¶
func (mock *WorkloadInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string Options *v1.DeleteOptions }
DeleteNamespacedCalls gets all the calls that were made to DeleteNamespaced. Check the length with:
len(mockedWorkloadInterface.DeleteNamespacedCalls())
func (*WorkloadInterfaceMock) Get ¶
func (mock *WorkloadInterfaceMock) Get(name string, opts v1.GetOptions) (*v3.Workload, error)
Get calls GetFunc.
func (*WorkloadInterfaceMock) GetCalls ¶
func (mock *WorkloadInterfaceMock) GetCalls() []struct { Name string Opts v1.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedWorkloadInterface.GetCalls())
func (*WorkloadInterfaceMock) GetNamespaced ¶
func (mock *WorkloadInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v3.Workload, error)
GetNamespaced calls GetNamespacedFunc.
func (*WorkloadInterfaceMock) GetNamespacedCalls ¶
func (mock *WorkloadInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string Opts v1.GetOptions }
GetNamespacedCalls gets all the calls that were made to GetNamespaced. Check the length with:
len(mockedWorkloadInterface.GetNamespacedCalls())
func (*WorkloadInterfaceMock) List ¶
func (mock *WorkloadInterfaceMock) List(opts v1.ListOptions) (*v3.WorkloadList, error)
List calls ListFunc.
func (*WorkloadInterfaceMock) ListCalls ¶
func (mock *WorkloadInterfaceMock) ListCalls() []struct { Opts v1.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedWorkloadInterface.ListCalls())
func (*WorkloadInterfaceMock) ObjectClient ¶
func (mock *WorkloadInterfaceMock) ObjectClient() *objectclient.ObjectClient
ObjectClient calls ObjectClientFunc.
func (*WorkloadInterfaceMock) ObjectClientCalls ¶
func (mock *WorkloadInterfaceMock) ObjectClientCalls() []struct { }
ObjectClientCalls gets all the calls that were made to ObjectClient. Check the length with:
len(mockedWorkloadInterface.ObjectClientCalls())
func (*WorkloadInterfaceMock) UpdateCalls ¶
func (mock *WorkloadInterfaceMock) UpdateCalls() []struct { In1 *v3.Workload }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedWorkloadInterface.UpdateCalls())
func (*WorkloadInterfaceMock) Watch ¶
func (mock *WorkloadInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*WorkloadInterfaceMock) WatchCalls ¶
func (mock *WorkloadInterfaceMock) WatchCalls() []struct { Opts v1.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedWorkloadInterface.WatchCalls())
type WorkloadListerMock ¶
type WorkloadListerMock struct { // GetFunc mocks the Get method. GetFunc func(namespace string, name string) (*v3.Workload, error) // ListFunc mocks the List method. ListFunc func(namespace string, selector labels.Selector) ([]*v3.Workload, error) // contains filtered or unexported fields }
WorkloadListerMock is a mock implementation of WorkloadLister.
func TestSomethingThatUsesWorkloadLister(t *testing.T) { // make and configure a mocked WorkloadLister mockedWorkloadLister := &WorkloadListerMock{ GetFunc: func(namespace string, name string) (*v3.Workload, error) { panic("mock out the Get method") }, ListFunc: func(namespace string, selector labels.Selector) ([]*v3.Workload, error) { panic("mock out the List method") }, } // use mockedWorkloadLister in code that requires WorkloadLister // and then make assertions. }
func (*WorkloadListerMock) GetCalls ¶
func (mock *WorkloadListerMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedWorkloadLister.GetCalls())
type WorkloadsGetterMock ¶
type WorkloadsGetterMock struct { // WorkloadsFunc mocks the Workloads method. WorkloadsFunc func(namespace string) v3.WorkloadInterface // contains filtered or unexported fields }
WorkloadsGetterMock is a mock implementation of WorkloadsGetter.
func TestSomethingThatUsesWorkloadsGetter(t *testing.T) { // make and configure a mocked WorkloadsGetter mockedWorkloadsGetter := &WorkloadsGetterMock{ WorkloadsFunc: func(namespace string) v3.WorkloadInterface { panic("mock out the Workloads method") }, } // use mockedWorkloadsGetter in code that requires WorkloadsGetter // and then make assertions. }
func (*WorkloadsGetterMock) Workloads ¶
func (mock *WorkloadsGetterMock) Workloads(namespace string) v3.WorkloadInterface
Workloads calls WorkloadsFunc.
func (*WorkloadsGetterMock) WorkloadsCalls ¶
func (mock *WorkloadsGetterMock) WorkloadsCalls() []struct { Namespace string }
WorkloadsCalls gets all the calls that were made to Workloads. Check the length with:
len(mockedWorkloadsGetter.WorkloadsCalls())
Source Files ¶
- zz_generated_app_mock.go
- zz_generated_app_revision_mock.go
- zz_generated_basic_auth_mock.go
- zz_generated_certificate_mock.go
- zz_generated_docker_credential_mock.go
- zz_generated_namespaced_basic_auth_mock.go
- zz_generated_namespaced_certificate_mock.go
- zz_generated_namespaced_docker_credential_mock.go
- zz_generated_namespaced_service_account_token_mock.go
- zz_generated_namespaced_ssh_auth_mock.go
- zz_generated_pipeline_execution_mock.go
- zz_generated_pipeline_mock.go
- zz_generated_pipeline_setting_mock.go
- zz_generated_service_account_token_mock.go
- zz_generated_source_code_credential_mock.go
- zz_generated_source_code_provider_config_mock.go
- zz_generated_source_code_provider_mock.go
- zz_generated_source_code_repository_mock.go
- zz_generated_ssh_auth_mock.go
- zz_generated_workload_mock.go