Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockK8s
- func (m *MockK8s) CreateResource(arg0 context.Context, arg1 *unstructured.Unstructured, arg2 string) error
- func (m *MockK8s) DeleteResource(arg0 context.Context, arg1 *unstructured.Unstructured, arg2 string) error
- func (m *MockK8s) DiffResources(arg0, arg1 []*unstructured.Unstructured) (bool, error)
- func (m *MockK8s) EXPECT() *MockK8sMockRecorder
- func (m *MockK8s) GenerateManifests(arg0 string) ([]*unstructured.Unstructured, error)
- func (m *MockK8s) GetResourceWithLabel(arg0 map[string]string) ([]*unstructured.Unstructured, error)
- func (m *MockK8s) PatchResource(arg0 context.Context, arg1 *unstructured.Unstructured, arg2 string) error
- func (m *MockK8s) SetLabelsForResources(arg0 []*unstructured.Unstructured, arg1 map[string]string) error
- type MockK8sMockRecorder
- func (mr *MockK8sMockRecorder) CreateResource(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockK8sMockRecorder) DeleteResource(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockK8sMockRecorder) DiffResources(arg0, arg1 any) *gomock.Call
- func (mr *MockK8sMockRecorder) GenerateManifests(arg0 any) *gomock.Call
- func (mr *MockK8sMockRecorder) GetResourceWithLabel(arg0 any) *gomock.Call
- func (mr *MockK8sMockRecorder) PatchResource(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockK8sMockRecorder) SetLabelsForResources(arg0, arg1 any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockK8s ¶
type MockK8s struct {
// contains filtered or unexported fields
}
MockK8s is a mock of K8s interface.
func NewMockK8s ¶
func NewMockK8s(ctrl *gomock.Controller) *MockK8s
NewMockK8s creates a new mock instance.
func (*MockK8s) CreateResource ¶
func (m *MockK8s) CreateResource(arg0 context.Context, arg1 *unstructured.Unstructured, arg2 string) error
CreateResource mocks base method.
func (*MockK8s) DeleteResource ¶
func (m *MockK8s) DeleteResource(arg0 context.Context, arg1 *unstructured.Unstructured, arg2 string) error
DeleteResource mocks base method.
func (*MockK8s) DiffResources ¶
func (m *MockK8s) DiffResources(arg0, arg1 []*unstructured.Unstructured) (bool, error)
DiffResources mocks base method.
func (*MockK8s) EXPECT ¶
func (m *MockK8s) EXPECT() *MockK8sMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockK8s) GenerateManifests ¶
func (m *MockK8s) GenerateManifests(arg0 string) ([]*unstructured.Unstructured, error)
GenerateManifests mocks base method.
func (*MockK8s) GetResourceWithLabel ¶
func (m *MockK8s) GetResourceWithLabel(arg0 map[string]string) ([]*unstructured.Unstructured, error)
GetResourceWithLabel mocks base method.
func (*MockK8s) PatchResource ¶
func (m *MockK8s) PatchResource(arg0 context.Context, arg1 *unstructured.Unstructured, arg2 string) error
PatchResource mocks base method.
func (*MockK8s) SetLabelsForResources ¶
func (m *MockK8s) SetLabelsForResources(arg0 []*unstructured.Unstructured, arg1 map[string]string) error
SetLabelsForResources mocks base method.
type MockK8sMockRecorder ¶
type MockK8sMockRecorder struct {
// contains filtered or unexported fields
}
MockK8sMockRecorder is the mock recorder for MockK8s.
func (*MockK8sMockRecorder) CreateResource ¶
func (mr *MockK8sMockRecorder) CreateResource(arg0, arg1, arg2 any) *gomock.Call
CreateResource indicates an expected call of CreateResource.
func (*MockK8sMockRecorder) DeleteResource ¶
func (mr *MockK8sMockRecorder) DeleteResource(arg0, arg1, arg2 any) *gomock.Call
DeleteResource indicates an expected call of DeleteResource.
func (*MockK8sMockRecorder) DiffResources ¶
func (mr *MockK8sMockRecorder) DiffResources(arg0, arg1 any) *gomock.Call
DiffResources indicates an expected call of DiffResources.
func (*MockK8sMockRecorder) GenerateManifests ¶
func (mr *MockK8sMockRecorder) GenerateManifests(arg0 any) *gomock.Call
GenerateManifests indicates an expected call of GenerateManifests.
func (*MockK8sMockRecorder) GetResourceWithLabel ¶
func (mr *MockK8sMockRecorder) GetResourceWithLabel(arg0 any) *gomock.Call
GetResourceWithLabel indicates an expected call of GetResourceWithLabel.
func (*MockK8sMockRecorder) PatchResource ¶
func (mr *MockK8sMockRecorder) PatchResource(arg0, arg1, arg2 any) *gomock.Call
PatchResource indicates an expected call of PatchResource.
func (*MockK8sMockRecorder) SetLabelsForResources ¶
func (mr *MockK8sMockRecorder) SetLabelsForResources(arg0, arg1 any) *gomock.Call
SetLabelsForResources indicates an expected call of SetLabelsForResources.