github.com/argoproj/argo-cd/v2@v2.10.9/util/helm/mocks/Client.go (about)

     1  // Code generated by mockery v1.0.0. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import (
     6  	helm "github.com/argoproj/argo-cd/v2/util/helm"
     7  	io "github.com/argoproj/argo-cd/v2/util/io"
     8  
     9  	mock "github.com/stretchr/testify/mock"
    10  )
    11  
    12  // Client is an autogenerated mock type for the Client type
    13  type Client struct {
    14  	mock.Mock
    15  }
    16  
    17  // CleanChartCache provides a mock function with given fields: chart, version
    18  func (_m *Client) CleanChartCache(chart string, version string) error {
    19  	ret := _m.Called(chart, version)
    20  
    21  	var r0 error
    22  	if rf, ok := ret.Get(0).(func(string, string) error); ok {
    23  		r0 = rf(chart, version)
    24  	} else {
    25  		r0 = ret.Error(0)
    26  	}
    27  
    28  	return r0
    29  }
    30  
    31  // ExtractChart provides a mock function with given fields: chart, version
    32  func (_m *Client) ExtractChart(chart string, version string, passCredentials bool, manifestMaxExtractedSize int64, disableManifestMaxExtractedSize bool) (string, io.Closer, error) {
    33  	ret := _m.Called(chart, version)
    34  
    35  	var r0 string
    36  	if rf, ok := ret.Get(0).(func(string, string) string); ok {
    37  		r0 = rf(chart, version)
    38  	} else {
    39  		r0 = ret.Get(0).(string)
    40  	}
    41  
    42  	var r1 io.Closer
    43  	if rf, ok := ret.Get(1).(func(string, string) io.Closer); ok {
    44  		r1 = rf(chart, version)
    45  	} else {
    46  		if ret.Get(1) != nil {
    47  			r1 = ret.Get(1).(io.Closer)
    48  		}
    49  	}
    50  
    51  	var r2 error
    52  	if rf, ok := ret.Get(2).(func(string, string) error); ok {
    53  		r2 = rf(chart, version)
    54  	} else {
    55  		r2 = ret.Error(2)
    56  	}
    57  
    58  	return r0, r1, r2
    59  }
    60  
    61  // GetIndex provides a mock function with given fields: noCache
    62  func (_m *Client) GetIndex(noCache bool, maxIndexSize int64) (*helm.Index, error) {
    63  	ret := _m.Called(noCache)
    64  
    65  	var r0 *helm.Index
    66  	if rf, ok := ret.Get(0).(func(bool) *helm.Index); ok {
    67  		r0 = rf(noCache)
    68  	} else {
    69  		if ret.Get(0) != nil {
    70  			r0 = ret.Get(0).(*helm.Index)
    71  		}
    72  	}
    73  
    74  	var r1 error
    75  	if rf, ok := ret.Get(1).(func(bool) error); ok {
    76  		r1 = rf(noCache)
    77  	} else {
    78  		r1 = ret.Error(1)
    79  	}
    80  
    81  	return r0, r1
    82  }
    83  
    84  // GetTags provides a mock function with given fields: noCache
    85  func (_m *Client) GetTags(chart string, noCache bool) (*helm.TagsList, error) {
    86  	ret := _m.Called(chart, noCache)
    87  
    88  	var r0 *helm.TagsList
    89  	if rf, ok := ret.Get(0).(func(string, bool) *helm.TagsList); ok {
    90  		r0 = rf(chart, noCache)
    91  	} else {
    92  		if ret.Get(0) != nil {
    93  			r0 = ret.Get(0).(*helm.TagsList)
    94  		}
    95  	}
    96  
    97  	var r1 error
    98  	if rf, ok := ret.Get(1).(func(string, bool) error); ok {
    99  		r1 = rf(chart, noCache)
   100  	} else {
   101  		r1 = ret.Error(1)
   102  	}
   103  
   104  	return r0, r1
   105  }
   106  
   107  // TestHelmOCI provides a mock function with given fields:
   108  func (_m *Client) TestHelmOCI() (bool, error) {
   109  	ret := _m.Called()
   110  
   111  	var r0 bool
   112  	if rf, ok := ret.Get(0).(func() bool); ok {
   113  		r0 = rf()
   114  	} else {
   115  		r0 = ret.Get(0).(bool)
   116  	}
   117  
   118  	var r1 error
   119  	if rf, ok := ret.Get(1).(func() error); ok {
   120  		r1 = rf()
   121  	} else {
   122  		r1 = ret.Error(1)
   123  	}
   124  
   125  	return r0, r1
   126  }