Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type K8sClient
- func (m *K8sClient) Create(arg0 context.Context, arg1 client.Object, arg2 ...client.CreateOption) error
- func (m *K8sClient) Delete(arg0 context.Context, arg1 client.Object, arg2 ...client.DeleteOption) error
- func (m *K8sClient) DeleteAllOf(arg0 context.Context, arg1 client.Object, arg2 ...client.DeleteAllOfOption) error
- func (m *K8sClient) EXPECT() *K8sClientMockRecorder
- func (m *K8sClient) Get(arg0 context.Context, arg1 types.NamespacedName, arg2 client.Object, ...) error
- func (m *K8sClient) GroupVersionKindFor(arg0 runtime.Object) (schema.GroupVersionKind, error)
- func (m *K8sClient) IsObjectNamespaced(arg0 runtime.Object) (bool, error)
- func (m *K8sClient) List(arg0 context.Context, arg1 client.ObjectList, arg2 ...client.ListOption) error
- func (m *K8sClient) Patch(arg0 context.Context, arg1 client.Object, arg2 client.Patch, ...) error
- func (m *K8sClient) RESTMapper() meta.RESTMapper
- func (m *K8sClient) Scheme() *runtime.Scheme
- func (m *K8sClient) Status() client.SubResourceWriter
- func (m *K8sClient) SubResource(arg0 string) client.SubResourceClient
- func (m *K8sClient) Update(arg0 context.Context, arg1 client.Object, arg2 ...client.UpdateOption) error
- type K8sClientMockRecorder
- func (mr *K8sClientMockRecorder) Create(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *K8sClientMockRecorder) Delete(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *K8sClientMockRecorder) DeleteAllOf(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *K8sClientMockRecorder) Get(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
- func (mr *K8sClientMockRecorder) GroupVersionKindFor(arg0 interface{}) *gomock.Call
- func (mr *K8sClientMockRecorder) IsObjectNamespaced(arg0 interface{}) *gomock.Call
- func (mr *K8sClientMockRecorder) List(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *K8sClientMockRecorder) Patch(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
- func (mr *K8sClientMockRecorder) RESTMapper() *gomock.Call
- func (mr *K8sClientMockRecorder) Scheme() *gomock.Call
- func (mr *K8sClientMockRecorder) Status() *gomock.Call
- func (mr *K8sClientMockRecorder) SubResource(arg0 interface{}) *gomock.Call
- func (mr *K8sClientMockRecorder) Update(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- type K8sStatus
- func (m *K8sStatus) Create(arg0 context.Context, arg1, arg2 client.Object, ...) error
- func (m *K8sStatus) EXPECT() *K8sStatusMockRecorder
- func (m *K8sStatus) Patch(arg0 context.Context, arg1 client.Object, arg2 client.Patch, ...) error
- func (m *K8sStatus) Update(arg0 context.Context, arg1 client.Object, ...) error
- type K8sStatusMockRecorder
- func (mr *K8sStatusMockRecorder) Create(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
- func (mr *K8sStatusMockRecorder) Patch(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
- func (mr *K8sStatusMockRecorder) Update(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- type MockKubeFinder
- type MockKubeFinderMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type K8sClient ¶
type K8sClient struct {
// contains filtered or unexported fields
}
K8sClient is a mock of Client interface.
func NewK8sClient ¶
func NewK8sClient(ctrl *gomock.Controller) *K8sClient
NewK8sClient creates a new mock instance.
func (*K8sClient) Create ¶
func (m *K8sClient) Create(arg0 context.Context, arg1 client.Object, arg2 ...client.CreateOption) error
Create mocks base method.
func (*K8sClient) Delete ¶
func (m *K8sClient) Delete(arg0 context.Context, arg1 client.Object, arg2 ...client.DeleteOption) error
Delete mocks base method.
func (*K8sClient) DeleteAllOf ¶
func (m *K8sClient) DeleteAllOf(arg0 context.Context, arg1 client.Object, arg2 ...client.DeleteAllOfOption) error
DeleteAllOf mocks base method.
func (*K8sClient) EXPECT ¶
func (m *K8sClient) EXPECT() *K8sClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*K8sClient) Get ¶
func (m *K8sClient) Get(arg0 context.Context, arg1 types.NamespacedName, arg2 client.Object, arg3 ...client.GetOption) error
Get mocks base method.
func (*K8sClient) GroupVersionKindFor ¶
GroupVersionKindFor mocks base method.
func (*K8sClient) IsObjectNamespaced ¶
IsObjectNamespaced mocks base method.
func (*K8sClient) List ¶
func (m *K8sClient) List(arg0 context.Context, arg1 client.ObjectList, arg2 ...client.ListOption) error
List mocks base method.
func (*K8sClient) Patch ¶
func (m *K8sClient) Patch(arg0 context.Context, arg1 client.Object, arg2 client.Patch, arg3 ...client.PatchOption) error
Patch mocks base method.
func (*K8sClient) RESTMapper ¶
func (m *K8sClient) RESTMapper() meta.RESTMapper
RESTMapper mocks base method.
func (*K8sClient) Status ¶
func (m *K8sClient) Status() client.SubResourceWriter
Status mocks base method.
func (*K8sClient) SubResource ¶
func (m *K8sClient) SubResource(arg0 string) client.SubResourceClient
SubResource mocks base method.
type K8sClientMockRecorder ¶
type K8sClientMockRecorder struct {
// contains filtered or unexported fields
}
K8sClientMockRecorder is the mock recorder for K8sClient.
func (*K8sClientMockRecorder) Create ¶
func (mr *K8sClientMockRecorder) Create(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*K8sClientMockRecorder) Delete ¶
func (mr *K8sClientMockRecorder) Delete(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*K8sClientMockRecorder) DeleteAllOf ¶
func (mr *K8sClientMockRecorder) DeleteAllOf(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
DeleteAllOf indicates an expected call of DeleteAllOf.
func (*K8sClientMockRecorder) Get ¶
func (mr *K8sClientMockRecorder) Get(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*K8sClientMockRecorder) GroupVersionKindFor ¶
func (mr *K8sClientMockRecorder) GroupVersionKindFor(arg0 interface{}) *gomock.Call
GroupVersionKindFor indicates an expected call of GroupVersionKindFor.
func (*K8sClientMockRecorder) IsObjectNamespaced ¶
func (mr *K8sClientMockRecorder) IsObjectNamespaced(arg0 interface{}) *gomock.Call
IsObjectNamespaced indicates an expected call of IsObjectNamespaced.
func (*K8sClientMockRecorder) List ¶
func (mr *K8sClientMockRecorder) List(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
List indicates an expected call of List.
func (*K8sClientMockRecorder) Patch ¶
func (mr *K8sClientMockRecorder) Patch(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
Patch indicates an expected call of Patch.
func (*K8sClientMockRecorder) RESTMapper ¶
func (mr *K8sClientMockRecorder) RESTMapper() *gomock.Call
RESTMapper indicates an expected call of RESTMapper.
func (*K8sClientMockRecorder) Scheme ¶
func (mr *K8sClientMockRecorder) Scheme() *gomock.Call
Scheme indicates an expected call of Scheme.
func (*K8sClientMockRecorder) Status ¶
func (mr *K8sClientMockRecorder) Status() *gomock.Call
Status indicates an expected call of Status.
func (*K8sClientMockRecorder) SubResource ¶
func (mr *K8sClientMockRecorder) SubResource(arg0 interface{}) *gomock.Call
SubResource indicates an expected call of SubResource.
func (*K8sClientMockRecorder) Update ¶
func (mr *K8sClientMockRecorder) Update(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
Update indicates an expected call of Update.
type K8sStatus ¶
type K8sStatus struct {
// contains filtered or unexported fields
}
K8sStatus is a mock of SubResourceWriter interface.
func NewK8sStatus ¶
func NewK8sStatus(ctrl *gomock.Controller) *K8sStatus
NewK8sStatus creates a new mock instance.
func (*K8sStatus) Create ¶
func (m *K8sStatus) Create(arg0 context.Context, arg1, arg2 client.Object, arg3 ...client.SubResourceCreateOption) error
Create mocks base method.
func (*K8sStatus) EXPECT ¶
func (m *K8sStatus) EXPECT() *K8sStatusMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type K8sStatusMockRecorder ¶
type K8sStatusMockRecorder struct {
// contains filtered or unexported fields
}
K8sStatusMockRecorder is the mock recorder for K8sStatus.
func (*K8sStatusMockRecorder) Create ¶
func (mr *K8sStatusMockRecorder) Create(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*K8sStatusMockRecorder) Patch ¶
func (mr *K8sStatusMockRecorder) Patch(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
Patch indicates an expected call of Patch.
func (*K8sStatusMockRecorder) Update ¶
func (mr *K8sStatusMockRecorder) Update(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
Update indicates an expected call of Update.
type MockKubeFinder ¶
type MockKubeFinder struct {
// contains filtered or unexported fields
}
MockKubeFinder is a mock of KubeFinder interface.
func NewMockKubeFinder ¶
func NewMockKubeFinder(ctrl *gomock.Controller) *MockKubeFinder
NewMockKubeFinder creates a new mock instance.
func (*MockKubeFinder) EXPECT ¶
func (m *MockKubeFinder) EXPECT() *MockKubeFinderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockKubeFinder) ResolveOtterizeIdentityForService ¶
func (m *MockKubeFinder) ResolveOtterizeIdentityForService(ctx context.Context, service *v1.Service, now time.Time) (model.OtterizeServiceIdentity, bool, error)
ResolveOtterizeIdentityForService mocks base method.
type MockKubeFinderMockRecorder ¶
type MockKubeFinderMockRecorder struct {
// contains filtered or unexported fields
}
MockKubeFinderMockRecorder is the mock recorder for MockKubeFinder.
func (*MockKubeFinderMockRecorder) ResolveOtterizeIdentityForService ¶
func (mr *MockKubeFinderMockRecorder) ResolveOtterizeIdentityForService(ctx, service, now interface{}) *gomock.Call
ResolveOtterizeIdentityForService indicates an expected call of ResolveOtterizeIdentityForService.