Documentation
¶
Overview ¶
Package helm provides auto-generated mocks for the helm.Backend interface. This package should only be imported in test files.
Index ¶
- type MockBackend
- func (_m *MockBackend) EXPECT() *MockBackend_Expecter
- func (_mock *MockBackend) Install(ctx context.Context, releaseName string, chartPath string, args []string) error
- func (_mock *MockBackend) List(ctx context.Context, namespace string, filter string) (string, error)
- func (_mock *MockBackend) RepoAdd(ctx context.Context, name string, url string, forceUpdate bool) error
- func (_mock *MockBackend) RepoList(ctx context.Context) (string, error)
- func (_mock *MockBackend) RepoUpdate(ctx context.Context, name string) error
- func (_mock *MockBackend) Uninstall(ctx context.Context, releaseName string, namespace string) error
- func (_mock *MockBackend) Upgrade(ctx context.Context, releaseName string, chartPath string, args []string) error
- type MockBackend_Expecter
- func (_e *MockBackend_Expecter) Install(ctx interface{}, releaseName interface{}, chartPath interface{}, ...) *MockBackend_Install_Call
- func (_e *MockBackend_Expecter) List(ctx interface{}, namespace interface{}, filter interface{}) *MockBackend_List_Call
- func (_e *MockBackend_Expecter) RepoAdd(ctx interface{}, name interface{}, url interface{}, forceUpdate interface{}) *MockBackend_RepoAdd_Call
- func (_e *MockBackend_Expecter) RepoList(ctx interface{}) *MockBackend_RepoList_Call
- func (_e *MockBackend_Expecter) RepoUpdate(ctx interface{}, name interface{}) *MockBackend_RepoUpdate_Call
- func (_e *MockBackend_Expecter) Uninstall(ctx interface{}, releaseName interface{}, namespace interface{}) *MockBackend_Uninstall_Call
- func (_e *MockBackend_Expecter) Upgrade(ctx interface{}, releaseName interface{}, chartPath interface{}, ...) *MockBackend_Upgrade_Call
- type MockBackend_Install_Call
- type MockBackend_List_Call
- func (_c *MockBackend_List_Call) Return(s string, err error) *MockBackend_List_Call
- func (_c *MockBackend_List_Call) Run(run func(ctx context.Context, namespace string, filter string)) *MockBackend_List_Call
- func (_c *MockBackend_List_Call) RunAndReturn(run func(ctx context.Context, namespace string, filter string) (string, error)) *MockBackend_List_Call
- type MockBackend_RepoAdd_Call
- func (_c *MockBackend_RepoAdd_Call) Return(err error) *MockBackend_RepoAdd_Call
- func (_c *MockBackend_RepoAdd_Call) Run(run func(ctx context.Context, name string, url string, forceUpdate bool)) *MockBackend_RepoAdd_Call
- func (_c *MockBackend_RepoAdd_Call) RunAndReturn(run func(ctx context.Context, name string, url string, forceUpdate bool) error) *MockBackend_RepoAdd_Call
- type MockBackend_RepoList_Call
- func (_c *MockBackend_RepoList_Call) Return(s string, err error) *MockBackend_RepoList_Call
- func (_c *MockBackend_RepoList_Call) Run(run func(ctx context.Context)) *MockBackend_RepoList_Call
- func (_c *MockBackend_RepoList_Call) RunAndReturn(run func(ctx context.Context) (string, error)) *MockBackend_RepoList_Call
- type MockBackend_RepoUpdate_Call
- func (_c *MockBackend_RepoUpdate_Call) Return(err error) *MockBackend_RepoUpdate_Call
- func (_c *MockBackend_RepoUpdate_Call) Run(run func(ctx context.Context, name string)) *MockBackend_RepoUpdate_Call
- func (_c *MockBackend_RepoUpdate_Call) RunAndReturn(run func(ctx context.Context, name string) error) *MockBackend_RepoUpdate_Call
- type MockBackend_Uninstall_Call
- func (_c *MockBackend_Uninstall_Call) Return(err error) *MockBackend_Uninstall_Call
- func (_c *MockBackend_Uninstall_Call) Run(run func(ctx context.Context, releaseName string, namespace string)) *MockBackend_Uninstall_Call
- func (_c *MockBackend_Uninstall_Call) RunAndReturn(run func(ctx context.Context, releaseName string, namespace string) error) *MockBackend_Uninstall_Call
- type MockBackend_Upgrade_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBackend ¶
MockBackend is an autogenerated mock type for the Backend type
func NewMockBackend ¶
func NewMockBackend(t interface {
mock.TestingT
Cleanup(func())
}) *MockBackend
NewMockBackend creates a new instance of MockBackend. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockBackend) EXPECT ¶
func (_m *MockBackend) EXPECT() *MockBackend_Expecter
func (*MockBackend) Install ¶
func (_mock *MockBackend) Install(ctx context.Context, releaseName string, chartPath string, args []string) error
Install provides a mock function for the type MockBackend
func (*MockBackend) List ¶
func (_mock *MockBackend) List(ctx context.Context, namespace string, filter string) (string, error)
List provides a mock function for the type MockBackend
func (*MockBackend) RepoAdd ¶
func (_mock *MockBackend) RepoAdd(ctx context.Context, name string, url string, forceUpdate bool) error
RepoAdd provides a mock function for the type MockBackend
func (*MockBackend) RepoList ¶
func (_mock *MockBackend) RepoList(ctx context.Context) (string, error)
RepoList provides a mock function for the type MockBackend
func (*MockBackend) RepoUpdate ¶
func (_mock *MockBackend) RepoUpdate(ctx context.Context, name string) error
RepoUpdate provides a mock function for the type MockBackend
type MockBackend_Expecter ¶
type MockBackend_Expecter struct {
// contains filtered or unexported fields
}
func (*MockBackend_Expecter) Install ¶
func (_e *MockBackend_Expecter) Install(ctx interface{}, releaseName interface{}, chartPath interface{}, args interface{}) *MockBackend_Install_Call
Install is a helper method to define mock.On call
- ctx context.Context
- releaseName string
- chartPath string
- args []string
func (*MockBackend_Expecter) List ¶
func (_e *MockBackend_Expecter) List(ctx interface{}, namespace interface{}, filter interface{}) *MockBackend_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- namespace string
- filter string
func (*MockBackend_Expecter) RepoAdd ¶
func (_e *MockBackend_Expecter) RepoAdd(ctx interface{}, name interface{}, url interface{}, forceUpdate interface{}) *MockBackend_RepoAdd_Call
RepoAdd is a helper method to define mock.On call
- ctx context.Context
- name string
- url string
- forceUpdate bool
func (*MockBackend_Expecter) RepoList ¶
func (_e *MockBackend_Expecter) RepoList(ctx interface{}) *MockBackend_RepoList_Call
RepoList is a helper method to define mock.On call
- ctx context.Context
func (*MockBackend_Expecter) RepoUpdate ¶
func (_e *MockBackend_Expecter) RepoUpdate(ctx interface{}, name interface{}) *MockBackend_RepoUpdate_Call
RepoUpdate is a helper method to define mock.On call
- ctx context.Context
- name string
func (*MockBackend_Expecter) Uninstall ¶
func (_e *MockBackend_Expecter) Uninstall(ctx interface{}, releaseName interface{}, namespace interface{}) *MockBackend_Uninstall_Call
Uninstall is a helper method to define mock.On call
- ctx context.Context
- releaseName string
- namespace string
func (*MockBackend_Expecter) Upgrade ¶
func (_e *MockBackend_Expecter) Upgrade(ctx interface{}, releaseName interface{}, chartPath interface{}, args interface{}) *MockBackend_Upgrade_Call
Upgrade is a helper method to define mock.On call
- ctx context.Context
- releaseName string
- chartPath string
- args []string
type MockBackend_Install_Call ¶
MockBackend_Install_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Install'
func (*MockBackend_Install_Call) Return ¶
func (_c *MockBackend_Install_Call) Return(err error) *MockBackend_Install_Call
func (*MockBackend_Install_Call) Run ¶
func (_c *MockBackend_Install_Call) Run(run func(ctx context.Context, releaseName string, chartPath string, args []string)) *MockBackend_Install_Call
func (*MockBackend_Install_Call) RunAndReturn ¶
func (_c *MockBackend_Install_Call) RunAndReturn(run func(ctx context.Context, releaseName string, chartPath string, args []string) error) *MockBackend_Install_Call
type MockBackend_List_Call ¶
MockBackend_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*MockBackend_List_Call) Return ¶
func (_c *MockBackend_List_Call) Return(s string, err error) *MockBackend_List_Call
func (*MockBackend_List_Call) Run ¶
func (_c *MockBackend_List_Call) Run(run func(ctx context.Context, namespace string, filter string)) *MockBackend_List_Call
func (*MockBackend_List_Call) RunAndReturn ¶
func (_c *MockBackend_List_Call) RunAndReturn(run func(ctx context.Context, namespace string, filter string) (string, error)) *MockBackend_List_Call
type MockBackend_RepoAdd_Call ¶
MockBackend_RepoAdd_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RepoAdd'
func (*MockBackend_RepoAdd_Call) Return ¶
func (_c *MockBackend_RepoAdd_Call) Return(err error) *MockBackend_RepoAdd_Call
func (*MockBackend_RepoAdd_Call) Run ¶
func (_c *MockBackend_RepoAdd_Call) Run(run func(ctx context.Context, name string, url string, forceUpdate bool)) *MockBackend_RepoAdd_Call
func (*MockBackend_RepoAdd_Call) RunAndReturn ¶
func (_c *MockBackend_RepoAdd_Call) RunAndReturn(run func(ctx context.Context, name string, url string, forceUpdate bool) error) *MockBackend_RepoAdd_Call
type MockBackend_RepoList_Call ¶
MockBackend_RepoList_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RepoList'
func (*MockBackend_RepoList_Call) Return ¶
func (_c *MockBackend_RepoList_Call) Return(s string, err error) *MockBackend_RepoList_Call
func (*MockBackend_RepoList_Call) Run ¶
func (_c *MockBackend_RepoList_Call) Run(run func(ctx context.Context)) *MockBackend_RepoList_Call
func (*MockBackend_RepoList_Call) RunAndReturn ¶
func (_c *MockBackend_RepoList_Call) RunAndReturn(run func(ctx context.Context) (string, error)) *MockBackend_RepoList_Call
type MockBackend_RepoUpdate_Call ¶
MockBackend_RepoUpdate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RepoUpdate'
func (*MockBackend_RepoUpdate_Call) Return ¶
func (_c *MockBackend_RepoUpdate_Call) Return(err error) *MockBackend_RepoUpdate_Call
func (*MockBackend_RepoUpdate_Call) Run ¶
func (_c *MockBackend_RepoUpdate_Call) Run(run func(ctx context.Context, name string)) *MockBackend_RepoUpdate_Call
func (*MockBackend_RepoUpdate_Call) RunAndReturn ¶
func (_c *MockBackend_RepoUpdate_Call) RunAndReturn(run func(ctx context.Context, name string) error) *MockBackend_RepoUpdate_Call
type MockBackend_Uninstall_Call ¶
MockBackend_Uninstall_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Uninstall'
func (*MockBackend_Uninstall_Call) Return ¶
func (_c *MockBackend_Uninstall_Call) Return(err error) *MockBackend_Uninstall_Call
func (*MockBackend_Uninstall_Call) Run ¶
func (_c *MockBackend_Uninstall_Call) Run(run func(ctx context.Context, releaseName string, namespace string)) *MockBackend_Uninstall_Call
func (*MockBackend_Uninstall_Call) RunAndReturn ¶
func (_c *MockBackend_Uninstall_Call) RunAndReturn(run func(ctx context.Context, releaseName string, namespace string) error) *MockBackend_Uninstall_Call
type MockBackend_Upgrade_Call ¶
MockBackend_Upgrade_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upgrade'
func (*MockBackend_Upgrade_Call) Return ¶
func (_c *MockBackend_Upgrade_Call) Return(err error) *MockBackend_Upgrade_Call
func (*MockBackend_Upgrade_Call) Run ¶
func (_c *MockBackend_Upgrade_Call) Run(run func(ctx context.Context, releaseName string, chartPath string, args []string)) *MockBackend_Upgrade_Call
func (*MockBackend_Upgrade_Call) RunAndReturn ¶
func (_c *MockBackend_Upgrade_Call) RunAndReturn(run func(ctx context.Context, releaseName string, chartPath string, args []string) error) *MockBackend_Upgrade_Call