github.com/mook-as/cf-cli@v7.0.0-beta.28.0.20200120190804-b91c115fae48+incompatible/command/v6/v6fakes/fake_v3sshactor.go (about)

     1  // Code generated by counterfeiter. DO NOT EDIT.
     2  package v6fakes
     3  
     4  import (
     5  	"sync"
     6  
     7  	"code.cloudfoundry.org/cli/actor/v3action"
     8  	v6 "code.cloudfoundry.org/cli/command/v6"
     9  )
    10  
    11  type FakeV3SSHActor struct {
    12  	GetSecureShellConfigurationByApplicationNameSpaceProcessTypeAndIndexStub        func(string, string, string, uint) (v3action.SSHAuthentication, v3action.Warnings, error)
    13  	getSecureShellConfigurationByApplicationNameSpaceProcessTypeAndIndexMutex       sync.RWMutex
    14  	getSecureShellConfigurationByApplicationNameSpaceProcessTypeAndIndexArgsForCall []struct {
    15  		arg1 string
    16  		arg2 string
    17  		arg3 string
    18  		arg4 uint
    19  	}
    20  	getSecureShellConfigurationByApplicationNameSpaceProcessTypeAndIndexReturns struct {
    21  		result1 v3action.SSHAuthentication
    22  		result2 v3action.Warnings
    23  		result3 error
    24  	}
    25  	getSecureShellConfigurationByApplicationNameSpaceProcessTypeAndIndexReturnsOnCall map[int]struct {
    26  		result1 v3action.SSHAuthentication
    27  		result2 v3action.Warnings
    28  		result3 error
    29  	}
    30  	invocations      map[string][][]interface{}
    31  	invocationsMutex sync.RWMutex
    32  }
    33  
    34  func (fake *FakeV3SSHActor) GetSecureShellConfigurationByApplicationNameSpaceProcessTypeAndIndex(arg1 string, arg2 string, arg3 string, arg4 uint) (v3action.SSHAuthentication, v3action.Warnings, error) {
    35  	fake.getSecureShellConfigurationByApplicationNameSpaceProcessTypeAndIndexMutex.Lock()
    36  	ret, specificReturn := fake.getSecureShellConfigurationByApplicationNameSpaceProcessTypeAndIndexReturnsOnCall[len(fake.getSecureShellConfigurationByApplicationNameSpaceProcessTypeAndIndexArgsForCall)]
    37  	fake.getSecureShellConfigurationByApplicationNameSpaceProcessTypeAndIndexArgsForCall = append(fake.getSecureShellConfigurationByApplicationNameSpaceProcessTypeAndIndexArgsForCall, struct {
    38  		arg1 string
    39  		arg2 string
    40  		arg3 string
    41  		arg4 uint
    42  	}{arg1, arg2, arg3, arg4})
    43  	fake.recordInvocation("GetSecureShellConfigurationByApplicationNameSpaceProcessTypeAndIndex", []interface{}{arg1, arg2, arg3, arg4})
    44  	fake.getSecureShellConfigurationByApplicationNameSpaceProcessTypeAndIndexMutex.Unlock()
    45  	if fake.GetSecureShellConfigurationByApplicationNameSpaceProcessTypeAndIndexStub != nil {
    46  		return fake.GetSecureShellConfigurationByApplicationNameSpaceProcessTypeAndIndexStub(arg1, arg2, arg3, arg4)
    47  	}
    48  	if specificReturn {
    49  		return ret.result1, ret.result2, ret.result3
    50  	}
    51  	fakeReturns := fake.getSecureShellConfigurationByApplicationNameSpaceProcessTypeAndIndexReturns
    52  	return fakeReturns.result1, fakeReturns.result2, fakeReturns.result3
    53  }
    54  
    55  func (fake *FakeV3SSHActor) GetSecureShellConfigurationByApplicationNameSpaceProcessTypeAndIndexCallCount() int {
    56  	fake.getSecureShellConfigurationByApplicationNameSpaceProcessTypeAndIndexMutex.RLock()
    57  	defer fake.getSecureShellConfigurationByApplicationNameSpaceProcessTypeAndIndexMutex.RUnlock()
    58  	return len(fake.getSecureShellConfigurationByApplicationNameSpaceProcessTypeAndIndexArgsForCall)
    59  }
    60  
    61  func (fake *FakeV3SSHActor) GetSecureShellConfigurationByApplicationNameSpaceProcessTypeAndIndexCalls(stub func(string, string, string, uint) (v3action.SSHAuthentication, v3action.Warnings, error)) {
    62  	fake.getSecureShellConfigurationByApplicationNameSpaceProcessTypeAndIndexMutex.Lock()
    63  	defer fake.getSecureShellConfigurationByApplicationNameSpaceProcessTypeAndIndexMutex.Unlock()
    64  	fake.GetSecureShellConfigurationByApplicationNameSpaceProcessTypeAndIndexStub = stub
    65  }
    66  
    67  func (fake *FakeV3SSHActor) GetSecureShellConfigurationByApplicationNameSpaceProcessTypeAndIndexArgsForCall(i int) (string, string, string, uint) {
    68  	fake.getSecureShellConfigurationByApplicationNameSpaceProcessTypeAndIndexMutex.RLock()
    69  	defer fake.getSecureShellConfigurationByApplicationNameSpaceProcessTypeAndIndexMutex.RUnlock()
    70  	argsForCall := fake.getSecureShellConfigurationByApplicationNameSpaceProcessTypeAndIndexArgsForCall[i]
    71  	return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3, argsForCall.arg4
    72  }
    73  
    74  func (fake *FakeV3SSHActor) GetSecureShellConfigurationByApplicationNameSpaceProcessTypeAndIndexReturns(result1 v3action.SSHAuthentication, result2 v3action.Warnings, result3 error) {
    75  	fake.getSecureShellConfigurationByApplicationNameSpaceProcessTypeAndIndexMutex.Lock()
    76  	defer fake.getSecureShellConfigurationByApplicationNameSpaceProcessTypeAndIndexMutex.Unlock()
    77  	fake.GetSecureShellConfigurationByApplicationNameSpaceProcessTypeAndIndexStub = nil
    78  	fake.getSecureShellConfigurationByApplicationNameSpaceProcessTypeAndIndexReturns = struct {
    79  		result1 v3action.SSHAuthentication
    80  		result2 v3action.Warnings
    81  		result3 error
    82  	}{result1, result2, result3}
    83  }
    84  
    85  func (fake *FakeV3SSHActor) GetSecureShellConfigurationByApplicationNameSpaceProcessTypeAndIndexReturnsOnCall(i int, result1 v3action.SSHAuthentication, result2 v3action.Warnings, result3 error) {
    86  	fake.getSecureShellConfigurationByApplicationNameSpaceProcessTypeAndIndexMutex.Lock()
    87  	defer fake.getSecureShellConfigurationByApplicationNameSpaceProcessTypeAndIndexMutex.Unlock()
    88  	fake.GetSecureShellConfigurationByApplicationNameSpaceProcessTypeAndIndexStub = nil
    89  	if fake.getSecureShellConfigurationByApplicationNameSpaceProcessTypeAndIndexReturnsOnCall == nil {
    90  		fake.getSecureShellConfigurationByApplicationNameSpaceProcessTypeAndIndexReturnsOnCall = make(map[int]struct {
    91  			result1 v3action.SSHAuthentication
    92  			result2 v3action.Warnings
    93  			result3 error
    94  		})
    95  	}
    96  	fake.getSecureShellConfigurationByApplicationNameSpaceProcessTypeAndIndexReturnsOnCall[i] = struct {
    97  		result1 v3action.SSHAuthentication
    98  		result2 v3action.Warnings
    99  		result3 error
   100  	}{result1, result2, result3}
   101  }
   102  
   103  func (fake *FakeV3SSHActor) Invocations() map[string][][]interface{} {
   104  	fake.invocationsMutex.RLock()
   105  	defer fake.invocationsMutex.RUnlock()
   106  	fake.getSecureShellConfigurationByApplicationNameSpaceProcessTypeAndIndexMutex.RLock()
   107  	defer fake.getSecureShellConfigurationByApplicationNameSpaceProcessTypeAndIndexMutex.RUnlock()
   108  	copiedInvocations := map[string][][]interface{}{}
   109  	for key, value := range fake.invocations {
   110  		copiedInvocations[key] = value
   111  	}
   112  	return copiedInvocations
   113  }
   114  
   115  func (fake *FakeV3SSHActor) recordInvocation(key string, args []interface{}) {
   116  	fake.invocationsMutex.Lock()
   117  	defer fake.invocationsMutex.Unlock()
   118  	if fake.invocations == nil {
   119  		fake.invocations = map[string][][]interface{}{}
   120  	}
   121  	if fake.invocations[key] == nil {
   122  		fake.invocations[key] = [][]interface{}{}
   123  	}
   124  	fake.invocations[key] = append(fake.invocations[key], args)
   125  }
   126  
   127  var _ v6.V3SSHActor = new(FakeV3SSHActor)