Documentation
¶
Index ¶
- type CertificateCacheMock
- func (mock *CertificateCacheMock) AddIndexer(indexName string, indexer v1alpha1.CertificateIndexer)
- func (mock *CertificateCacheMock) AddIndexerCalls() []struct{ ... }
- func (mock *CertificateCacheMock) Get(namespace string, name string) (*v1alpha1a.Certificate, error)
- func (mock *CertificateCacheMock) GetByIndex(indexName string, key string) ([]*v1alpha1a.Certificate, error)
- func (mock *CertificateCacheMock) GetByIndexCalls() []struct{ ... }
- func (mock *CertificateCacheMock) GetCalls() []struct{ ... }
- func (mock *CertificateCacheMock) List(namespace string, selector labels.Selector) ([]*v1alpha1a.Certificate, error)
- func (mock *CertificateCacheMock) ListCalls() []struct{ ... }
- type CertificateClientMock
- func (mock *CertificateClientMock) Create(in1 *v1alpha1a.Certificate) (*v1alpha1a.Certificate, error)
- func (mock *CertificateClientMock) CreateCalls() []struct{ ... }
- func (mock *CertificateClientMock) Delete(namespace string, name string, options *v1.DeleteOptions) error
- func (mock *CertificateClientMock) DeleteCalls() []struct{ ... }
- func (mock *CertificateClientMock) Get(namespace string, name string, options v1.GetOptions) (*v1alpha1a.Certificate, error)
- func (mock *CertificateClientMock) GetCalls() []struct{ ... }
- func (mock *CertificateClientMock) List(namespace string, opts v1.ListOptions) (*v1alpha1a.CertificateList, error)
- func (mock *CertificateClientMock) ListCalls() []struct{ ... }
- func (mock *CertificateClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, ...) (*v1alpha1a.Certificate, error)
- func (mock *CertificateClientMock) PatchCalls() []struct{ ... }
- func (mock *CertificateClientMock) Update(in1 *v1alpha1a.Certificate) (*v1alpha1a.Certificate, error)
- func (mock *CertificateClientMock) UpdateCalls() []struct{ ... }
- func (mock *CertificateClientMock) UpdateStatus(in1 *v1alpha1a.Certificate) (*v1alpha1a.Certificate, error)
- func (mock *CertificateClientMock) UpdateStatusCalls() []struct{ ... }
- func (mock *CertificateClientMock) Watch(namespace string, opts v1.ListOptions) (watch.Interface, error)
- func (mock *CertificateClientMock) WatchCalls() []struct{ ... }
- type CertificateControllerMock
- func (mock *CertificateControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *CertificateControllerMock) AddGenericHandlerCalls() []struct{ ... }
- func (mock *CertificateControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *CertificateControllerMock) AddGenericRemoveHandlerCalls() []struct{ ... }
- func (mock *CertificateControllerMock) Cache() v1alpha1.CertificateCache
- func (mock *CertificateControllerMock) CacheCalls() []struct{}
- func (mock *CertificateControllerMock) Create(in1 *v1alpha1a.Certificate) (*v1alpha1a.Certificate, error)
- func (mock *CertificateControllerMock) CreateCalls() []struct{ ... }
- func (mock *CertificateControllerMock) Delete(namespace string, name string, options *v1.DeleteOptions) error
- func (mock *CertificateControllerMock) DeleteCalls() []struct{ ... }
- func (mock *CertificateControllerMock) Enqueue(namespace string, name string)
- func (mock *CertificateControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *CertificateControllerMock) Get(namespace string, name string, options v1.GetOptions) (*v1alpha1a.Certificate, error)
- func (mock *CertificateControllerMock) GetCalls() []struct{ ... }
- func (mock *CertificateControllerMock) GroupVersionKind() schema.GroupVersionKind
- func (mock *CertificateControllerMock) GroupVersionKindCalls() []struct{}
- func (mock *CertificateControllerMock) Informer() cache.SharedIndexInformer
- func (mock *CertificateControllerMock) InformerCalls() []struct{}
- func (mock *CertificateControllerMock) List(namespace string, opts v1.ListOptions) (*v1alpha1a.CertificateList, error)
- func (mock *CertificateControllerMock) ListCalls() []struct{ ... }
- func (mock *CertificateControllerMock) OnChange(ctx context.Context, name string, sync v1alpha1.CertificateHandler)
- func (mock *CertificateControllerMock) OnChangeCalls() []struct{ ... }
- func (mock *CertificateControllerMock) OnRemove(ctx context.Context, name string, sync v1alpha1.CertificateHandler)
- func (mock *CertificateControllerMock) OnRemoveCalls() []struct{ ... }
- func (mock *CertificateControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, ...) (*v1alpha1a.Certificate, error)
- func (mock *CertificateControllerMock) PatchCalls() []struct{ ... }
- func (mock *CertificateControllerMock) Update(in1 *v1alpha1a.Certificate) (*v1alpha1a.Certificate, error)
- func (mock *CertificateControllerMock) UpdateCalls() []struct{ ... }
- func (mock *CertificateControllerMock) UpdateStatus(in1 *v1alpha1a.Certificate) (*v1alpha1a.Certificate, error)
- func (mock *CertificateControllerMock) UpdateStatusCalls() []struct{ ... }
- func (mock *CertificateControllerMock) Updater() generic.Updater
- func (mock *CertificateControllerMock) UpdaterCalls() []struct{}
- func (mock *CertificateControllerMock) Watch(namespace string, opts v1.ListOptions) (watch.Interface, error)
- func (mock *CertificateControllerMock) WatchCalls() []struct{ ... }
- type ClusterIssuerCacheMock
- func (mock *ClusterIssuerCacheMock) AddIndexer(indexName string, indexer v1alpha1.ClusterIssuerIndexer)
- func (mock *ClusterIssuerCacheMock) AddIndexerCalls() []struct{ ... }
- func (mock *ClusterIssuerCacheMock) Get(name string) (*v1alpha1a.ClusterIssuer, error)
- func (mock *ClusterIssuerCacheMock) GetByIndex(indexName string, key string) ([]*v1alpha1a.ClusterIssuer, error)
- func (mock *ClusterIssuerCacheMock) GetByIndexCalls() []struct{ ... }
- func (mock *ClusterIssuerCacheMock) GetCalls() []struct{ ... }
- func (mock *ClusterIssuerCacheMock) List(selector labels.Selector) ([]*v1alpha1a.ClusterIssuer, error)
- func (mock *ClusterIssuerCacheMock) ListCalls() []struct{ ... }
- type ClusterIssuerClientMock
- func (mock *ClusterIssuerClientMock) Create(in1 *v1alpha1a.ClusterIssuer) (*v1alpha1a.ClusterIssuer, error)
- func (mock *ClusterIssuerClientMock) CreateCalls() []struct{ ... }
- func (mock *ClusterIssuerClientMock) Delete(name string, options *v1.DeleteOptions) error
- func (mock *ClusterIssuerClientMock) DeleteCalls() []struct{ ... }
- func (mock *ClusterIssuerClientMock) Get(name string, options v1.GetOptions) (*v1alpha1a.ClusterIssuer, error)
- func (mock *ClusterIssuerClientMock) GetCalls() []struct{ ... }
- func (mock *ClusterIssuerClientMock) List(opts v1.ListOptions) (*v1alpha1a.ClusterIssuerList, error)
- func (mock *ClusterIssuerClientMock) ListCalls() []struct{ ... }
- func (mock *ClusterIssuerClientMock) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha1a.ClusterIssuer, error)
- func (mock *ClusterIssuerClientMock) PatchCalls() []struct{ ... }
- func (mock *ClusterIssuerClientMock) Update(in1 *v1alpha1a.ClusterIssuer) (*v1alpha1a.ClusterIssuer, error)
- func (mock *ClusterIssuerClientMock) UpdateCalls() []struct{ ... }
- func (mock *ClusterIssuerClientMock) UpdateStatus(in1 *v1alpha1a.ClusterIssuer) (*v1alpha1a.ClusterIssuer, error)
- func (mock *ClusterIssuerClientMock) UpdateStatusCalls() []struct{ ... }
- func (mock *ClusterIssuerClientMock) Watch(opts v1.ListOptions) (watch.Interface, error)
- func (mock *ClusterIssuerClientMock) WatchCalls() []struct{ ... }
- type ClusterIssuerControllerMock
- func (mock *ClusterIssuerControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *ClusterIssuerControllerMock) AddGenericHandlerCalls() []struct{ ... }
- func (mock *ClusterIssuerControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
- func (mock *ClusterIssuerControllerMock) AddGenericRemoveHandlerCalls() []struct{ ... }
- func (mock *ClusterIssuerControllerMock) Cache() v1alpha1.ClusterIssuerCache
- func (mock *ClusterIssuerControllerMock) CacheCalls() []struct{}
- func (mock *ClusterIssuerControllerMock) Create(in1 *v1alpha1a.ClusterIssuer) (*v1alpha1a.ClusterIssuer, error)
- func (mock *ClusterIssuerControllerMock) CreateCalls() []struct{ ... }
- func (mock *ClusterIssuerControllerMock) Delete(name string, options *v1.DeleteOptions) error
- func (mock *ClusterIssuerControllerMock) DeleteCalls() []struct{ ... }
- func (mock *ClusterIssuerControllerMock) Enqueue(name string)
- func (mock *ClusterIssuerControllerMock) EnqueueCalls() []struct{ ... }
- func (mock *ClusterIssuerControllerMock) Get(name string, options v1.GetOptions) (*v1alpha1a.ClusterIssuer, error)
- func (mock *ClusterIssuerControllerMock) GetCalls() []struct{ ... }
- func (mock *ClusterIssuerControllerMock) GroupVersionKind() schema.GroupVersionKind
- func (mock *ClusterIssuerControllerMock) GroupVersionKindCalls() []struct{}
- func (mock *ClusterIssuerControllerMock) Informer() cache.SharedIndexInformer
- func (mock *ClusterIssuerControllerMock) InformerCalls() []struct{}
- func (mock *ClusterIssuerControllerMock) List(opts v1.ListOptions) (*v1alpha1a.ClusterIssuerList, error)
- func (mock *ClusterIssuerControllerMock) ListCalls() []struct{ ... }
- func (mock *ClusterIssuerControllerMock) OnChange(ctx context.Context, name string, sync v1alpha1.ClusterIssuerHandler)
- func (mock *ClusterIssuerControllerMock) OnChangeCalls() []struct{ ... }
- func (mock *ClusterIssuerControllerMock) OnRemove(ctx context.Context, name string, sync v1alpha1.ClusterIssuerHandler)
- func (mock *ClusterIssuerControllerMock) OnRemoveCalls() []struct{ ... }
- func (mock *ClusterIssuerControllerMock) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha1a.ClusterIssuer, error)
- func (mock *ClusterIssuerControllerMock) PatchCalls() []struct{ ... }
- func (mock *ClusterIssuerControllerMock) Update(in1 *v1alpha1a.ClusterIssuer) (*v1alpha1a.ClusterIssuer, error)
- func (mock *ClusterIssuerControllerMock) UpdateCalls() []struct{ ... }
- func (mock *ClusterIssuerControllerMock) UpdateStatus(in1 *v1alpha1a.ClusterIssuer) (*v1alpha1a.ClusterIssuer, error)
- func (mock *ClusterIssuerControllerMock) UpdateStatusCalls() []struct{ ... }
- func (mock *ClusterIssuerControllerMock) Updater() generic.Updater
- func (mock *ClusterIssuerControllerMock) UpdaterCalls() []struct{}
- func (mock *ClusterIssuerControllerMock) Watch(opts v1.ListOptions) (watch.Interface, error)
- func (mock *ClusterIssuerControllerMock) WatchCalls() []struct{ ... }
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertificateCacheMock ¶
type CertificateCacheMock struct {
// AddIndexerFunc mocks the AddIndexer method.
AddIndexerFunc func(indexName string, indexer v1alpha1.CertificateIndexer)
// GetFunc mocks the Get method.
GetFunc func(namespace string, name string) (*v1alpha1a.Certificate, error)
// GetByIndexFunc mocks the GetByIndex method.
GetByIndexFunc func(indexName string, key string) ([]*v1alpha1a.Certificate, error)
// ListFunc mocks the List method.
ListFunc func(namespace string, selector labels.Selector) ([]*v1alpha1a.Certificate, error)
// contains filtered or unexported fields
}
CertificateCacheMock is a mock implementation of CertificateCache.
func TestSomethingThatUsesCertificateCache(t *testing.T) {
// make and configure a mocked CertificateCache
mockedCertificateCache := &CertificateCacheMock{
AddIndexerFunc: func(indexName string, indexer v1alpha1.CertificateIndexer) {
panic("mock out the AddIndexer method")
},
GetFunc: func(namespace string, name string) (*v1alpha1a.Certificate, error) {
panic("mock out the Get method")
},
GetByIndexFunc: func(indexName string, key string) ([]*v1alpha1a.Certificate, error) {
panic("mock out the GetByIndex method")
},
ListFunc: func(namespace string, selector labels.Selector) ([]*v1alpha1a.Certificate, error) {
panic("mock out the List method")
},
}
// use mockedCertificateCache in code that requires CertificateCache
// and then make assertions.
}
func (*CertificateCacheMock) AddIndexer ¶
func (mock *CertificateCacheMock) AddIndexer(indexName string, indexer v1alpha1.CertificateIndexer)
AddIndexer calls AddIndexerFunc.
func (*CertificateCacheMock) AddIndexerCalls ¶
func (mock *CertificateCacheMock) AddIndexerCalls() []struct { IndexName string Indexer v1alpha1.CertificateIndexer }
AddIndexerCalls gets all the calls that were made to AddIndexer. Check the length with:
len(mockedCertificateCache.AddIndexerCalls())
func (*CertificateCacheMock) Get ¶
func (mock *CertificateCacheMock) Get(namespace string, name string) (*v1alpha1a.Certificate, error)
Get calls GetFunc.
func (*CertificateCacheMock) GetByIndex ¶
func (mock *CertificateCacheMock) GetByIndex(indexName string, key string) ([]*v1alpha1a.Certificate, error)
GetByIndex calls GetByIndexFunc.
func (*CertificateCacheMock) GetByIndexCalls ¶
func (mock *CertificateCacheMock) GetByIndexCalls() []struct { IndexName string Key string }
GetByIndexCalls gets all the calls that were made to GetByIndex. Check the length with:
len(mockedCertificateCache.GetByIndexCalls())
func (*CertificateCacheMock) GetCalls ¶
func (mock *CertificateCacheMock) GetCalls() []struct { Namespace string Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedCertificateCache.GetCalls())
func (*CertificateCacheMock) List ¶
func (mock *CertificateCacheMock) List(namespace string, selector labels.Selector) ([]*v1alpha1a.Certificate, error)
List calls ListFunc.
type CertificateClientMock ¶
type CertificateClientMock struct {
// CreateFunc mocks the Create method.
CreateFunc func(in1 *v1alpha1a.Certificate) (*v1alpha1a.Certificate, error)
// DeleteFunc mocks the Delete method.
DeleteFunc func(namespace string, name string, options *v1.DeleteOptions) error
// GetFunc mocks the Get method.
GetFunc func(namespace string, name string, options v1.GetOptions) (*v1alpha1a.Certificate, error)
// ListFunc mocks the List method.
ListFunc func(namespace string, opts v1.ListOptions) (*v1alpha1a.CertificateList, error)
// PatchFunc mocks the Patch method.
PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha1a.Certificate, error)
// UpdateFunc mocks the Update method.
UpdateFunc func(in1 *v1alpha1a.Certificate) (*v1alpha1a.Certificate, error)
// UpdateStatusFunc mocks the UpdateStatus method.
UpdateStatusFunc func(in1 *v1alpha1a.Certificate) (*v1alpha1a.Certificate, error)
// WatchFunc mocks the Watch method.
WatchFunc func(namespace string, opts v1.ListOptions) (watch.Interface, error)
// contains filtered or unexported fields
}
CertificateClientMock is a mock implementation of CertificateClient.
func TestSomethingThatUsesCertificateClient(t *testing.T) {
// make and configure a mocked CertificateClient
mockedCertificateClient := &CertificateClientMock{
CreateFunc: func(in1 *v1alpha1a.Certificate) (*v1alpha1a.Certificate, error) {
panic("mock out the Create method")
},
DeleteFunc: func(namespace string, name string, options *v1.DeleteOptions) error {
panic("mock out the Delete method")
},
GetFunc: func(namespace string, name string, options v1.GetOptions) (*v1alpha1a.Certificate, error) {
panic("mock out the Get method")
},
ListFunc: func(namespace string, opts v1.ListOptions) (*v1alpha1a.CertificateList, error) {
panic("mock out the List method")
},
PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha1a.Certificate, error) {
panic("mock out the Patch method")
},
UpdateFunc: func(in1 *v1alpha1a.Certificate) (*v1alpha1a.Certificate, error) {
panic("mock out the Update method")
},
UpdateStatusFunc: func(in1 *v1alpha1a.Certificate) (*v1alpha1a.Certificate, error) {
panic("mock out the UpdateStatus method")
},
WatchFunc: func(namespace string, opts v1.ListOptions) (watch.Interface, error) {
panic("mock out the Watch method")
},
}
// use mockedCertificateClient in code that requires CertificateClient
// and then make assertions.
}
func (*CertificateClientMock) Create ¶
func (mock *CertificateClientMock) Create(in1 *v1alpha1a.Certificate) (*v1alpha1a.Certificate, error)
Create calls CreateFunc.
func (*CertificateClientMock) CreateCalls ¶
func (mock *CertificateClientMock) CreateCalls() []struct { In1 *v1alpha1a.Certificate }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedCertificateClient.CreateCalls())
func (*CertificateClientMock) Delete ¶
func (mock *CertificateClientMock) Delete(namespace string, name string, options *v1.DeleteOptions) error
Delete calls DeleteFunc.
func (*CertificateClientMock) DeleteCalls ¶
func (mock *CertificateClientMock) DeleteCalls() []struct { Namespace string Name string Options *v1.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedCertificateClient.DeleteCalls())
func (*CertificateClientMock) Get ¶
func (mock *CertificateClientMock) Get(namespace string, name string, options v1.GetOptions) (*v1alpha1a.Certificate, error)
Get calls GetFunc.
func (*CertificateClientMock) GetCalls ¶
func (mock *CertificateClientMock) GetCalls() []struct { Namespace string Name string Options v1.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedCertificateClient.GetCalls())
func (*CertificateClientMock) List ¶
func (mock *CertificateClientMock) List(namespace string, opts v1.ListOptions) (*v1alpha1a.CertificateList, error)
List calls ListFunc.
func (*CertificateClientMock) ListCalls ¶
func (mock *CertificateClientMock) ListCalls() []struct { Namespace string Opts v1.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedCertificateClient.ListCalls())
func (*CertificateClientMock) Patch ¶
func (mock *CertificateClientMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha1a.Certificate, error)
Patch calls PatchFunc.
func (*CertificateClientMock) PatchCalls ¶
func (mock *CertificateClientMock) PatchCalls() []struct { Namespace string Name string Pt types.PatchType Data []byte Subresources []string }
PatchCalls gets all the calls that were made to Patch. Check the length with:
len(mockedCertificateClient.PatchCalls())
func (*CertificateClientMock) Update ¶
func (mock *CertificateClientMock) Update(in1 *v1alpha1a.Certificate) (*v1alpha1a.Certificate, error)
Update calls UpdateFunc.
func (*CertificateClientMock) UpdateCalls ¶
func (mock *CertificateClientMock) UpdateCalls() []struct { In1 *v1alpha1a.Certificate }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedCertificateClient.UpdateCalls())
func (*CertificateClientMock) UpdateStatus ¶
func (mock *CertificateClientMock) UpdateStatus(in1 *v1alpha1a.Certificate) (*v1alpha1a.Certificate, error)
UpdateStatus calls UpdateStatusFunc.
func (*CertificateClientMock) UpdateStatusCalls ¶
func (mock *CertificateClientMock) UpdateStatusCalls() []struct { In1 *v1alpha1a.Certificate }
UpdateStatusCalls gets all the calls that were made to UpdateStatus. Check the length with:
len(mockedCertificateClient.UpdateStatusCalls())
func (*CertificateClientMock) Watch ¶
func (mock *CertificateClientMock) Watch(namespace string, opts v1.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*CertificateClientMock) WatchCalls ¶
func (mock *CertificateClientMock) WatchCalls() []struct { Namespace string Opts v1.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedCertificateClient.WatchCalls())
type CertificateControllerMock ¶
type CertificateControllerMock struct {
// AddGenericHandlerFunc mocks the AddGenericHandler method.
AddGenericHandlerFunc func(ctx context.Context, name string, handler generic.Handler)
// AddGenericRemoveHandlerFunc mocks the AddGenericRemoveHandler method.
AddGenericRemoveHandlerFunc func(ctx context.Context, name string, handler generic.Handler)
// CacheFunc mocks the Cache method.
CacheFunc func() v1alpha1.CertificateCache
// CreateFunc mocks the Create method.
CreateFunc func(in1 *v1alpha1a.Certificate) (*v1alpha1a.Certificate, error)
// DeleteFunc mocks the Delete method.
DeleteFunc func(namespace string, name string, options *v1.DeleteOptions) error
// EnqueueFunc mocks the Enqueue method.
EnqueueFunc func(namespace string, name string)
// GetFunc mocks the Get method.
GetFunc func(namespace string, name string, options v1.GetOptions) (*v1alpha1a.Certificate, error)
// GroupVersionKindFunc mocks the GroupVersionKind method.
GroupVersionKindFunc func() schema.GroupVersionKind
// InformerFunc mocks the Informer method.
InformerFunc func() cache.SharedIndexInformer
// ListFunc mocks the List method.
ListFunc func(namespace string, opts v1.ListOptions) (*v1alpha1a.CertificateList, error)
// OnChangeFunc mocks the OnChange method.
OnChangeFunc func(ctx context.Context, name string, sync v1alpha1.CertificateHandler)
// OnRemoveFunc mocks the OnRemove method.
OnRemoveFunc func(ctx context.Context, name string, sync v1alpha1.CertificateHandler)
// PatchFunc mocks the Patch method.
PatchFunc func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha1a.Certificate, error)
// UpdateFunc mocks the Update method.
UpdateFunc func(in1 *v1alpha1a.Certificate) (*v1alpha1a.Certificate, error)
// UpdateStatusFunc mocks the UpdateStatus method.
UpdateStatusFunc func(in1 *v1alpha1a.Certificate) (*v1alpha1a.Certificate, error)
// UpdaterFunc mocks the Updater method.
UpdaterFunc func() generic.Updater
// WatchFunc mocks the Watch method.
WatchFunc func(namespace string, opts v1.ListOptions) (watch.Interface, 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{
AddGenericHandlerFunc: func(ctx context.Context, name string, handler generic.Handler) {
panic("mock out the AddGenericHandler method")
},
AddGenericRemoveHandlerFunc: func(ctx context.Context, name string, handler generic.Handler) {
panic("mock out the AddGenericRemoveHandler method")
},
CacheFunc: func() v1alpha1.CertificateCache {
panic("mock out the Cache method")
},
CreateFunc: func(in1 *v1alpha1a.Certificate) (*v1alpha1a.Certificate, error) {
panic("mock out the Create method")
},
DeleteFunc: func(namespace string, name string, options *v1.DeleteOptions) error {
panic("mock out the Delete method")
},
EnqueueFunc: func(namespace string, name string) {
panic("mock out the Enqueue method")
},
GetFunc: func(namespace string, name string, options v1.GetOptions) (*v1alpha1a.Certificate, error) {
panic("mock out the Get method")
},
GroupVersionKindFunc: func() schema.GroupVersionKind {
panic("mock out the GroupVersionKind method")
},
InformerFunc: func() cache.SharedIndexInformer {
panic("mock out the Informer method")
},
ListFunc: func(namespace string, opts v1.ListOptions) (*v1alpha1a.CertificateList, error) {
panic("mock out the List method")
},
OnChangeFunc: func(ctx context.Context, name string, sync v1alpha1.CertificateHandler) {
panic("mock out the OnChange method")
},
OnRemoveFunc: func(ctx context.Context, name string, sync v1alpha1.CertificateHandler) {
panic("mock out the OnRemove method")
},
PatchFunc: func(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha1a.Certificate, error) {
panic("mock out the Patch method")
},
UpdateFunc: func(in1 *v1alpha1a.Certificate) (*v1alpha1a.Certificate, error) {
panic("mock out the Update method")
},
UpdateStatusFunc: func(in1 *v1alpha1a.Certificate) (*v1alpha1a.Certificate, error) {
panic("mock out the UpdateStatus method")
},
UpdaterFunc: func() generic.Updater {
panic("mock out the Updater method")
},
WatchFunc: func(namespace string, opts v1.ListOptions) (watch.Interface, error) {
panic("mock out the Watch method")
},
}
// use mockedCertificateController in code that requires CertificateController
// and then make assertions.
}
func (*CertificateControllerMock) AddGenericHandler ¶
func (mock *CertificateControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
AddGenericHandler calls AddGenericHandlerFunc.
func (*CertificateControllerMock) AddGenericHandlerCalls ¶
func (mock *CertificateControllerMock) AddGenericHandlerCalls() []struct { Ctx context.Context Name string Handler generic.Handler }
AddGenericHandlerCalls gets all the calls that were made to AddGenericHandler. Check the length with:
len(mockedCertificateController.AddGenericHandlerCalls())
func (*CertificateControllerMock) AddGenericRemoveHandler ¶
func (mock *CertificateControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
AddGenericRemoveHandler calls AddGenericRemoveHandlerFunc.
func (*CertificateControllerMock) AddGenericRemoveHandlerCalls ¶
func (mock *CertificateControllerMock) AddGenericRemoveHandlerCalls() []struct { Ctx context.Context Name string Handler generic.Handler }
AddGenericRemoveHandlerCalls gets all the calls that were made to AddGenericRemoveHandler. Check the length with:
len(mockedCertificateController.AddGenericRemoveHandlerCalls())
func (*CertificateControllerMock) Cache ¶
func (mock *CertificateControllerMock) Cache() v1alpha1.CertificateCache
Cache calls CacheFunc.
func (*CertificateControllerMock) CacheCalls ¶
func (mock *CertificateControllerMock) CacheCalls() []struct { }
CacheCalls gets all the calls that were made to Cache. Check the length with:
len(mockedCertificateController.CacheCalls())
func (*CertificateControllerMock) Create ¶
func (mock *CertificateControllerMock) Create(in1 *v1alpha1a.Certificate) (*v1alpha1a.Certificate, error)
Create calls CreateFunc.
func (*CertificateControllerMock) CreateCalls ¶
func (mock *CertificateControllerMock) CreateCalls() []struct { In1 *v1alpha1a.Certificate }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedCertificateController.CreateCalls())
func (*CertificateControllerMock) Delete ¶
func (mock *CertificateControllerMock) Delete(namespace string, name string, options *v1.DeleteOptions) error
Delete calls DeleteFunc.
func (*CertificateControllerMock) DeleteCalls ¶
func (mock *CertificateControllerMock) DeleteCalls() []struct { Namespace string Name string Options *v1.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedCertificateController.DeleteCalls())
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) Get ¶
func (mock *CertificateControllerMock) Get(namespace string, name string, options v1.GetOptions) (*v1alpha1a.Certificate, error)
Get calls GetFunc.
func (*CertificateControllerMock) GetCalls ¶
func (mock *CertificateControllerMock) GetCalls() []struct { Namespace string Name string Options v1.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedCertificateController.GetCalls())
func (*CertificateControllerMock) GroupVersionKind ¶
func (mock *CertificateControllerMock) GroupVersionKind() schema.GroupVersionKind
GroupVersionKind calls GroupVersionKindFunc.
func (*CertificateControllerMock) GroupVersionKindCalls ¶
func (mock *CertificateControllerMock) GroupVersionKindCalls() []struct { }
GroupVersionKindCalls gets all the calls that were made to GroupVersionKind. Check the length with:
len(mockedCertificateController.GroupVersionKindCalls())
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) List ¶
func (mock *CertificateControllerMock) List(namespace string, opts v1.ListOptions) (*v1alpha1a.CertificateList, error)
List calls ListFunc.
func (*CertificateControllerMock) ListCalls ¶
func (mock *CertificateControllerMock) ListCalls() []struct { Namespace string Opts v1.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedCertificateController.ListCalls())
func (*CertificateControllerMock) OnChange ¶
func (mock *CertificateControllerMock) OnChange(ctx context.Context, name string, sync v1alpha1.CertificateHandler)
OnChange calls OnChangeFunc.
func (*CertificateControllerMock) OnChangeCalls ¶
func (mock *CertificateControllerMock) OnChangeCalls() []struct { Ctx context.Context Name string Sync v1alpha1.CertificateHandler }
OnChangeCalls gets all the calls that were made to OnChange. Check the length with:
len(mockedCertificateController.OnChangeCalls())
func (*CertificateControllerMock) OnRemove ¶
func (mock *CertificateControllerMock) OnRemove(ctx context.Context, name string, sync v1alpha1.CertificateHandler)
OnRemove calls OnRemoveFunc.
func (*CertificateControllerMock) OnRemoveCalls ¶
func (mock *CertificateControllerMock) OnRemoveCalls() []struct { Ctx context.Context Name string Sync v1alpha1.CertificateHandler }
OnRemoveCalls gets all the calls that were made to OnRemove. Check the length with:
len(mockedCertificateController.OnRemoveCalls())
func (*CertificateControllerMock) Patch ¶
func (mock *CertificateControllerMock) Patch(namespace string, name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha1a.Certificate, error)
Patch calls PatchFunc.
func (*CertificateControllerMock) PatchCalls ¶
func (mock *CertificateControllerMock) PatchCalls() []struct { Namespace string Name string Pt types.PatchType Data []byte Subresources []string }
PatchCalls gets all the calls that were made to Patch. Check the length with:
len(mockedCertificateController.PatchCalls())
func (*CertificateControllerMock) Update ¶
func (mock *CertificateControllerMock) Update(in1 *v1alpha1a.Certificate) (*v1alpha1a.Certificate, error)
Update calls UpdateFunc.
func (*CertificateControllerMock) UpdateCalls ¶
func (mock *CertificateControllerMock) UpdateCalls() []struct { In1 *v1alpha1a.Certificate }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedCertificateController.UpdateCalls())
func (*CertificateControllerMock) UpdateStatus ¶
func (mock *CertificateControllerMock) UpdateStatus(in1 *v1alpha1a.Certificate) (*v1alpha1a.Certificate, error)
UpdateStatus calls UpdateStatusFunc.
func (*CertificateControllerMock) UpdateStatusCalls ¶
func (mock *CertificateControllerMock) UpdateStatusCalls() []struct { In1 *v1alpha1a.Certificate }
UpdateStatusCalls gets all the calls that were made to UpdateStatus. Check the length with:
len(mockedCertificateController.UpdateStatusCalls())
func (*CertificateControllerMock) Updater ¶
func (mock *CertificateControllerMock) Updater() generic.Updater
Updater calls UpdaterFunc.
func (*CertificateControllerMock) UpdaterCalls ¶
func (mock *CertificateControllerMock) UpdaterCalls() []struct { }
UpdaterCalls gets all the calls that were made to Updater. Check the length with:
len(mockedCertificateController.UpdaterCalls())
func (*CertificateControllerMock) Watch ¶
func (mock *CertificateControllerMock) Watch(namespace string, opts v1.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*CertificateControllerMock) WatchCalls ¶
func (mock *CertificateControllerMock) WatchCalls() []struct { Namespace string Opts v1.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedCertificateController.WatchCalls())
type ClusterIssuerCacheMock ¶
type ClusterIssuerCacheMock struct {
// AddIndexerFunc mocks the AddIndexer method.
AddIndexerFunc func(indexName string, indexer v1alpha1.ClusterIssuerIndexer)
// GetFunc mocks the Get method.
GetFunc func(name string) (*v1alpha1a.ClusterIssuer, error)
// GetByIndexFunc mocks the GetByIndex method.
GetByIndexFunc func(indexName string, key string) ([]*v1alpha1a.ClusterIssuer, error)
// ListFunc mocks the List method.
ListFunc func(selector labels.Selector) ([]*v1alpha1a.ClusterIssuer, error)
// contains filtered or unexported fields
}
ClusterIssuerCacheMock is a mock implementation of ClusterIssuerCache.
func TestSomethingThatUsesClusterIssuerCache(t *testing.T) {
// make and configure a mocked ClusterIssuerCache
mockedClusterIssuerCache := &ClusterIssuerCacheMock{
AddIndexerFunc: func(indexName string, indexer v1alpha1.ClusterIssuerIndexer) {
panic("mock out the AddIndexer method")
},
GetFunc: func(name string) (*v1alpha1a.ClusterIssuer, error) {
panic("mock out the Get method")
},
GetByIndexFunc: func(indexName string, key string) ([]*v1alpha1a.ClusterIssuer, error) {
panic("mock out the GetByIndex method")
},
ListFunc: func(selector labels.Selector) ([]*v1alpha1a.ClusterIssuer, error) {
panic("mock out the List method")
},
}
// use mockedClusterIssuerCache in code that requires ClusterIssuerCache
// and then make assertions.
}
func (*ClusterIssuerCacheMock) AddIndexer ¶
func (mock *ClusterIssuerCacheMock) AddIndexer(indexName string, indexer v1alpha1.ClusterIssuerIndexer)
AddIndexer calls AddIndexerFunc.
func (*ClusterIssuerCacheMock) AddIndexerCalls ¶
func (mock *ClusterIssuerCacheMock) AddIndexerCalls() []struct { IndexName string Indexer v1alpha1.ClusterIssuerIndexer }
AddIndexerCalls gets all the calls that were made to AddIndexer. Check the length with:
len(mockedClusterIssuerCache.AddIndexerCalls())
func (*ClusterIssuerCacheMock) Get ¶
func (mock *ClusterIssuerCacheMock) Get(name string) (*v1alpha1a.ClusterIssuer, error)
Get calls GetFunc.
func (*ClusterIssuerCacheMock) GetByIndex ¶
func (mock *ClusterIssuerCacheMock) GetByIndex(indexName string, key string) ([]*v1alpha1a.ClusterIssuer, error)
GetByIndex calls GetByIndexFunc.
func (*ClusterIssuerCacheMock) GetByIndexCalls ¶
func (mock *ClusterIssuerCacheMock) GetByIndexCalls() []struct { IndexName string Key string }
GetByIndexCalls gets all the calls that were made to GetByIndex. Check the length with:
len(mockedClusterIssuerCache.GetByIndexCalls())
func (*ClusterIssuerCacheMock) GetCalls ¶
func (mock *ClusterIssuerCacheMock) GetCalls() []struct { Name string }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedClusterIssuerCache.GetCalls())
func (*ClusterIssuerCacheMock) List ¶
func (mock *ClusterIssuerCacheMock) List(selector labels.Selector) ([]*v1alpha1a.ClusterIssuer, error)
List calls ListFunc.
func (*ClusterIssuerCacheMock) ListCalls ¶
func (mock *ClusterIssuerCacheMock) ListCalls() []struct { Selector labels.Selector }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedClusterIssuerCache.ListCalls())
type ClusterIssuerClientMock ¶
type ClusterIssuerClientMock struct {
// CreateFunc mocks the Create method.
CreateFunc func(in1 *v1alpha1a.ClusterIssuer) (*v1alpha1a.ClusterIssuer, error)
// DeleteFunc mocks the Delete method.
DeleteFunc func(name string, options *v1.DeleteOptions) error
// GetFunc mocks the Get method.
GetFunc func(name string, options v1.GetOptions) (*v1alpha1a.ClusterIssuer, error)
// ListFunc mocks the List method.
ListFunc func(opts v1.ListOptions) (*v1alpha1a.ClusterIssuerList, error)
// PatchFunc mocks the Patch method.
PatchFunc func(name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha1a.ClusterIssuer, error)
// UpdateFunc mocks the Update method.
UpdateFunc func(in1 *v1alpha1a.ClusterIssuer) (*v1alpha1a.ClusterIssuer, error)
// UpdateStatusFunc mocks the UpdateStatus method.
UpdateStatusFunc func(in1 *v1alpha1a.ClusterIssuer) (*v1alpha1a.ClusterIssuer, error)
// WatchFunc mocks the Watch method.
WatchFunc func(opts v1.ListOptions) (watch.Interface, error)
// contains filtered or unexported fields
}
ClusterIssuerClientMock is a mock implementation of ClusterIssuerClient.
func TestSomethingThatUsesClusterIssuerClient(t *testing.T) {
// make and configure a mocked ClusterIssuerClient
mockedClusterIssuerClient := &ClusterIssuerClientMock{
CreateFunc: func(in1 *v1alpha1a.ClusterIssuer) (*v1alpha1a.ClusterIssuer, error) {
panic("mock out the Create method")
},
DeleteFunc: func(name string, options *v1.DeleteOptions) error {
panic("mock out the Delete method")
},
GetFunc: func(name string, options v1.GetOptions) (*v1alpha1a.ClusterIssuer, error) {
panic("mock out the Get method")
},
ListFunc: func(opts v1.ListOptions) (*v1alpha1a.ClusterIssuerList, error) {
panic("mock out the List method")
},
PatchFunc: func(name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha1a.ClusterIssuer, error) {
panic("mock out the Patch method")
},
UpdateFunc: func(in1 *v1alpha1a.ClusterIssuer) (*v1alpha1a.ClusterIssuer, error) {
panic("mock out the Update method")
},
UpdateStatusFunc: func(in1 *v1alpha1a.ClusterIssuer) (*v1alpha1a.ClusterIssuer, error) {
panic("mock out the UpdateStatus method")
},
WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) {
panic("mock out the Watch method")
},
}
// use mockedClusterIssuerClient in code that requires ClusterIssuerClient
// and then make assertions.
}
func (*ClusterIssuerClientMock) Create ¶
func (mock *ClusterIssuerClientMock) Create(in1 *v1alpha1a.ClusterIssuer) (*v1alpha1a.ClusterIssuer, error)
Create calls CreateFunc.
func (*ClusterIssuerClientMock) CreateCalls ¶
func (mock *ClusterIssuerClientMock) CreateCalls() []struct { In1 *v1alpha1a.ClusterIssuer }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedClusterIssuerClient.CreateCalls())
func (*ClusterIssuerClientMock) Delete ¶
func (mock *ClusterIssuerClientMock) Delete(name string, options *v1.DeleteOptions) error
Delete calls DeleteFunc.
func (*ClusterIssuerClientMock) DeleteCalls ¶
func (mock *ClusterIssuerClientMock) DeleteCalls() []struct { Name string Options *v1.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedClusterIssuerClient.DeleteCalls())
func (*ClusterIssuerClientMock) Get ¶
func (mock *ClusterIssuerClientMock) Get(name string, options v1.GetOptions) (*v1alpha1a.ClusterIssuer, error)
Get calls GetFunc.
func (*ClusterIssuerClientMock) GetCalls ¶
func (mock *ClusterIssuerClientMock) GetCalls() []struct { Name string Options v1.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedClusterIssuerClient.GetCalls())
func (*ClusterIssuerClientMock) List ¶
func (mock *ClusterIssuerClientMock) List(opts v1.ListOptions) (*v1alpha1a.ClusterIssuerList, error)
List calls ListFunc.
func (*ClusterIssuerClientMock) ListCalls ¶
func (mock *ClusterIssuerClientMock) ListCalls() []struct { Opts v1.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedClusterIssuerClient.ListCalls())
func (*ClusterIssuerClientMock) Patch ¶
func (mock *ClusterIssuerClientMock) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha1a.ClusterIssuer, error)
Patch calls PatchFunc.
func (*ClusterIssuerClientMock) PatchCalls ¶
func (mock *ClusterIssuerClientMock) PatchCalls() []struct { Name string Pt types.PatchType Data []byte Subresources []string }
PatchCalls gets all the calls that were made to Patch. Check the length with:
len(mockedClusterIssuerClient.PatchCalls())
func (*ClusterIssuerClientMock) Update ¶
func (mock *ClusterIssuerClientMock) Update(in1 *v1alpha1a.ClusterIssuer) (*v1alpha1a.ClusterIssuer, error)
Update calls UpdateFunc.
func (*ClusterIssuerClientMock) UpdateCalls ¶
func (mock *ClusterIssuerClientMock) UpdateCalls() []struct { In1 *v1alpha1a.ClusterIssuer }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedClusterIssuerClient.UpdateCalls())
func (*ClusterIssuerClientMock) UpdateStatus ¶
func (mock *ClusterIssuerClientMock) UpdateStatus(in1 *v1alpha1a.ClusterIssuer) (*v1alpha1a.ClusterIssuer, error)
UpdateStatus calls UpdateStatusFunc.
func (*ClusterIssuerClientMock) UpdateStatusCalls ¶
func (mock *ClusterIssuerClientMock) UpdateStatusCalls() []struct { In1 *v1alpha1a.ClusterIssuer }
UpdateStatusCalls gets all the calls that were made to UpdateStatus. Check the length with:
len(mockedClusterIssuerClient.UpdateStatusCalls())
func (*ClusterIssuerClientMock) Watch ¶
func (mock *ClusterIssuerClientMock) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*ClusterIssuerClientMock) WatchCalls ¶
func (mock *ClusterIssuerClientMock) WatchCalls() []struct { Opts v1.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedClusterIssuerClient.WatchCalls())
type ClusterIssuerControllerMock ¶
type ClusterIssuerControllerMock struct {
// AddGenericHandlerFunc mocks the AddGenericHandler method.
AddGenericHandlerFunc func(ctx context.Context, name string, handler generic.Handler)
// AddGenericRemoveHandlerFunc mocks the AddGenericRemoveHandler method.
AddGenericRemoveHandlerFunc func(ctx context.Context, name string, handler generic.Handler)
// CacheFunc mocks the Cache method.
CacheFunc func() v1alpha1.ClusterIssuerCache
// CreateFunc mocks the Create method.
CreateFunc func(in1 *v1alpha1a.ClusterIssuer) (*v1alpha1a.ClusterIssuer, error)
// DeleteFunc mocks the Delete method.
DeleteFunc func(name string, options *v1.DeleteOptions) error
// EnqueueFunc mocks the Enqueue method.
EnqueueFunc func(name string)
// GetFunc mocks the Get method.
GetFunc func(name string, options v1.GetOptions) (*v1alpha1a.ClusterIssuer, error)
// GroupVersionKindFunc mocks the GroupVersionKind method.
GroupVersionKindFunc func() schema.GroupVersionKind
// InformerFunc mocks the Informer method.
InformerFunc func() cache.SharedIndexInformer
// ListFunc mocks the List method.
ListFunc func(opts v1.ListOptions) (*v1alpha1a.ClusterIssuerList, error)
// OnChangeFunc mocks the OnChange method.
OnChangeFunc func(ctx context.Context, name string, sync v1alpha1.ClusterIssuerHandler)
// OnRemoveFunc mocks the OnRemove method.
OnRemoveFunc func(ctx context.Context, name string, sync v1alpha1.ClusterIssuerHandler)
// PatchFunc mocks the Patch method.
PatchFunc func(name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha1a.ClusterIssuer, error)
// UpdateFunc mocks the Update method.
UpdateFunc func(in1 *v1alpha1a.ClusterIssuer) (*v1alpha1a.ClusterIssuer, error)
// UpdateStatusFunc mocks the UpdateStatus method.
UpdateStatusFunc func(in1 *v1alpha1a.ClusterIssuer) (*v1alpha1a.ClusterIssuer, error)
// UpdaterFunc mocks the Updater method.
UpdaterFunc func() generic.Updater
// WatchFunc mocks the Watch method.
WatchFunc func(opts v1.ListOptions) (watch.Interface, error)
// contains filtered or unexported fields
}
ClusterIssuerControllerMock is a mock implementation of ClusterIssuerController.
func TestSomethingThatUsesClusterIssuerController(t *testing.T) {
// make and configure a mocked ClusterIssuerController
mockedClusterIssuerController := &ClusterIssuerControllerMock{
AddGenericHandlerFunc: func(ctx context.Context, name string, handler generic.Handler) {
panic("mock out the AddGenericHandler method")
},
AddGenericRemoveHandlerFunc: func(ctx context.Context, name string, handler generic.Handler) {
panic("mock out the AddGenericRemoveHandler method")
},
CacheFunc: func() v1alpha1.ClusterIssuerCache {
panic("mock out the Cache method")
},
CreateFunc: func(in1 *v1alpha1a.ClusterIssuer) (*v1alpha1a.ClusterIssuer, error) {
panic("mock out the Create method")
},
DeleteFunc: func(name string, options *v1.DeleteOptions) error {
panic("mock out the Delete method")
},
EnqueueFunc: func(name string) {
panic("mock out the Enqueue method")
},
GetFunc: func(name string, options v1.GetOptions) (*v1alpha1a.ClusterIssuer, error) {
panic("mock out the Get method")
},
GroupVersionKindFunc: func() schema.GroupVersionKind {
panic("mock out the GroupVersionKind method")
},
InformerFunc: func() cache.SharedIndexInformer {
panic("mock out the Informer method")
},
ListFunc: func(opts v1.ListOptions) (*v1alpha1a.ClusterIssuerList, error) {
panic("mock out the List method")
},
OnChangeFunc: func(ctx context.Context, name string, sync v1alpha1.ClusterIssuerHandler) {
panic("mock out the OnChange method")
},
OnRemoveFunc: func(ctx context.Context, name string, sync v1alpha1.ClusterIssuerHandler) {
panic("mock out the OnRemove method")
},
PatchFunc: func(name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha1a.ClusterIssuer, error) {
panic("mock out the Patch method")
},
UpdateFunc: func(in1 *v1alpha1a.ClusterIssuer) (*v1alpha1a.ClusterIssuer, error) {
panic("mock out the Update method")
},
UpdateStatusFunc: func(in1 *v1alpha1a.ClusterIssuer) (*v1alpha1a.ClusterIssuer, error) {
panic("mock out the UpdateStatus method")
},
UpdaterFunc: func() generic.Updater {
panic("mock out the Updater method")
},
WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) {
panic("mock out the Watch method")
},
}
// use mockedClusterIssuerController in code that requires ClusterIssuerController
// and then make assertions.
}
func (*ClusterIssuerControllerMock) AddGenericHandler ¶
func (mock *ClusterIssuerControllerMock) AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
AddGenericHandler calls AddGenericHandlerFunc.
func (*ClusterIssuerControllerMock) AddGenericHandlerCalls ¶
func (mock *ClusterIssuerControllerMock) AddGenericHandlerCalls() []struct { Ctx context.Context Name string Handler generic.Handler }
AddGenericHandlerCalls gets all the calls that were made to AddGenericHandler. Check the length with:
len(mockedClusterIssuerController.AddGenericHandlerCalls())
func (*ClusterIssuerControllerMock) AddGenericRemoveHandler ¶
func (mock *ClusterIssuerControllerMock) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
AddGenericRemoveHandler calls AddGenericRemoveHandlerFunc.
func (*ClusterIssuerControllerMock) AddGenericRemoveHandlerCalls ¶
func (mock *ClusterIssuerControllerMock) AddGenericRemoveHandlerCalls() []struct { Ctx context.Context Name string Handler generic.Handler }
AddGenericRemoveHandlerCalls gets all the calls that were made to AddGenericRemoveHandler. Check the length with:
len(mockedClusterIssuerController.AddGenericRemoveHandlerCalls())
func (*ClusterIssuerControllerMock) Cache ¶
func (mock *ClusterIssuerControllerMock) Cache() v1alpha1.ClusterIssuerCache
Cache calls CacheFunc.
func (*ClusterIssuerControllerMock) CacheCalls ¶
func (mock *ClusterIssuerControllerMock) CacheCalls() []struct { }
CacheCalls gets all the calls that were made to Cache. Check the length with:
len(mockedClusterIssuerController.CacheCalls())
func (*ClusterIssuerControllerMock) Create ¶
func (mock *ClusterIssuerControllerMock) Create(in1 *v1alpha1a.ClusterIssuer) (*v1alpha1a.ClusterIssuer, error)
Create calls CreateFunc.
func (*ClusterIssuerControllerMock) CreateCalls ¶
func (mock *ClusterIssuerControllerMock) CreateCalls() []struct { In1 *v1alpha1a.ClusterIssuer }
CreateCalls gets all the calls that were made to Create. Check the length with:
len(mockedClusterIssuerController.CreateCalls())
func (*ClusterIssuerControllerMock) Delete ¶
func (mock *ClusterIssuerControllerMock) Delete(name string, options *v1.DeleteOptions) error
Delete calls DeleteFunc.
func (*ClusterIssuerControllerMock) DeleteCalls ¶
func (mock *ClusterIssuerControllerMock) DeleteCalls() []struct { Name string Options *v1.DeleteOptions }
DeleteCalls gets all the calls that were made to Delete. Check the length with:
len(mockedClusterIssuerController.DeleteCalls())
func (*ClusterIssuerControllerMock) Enqueue ¶
func (mock *ClusterIssuerControllerMock) Enqueue(name string)
Enqueue calls EnqueueFunc.
func (*ClusterIssuerControllerMock) EnqueueCalls ¶
func (mock *ClusterIssuerControllerMock) EnqueueCalls() []struct { Name string }
EnqueueCalls gets all the calls that were made to Enqueue. Check the length with:
len(mockedClusterIssuerController.EnqueueCalls())
func (*ClusterIssuerControllerMock) Get ¶
func (mock *ClusterIssuerControllerMock) Get(name string, options v1.GetOptions) (*v1alpha1a.ClusterIssuer, error)
Get calls GetFunc.
func (*ClusterIssuerControllerMock) GetCalls ¶
func (mock *ClusterIssuerControllerMock) GetCalls() []struct { Name string Options v1.GetOptions }
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedClusterIssuerController.GetCalls())
func (*ClusterIssuerControllerMock) GroupVersionKind ¶
func (mock *ClusterIssuerControllerMock) GroupVersionKind() schema.GroupVersionKind
GroupVersionKind calls GroupVersionKindFunc.
func (*ClusterIssuerControllerMock) GroupVersionKindCalls ¶
func (mock *ClusterIssuerControllerMock) GroupVersionKindCalls() []struct { }
GroupVersionKindCalls gets all the calls that were made to GroupVersionKind. Check the length with:
len(mockedClusterIssuerController.GroupVersionKindCalls())
func (*ClusterIssuerControllerMock) Informer ¶
func (mock *ClusterIssuerControllerMock) Informer() cache.SharedIndexInformer
Informer calls InformerFunc.
func (*ClusterIssuerControllerMock) InformerCalls ¶
func (mock *ClusterIssuerControllerMock) InformerCalls() []struct { }
InformerCalls gets all the calls that were made to Informer. Check the length with:
len(mockedClusterIssuerController.InformerCalls())
func (*ClusterIssuerControllerMock) List ¶
func (mock *ClusterIssuerControllerMock) List(opts v1.ListOptions) (*v1alpha1a.ClusterIssuerList, error)
List calls ListFunc.
func (*ClusterIssuerControllerMock) ListCalls ¶
func (mock *ClusterIssuerControllerMock) ListCalls() []struct { Opts v1.ListOptions }
ListCalls gets all the calls that were made to List. Check the length with:
len(mockedClusterIssuerController.ListCalls())
func (*ClusterIssuerControllerMock) OnChange ¶
func (mock *ClusterIssuerControllerMock) OnChange(ctx context.Context, name string, sync v1alpha1.ClusterIssuerHandler)
OnChange calls OnChangeFunc.
func (*ClusterIssuerControllerMock) OnChangeCalls ¶
func (mock *ClusterIssuerControllerMock) OnChangeCalls() []struct { Ctx context.Context Name string Sync v1alpha1.ClusterIssuerHandler }
OnChangeCalls gets all the calls that were made to OnChange. Check the length with:
len(mockedClusterIssuerController.OnChangeCalls())
func (*ClusterIssuerControllerMock) OnRemove ¶
func (mock *ClusterIssuerControllerMock) OnRemove(ctx context.Context, name string, sync v1alpha1.ClusterIssuerHandler)
OnRemove calls OnRemoveFunc.
func (*ClusterIssuerControllerMock) OnRemoveCalls ¶
func (mock *ClusterIssuerControllerMock) OnRemoveCalls() []struct { Ctx context.Context Name string Sync v1alpha1.ClusterIssuerHandler }
OnRemoveCalls gets all the calls that were made to OnRemove. Check the length with:
len(mockedClusterIssuerController.OnRemoveCalls())
func (*ClusterIssuerControllerMock) Patch ¶
func (mock *ClusterIssuerControllerMock) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (*v1alpha1a.ClusterIssuer, error)
Patch calls PatchFunc.
func (*ClusterIssuerControllerMock) PatchCalls ¶
func (mock *ClusterIssuerControllerMock) PatchCalls() []struct { Name string Pt types.PatchType Data []byte Subresources []string }
PatchCalls gets all the calls that were made to Patch. Check the length with:
len(mockedClusterIssuerController.PatchCalls())
func (*ClusterIssuerControllerMock) Update ¶
func (mock *ClusterIssuerControllerMock) Update(in1 *v1alpha1a.ClusterIssuer) (*v1alpha1a.ClusterIssuer, error)
Update calls UpdateFunc.
func (*ClusterIssuerControllerMock) UpdateCalls ¶
func (mock *ClusterIssuerControllerMock) UpdateCalls() []struct { In1 *v1alpha1a.ClusterIssuer }
UpdateCalls gets all the calls that were made to Update. Check the length with:
len(mockedClusterIssuerController.UpdateCalls())
func (*ClusterIssuerControllerMock) UpdateStatus ¶
func (mock *ClusterIssuerControllerMock) UpdateStatus(in1 *v1alpha1a.ClusterIssuer) (*v1alpha1a.ClusterIssuer, error)
UpdateStatus calls UpdateStatusFunc.
func (*ClusterIssuerControllerMock) UpdateStatusCalls ¶
func (mock *ClusterIssuerControllerMock) UpdateStatusCalls() []struct { In1 *v1alpha1a.ClusterIssuer }
UpdateStatusCalls gets all the calls that were made to UpdateStatus. Check the length with:
len(mockedClusterIssuerController.UpdateStatusCalls())
func (*ClusterIssuerControllerMock) Updater ¶
func (mock *ClusterIssuerControllerMock) Updater() generic.Updater
Updater calls UpdaterFunc.
func (*ClusterIssuerControllerMock) UpdaterCalls ¶
func (mock *ClusterIssuerControllerMock) UpdaterCalls() []struct { }
UpdaterCalls gets all the calls that were made to Updater. Check the length with:
len(mockedClusterIssuerController.UpdaterCalls())
func (*ClusterIssuerControllerMock) Watch ¶
func (mock *ClusterIssuerControllerMock) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch calls WatchFunc.
func (*ClusterIssuerControllerMock) WatchCalls ¶
func (mock *ClusterIssuerControllerMock) WatchCalls() []struct { Opts v1.ListOptions }
WatchCalls gets all the calls that were made to Watch. Check the length with:
len(mockedClusterIssuerController.WatchCalls())