Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockBundleRegistry
- type MockBundleRegistryMockRecorder
- type MockChartInstaller
- type MockChartInstallerMockRecorder
- type MockKubectlRunner
- func (m *MockKubectlRunner) EXPECT() *MockKubectlRunnerMockRecorder
- func (m *MockKubectlRunner) ExecuteCommand(ctx context.Context, opts ...string) (bytes.Buffer, error)
- func (m *MockKubectlRunner) ExecuteFromYaml(ctx context.Context, yaml []byte, opts ...string) (bytes.Buffer, error)
- func (m *MockKubectlRunner) GetObject(ctx context.Context, resourceType, name, namespece, kubeconfig string, ...) error
- func (m *MockKubectlRunner) HasResource(ctx context.Context, resourceType, name, kubeconfig, namespace string) (bool, error)
- type MockKubectlRunnerMockRecorder
- func (mr *MockKubectlRunnerMockRecorder) ExecuteCommand(ctx interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockKubectlRunnerMockRecorder) ExecuteFromYaml(ctx, yaml interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockKubectlRunnerMockRecorder) GetObject(ctx, resourceType, name, namespece, kubeconfig, obj interface{}) *gomock.Call
- func (mr *MockKubectlRunnerMockRecorder) HasResource(ctx, resourceType, name, kubeconfig, namespace interface{}) *gomock.Call
- type MockManager
- type MockManagerMockRecorder
- type MockManifestReader
- func (m *MockManifestReader) EXPECT() *MockManifestReaderMockRecorder
- func (m *MockManifestReader) ReadBundlesForVersion(eksaVersion string) (*v1alpha1.Bundles, error)
- func (m *MockManifestReader) ReadChartsFromBundles(ctx context.Context, bundles *v1alpha1.Bundles) []v1alpha1.Image
- func (m *MockManifestReader) ReadImagesFromBundles(ctx context.Context, bundles *v1alpha1.Bundles) ([]v1alpha1.Image, error)
- type MockManifestReaderMockRecorder
- func (mr *MockManifestReaderMockRecorder) ReadBundlesForVersion(eksaVersion interface{}) *gomock.Call
- func (mr *MockManifestReaderMockRecorder) ReadChartsFromBundles(ctx, bundles interface{}) *gomock.Call
- func (mr *MockManifestReaderMockRecorder) ReadImagesFromBundles(ctx, bundles interface{}) *gomock.Call
- type MockPackageController
- type MockPackageControllerMockRecorder
- type MockPackageHandler
- type MockPackageHandlerMockRecorder
- type MockReader
- type MockReaderMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBundleRegistry ¶
type MockBundleRegistry struct {
// contains filtered or unexported fields
}
MockBundleRegistry is a mock of BundleRegistry interface.
func NewMockBundleRegistry ¶
func NewMockBundleRegistry(ctrl *gomock.Controller) *MockBundleRegistry
NewMockBundleRegistry creates a new mock instance.
func (*MockBundleRegistry) EXPECT ¶
func (m *MockBundleRegistry) EXPECT() *MockBundleRegistryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBundleRegistry) GetRegistryBaseRef ¶
func (m *MockBundleRegistry) GetRegistryBaseRef(ctx context.Context) (string, error)
GetRegistryBaseRef mocks base method.
type MockBundleRegistryMockRecorder ¶
type MockBundleRegistryMockRecorder struct {
// contains filtered or unexported fields
}
MockBundleRegistryMockRecorder is the mock recorder for MockBundleRegistry.
func (*MockBundleRegistryMockRecorder) GetRegistryBaseRef ¶
func (mr *MockBundleRegistryMockRecorder) GetRegistryBaseRef(ctx interface{}) *gomock.Call
GetRegistryBaseRef indicates an expected call of GetRegistryBaseRef.
type MockChartInstaller ¶
type MockChartInstaller struct {
// contains filtered or unexported fields
}
MockChartInstaller is a mock of ChartInstaller interface.
func NewMockChartInstaller ¶
func NewMockChartInstaller(ctrl *gomock.Controller) *MockChartInstaller
NewMockChartInstaller creates a new mock instance.
func (*MockChartInstaller) EXPECT ¶
func (m *MockChartInstaller) EXPECT() *MockChartInstallerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockChartInstaller) InstallChart ¶ added in v0.9.2
func (m *MockChartInstaller) InstallChart(ctx context.Context, chart, ociURI, version, kubeconfigFilePath, namespace string, values []string) error
InstallChart mocks base method.
type MockChartInstallerMockRecorder ¶
type MockChartInstallerMockRecorder struct {
// contains filtered or unexported fields
}
MockChartInstallerMockRecorder is the mock recorder for MockChartInstaller.
func (*MockChartInstallerMockRecorder) InstallChart ¶ added in v0.9.2
func (mr *MockChartInstallerMockRecorder) InstallChart(ctx, chart, ociURI, version, kubeconfigFilePath, namespace, values interface{}) *gomock.Call
InstallChart indicates an expected call of InstallChart.
type MockKubectlRunner ¶
type MockKubectlRunner struct {
// contains filtered or unexported fields
}
MockKubectlRunner is a mock of KubectlRunner interface.
func NewMockKubectlRunner ¶
func NewMockKubectlRunner(ctrl *gomock.Controller) *MockKubectlRunner
NewMockKubectlRunner creates a new mock instance.
func (*MockKubectlRunner) EXPECT ¶
func (m *MockKubectlRunner) EXPECT() *MockKubectlRunnerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockKubectlRunner) ExecuteCommand ¶
func (m *MockKubectlRunner) ExecuteCommand(ctx context.Context, opts ...string) (bytes.Buffer, error)
ExecuteCommand mocks base method.
func (*MockKubectlRunner) ExecuteFromYaml ¶ added in v0.11.0
func (m *MockKubectlRunner) ExecuteFromYaml(ctx context.Context, yaml []byte, opts ...string) (bytes.Buffer, error)
ExecuteFromYaml mocks base method.
func (*MockKubectlRunner) GetObject ¶ added in v0.12.0
func (m *MockKubectlRunner) GetObject(ctx context.Context, resourceType, name, namespece, kubeconfig string, obj runtime.Object) error
GetObject mocks base method.
func (*MockKubectlRunner) HasResource ¶ added in v0.12.0
func (m *MockKubectlRunner) HasResource(ctx context.Context, resourceType, name, kubeconfig, namespace string) (bool, error)
HasResource mocks base method.
type MockKubectlRunnerMockRecorder ¶
type MockKubectlRunnerMockRecorder struct {
// contains filtered or unexported fields
}
MockKubectlRunnerMockRecorder is the mock recorder for MockKubectlRunner.
func (*MockKubectlRunnerMockRecorder) ExecuteCommand ¶
func (mr *MockKubectlRunnerMockRecorder) ExecuteCommand(ctx interface{}, opts ...interface{}) *gomock.Call
ExecuteCommand indicates an expected call of ExecuteCommand.
func (*MockKubectlRunnerMockRecorder) ExecuteFromYaml ¶ added in v0.11.0
func (mr *MockKubectlRunnerMockRecorder) ExecuteFromYaml(ctx, yaml interface{}, opts ...interface{}) *gomock.Call
ExecuteFromYaml indicates an expected call of ExecuteFromYaml.
func (*MockKubectlRunnerMockRecorder) GetObject ¶ added in v0.12.0
func (mr *MockKubectlRunnerMockRecorder) GetObject(ctx, resourceType, name, namespece, kubeconfig, obj interface{}) *gomock.Call
GetObject indicates an expected call of GetObject.
func (*MockKubectlRunnerMockRecorder) HasResource ¶ added in v0.12.0
func (mr *MockKubectlRunnerMockRecorder) HasResource(ctx, resourceType, name, kubeconfig, namespace interface{}) *gomock.Call
HasResource indicates an expected call of HasResource.
type MockManager ¶
type MockManager struct {
// contains filtered or unexported fields
}
MockManager is a mock of Manager interface.
func NewMockManager ¶
func NewMockManager(ctrl *gomock.Controller) *MockManager
NewMockManager creates a new mock instance.
func (*MockManager) EXPECT ¶
func (m *MockManager) EXPECT() *MockManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockManager) LatestBundle ¶
func (m *MockManager) LatestBundle(ctx context.Context, baseRef, kubeVersion string) (*v1alpha1.PackageBundle, error)
LatestBundle mocks base method.
type MockManagerMockRecorder ¶
type MockManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockManagerMockRecorder is the mock recorder for MockManager.
func (*MockManagerMockRecorder) LatestBundle ¶
func (mr *MockManagerMockRecorder) LatestBundle(ctx, baseRef, kubeVersion interface{}) *gomock.Call
LatestBundle indicates an expected call of LatestBundle.
type MockManifestReader ¶ added in v0.11.2
type MockManifestReader struct {
// contains filtered or unexported fields
}
MockManifestReader is a mock of ManifestReader interface.
func NewMockManifestReader ¶ added in v0.11.2
func NewMockManifestReader(ctrl *gomock.Controller) *MockManifestReader
NewMockManifestReader creates a new mock instance.
func (*MockManifestReader) EXPECT ¶ added in v0.11.2
func (m *MockManifestReader) EXPECT() *MockManifestReaderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockManifestReader) ReadBundlesForVersion ¶ added in v0.11.2
func (m *MockManifestReader) ReadBundlesForVersion(eksaVersion string) (*v1alpha1.Bundles, error)
ReadBundlesForVersion mocks base method.
func (*MockManifestReader) ReadChartsFromBundles ¶ added in v0.11.2
func (m *MockManifestReader) ReadChartsFromBundles(ctx context.Context, bundles *v1alpha1.Bundles) []v1alpha1.Image
ReadChartsFromBundles mocks base method.
func (*MockManifestReader) ReadImagesFromBundles ¶ added in v0.11.2
func (m *MockManifestReader) ReadImagesFromBundles(ctx context.Context, bundles *v1alpha1.Bundles) ([]v1alpha1.Image, error)
ReadImagesFromBundles mocks base method.
type MockManifestReaderMockRecorder ¶ added in v0.11.2
type MockManifestReaderMockRecorder struct {
// contains filtered or unexported fields
}
MockManifestReaderMockRecorder is the mock recorder for MockManifestReader.
func (*MockManifestReaderMockRecorder) ReadBundlesForVersion ¶ added in v0.11.2
func (mr *MockManifestReaderMockRecorder) ReadBundlesForVersion(eksaVersion interface{}) *gomock.Call
ReadBundlesForVersion indicates an expected call of ReadBundlesForVersion.
func (*MockManifestReaderMockRecorder) ReadChartsFromBundles ¶ added in v0.11.2
func (mr *MockManifestReaderMockRecorder) ReadChartsFromBundles(ctx, bundles interface{}) *gomock.Call
ReadChartsFromBundles indicates an expected call of ReadChartsFromBundles.
func (*MockManifestReaderMockRecorder) ReadImagesFromBundles ¶ added in v0.11.2
func (mr *MockManifestReaderMockRecorder) ReadImagesFromBundles(ctx, bundles interface{}) *gomock.Call
ReadImagesFromBundles indicates an expected call of ReadImagesFromBundles.
type MockPackageController ¶ added in v0.11.0
type MockPackageController struct {
// contains filtered or unexported fields
}
MockPackageController is a mock of PackageController interface.
func NewMockPackageController ¶ added in v0.11.0
func NewMockPackageController(ctrl *gomock.Controller) *MockPackageController
NewMockPackageController creates a new mock instance.
func (*MockPackageController) EXPECT ¶ added in v0.11.0
func (m *MockPackageController) EXPECT() *MockPackageControllerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPackageController) EnableCuratedPackages ¶ added in v0.12.0
func (m *MockPackageController) EnableCuratedPackages(ctx context.Context) error
EnableCuratedPackages mocks base method.
func (*MockPackageController) IsInstalled ¶ added in v0.12.0
func (m *MockPackageController) IsInstalled(ctx context.Context) bool
IsInstalled mocks base method.
type MockPackageControllerMockRecorder ¶ added in v0.11.0
type MockPackageControllerMockRecorder struct {
// contains filtered or unexported fields
}
MockPackageControllerMockRecorder is the mock recorder for MockPackageController.
func (*MockPackageControllerMockRecorder) EnableCuratedPackages ¶ added in v0.12.0
func (mr *MockPackageControllerMockRecorder) EnableCuratedPackages(ctx interface{}) *gomock.Call
EnableCuratedPackages indicates an expected call of EnableCuratedPackages.
func (*MockPackageControllerMockRecorder) IsInstalled ¶ added in v0.12.0
func (mr *MockPackageControllerMockRecorder) IsInstalled(ctx interface{}) *gomock.Call
IsInstalled indicates an expected call of IsInstalled.
type MockPackageHandler ¶ added in v0.11.0
type MockPackageHandler struct {
// contains filtered or unexported fields
}
MockPackageHandler is a mock of PackageHandler interface.
func NewMockPackageHandler ¶ added in v0.11.0
func NewMockPackageHandler(ctrl *gomock.Controller) *MockPackageHandler
NewMockPackageHandler creates a new mock instance.
func (*MockPackageHandler) CreatePackages ¶ added in v0.11.0
func (m *MockPackageHandler) CreatePackages(ctx context.Context, fileName, kubeConfig string) error
CreatePackages mocks base method.
func (*MockPackageHandler) EXPECT ¶ added in v0.11.0
func (m *MockPackageHandler) EXPECT() *MockPackageHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockPackageHandlerMockRecorder ¶ added in v0.11.0
type MockPackageHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockPackageHandlerMockRecorder is the mock recorder for MockPackageHandler.
func (*MockPackageHandlerMockRecorder) CreatePackages ¶ added in v0.11.0
func (mr *MockPackageHandlerMockRecorder) CreatePackages(ctx, fileName, kubeConfig interface{}) *gomock.Call
CreatePackages indicates an expected call of CreatePackages.
type MockReader ¶
type MockReader struct {
// contains filtered or unexported fields
}
MockReader is a mock of Reader interface.
func NewMockReader ¶
func NewMockReader(ctrl *gomock.Controller) *MockReader
NewMockReader creates a new mock instance.
func (*MockReader) EXPECT ¶
func (m *MockReader) EXPECT() *MockReaderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockReader) ReadBundlesForVersion ¶
func (m *MockReader) ReadBundlesForVersion(eksaVersion string) (*v1alpha1.Bundles, error)
ReadBundlesForVersion mocks base method.
type MockReaderMockRecorder ¶
type MockReaderMockRecorder struct {
// contains filtered or unexported fields
}
MockReaderMockRecorder is the mock recorder for MockReader.
func (*MockReaderMockRecorder) ReadBundlesForVersion ¶
func (mr *MockReaderMockRecorder) ReadBundlesForVersion(eksaVersion interface{}) *gomock.Call
ReadBundlesForVersion indicates an expected call of ReadBundlesForVersion.