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 ¶
- type ManifestWorkCreator
- type MockManifestWorkCreator
- func (m *MockManifestWorkCreator) EXPECT() *MockManifestWorkCreatorMockRecorder
- func (m *MockManifestWorkCreator) GarbageCollect(ctx context.Context, clusters v1.ManagedClusterList, ...) error
- func (m *MockManifestWorkCreator) GetOwnedManifestWorks(ctx context.Context, mcm v1beta1.ManagedClusterModule) (*v10.ManifestWorkList, error)
- func (m *MockManifestWorkCreator) SetManifestWorkAsDesired(ctx context.Context, mw *v10.ManifestWork, mcm v1beta1.ManagedClusterModule, ...) error
- type MockManifestWorkCreatorMockRecorder
- func (mr *MockManifestWorkCreatorMockRecorder) GarbageCollect(ctx, clusters, mcm any) *gomock.Call
- func (mr *MockManifestWorkCreatorMockRecorder) GetOwnedManifestWorks(ctx, mcm any) *gomock.Call
- func (mr *MockManifestWorkCreatorMockRecorder) SetManifestWorkAsDesired(ctx, mw, mcm, kernelVersions any) *gomock.Call
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 ¶
func (m *MockManifestWorkCreator) EXPECT() *MockManifestWorkCreatorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockManifestWorkCreator) GarbageCollect ¶
func (m *MockManifestWorkCreator) GarbageCollect(ctx context.Context, clusters v1.ManagedClusterList, mcm v1beta1.ManagedClusterModule) error
GarbageCollect mocks base method.
func (*MockManifestWorkCreator) GetOwnedManifestWorks ¶
func (m *MockManifestWorkCreator) GetOwnedManifestWorks(ctx context.Context, mcm v1beta1.ManagedClusterModule) (*v10.ManifestWorkList, error)
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.