cluster

package
v0.0.0-...-3156893 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: cluster.go

Generated by this command:

mockgen -source=cluster.go -package=cluster -destination=mock_cluster.go

Package cluster is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterAPI

type ClusterAPI interface {
	SelectedManagedClusters(ctx context.Context, mcm *hubv1beta1.ManagedClusterModule) (*clusterv1.ManagedClusterList, error)
	KernelVersions(cluster clusterv1.ManagedCluster) ([]string, error)
	GetModuleLoaderDataForKernel(mcm *hubv1beta1.ManagedClusterModule, kernelVersion string) (*api.ModuleLoaderData, error)
	GetDefaultArtifactsNamespace() string
}

func NewClusterAPI

func NewClusterAPI(
	client client.Client,
	kernelAPI module.KernelMapper,
	defaultJobNamespace string) ClusterAPI

type MockClusterAPI

type MockClusterAPI struct {
	// contains filtered or unexported fields
}

MockClusterAPI is a mock of ClusterAPI interface.

func NewMockClusterAPI

func NewMockClusterAPI(ctrl *gomock.Controller) *MockClusterAPI

NewMockClusterAPI creates a new mock instance.

func (*MockClusterAPI) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockClusterAPI) GetDefaultArtifactsNamespace

func (m *MockClusterAPI) GetDefaultArtifactsNamespace() string

GetDefaultArtifactsNamespace mocks base method.

func (*MockClusterAPI) GetModuleLoaderDataForKernel

func (m *MockClusterAPI) GetModuleLoaderDataForKernel(mcm *v1beta1.ManagedClusterModule, kernelVersion string) (*api.ModuleLoaderData, error)

GetModuleLoaderDataForKernel mocks base method.

func (*MockClusterAPI) KernelVersions

func (m *MockClusterAPI) KernelVersions(cluster v1.ManagedCluster) ([]string, error)

KernelVersions mocks base method.

func (*MockClusterAPI) SelectedManagedClusters

func (m *MockClusterAPI) SelectedManagedClusters(ctx context.Context, mcm *v1beta1.ManagedClusterModule) (*v1.ManagedClusterList, error)

SelectedManagedClusters mocks base method.

type MockClusterAPIMockRecorder

type MockClusterAPIMockRecorder struct {
	// contains filtered or unexported fields
}

MockClusterAPIMockRecorder is the mock recorder for MockClusterAPI.

func (*MockClusterAPIMockRecorder) GetDefaultArtifactsNamespace

func (mr *MockClusterAPIMockRecorder) GetDefaultArtifactsNamespace() *gomock.Call

GetDefaultArtifactsNamespace indicates an expected call of GetDefaultArtifactsNamespace.

func (*MockClusterAPIMockRecorder) GetModuleLoaderDataForKernel

func (mr *MockClusterAPIMockRecorder) GetModuleLoaderDataForKernel(mcm, kernelVersion any) *gomock.Call

GetModuleLoaderDataForKernel indicates an expected call of GetModuleLoaderDataForKernel.

func (*MockClusterAPIMockRecorder) KernelVersions

func (mr *MockClusterAPIMockRecorder) KernelVersions(cluster any) *gomock.Call

KernelVersions indicates an expected call of KernelVersions.

func (*MockClusterAPIMockRecorder) SelectedManagedClusters

func (mr *MockClusterAPIMockRecorder) SelectedManagedClusters(ctx, mcm any) *gomock.Call

SelectedManagedClusters indicates an expected call of SelectedManagedClusters.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL