Documentation ¶
Overview ¶
Package cluster is a generated GoMock package.
Index ¶
- type ClusterAPI
- type MockClusterAPI
- func (m *MockClusterAPI) BuildAndSign(ctx context.Context, mcm v1beta1.ManagedClusterModule, ...) (bool, error)
- func (m *MockClusterAPI) EXPECT() *MockClusterAPIMockRecorder
- func (m *MockClusterAPI) GarbageCollectBuildsAndSigns(ctx context.Context, mcm v1beta1.ManagedClusterModule) ([]string, error)
- func (m *MockClusterAPI) KernelVersions(cluster v1.ManagedCluster) ([]string, error)
- func (m *MockClusterAPI) RequestedManagedClusterModule(ctx context.Context, namespacedName types.NamespacedName) (*v1beta1.ManagedClusterModule, error)
- func (m *MockClusterAPI) SelectedManagedClusters(ctx context.Context, mcm *v1beta1.ManagedClusterModule) (*v1.ManagedClusterList, error)
- type MockClusterAPIMockRecorder
- func (mr *MockClusterAPIMockRecorder) BuildAndSign(ctx, mcm, cluster interface{}) *gomock.Call
- func (mr *MockClusterAPIMockRecorder) GarbageCollectBuildsAndSigns(ctx, mcm interface{}) *gomock.Call
- func (mr *MockClusterAPIMockRecorder) KernelVersions(cluster interface{}) *gomock.Call
- func (mr *MockClusterAPIMockRecorder) RequestedManagedClusterModule(ctx, namespacedName interface{}) *gomock.Call
- func (mr *MockClusterAPIMockRecorder) SelectedManagedClusters(ctx, mcm interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterAPI ¶
type ClusterAPI interface { RequestedManagedClusterModule(ctx context.Context, namespacedName types.NamespacedName) (*hubv1beta1.ManagedClusterModule, error) SelectedManagedClusters(ctx context.Context, mcm *hubv1beta1.ManagedClusterModule) (*clusterv1.ManagedClusterList, error) BuildAndSign(ctx context.Context, mcm hubv1beta1.ManagedClusterModule, cluster clusterv1.ManagedCluster) (bool, error) GarbageCollectBuildsAndSigns(ctx context.Context, mcm hubv1beta1.ManagedClusterModule) ([]string, error) KernelVersions(cluster clusterv1.ManagedCluster) ([]string, error) }
func NewClusterAPI ¶
func NewClusterAPI( client client.Client, kernelAPI module.KernelMapper, buildAPI build.Manager, signAPI sign.SignManager, 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) BuildAndSign ¶
func (m *MockClusterAPI) BuildAndSign(ctx context.Context, mcm v1beta1.ManagedClusterModule, cluster v1.ManagedCluster) (bool, error)
BuildAndSign mocks base method.
func (*MockClusterAPI) EXPECT ¶
func (m *MockClusterAPI) EXPECT() *MockClusterAPIMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClusterAPI) GarbageCollectBuildsAndSigns ¶ added in v1.1.0
func (m *MockClusterAPI) GarbageCollectBuildsAndSigns(ctx context.Context, mcm v1beta1.ManagedClusterModule) ([]string, error)
GarbageCollectBuildsAndSigns mocks base method.
func (*MockClusterAPI) KernelVersions ¶ added in v1.1.0
func (m *MockClusterAPI) KernelVersions(cluster v1.ManagedCluster) ([]string, error)
KernelVersions mocks base method.
func (*MockClusterAPI) RequestedManagedClusterModule ¶
func (m *MockClusterAPI) RequestedManagedClusterModule(ctx context.Context, namespacedName types.NamespacedName) (*v1beta1.ManagedClusterModule, error)
RequestedManagedClusterModule 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) BuildAndSign ¶
func (mr *MockClusterAPIMockRecorder) BuildAndSign(ctx, mcm, cluster interface{}) *gomock.Call
BuildAndSign indicates an expected call of BuildAndSign.
func (*MockClusterAPIMockRecorder) GarbageCollectBuildsAndSigns ¶ added in v1.1.0
func (mr *MockClusterAPIMockRecorder) GarbageCollectBuildsAndSigns(ctx, mcm interface{}) *gomock.Call
GarbageCollectBuildsAndSigns indicates an expected call of GarbageCollectBuildsAndSigns.
func (*MockClusterAPIMockRecorder) KernelVersions ¶ added in v1.1.0
func (mr *MockClusterAPIMockRecorder) KernelVersions(cluster interface{}) *gomock.Call
KernelVersions indicates an expected call of KernelVersions.
func (*MockClusterAPIMockRecorder) RequestedManagedClusterModule ¶
func (mr *MockClusterAPIMockRecorder) RequestedManagedClusterModule(ctx, namespacedName interface{}) *gomock.Call
RequestedManagedClusterModule indicates an expected call of RequestedManagedClusterModule.
func (*MockClusterAPIMockRecorder) SelectedManagedClusters ¶
func (mr *MockClusterAPIMockRecorder) SelectedManagedClusters(ctx, mcm interface{}) *gomock.Call
SelectedManagedClusters indicates an expected call of SelectedManagedClusters.