// Code generated by counterfeiter. DO NOT EDIT.
package listers

import (
	"sync"

	v1a "k8s.io/api/core/v1"
	"k8s.io/apimachinery/pkg/labels"
	v1 "k8s.io/client-go/listers/core/v1"
)

type FakeSecretLister struct {
	ListStub        func(labels.Selector) ([]*v1a.Secret, error)
	listMutex       sync.RWMutex
	listArgsForCall []struct {
		arg1 labels.Selector
	}
	listReturns struct {
		result1 []*v1a.Secret
		result2 error
	}
	listReturnsOnCall map[int]struct {
		result1 []*v1a.Secret
		result2 error
	}
	SecretsStub        func(string) v1.SecretNamespaceLister
	secretsMutex       sync.RWMutex
	secretsArgsForCall []struct {
		arg1 string
	}
	secretsReturns struct {
		result1 v1.SecretNamespaceLister
	}
	secretsReturnsOnCall map[int]struct {
		result1 v1.SecretNamespaceLister
	}
	invocations      map[string][][]interface{}
	invocationsMutex sync.RWMutex
}

func (fake *FakeSecretLister) List(arg1 labels.Selector) ([]*v1a.Secret, error) {
	fake.listMutex.Lock()
	ret, specificReturn := fake.listReturnsOnCall[len(fake.listArgsForCall)]
	fake.listArgsForCall = append(fake.listArgsForCall, struct {
		arg1 labels.Selector
	}{arg1})
	fake.recordInvocation("List", []interface{}{arg1})
	fake.listMutex.Unlock()
	if fake.ListStub != nil {
		return fake.ListStub(arg1)
	}
	if specificReturn {
		return ret.result1, ret.result2
	}
	fakeReturns := fake.listReturns
	return fakeReturns.result1, fakeReturns.result2
}

func (fake *FakeSecretLister) ListCallCount() int {
	fake.listMutex.RLock()
	defer fake.listMutex.RUnlock()
	return len(fake.listArgsForCall)
}

func (fake *FakeSecretLister) ListCalls(stub func(labels.Selector) ([]*v1a.Secret, error)) {
	fake.listMutex.Lock()
	defer fake.listMutex.Unlock()
	fake.ListStub = stub
}

func (fake *FakeSecretLister) ListArgsForCall(i int) labels.Selector {
	fake.listMutex.RLock()
	defer fake.listMutex.RUnlock()
	argsForCall := fake.listArgsForCall[i]
	return argsForCall.arg1
}

func (fake *FakeSecretLister) ListReturns(result1 []*v1a.Secret, result2 error) {
	fake.listMutex.Lock()
	defer fake.listMutex.Unlock()
	fake.ListStub = nil
	fake.listReturns = struct {
		result1 []*v1a.Secret
		result2 error
	}{result1, result2}
}

func (fake *FakeSecretLister) ListReturnsOnCall(i int, result1 []*v1a.Secret, result2 error) {
	fake.listMutex.Lock()
	defer fake.listMutex.Unlock()
	fake.ListStub = nil
	if fake.listReturnsOnCall == nil {
		fake.listReturnsOnCall = make(map[int]struct {
			result1 []*v1a.Secret
			result2 error
		})
	}
	fake.listReturnsOnCall[i] = struct {
		result1 []*v1a.Secret
		result2 error
	}{result1, result2}
}

func (fake *FakeSecretLister) Secrets(arg1 string) v1.SecretNamespaceLister {
	fake.secretsMutex.Lock()
	ret, specificReturn := fake.secretsReturnsOnCall[len(fake.secretsArgsForCall)]
	fake.secretsArgsForCall = append(fake.secretsArgsForCall, struct {
		arg1 string
	}{arg1})
	fake.recordInvocation("Secrets", []interface{}{arg1})
	fake.secretsMutex.Unlock()
	if fake.SecretsStub != nil {
		return fake.SecretsStub(arg1)
	}
	if specificReturn {
		return ret.result1
	}
	fakeReturns := fake.secretsReturns
	return fakeReturns.result1
}

func (fake *FakeSecretLister) SecretsCallCount() int {
	fake.secretsMutex.RLock()
	defer fake.secretsMutex.RUnlock()
	return len(fake.secretsArgsForCall)
}

func (fake *FakeSecretLister) SecretsCalls(stub func(string) v1.SecretNamespaceLister) {
	fake.secretsMutex.Lock()
	defer fake.secretsMutex.Unlock()
	fake.SecretsStub = stub
}

func (fake *FakeSecretLister) SecretsArgsForCall(i int) string {
	fake.secretsMutex.RLock()
	defer fake.secretsMutex.RUnlock()
	argsForCall := fake.secretsArgsForCall[i]
	return argsForCall.arg1
}

func (fake *FakeSecretLister) SecretsReturns(result1 v1.SecretNamespaceLister) {
	fake.secretsMutex.Lock()
	defer fake.secretsMutex.Unlock()
	fake.SecretsStub = nil
	fake.secretsReturns = struct {
		result1 v1.SecretNamespaceLister
	}{result1}
}

func (fake *FakeSecretLister) SecretsReturnsOnCall(i int, result1 v1.SecretNamespaceLister) {
	fake.secretsMutex.Lock()
	defer fake.secretsMutex.Unlock()
	fake.SecretsStub = nil
	if fake.secretsReturnsOnCall == nil {
		fake.secretsReturnsOnCall = make(map[int]struct {
			result1 v1.SecretNamespaceLister
		})
	}
	fake.secretsReturnsOnCall[i] = struct {
		result1 v1.SecretNamespaceLister
	}{result1}
}

func (fake *FakeSecretLister) Invocations() map[string][][]interface{} {
	fake.invocationsMutex.RLock()
	defer fake.invocationsMutex.RUnlock()
	fake.listMutex.RLock()
	defer fake.listMutex.RUnlock()
	fake.secretsMutex.RLock()
	defer fake.secretsMutex.RUnlock()
	copiedInvocations := map[string][][]interface{}{}
	for key, value := range fake.invocations {
		copiedInvocations[key] = value
	}
	return copiedInvocations
}

func (fake *FakeSecretLister) recordInvocation(key string, args []interface{}) {
	fake.invocationsMutex.Lock()
	defer fake.invocationsMutex.Unlock()
	if fake.invocations == nil {
		fake.invocations = map[string][][]interface{}{}
	}
	if fake.invocations[key] == nil {
		fake.invocations[key] = [][]interface{}{}
	}
	fake.invocations[key] = append(fake.invocations[key], args)
}

var _ v1.SecretLister = new(FakeSecretLister)
