Documentation ¶
Overview ¶
Package build is a generated GoMock package.
Package build is a generated GoMock package.
Index ¶
- type Helper
- type Manager
- type MockHelper
- type MockHelperMockRecorder
- type MockManager
- func (m *MockManager) EXPECT() *MockManagerMockRecorder
- func (m *MockManager) GarbageCollect(ctx context.Context, modName, namespace string, owner v1.Object) ([]string, error)
- func (m *MockManager) ShouldSync(ctx context.Context, mld *api.ModuleLoaderData) (bool, error)
- func (m *MockManager) Sync(ctx context.Context, mld *api.ModuleLoaderData, pushImage bool, ...) (utils.Status, error)
- type MockManagerMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Helper ¶
type Helper interface { ApplyBuildArgOverrides(args []kmmv1beta1.BuildArg, overrides ...kmmv1beta1.BuildArg) []kmmv1beta1.BuildArg GetRelevantBuild(moduleBuild *kmmv1beta1.Build, mappingBuild *kmmv1beta1.Build) *kmmv1beta1.Build }
type Manager ¶
type Manager interface { GarbageCollect(ctx context.Context, modName, namespace string, owner metav1.Object) ([]string, error) ShouldSync(ctx context.Context, mld *api.ModuleLoaderData) (bool, error) Sync( ctx context.Context, mld *api.ModuleLoaderData, pushImage bool, owner metav1.Object) (utils.Status, error) }
type MockHelper ¶
type MockHelper struct {
// contains filtered or unexported fields
}
MockHelper is a mock of Helper interface.
func NewMockHelper ¶
func NewMockHelper(ctrl *gomock.Controller) *MockHelper
NewMockHelper creates a new mock instance.
func (*MockHelper) ApplyBuildArgOverrides ¶
func (m *MockHelper) ApplyBuildArgOverrides(args []v1beta1.BuildArg, overrides ...v1beta1.BuildArg) []v1beta1.BuildArg
ApplyBuildArgOverrides mocks base method.
func (*MockHelper) EXPECT ¶
func (m *MockHelper) EXPECT() *MockHelperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockHelper) GetRelevantBuild ¶
func (m *MockHelper) GetRelevantBuild(moduleBuild, mappingBuild *v1beta1.Build) *v1beta1.Build
GetRelevantBuild mocks base method.
type MockHelperMockRecorder ¶
type MockHelperMockRecorder struct {
// contains filtered or unexported fields
}
MockHelperMockRecorder is the mock recorder for MockHelper.
func (*MockHelperMockRecorder) ApplyBuildArgOverrides ¶
func (mr *MockHelperMockRecorder) ApplyBuildArgOverrides(args interface{}, overrides ...interface{}) *gomock.Call
ApplyBuildArgOverrides indicates an expected call of ApplyBuildArgOverrides.
func (*MockHelperMockRecorder) GetRelevantBuild ¶
func (mr *MockHelperMockRecorder) GetRelevantBuild(moduleBuild, mappingBuild interface{}) *gomock.Call
GetRelevantBuild indicates an expected call of GetRelevantBuild.
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) GarbageCollect ¶
func (m *MockManager) GarbageCollect(ctx context.Context, modName, namespace string, owner v1.Object) ([]string, error)
GarbageCollect mocks base method.
func (*MockManager) ShouldSync ¶
func (m *MockManager) ShouldSync(ctx context.Context, mld *api.ModuleLoaderData) (bool, error)
ShouldSync mocks base method.
type MockManagerMockRecorder ¶
type MockManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockManagerMockRecorder is the mock recorder for MockManager.
func (*MockManagerMockRecorder) GarbageCollect ¶
func (mr *MockManagerMockRecorder) GarbageCollect(ctx, modName, namespace, owner interface{}) *gomock.Call
GarbageCollect indicates an expected call of GarbageCollect.
func (*MockManagerMockRecorder) ShouldSync ¶
func (mr *MockManagerMockRecorder) ShouldSync(ctx, mld interface{}) *gomock.Call
ShouldSync indicates an expected call of ShouldSync.
func (*MockManagerMockRecorder) Sync ¶
func (mr *MockManagerMockRecorder) Sync(ctx, mld, pushImage, owner interface{}) *gomock.Call
Sync indicates an expected call of Sync.