resourcehelper

package
v0.0.0-...-c9e8fde Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package resourcehelper is a generated GoMock package.

Index

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)
}

func New

func New() Helper

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.

Jump to

Keyboard shortcuts

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