Documentation ¶
Overview ¶
Package resourcehelper is a generated GoMock package.
Index ¶
- type Helper
- type MockHelper
- func (m *MockHelper) EXPECT() *MockHelperMockRecorder
- func (m *MockHelper) IsNamespaced(kind string) bool
- func (m *MockHelper) IsNotUpdateable(kind string) bool
- func (m *MockHelper) IsOneTimer(obj *unstructured.Unstructured) (bool, error)
- func (m *MockHelper) NeedsResourceVersionUpdate(kind string) bool
- func (m *MockHelper) SetLabel(obj *unstructured.Unstructured, label string) error
- func (m *MockHelper) SetMetaData(obj *unstructured.Unstructured, nm, ns string)
- func (m *MockHelper) SetNodeSelectorTerms(obj *unstructured.Unstructured, terms map[string]string) error
- func (m *MockHelper) SetTemplateGeneration(req, found *unstructured.Unstructured)
- func (m *MockHelper) UpdateResourceVersion(req, found *unstructured.Unstructured) error
- type MockHelperMockRecorder
- func (mr *MockHelperMockRecorder) IsNamespaced(kind interface{}) *gomock.Call
- func (mr *MockHelperMockRecorder) IsNotUpdateable(kind interface{}) *gomock.Call
- func (mr *MockHelperMockRecorder) IsOneTimer(obj interface{}) *gomock.Call
- func (mr *MockHelperMockRecorder) NeedsResourceVersionUpdate(kind interface{}) *gomock.Call
- func (mr *MockHelperMockRecorder) SetLabel(obj, label interface{}) *gomock.Call
- func (mr *MockHelperMockRecorder) SetMetaData(obj, nm, ns interface{}) *gomock.Call
- func (mr *MockHelperMockRecorder) SetNodeSelectorTerms(obj, terms interface{}) *gomock.Call
- func (mr *MockHelperMockRecorder) SetTemplateGeneration(req, found interface{}) *gomock.Call
- func (mr *MockHelperMockRecorder) UpdateResourceVersion(req, found interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Helper ¶
type Helper interface { IsNamespaced(kind string) bool IsNotUpdateable(kind string) bool NeedsResourceVersionUpdate(kind string) bool UpdateResourceVersion(req *unstructured.Unstructured, found *unstructured.Unstructured) error SetNodeSelectorTerms(obj *unstructured.Unstructured, terms map[string]string) error IsOneTimer(obj *unstructured.Unstructured) (bool, error) SetLabel(obj *unstructured.Unstructured, label string) error SetMetaData(obj *unstructured.Unstructured, nm string, ns string) SetTemplateGeneration(req *unstructured.Unstructured, found *unstructured.Unstructured) }
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) EXPECT ¶
func (m *MockHelper) EXPECT() *MockHelperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockHelper) IsNamespaced ¶
func (m *MockHelper) IsNamespaced(kind string) bool
IsNamespaced mocks base method.
func (*MockHelper) IsNotUpdateable ¶
func (m *MockHelper) IsNotUpdateable(kind string) bool
IsNotUpdateable mocks base method.
func (*MockHelper) IsOneTimer ¶
func (m *MockHelper) IsOneTimer(obj *unstructured.Unstructured) (bool, error)
IsOneTimer mocks base method.
func (*MockHelper) NeedsResourceVersionUpdate ¶
func (m *MockHelper) NeedsResourceVersionUpdate(kind string) bool
NeedsResourceVersionUpdate mocks base method.
func (*MockHelper) SetLabel ¶
func (m *MockHelper) SetLabel(obj *unstructured.Unstructured, label string) error
SetLabel mocks base method.
func (*MockHelper) SetMetaData ¶
func (m *MockHelper) SetMetaData(obj *unstructured.Unstructured, nm, ns string)
SetMetaData mocks base method.
func (*MockHelper) SetNodeSelectorTerms ¶
func (m *MockHelper) SetNodeSelectorTerms(obj *unstructured.Unstructured, terms map[string]string) error
SetNodeSelectorTerms mocks base method.
func (*MockHelper) SetTemplateGeneration ¶
func (m *MockHelper) SetTemplateGeneration(req, found *unstructured.Unstructured)
SetTemplateGeneration mocks base method.
func (*MockHelper) UpdateResourceVersion ¶
func (m *MockHelper) UpdateResourceVersion(req, found *unstructured.Unstructured) error
UpdateResourceVersion mocks base method.
type MockHelperMockRecorder ¶
type MockHelperMockRecorder struct {
// contains filtered or unexported fields
}
MockHelperMockRecorder is the mock recorder for MockHelper.
func (*MockHelperMockRecorder) IsNamespaced ¶
func (mr *MockHelperMockRecorder) IsNamespaced(kind interface{}) *gomock.Call
IsNamespaced indicates an expected call of IsNamespaced.
func (*MockHelperMockRecorder) IsNotUpdateable ¶
func (mr *MockHelperMockRecorder) IsNotUpdateable(kind interface{}) *gomock.Call
IsNotUpdateable indicates an expected call of IsNotUpdateable.
func (*MockHelperMockRecorder) IsOneTimer ¶
func (mr *MockHelperMockRecorder) IsOneTimer(obj interface{}) *gomock.Call
IsOneTimer indicates an expected call of IsOneTimer.
func (*MockHelperMockRecorder) NeedsResourceVersionUpdate ¶
func (mr *MockHelperMockRecorder) NeedsResourceVersionUpdate(kind interface{}) *gomock.Call
NeedsResourceVersionUpdate indicates an expected call of NeedsResourceVersionUpdate.
func (*MockHelperMockRecorder) SetLabel ¶
func (mr *MockHelperMockRecorder) SetLabel(obj, label interface{}) *gomock.Call
SetLabel indicates an expected call of SetLabel.
func (*MockHelperMockRecorder) SetMetaData ¶
func (mr *MockHelperMockRecorder) SetMetaData(obj, nm, ns interface{}) *gomock.Call
SetMetaData indicates an expected call of SetMetaData.
func (*MockHelperMockRecorder) SetNodeSelectorTerms ¶
func (mr *MockHelperMockRecorder) SetNodeSelectorTerms(obj, terms interface{}) *gomock.Call
SetNodeSelectorTerms indicates an expected call of SetNodeSelectorTerms.
func (*MockHelperMockRecorder) SetTemplateGeneration ¶
func (mr *MockHelperMockRecorder) SetTemplateGeneration(req, found interface{}) *gomock.Call
SetTemplateGeneration indicates an expected call of SetTemplateGeneration.
func (*MockHelperMockRecorder) UpdateResourceVersion ¶
func (mr *MockHelperMockRecorder) UpdateResourceVersion(req, found interface{}) *gomock.Call
UpdateResourceVersion indicates an expected call of UpdateResourceVersion.