Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockApplier
- func (m *MockApplier) Apply(arg0 ...resources.Resource)
- func (m *MockApplier) ApplySet(arg0, arg1 []resources.Resource)
- func (m *MockApplier) Delete(arg0 ...resources.Resource)
- func (m *MockApplier) EXPECT() *MockApplierMockRecorder
- func (m *MockApplier) Run(arg0 context.Context, arg1 kubernetes.Interface, arg2 bool) error
- type MockApplierApplyCall
- type MockApplierApplySetCall
- func (c *MockApplierApplySetCall) Do(f func([]resources.Resource, []resources.Resource)) *MockApplierApplySetCall
- func (c *MockApplierApplySetCall) DoAndReturn(f func([]resources.Resource, []resources.Resource)) *MockApplierApplySetCall
- func (c *MockApplierApplySetCall) Return() *MockApplierApplySetCall
- type MockApplierDeleteCall
- type MockApplierMockRecorder
- func (mr *MockApplierMockRecorder) Apply(arg0 ...any) *MockApplierApplyCall
- func (mr *MockApplierMockRecorder) ApplySet(arg0, arg1 any) *MockApplierApplySetCall
- func (mr *MockApplierMockRecorder) Delete(arg0 ...any) *MockApplierDeleteCall
- func (mr *MockApplierMockRecorder) Run(arg0, arg1, arg2 any) *MockApplierRunCall
- type MockApplierRunCall
- type MockResource
- func (m *MockResource) Apply(arg0 context.Context, arg1 kubernetes.Interface) error
- func (m *MockResource) Clone() resources.Resource
- func (m *MockResource) ComputeStatus(arg0 context.Context, arg1 kubernetes.Interface, arg2 time.Time) (string, status.Status, time.Time, error)
- func (m *MockResource) Delete(arg0 context.Context, arg1 kubernetes.Interface) error
- func (m *MockResource) EXPECT() *MockResourceMockRecorder
- func (m *MockResource) Events(arg0 context.Context, arg1 kubernetes.Interface) ([]v1.Event, error)
- func (m *MockResource) Get(arg0 context.Context, arg1 kubernetes.Interface) error
- func (m *MockResource) GetObjectMeta() v10.Object
- func (m *MockResource) ID() resources.ID
- func (m *MockResource) String() string
- type MockResourceApplyCall
- func (c *MockResourceApplyCall) Do(f func(context.Context, kubernetes.Interface) error) *MockResourceApplyCall
- func (c *MockResourceApplyCall) DoAndReturn(f func(context.Context, kubernetes.Interface) error) *MockResourceApplyCall
- func (c *MockResourceApplyCall) Return(arg0 error) *MockResourceApplyCall
- type MockResourceCloneCall
- type MockResourceComputeStatusCall
- func (c *MockResourceComputeStatusCall) Do(...) *MockResourceComputeStatusCall
- func (c *MockResourceComputeStatusCall) DoAndReturn(...) *MockResourceComputeStatusCall
- func (c *MockResourceComputeStatusCall) Return(arg0 string, arg1 status.Status, arg2 time.Time, arg3 error) *MockResourceComputeStatusCall
- type MockResourceDeleteCall
- func (c *MockResourceDeleteCall) Do(f func(context.Context, kubernetes.Interface) error) *MockResourceDeleteCall
- func (c *MockResourceDeleteCall) DoAndReturn(f func(context.Context, kubernetes.Interface) error) *MockResourceDeleteCall
- func (c *MockResourceDeleteCall) Return(arg0 error) *MockResourceDeleteCall
- type MockResourceEventsCall
- func (c *MockResourceEventsCall) Do(f func(context.Context, kubernetes.Interface) ([]v1.Event, error)) *MockResourceEventsCall
- func (c *MockResourceEventsCall) DoAndReturn(f func(context.Context, kubernetes.Interface) ([]v1.Event, error)) *MockResourceEventsCall
- func (c *MockResourceEventsCall) Return(arg0 []v1.Event, arg1 error) *MockResourceEventsCall
- type MockResourceGetCall
- type MockResourceGetObjectMetaCall
- type MockResourceIDCall
- type MockResourceMockRecorder
- func (mr *MockResourceMockRecorder) Apply(arg0, arg1 any) *MockResourceApplyCall
- func (mr *MockResourceMockRecorder) Clone() *MockResourceCloneCall
- func (mr *MockResourceMockRecorder) ComputeStatus(arg0, arg1, arg2 any) *MockResourceComputeStatusCall
- func (mr *MockResourceMockRecorder) Delete(arg0, arg1 any) *MockResourceDeleteCall
- func (mr *MockResourceMockRecorder) Events(arg0, arg1 any) *MockResourceEventsCall
- func (mr *MockResourceMockRecorder) Get(arg0, arg1 any) *MockResourceGetCall
- func (mr *MockResourceMockRecorder) GetObjectMeta() *MockResourceGetObjectMetaCall
- func (mr *MockResourceMockRecorder) ID() *MockResourceIDCall
- func (mr *MockResourceMockRecorder) String() *MockResourceStringCall
- type MockResourceStringCall
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 ¶
MockApplierApplyCall wrap *gomock.Call
func (*MockApplierApplyCall) Do ¶
func (c *MockApplierApplyCall) Do(f func(...resources.Resource)) *MockApplierApplyCall
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 ¶
func (c *MockApplierApplyCall) Return() *MockApplierApplyCall
Return rewrite *gomock.Call.Return
type MockApplierApplySetCall ¶
MockApplierApplySetCall wrap *gomock.Call
func (*MockApplierApplySetCall) Do ¶
func (c *MockApplierApplySetCall) Do(f func([]resources.Resource, []resources.Resource)) *MockApplierApplySetCall
Do rewrite *gomock.Call.Do
func (*MockApplierApplySetCall) DoAndReturn ¶
func (c *MockApplierApplySetCall) DoAndReturn(f func([]resources.Resource, []resources.Resource)) *MockApplierApplySetCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockApplierApplySetCall) Return ¶
func (c *MockApplierApplySetCall) Return() *MockApplierApplySetCall
Return rewrite *gomock.Call.Return
type MockApplierDeleteCall ¶
MockApplierDeleteCall wrap *gomock.Call
func (*MockApplierDeleteCall) Do ¶
func (c *MockApplierDeleteCall) Do(f func(...resources.Resource)) *MockApplierDeleteCall
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 ¶
func (c *MockApplierDeleteCall) Return() *MockApplierDeleteCall
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 ¶
MockApplierRunCall wrap *gomock.Call
func (*MockApplierRunCall) Do ¶
func (c *MockApplierRunCall) Do(f func(context.Context, kubernetes.Interface, bool) error) *MockApplierRunCall
Do rewrite *gomock.Call.Do
func (*MockApplierRunCall) DoAndReturn ¶
func (c *MockApplierRunCall) DoAndReturn(f func(context.Context, kubernetes.Interface, bool) error) *MockApplierRunCall
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 ¶
func (m *MockResource) EXPECT() *MockResourceMockRecorder
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 ¶
func (m *MockResource) Get(arg0 context.Context, arg1 kubernetes.Interface) error
Get mocks base method.
func (*MockResource) GetObjectMeta ¶
func (m *MockResource) GetObjectMeta() v10.Object
GetObjectMeta mocks base method.
type MockResourceApplyCall ¶
MockResourceApplyCall wrap *gomock.Call
func (*MockResourceApplyCall) Do ¶
func (c *MockResourceApplyCall) Do(f func(context.Context, kubernetes.Interface) error) *MockResourceApplyCall
Do rewrite *gomock.Call.Do
func (*MockResourceApplyCall) DoAndReturn ¶
func (c *MockResourceApplyCall) DoAndReturn(f func(context.Context, kubernetes.Interface) error) *MockResourceApplyCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockResourceApplyCall) Return ¶
func (c *MockResourceApplyCall) Return(arg0 error) *MockResourceApplyCall
Return rewrite *gomock.Call.Return
type MockResourceCloneCall ¶
MockResourceCloneCall wrap *gomock.Call
func (*MockResourceCloneCall) Do ¶
func (c *MockResourceCloneCall) Do(f func() resources.Resource) *MockResourceCloneCall
Do rewrite *gomock.Call.Do
func (*MockResourceCloneCall) DoAndReturn ¶
func (c *MockResourceCloneCall) DoAndReturn(f func() resources.Resource) *MockResourceCloneCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockResourceCloneCall) Return ¶
func (c *MockResourceCloneCall) Return(arg0 resources.Resource) *MockResourceCloneCall
Return rewrite *gomock.Call.Return
type MockResourceComputeStatusCall ¶
MockResourceComputeStatusCall wrap *gomock.Call
func (*MockResourceComputeStatusCall) Do ¶
func (c *MockResourceComputeStatusCall) Do(f func(context.Context, kubernetes.Interface, time.Time) (string, status.Status, time.Time, error)) *MockResourceComputeStatusCall
Do rewrite *gomock.Call.Do
func (*MockResourceComputeStatusCall) DoAndReturn ¶
func (c *MockResourceComputeStatusCall) DoAndReturn(f func(context.Context, kubernetes.Interface, time.Time) (string, status.Status, time.Time, error)) *MockResourceComputeStatusCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockResourceComputeStatusCall) Return ¶
func (c *MockResourceComputeStatusCall) Return(arg0 string, arg1 status.Status, arg2 time.Time, arg3 error) *MockResourceComputeStatusCall
Return rewrite *gomock.Call.Return
type MockResourceDeleteCall ¶
MockResourceDeleteCall wrap *gomock.Call
func (*MockResourceDeleteCall) Do ¶
func (c *MockResourceDeleteCall) Do(f func(context.Context, kubernetes.Interface) error) *MockResourceDeleteCall
Do rewrite *gomock.Call.Do
func (*MockResourceDeleteCall) DoAndReturn ¶
func (c *MockResourceDeleteCall) DoAndReturn(f func(context.Context, kubernetes.Interface) error) *MockResourceDeleteCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockResourceDeleteCall) Return ¶
func (c *MockResourceDeleteCall) Return(arg0 error) *MockResourceDeleteCall
Return rewrite *gomock.Call.Return
type MockResourceEventsCall ¶
MockResourceEventsCall wrap *gomock.Call
func (*MockResourceEventsCall) Do ¶
func (c *MockResourceEventsCall) Do(f func(context.Context, kubernetes.Interface) ([]v1.Event, error)) *MockResourceEventsCall
Do rewrite *gomock.Call.Do
func (*MockResourceEventsCall) DoAndReturn ¶
func (c *MockResourceEventsCall) DoAndReturn(f func(context.Context, kubernetes.Interface) ([]v1.Event, error)) *MockResourceEventsCall
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 ¶
MockResourceGetCall wrap *gomock.Call
func (*MockResourceGetCall) Do ¶
func (c *MockResourceGetCall) Do(f func(context.Context, kubernetes.Interface) error) *MockResourceGetCall
Do rewrite *gomock.Call.Do
func (*MockResourceGetCall) DoAndReturn ¶
func (c *MockResourceGetCall) DoAndReturn(f func(context.Context, kubernetes.Interface) error) *MockResourceGetCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockResourceGetCall) Return ¶
func (c *MockResourceGetCall) Return(arg0 error) *MockResourceGetCall
Return rewrite *gomock.Call.Return
type MockResourceGetObjectMetaCall ¶
MockResourceGetObjectMetaCall wrap *gomock.Call
func (*MockResourceGetObjectMetaCall) Do ¶
func (c *MockResourceGetObjectMetaCall) Do(f func() v10.Object) *MockResourceGetObjectMetaCall
Do rewrite *gomock.Call.Do
func (*MockResourceGetObjectMetaCall) DoAndReturn ¶
func (c *MockResourceGetObjectMetaCall) DoAndReturn(f func() v10.Object) *MockResourceGetObjectMetaCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockResourceGetObjectMetaCall) Return ¶
func (c *MockResourceGetObjectMetaCall) Return(arg0 v10.Object) *MockResourceGetObjectMetaCall
Return rewrite *gomock.Call.Return
type MockResourceIDCall ¶
MockResourceIDCall wrap *gomock.Call
func (*MockResourceIDCall) Do ¶
func (c *MockResourceIDCall) Do(f func() resources.ID) *MockResourceIDCall
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 ¶
func (c *MockResourceIDCall) Return(arg0 resources.ID) *MockResourceIDCall
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 ¶
func (mr *MockResourceMockRecorder) Clone() *MockResourceCloneCall
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 ¶
func (mr *MockResourceMockRecorder) GetObjectMeta() *MockResourceGetObjectMetaCall
GetObjectMeta indicates an expected call of GetObjectMeta.
func (*MockResourceMockRecorder) ID ¶
func (mr *MockResourceMockRecorder) ID() *MockResourceIDCall
ID indicates an expected call of ID.
func (*MockResourceMockRecorder) String ¶
func (mr *MockResourceMockRecorder) String() *MockResourceStringCall
String indicates an expected call of String.
type MockResourceStringCall ¶
MockResourceStringCall wrap *gomock.Call
func (*MockResourceStringCall) Do ¶
func (c *MockResourceStringCall) Do(f func() string) *MockResourceStringCall
Do rewrite *gomock.Call.Do
func (*MockResourceStringCall) DoAndReturn ¶
func (c *MockResourceStringCall) DoAndReturn(f func() string) *MockResourceStringCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockResourceStringCall) Return ¶
func (c *MockResourceStringCall) Return(arg0 string) *MockResourceStringCall
Return rewrite *gomock.Call.Return