github.com/argoproj/argo-cd@v1.8.7/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/util/helm"
     7  
     8  	io "github.com/argoproj/argo-cd/util/io"
     9  
    10  	mock "github.com/stretchr/testify/mock"
    11  
    12  	semver "github.com/Masterminds/semver"
    13  )
    14  
    15  // Client is an autogenerated mock type for the Client type
    16  type Client struct {
    17  	mock.Mock
    18  }
    19  
    20  // CleanChartCache provides a mock function with given fields: chart, version
    21  func (_m *Client) CleanChartCache(chart string, version *semver.Version) error {
    22  	ret := _m.Called(chart, version)
    23  
    24  	var r0 error
    25  	if rf, ok := ret.Get(0).(func(string, *semver.Version) error); ok {
    26  		r0 = rf(chart, version)
    27  	} else {
    28  		r0 = ret.Error(0)
    29  	}
    30  
    31  	return r0
    32  }
    33  
    34  // ExtractChart provides a mock function with given fields: chart, version
    35  func (_m *Client) ExtractChart(chart string, version *semver.Version) (string, io.Closer, error) {
    36  	ret := _m.Called(chart, version)
    37  
    38  	var r0 string
    39  	if rf, ok := ret.Get(0).(func(string, *semver.Version) string); ok {
    40  		r0 = rf(chart, version)
    41  	} else {
    42  		r0 = ret.Get(0).(string)
    43  	}
    44  
    45  	var r1 io.Closer
    46  	if rf, ok := ret.Get(1).(func(string, *semver.Version) io.Closer); ok {
    47  		r1 = rf(chart, version)
    48  	} else {
    49  		if ret.Get(1) != nil {
    50  			r1 = ret.Get(1).(io.Closer)
    51  		}
    52  	}
    53  
    54  	var r2 error
    55  	if rf, ok := ret.Get(2).(func(string, *semver.Version) error); ok {
    56  		r2 = rf(chart, version)
    57  	} else {
    58  		r2 = ret.Error(2)
    59  	}
    60  
    61  	return r0, r1, r2
    62  }
    63  
    64  // GetIndex provides a mock function with given fields:
    65  func (_m *Client) GetIndex() (*helm.Index, error) {
    66  	ret := _m.Called()
    67  
    68  	var r0 *helm.Index
    69  	if rf, ok := ret.Get(0).(func() *helm.Index); ok {
    70  		r0 = rf()
    71  	} else {
    72  		if ret.Get(0) != nil {
    73  			r0 = ret.Get(0).(*helm.Index)
    74  		}
    75  	}
    76  
    77  	var r1 error
    78  	if rf, ok := ret.Get(1).(func() error); ok {
    79  		r1 = rf()
    80  	} else {
    81  		r1 = ret.Error(1)
    82  	}
    83  
    84  	return r0, r1
    85  }
    86  
    87  // TestHelmOCI provides a mock function with given fields:
    88  func (_m *Client) TestHelmOCI() (bool, error) {
    89  	ret := _m.Called()
    90  
    91  	var r0 bool
    92  	if rf, ok := ret.Get(0).(func() bool); ok {
    93  		r0 = rf()
    94  	} else {
    95  		if ret.Get(0) != nil {
    96  			r0 = ret.Get(0).(bool)
    97  		}
    98  	}
    99  
   100  	var r1 error
   101  	if rf, ok := ret.Get(1).(func() error); ok {
   102  		r1 = rf()
   103  	} else {
   104  		r1 = ret.Error(1)
   105  	}
   106  
   107  	return r0, r1
   108  }