mocks

package
v0.0.0-...-0a82276 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockApplier

type MockApplier struct {
	// contains filtered or unexported fields
}

MockApplier is a mock of Applier interface.

func NewMockApplier

func NewMockApplier(ctrl *gomock.Controller) *MockApplier

NewMockApplier creates a new mock instance.

func (*MockApplier) Apply

func (m *MockApplier) Apply(arg0 ...resources.Resource)

Apply mocks base method.

func (*MockApplier) ApplySet

func (m *MockApplier) ApplySet(arg0, arg1 []resources.Resource)

ApplySet mocks base method.

func (*MockApplier) Delete

func (m *MockApplier) Delete(arg0 ...resources.Resource)

Delete mocks base method.

func (*MockApplier) EXPECT

func (m *MockApplier) EXPECT() *MockApplierMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockApplier) Run

func (m *MockApplier) Run(arg0 context.Context, arg1 kubernetes.Interface, arg2 bool) error

Run mocks base method.

type MockApplierApplyCall

type MockApplierApplyCall struct {
	*gomock.Call
}

MockApplierApplyCall wrap *gomock.Call

func (*MockApplierApplyCall) Do

Do rewrite *gomock.Call.Do

func (*MockApplierApplyCall) DoAndReturn

func (c *MockApplierApplyCall) DoAndReturn(f func(...resources.Resource)) *MockApplierApplyCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockApplierApplyCall) Return

Return rewrite *gomock.Call.Return

type MockApplierApplySetCall

type MockApplierApplySetCall struct {
	*gomock.Call
}

MockApplierApplySetCall wrap *gomock.Call

func (*MockApplierApplySetCall) Do

Do rewrite *gomock.Call.Do

func (*MockApplierApplySetCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockApplierApplySetCall) Return

Return rewrite *gomock.Call.Return

type MockApplierDeleteCall

type MockApplierDeleteCall struct {
	*gomock.Call
}

MockApplierDeleteCall wrap *gomock.Call

func (*MockApplierDeleteCall) Do

Do rewrite *gomock.Call.Do

func (*MockApplierDeleteCall) DoAndReturn

func (c *MockApplierDeleteCall) DoAndReturn(f func(...resources.Resource)) *MockApplierDeleteCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockApplierDeleteCall) Return

Return rewrite *gomock.Call.Return

type MockApplierMockRecorder

type MockApplierMockRecorder struct {
	// contains filtered or unexported fields
}

MockApplierMockRecorder is the mock recorder for MockApplier.

func (*MockApplierMockRecorder) Apply

func (mr *MockApplierMockRecorder) Apply(arg0 ...any) *MockApplierApplyCall

Apply indicates an expected call of Apply.

func (*MockApplierMockRecorder) ApplySet

func (mr *MockApplierMockRecorder) ApplySet(arg0, arg1 any) *MockApplierApplySetCall

ApplySet indicates an expected call of ApplySet.

func (*MockApplierMockRecorder) Delete

func (mr *MockApplierMockRecorder) Delete(arg0 ...any) *MockApplierDeleteCall

Delete indicates an expected call of Delete.

func (*MockApplierMockRecorder) Run

func (mr *MockApplierMockRecorder) Run(arg0, arg1, arg2 any) *MockApplierRunCall

Run indicates an expected call of Run.

type MockApplierRunCall

type MockApplierRunCall struct {
	*gomock.Call
}

MockApplierRunCall wrap *gomock.Call

func (*MockApplierRunCall) Do

Do rewrite *gomock.Call.Do

func (*MockApplierRunCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockApplierRunCall) Return

func (c *MockApplierRunCall) Return(arg0 error) *MockApplierRunCall

Return rewrite *gomock.Call.Return

type MockResource

type MockResource struct {
	// contains filtered or unexported fields
}

MockResource is a mock of Resource interface.

func NewMockResource

func NewMockResource(ctrl *gomock.Controller) *MockResource

NewMockResource creates a new mock instance.

func (*MockResource) Apply

func (m *MockResource) Apply(arg0 context.Context, arg1 kubernetes.Interface) error

Apply mocks base method.

func (*MockResource) Clone

func (m *MockResource) Clone() resources.Resource

Clone mocks base method.

func (*MockResource) ComputeStatus

func (m *MockResource) ComputeStatus(arg0 context.Context, arg1 kubernetes.Interface, arg2 time.Time) (string, status.Status, time.Time, error)

ComputeStatus mocks base method.

func (*MockResource) Delete

func (m *MockResource) Delete(arg0 context.Context, arg1 kubernetes.Interface) error

Delete mocks base method.

func (*MockResource) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockResource) Events

func (m *MockResource) Events(arg0 context.Context, arg1 kubernetes.Interface) ([]v1.Event, error)

Events mocks base method.

func (*MockResource) Get

Get mocks base method.

func (*MockResource) GetObjectMeta

func (m *MockResource) GetObjectMeta() v10.Object

GetObjectMeta mocks base method.

func (*MockResource) ID

func (m *MockResource) ID() resources.ID

ID mocks base method.

func (*MockResource) String

