manifestwork

package
v0.0.0-...-ab60f3c Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

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

Generated by this command:

mockgen -source=manifestwork.go -package=manifestwork -destination=mock_manifestwork.go

Package manifestwork is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ManifestWorkCreator

type ManifestWorkCreator interface {
	GarbageCollect(ctx context.Context, clusters clusterv1.ManagedClusterList, mcm hubv1beta1.ManagedClusterModule) error
	GetOwnedManifestWorks(ctx context.Context, mcm hubv1beta1.ManagedClusterModule) (*workv1.ManifestWorkList, error)
	SetManifestWorkAsDesired(ctx context.Context, mw *workv1.ManifestWork, mcm hubv1beta1.ManagedClusterModule, kernelVersions []string) error
}

func NewCreator

func NewCreator(
	client client.Client,
	scheme *runtime.Scheme,
	kernelAPI module.KernelMapper,
	registryAPI registry.Registry,
	authFactory auth.RegistryAuthGetterFactory,
	cache cache.Cache[string],
	operatorNamespace string) ManifestWorkCreator

type MockManifestWorkCreator

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

MockManifestWorkCreator is a mock of ManifestWorkCreator interface.

func NewMockManifestWorkCreator

func NewMockManifestWorkCreator(ctrl *gomock.Controller) *MockManifestWorkCreator

NewMockManifestWorkCreator creates a new mock instance.

func (*MockManifestWorkCreator) EXPECT

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

func (*MockManifestWorkCreator) GarbageCollect

GarbageCollect mocks base method.

func (*MockManifestWorkCreator) GetOwnedManifestWorks

GetOwnedManifestWorks mocks base method.

func (*MockManifestWorkCreator) SetManifestWorkAsDesired

func (m *MockManifestWorkCreator) SetManifestWorkAsDesired(ctx context.Context, mw *v10.ManifestWork, mcm v1beta1.ManagedClusterModule, kernelVersions []string) error

SetManifestWorkAsDesired mocks base method.

type MockManifestWorkCreatorMockRecorder

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

MockManifestWorkCreatorMockRecorder is the mock recorder for MockManifestWorkCreator.

func (*MockManifestWorkCreatorMockRecorder) GarbageCollect

func (mr *MockManifestWorkCreatorMockRecorder) GarbageCollect(ctx, clusters, mcm any) *gomock.Call

GarbageCollect indicates an expected call of GarbageCollect.

func (*MockManifestWorkCreatorMockRecorder) GetOwnedManifestWorks

func (mr *MockManifestWorkCreatorMockRecorder) GetOwnedManifestWorks(ctx, mcm any) *gomock.Call

GetOwnedManifestWorks indicates an expected call of GetOwnedManifestWorks.

func (*MockManifestWorkCreatorMockRecorder) SetManifestWorkAsDesired

func (mr *MockManifestWorkCreatorMockRecorder) SetManifestWorkAsDesired(ctx, mw, mcm, kernelVersions any) *gomock.Call

SetManifestWorkAsDesired indicates an expected call of SetManifestWorkAsDesired.

Jump to

Keyboard shortcuts

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