Documentation
¶
Overview ¶
Package installer provides functionality for installing and uninstalling components.
Index ¶
- type Installer
- type MockInstaller
- type MockInstaller_Expecter
- type MockInstaller_Install_Call
- func (_c *MockInstaller_Install_Call) Return(err error) *MockInstaller_Install_Call
- func (_c *MockInstaller_Install_Call) Run(run func(ctx context.Context)) *MockInstaller_Install_Call
- func (_c *MockInstaller_Install_Call) RunAndReturn(run func(ctx context.Context) error) *MockInstaller_Install_Call
- type MockInstaller_Uninstall_Call
- func (_c *MockInstaller_Uninstall_Call) Return(err error) *MockInstaller_Uninstall_Call
- func (_c *MockInstaller_Uninstall_Call) Run(run func(ctx context.Context)) *MockInstaller_Uninstall_Call
- func (_c *MockInstaller_Uninstall_Call) RunAndReturn(run func(ctx context.Context) error) *MockInstaller_Uninstall_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Installer ¶
type Installer interface {
// Install installs the component.
Install(ctx context.Context) error
// Uninstall uninstalls the component.
Uninstall(ctx context.Context) error
}
Installer defines methods for installing and uninstalling components.
type MockInstaller ¶ added in v1.14.0
MockInstaller is an autogenerated mock type for the Installer type
func NewMockInstaller ¶ added in v1.14.0
func NewMockInstaller(t interface {
mock.TestingT
Cleanup(func())
}) *MockInstaller
NewMockInstaller creates a new instance of MockInstaller. 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 (*MockInstaller) EXPECT ¶ added in v1.14.0
func (_m *MockInstaller) EXPECT() *MockInstaller_Expecter
type MockInstaller_Expecter ¶ added in v1.14.0
type MockInstaller_Expecter struct {
// contains filtered or unexported fields
}
func (*MockInstaller_Expecter) Install ¶ added in v1.14.0
func (_e *MockInstaller_Expecter) Install(ctx interface{}) *MockInstaller_Install_Call
Install is a helper method to define mock.On call
- ctx context.Context
func (*MockInstaller_Expecter) Uninstall ¶ added in v1.14.0
func (_e *MockInstaller_Expecter) Uninstall(ctx interface{}) *MockInstaller_Uninstall_Call
Uninstall is a helper method to define mock.On call
- ctx context.Context
type MockInstaller_Install_Call ¶ added in v1.14.0
MockInstaller_Install_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Install'
func (*MockInstaller_Install_Call) Return ¶ added in v1.14.0
func (_c *MockInstaller_Install_Call) Return(err error) *MockInstaller_Install_Call
func (*MockInstaller_Install_Call) Run ¶ added in v1.14.0
func (_c *MockInstaller_Install_Call) Run(run func(ctx context.Context)) *MockInstaller_Install_Call
func (*MockInstaller_Install_Call) RunAndReturn ¶ added in v1.14.0
func (_c *MockInstaller_Install_Call) RunAndReturn(run func(ctx context.Context) error) *MockInstaller_Install_Call
type MockInstaller_Uninstall_Call ¶ added in v1.14.0
MockInstaller_Uninstall_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Uninstall'
func (*MockInstaller_Uninstall_Call) Return ¶ added in v1.14.0
func (_c *MockInstaller_Uninstall_Call) Return(err error) *MockInstaller_Uninstall_Call
func (*MockInstaller_Uninstall_Call) Run ¶ added in v1.14.0
func (_c *MockInstaller_Uninstall_Call) Run(run func(ctx context.Context)) *MockInstaller_Uninstall_Call
func (*MockInstaller_Uninstall_Call) RunAndReturn ¶ added in v1.14.0
func (_c *MockInstaller_Uninstall_Call) RunAndReturn(run func(ctx context.Context) error) *MockInstaller_Uninstall_Call
Directories
¶
| Path | Synopsis |
|---|---|
|
Package applysetinstaller provides an installer for managing ApplySet CRD and CR on a Kubernetes cluster.
|
Package applysetinstaller provides an installer for managing ApplySet CRD and CR on a Kubernetes cluster. |
|
Package argocdinstaller provides an installer for installing ArgoCD on a Kubernetes cluster.
|
Package argocdinstaller provides an installer for installing ArgoCD on a Kubernetes cluster. |
|
Package ciliuminstaller provides an installer for installing Cilium CNI on a Kubernetes cluster.
|
Package ciliuminstaller provides an installer for installing Cilium CNI on a Kubernetes cluster. |
|
Package fluxinstaller provides an installer for installing flux on a Kubernetes cluster.
|
Package fluxinstaller provides an installer for installing flux on a Kubernetes cluster. |
|
Package istioinstaller provides an installer for installing Istio service mesh on a Kubernetes cluster.
|
Package istioinstaller provides an installer for installing Istio service mesh on a Kubernetes cluster. |
|
Package metricsserverinstaller provides an installer for installing metrics-server on a Kubernetes cluster.
|
Package metricsserverinstaller provides an installer for installing metrics-server on a Kubernetes cluster. |
|
Package testutils provides common test utilities for installer packages
|
Package testutils provides common test utilities for installer packages |
|
Package traefikinstaller provides an installer for installing Traefik on a Kubernetes cluster.
|
Package traefikinstaller provides an installer for installing Traefik on a Kubernetes cluster. |