func (m *MockResource) String() string

String mocks base method.

type MockResourceApplyCall

type MockResourceApplyCall struct {
	*gomock.Call
}

MockResourceApplyCall wrap *gomock.Call

func (*MockResourceApplyCall) Do

Do rewrite *gomock.Call.Do

func (*MockResourceApplyCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockResourceApplyCall) Return

Return rewrite *gomock.Call.Return

type MockResourceCloneCall

type MockResourceCloneCall struct {
	*gomock.Call
}

MockResourceCloneCall wrap *gomock.Call

func (*MockResourceCloneCall) Do

Do rewrite *gomock.Call.Do

func (*MockResourceCloneCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockResourceCloneCall) Return

Return rewrite *gomock.Call.Return

type MockResourceComputeStatusCall

type MockResourceComputeStatusCall struct {
	*gomock.Call
}

MockResourceComputeStatusCall wrap *gomock.Call

func (*MockResourceComputeStatusCall) Do

Do rewrite *gomock.Call.Do

func (*MockResourceComputeStatusCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockResourceComputeStatusCall) Return

Return rewrite *gomock.Call.Return

type MockResourceDeleteCall

type MockResourceDeleteCall struct {
	*gomock.Call
}

MockResourceDeleteCall wrap *gomock.Call

func (*MockResourceDeleteCall) Do

Do rewrite *gomock.Call.Do

func (*MockResourceDeleteCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockResourceDeleteCall) Return

Return rewrite *gomock.Call.Return

type MockResourceEventsCall

type MockResourceEventsCall struct {
	*gomock.Call
}

MockResourceEventsCall wrap *gomock.Call

func (*MockResourceEventsCall) Do

Do rewrite *gomock.Call.Do

func (*MockResourceEventsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockResourceEventsCall) Return

func (c *MockResourceEventsCall) Return(arg0 []v1.Event, arg1 error) *MockResourceEventsCall

Return rewrite *gomock.Call.Return

type MockResourceGetCall

type MockResourceGetCall struct {
	*gomock.Call
}

MockResourceGetCall wrap *gomock.Call

func (*MockResourceGetCall) Do

Do rewrite *gomock.Call.Do

func (*MockResourceGetCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockResourceGetCall) Return

Return rewrite *gomock.Call.Return

type MockResourceGetObjectMetaCall

type MockResourceGetObjectMetaCall struct {
	*gomock.Call
}

MockResourceGetObjectMetaCall wrap *gomock.Call

func (*MockResourceGetObjectMetaCall) Do

Do rewrite *gomock.Call.Do

func (*MockResourceGetObjectMetaCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockResourceGetObjectMetaCall) Return

Return rewrite *gomock.Call.Return

type MockResourceIDCall

type MockResourceIDCall struct {
	*gomock.Call
}

MockResourceIDCall wrap *gomock.Call

func (*MockResourceIDCall) Do

Do rewrite *gomock.Call.Do

func (*MockResourceIDCall) DoAndReturn

func (c *MockResourceIDCall) DoAndReturn(f func() resources.ID) *MockResourceIDCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockResourceIDCall) Return

Return rewrite *gomock.Call.Return

type MockResourceMockRecorder

type MockResourceMockRecorder struct {
	// contains filtered or unexported fields
}

MockResourceMockRecorder is the mock recorder for MockResource.

func (*MockResourceMockRecorder) Apply

func (mr *MockResourceMockRecorder) Apply(arg0, arg1 any) *MockResourceApplyCall

Apply indicates an expected call of Apply.

func (*MockResourceMockRecorder) Clone

Clone indicates an expected call of Clone.

func (*MockResourceMockRecorder) ComputeStatus

func (mr *MockResourceMockRecorder) ComputeStatus(arg0, arg1, arg2 any) *MockResourceComputeStatusCall

ComputeStatus indicates an expected call of ComputeStatus.

func (*MockResourceMockRecorder) Delete

func (mr *MockResourceMockRecorder) Delete(arg0, arg1 any) *MockResourceDeleteCall

Delete indicates an expected call of Delete.

func (*MockResourceMockRecorder) Events

func (mr *MockResourceMockRecorder) Events(arg0, arg1 any) *MockResourceEventsCall

Events indicates an expected call of Events.

func (*MockResourceMockRecorder) Get

func (mr *MockResourceMockRecorder) Get(arg0, arg1 any) *MockResourceGetCall

Get indicates an expected call of Get.

func (*MockResourceMockRecorder) GetObjectMeta

GetObjectMeta indicates an expected call of GetObjectMeta.

func (*MockResourceMockRecorder) ID

ID indicates an expected call of ID.

func (*MockResourceMockRecorder) String

String indicates an expected call of String.

type MockResourceStringCall

type MockResourceStringCall struct {
	*gomock.Call
}

MockResourceStringCall wrap *gomock.Call

func (*MockResourceStringCall) Do

Do rewrite *gomock.Call.Do

func (*MockResourceStringCall) DoAndReturn

func (c *MockResourceStringCall) DoAndReturn(f func() string) *MockResourceStringCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockResourceStringCall) Return

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

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