fakes

package
v0.1.0-rc4 Latest Latest
Warning

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

Go to latest
Published: May 15, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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.

func (*CertificateCacheMock) ListCalls

func (mock *CertificateCacheMock) ListCalls() []struct {
	Namespace string
	Selector  labels.Selector
}

ListCalls gets all the calls that were made to List. Check the length with:

len(mockedCertificateCache.ListCalls())

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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())

Jump to

Keyboard shortcuts

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