Documentation
¶
Overview ¶
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock_rest is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Index ¶
- type FailingUpdateClient
- func (f *FailingUpdateClient) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error
- func (f *FailingUpdateClient) Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error
- func (f *FailingUpdateClient) DeleteAllOf(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption) error
- func (f *FailingUpdateClient) Get(ctx context.Context, key client.ObjectKey, obj client.Object, ...) error
- func (f *FailingUpdateClient) GroupVersionKindFor(obj runtime.Object) (schema.GroupVersionKind, error)
- func (f *FailingUpdateClient) IsObjectNamespaced(obj runtime.Object) (bool, error)
- func (f *FailingUpdateClient) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
- func (f *FailingUpdateClient) Patch(ctx context.Context, obj client.Object, patch client.Patch, ...) error
- func (f *FailingUpdateClient) RESTMapper() meta.RESTMapper
- func (f *FailingUpdateClient) Status() client.StatusWriter
- func (f *FailingUpdateClient) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error
- type MockDynamicMulticlusterFactory
- type MockDynamicMulticlusterFactoryMockRecorder
- type MockDynamicWatcherFactory
- type MockDynamicWatcherFactoryMockRecorder
- type MockInfrahubClient
- func (m *MockInfrahubClient) DownloadArtifact(apiURL, artifactID, targetBranche, targetDate, token string) (io.Reader, error)
- func (m *MockInfrahubClient) EXPECT() *MockInfrahubClientMockRecorder
- func (m *MockInfrahubClient) Login(apiURL, username, password string) (string, error)
- func (m *MockInfrahubClient) RunQuery(queryName, apiURL, artifactName, targetBranche, targetDate, token string) (*[]domain.Artifact, error)
- type MockInfrahubClientMockRecorder
- func (mr *MockInfrahubClientMockRecorder) DownloadArtifact(apiURL, artifactID, targetBranche, targetDate, token any) *gomock.Call
- func (mr *MockInfrahubClientMockRecorder) Login(apiURL, username, password any) *gomock.Call
- func (mr *MockInfrahubClientMockRecorder) RunQuery(queryName, apiURL, artifactName, targetBranche, targetDate, token any) *gomock.Call
- type MockListMetaAccessor
- type MockListMetaAccessorMockRecorder
- type MockMetadataAccessor
- func (m *MockMetadataAccessor) APIVersion(obj runtime.Object) (string, error)
- func (m *MockMetadataAccessor) Annotations(obj runtime.Object) (map[string]string, error)
- func (m *MockMetadataAccessor) Continue(obj runtime.Object) (string, error)
- func (m *MockMetadataAccessor) EXPECT() *MockMetadataAccessorMockRecorder
- func (m *MockMetadataAccessor) GenerateName(obj runtime.Object) (string, error)
- func (m *MockMetadataAccessor) Kind(obj runtime.Object) (string, error)
- func (m *MockMetadataAccessor) Labels(obj runtime.Object) (map[string]string, error)
- func (m *MockMetadataAccessor) Name(obj runtime.Object) (string, error)
- func (m *MockMetadataAccessor) Namespace(obj runtime.Object) (string, error)
- func (m *MockMetadataAccessor) ResourceVersion(obj runtime.Object) (string, error)
- func (m *MockMetadataAccessor) SelfLink(obj runtime.Object) (string, error)
- func (m *MockMetadataAccessor) SetAPIVersion(obj runtime.Object, version string) error
- func (m *MockMetadataAccessor) SetAnnotations(obj runtime.Object, annotations map[string]string) error
- func (m *MockMetadataAccessor) SetContinue(obj runtime.Object, c string) error
- func (m *MockMetadataAccessor) SetGenerateName(obj runtime.Object, name string) error
- func (m *MockMetadataAccessor) SetKind(obj runtime.Object, kind string) error
- func (m *MockMetadataAccessor) SetLabels(obj runtime.Object, labels map[string]string) error
- func (m *MockMetadataAccessor) SetName(obj runtime.Object, name string) error
- func (m *MockMetadataAccessor) SetNamespace(obj runtime.Object, namespace string) error
- func (m *MockMetadataAccessor) SetResourceVersion(obj runtime.Object, version string) error
- func (m *MockMetadataAccessor) SetSelfLink(obj runtime.Object, selfLink string) error
- func (m *MockMetadataAccessor) SetUID(obj runtime.Object, uid types.UID) error
- func (m *MockMetadataAccessor) UID(obj runtime.Object) (types.UID, error)
- type MockMetadataAccessorMockRecorder
- func (mr *MockMetadataAccessorMockRecorder) APIVersion(obj any) *gomock.Call
- func (mr *MockMetadataAccessorMockRecorder) Annotations(obj any) *gomock.Call
- func (mr *MockMetadataAccessorMockRecorder) Continue(obj any) *gomock.Call
- func (mr *MockMetadataAccessorMockRecorder) GenerateName(obj any) *gomock.Call
- func (mr *MockMetadataAccessorMockRecorder) Kind(obj any) *gomock.Call
- func (mr *MockMetadataAccessorMockRecorder) Labels(obj any) *gomock.Call
- func (mr *MockMetadataAccessorMockRecorder) Name(obj any) *gomock.Call
- func (mr *MockMetadataAccessorMockRecorder) Namespace(obj any) *gomock.Call
- func (mr *MockMetadataAccessorMockRecorder) ResourceVersion(obj any) *gomock.Call
- func (mr *MockMetadataAccessorMockRecorder) SelfLink(obj any) *gomock.Call
- func (mr *MockMetadataAccessorMockRecorder) SetAPIVersion(obj, version any) *gomock.Call
- func (mr *MockMetadataAccessorMockRecorder) SetAnnotations(obj, annotations any) *gomock.Call
- func (mr *MockMetadataAccessorMockRecorder) SetContinue(obj, c any) *gomock.Call
- func (mr *MockMetadataAccessorMockRecorder) SetGenerateName(obj, name any) *gomock.Call
- func (mr *MockMetadataAccessorMockRecorder) SetKind(obj, kind any) *gomock.Call
- func (mr *MockMetadataAccessorMockRecorder) SetLabels(obj, labels any) *gomock.Call
- func (mr *MockMetadataAccessorMockRecorder) SetName(obj, name any) *gomock.Call
- func (mr *MockMetadataAccessorMockRecorder) SetNamespace(obj, namespace any) *gomock.Call
- func (mr *MockMetadataAccessorMockRecorder) SetResourceVersion(obj, version any) *gomock.Call
- func (mr *MockMetadataAccessorMockRecorder) SetSelfLink(obj, selfLink any) *gomock.Call
- func (mr *MockMetadataAccessorMockRecorder) SetUID(obj, uid any) *gomock.Call
- func (mr *MockMetadataAccessorMockRecorder) UID(obj any) *gomock.Call
- type MockRESTMapper
- func (m *MockRESTMapper) EXPECT() *MockRESTMapperMockRecorder
- func (m *MockRESTMapper) KindFor(resource schema.GroupVersionResource) (schema.GroupVersionKind, error)
- func (m *MockRESTMapper) KindsFor(resource schema.GroupVersionResource) ([]schema.GroupVersionKind, error)
- func (m *MockRESTMapper) RESTMapping(gk schema.GroupKind, versions ...string) (*meta.RESTMapping, error)
- func (m *MockRESTMapper) RESTMappings(gk schema.GroupKind, versions ...string) ([]*meta.RESTMapping, error)
- func (m *MockRESTMapper) ResourceFor(input schema.GroupVersionResource) (schema.GroupVersionResource, error)
- func (m *MockRESTMapper) ResourceSingularizer(resource string) (string, error)
- func (m *MockRESTMapper) ResourcesFor(input schema.GroupVersionResource) ([]schema.GroupVersionResource, error)
- type MockRESTMapperMockRecorder
- func (mr *MockRESTMapperMockRecorder) KindFor(resource any) *gomock.Call
- func (mr *MockRESTMapperMockRecorder) KindsFor(resource any) *gomock.Call
- func (mr *MockRESTMapperMockRecorder) RESTMapping(gk any, versions ...any) *gomock.Call
- func (mr *MockRESTMapperMockRecorder) RESTMappings(gk any, versions ...any) *gomock.Call
- func (mr *MockRESTMapperMockRecorder) ResourceFor(input any) *gomock.Call
- func (mr *MockRESTMapperMockRecorder) ResourceSingularizer(resource any) *gomock.Call
- func (mr *MockRESTMapperMockRecorder) ResourcesFor(input any) *gomock.Call
- type MockRESTScope
- type MockRESTScopeMockRecorder
- type MockResettableRESTMapper
- func (m *MockResettableRESTMapper) EXPECT() *MockResettableRESTMapperMockRecorder
- func (m *MockResettableRESTMapper) KindFor(resource schema.GroupVersionResource) (schema.GroupVersionKind, error)
- func (m *MockResettableRESTMapper) KindsFor(resource schema.GroupVersionResource) ([]schema.GroupVersionKind, error)
- func (m *MockResettableRESTMapper) RESTMapping(gk schema.GroupKind, versions ...string) (*meta.RESTMapping, error)
- func (m *MockResettableRESTMapper) RESTMappings(gk schema.GroupKind, versions ...string) ([]*meta.RESTMapping, error)
- func (m *MockResettableRESTMapper) Reset()
- func (m *MockResettableRESTMapper) ResourceFor(input schema.GroupVersionResource) (schema.GroupVersionResource, error)
- func (m *MockResettableRESTMapper) ResourceSingularizer(resource string) (string, error)
- func (m *MockResettableRESTMapper) ResourcesFor(input schema.GroupVersionResource) ([]schema.GroupVersionResource, error)
- type MockResettableRESTMapperMockRecorder
- func (mr *MockResettableRESTMapperMockRecorder) KindFor(resource any) *gomock.Call
- func (mr *MockResettableRESTMapperMockRecorder) KindsFor(resource any) *gomock.Call
- func (mr *MockResettableRESTMapperMockRecorder) RESTMapping(gk any, versions ...any) *gomock.Call
- func (mr *MockResettableRESTMapperMockRecorder) RESTMappings(gk any, versions ...any) *gomock.Call
- func (mr *MockResettableRESTMapperMockRecorder) Reset() *gomock.Call
- func (mr *MockResettableRESTMapperMockRecorder) ResourceFor(input any) *gomock.Call
- func (mr *MockResettableRESTMapperMockRecorder) ResourceSingularizer(resource any) *gomock.Call
- func (mr *MockResettableRESTMapperMockRecorder) ResourcesFor(input any) *gomock.Call
- type MockSubResourceWriter
- func (m *MockSubResourceWriter) Create(ctx context.Context, obj, subResource client.Object, ...) error
- func (m *MockSubResourceWriter) EXPECT() *MockSubResourceWriterMockRecorder
- func (m *MockSubResourceWriter) Patch(ctx context.Context, obj client.Object, patch client.Patch, ...) error
- func (m *MockSubResourceWriter) Update(ctx context.Context, obj client.Object, opts ...client.SubResourceUpdateOption) error
- type MockSubResourceWriterMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FailingUpdateClient ¶
type FailingUpdateClient struct {
client.Client
UpdateErrMsg string
RestMapper meta.RESTMapper
FailingMethod string // Holds the name of the function that needs to fail
}
func NewFakeFailingUpdateClient ¶
func NewFakeFailingUpdateClient(client client.Client, errorMsg string, restMapper MockRESTMapper) *FailingUpdateClient
NewFakeFailingUpdateClient ensures that all fields are initialized properly
func (*FailingUpdateClient) Create ¶
func (f *FailingUpdateClient) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error
func (*FailingUpdateClient) Delete ¶
func (f *FailingUpdateClient) Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error
func (*FailingUpdateClient) DeleteAllOf ¶
func (f *FailingUpdateClient) DeleteAllOf(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption) error
func (*FailingUpdateClient) GroupVersionKindFor ¶
func (f *FailingUpdateClient) GroupVersionKindFor(obj runtime.Object) (schema.GroupVersionKind, error)
Implement GroupVersionKindFor
func (*FailingUpdateClient) IsObjectNamespaced ¶
func (f *FailingUpdateClient) IsObjectNamespaced(obj runtime.Object) (bool, error)
func (*FailingUpdateClient) List ¶
func (f *FailingUpdateClient) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
func (*FailingUpdateClient) Patch ¶
func (f *FailingUpdateClient) Patch(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.PatchOption) error
func (*FailingUpdateClient) RESTMapper ¶
func (f *FailingUpdateClient) RESTMapper() meta.RESTMapper
func (*FailingUpdateClient) Status ¶
func (f *FailingUpdateClient) Status() client.StatusWriter
func (*FailingUpdateClient) Update ¶
func (f *FailingUpdateClient) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error
type MockDynamicMulticlusterFactory ¶
type MockDynamicMulticlusterFactory struct {
// contains filtered or unexported fields
}
MockDynamicMulticlusterFactory is a mock of DynamicMulticlusterFactory interface.
func NewMockDynamicMulticlusterFactory ¶
func NewMockDynamicMulticlusterFactory(ctrl *gomock.Controller) *MockDynamicMulticlusterFactory
NewMockDynamicMulticlusterFactory creates a new mock instance.
func (*MockDynamicMulticlusterFactory) EXPECT ¶
func (m *MockDynamicMulticlusterFactory) EXPECT() *MockDynamicMulticlusterFactoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockDynamicMulticlusterFactoryMockRecorder ¶
type MockDynamicMulticlusterFactoryMockRecorder struct {
// contains filtered or unexported fields
}
MockDynamicMulticlusterFactoryMockRecorder is the mock recorder for MockDynamicMulticlusterFactory.
func (*MockDynamicMulticlusterFactoryMockRecorder) GetCachedClientFor ¶
func (mr *MockDynamicMulticlusterFactoryMockRecorder) GetCachedClientFor(ctx, serverURL, k8sClient any) *gomock.Call
GetCachedClientFor indicates an expected call of GetCachedClientFor.
type MockDynamicWatcherFactory ¶
type MockDynamicWatcherFactory struct {
// contains filtered or unexported fields
}
MockDynamicWatcherFactory is a mock of DynamicWatcherFactory interface.
func NewMockDynamicWatcherFactory ¶
func NewMockDynamicWatcherFactory(ctrl *gomock.Controller) *MockDynamicWatcherFactory
NewMockDynamicWatcherFactory creates a new mock instance.
func (*MockDynamicWatcherFactory) EXPECT ¶
func (m *MockDynamicWatcherFactory) EXPECT() *MockDynamicWatcherFactoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDynamicWatcherFactory) StartWatchingGVRs ¶
func (m *MockDynamicWatcherFactory) StartWatchingGVRs(dynamicClient dynamic.Interface, gvrs []schema.GroupVersionResource, onEvent domain.ResourceCallback)
StartWatchingGVRs mocks base method.
type MockDynamicWatcherFactoryMockRecorder ¶
type MockDynamicWatcherFactoryMockRecorder struct {
// contains filtered or unexported fields
}
MockDynamicWatcherFactoryMockRecorder is the mock recorder for MockDynamicWatcherFactory.
func (*MockDynamicWatcherFactoryMockRecorder) StartWatchingGVRs ¶
func (mr *MockDynamicWatcherFactoryMockRecorder) StartWatchingGVRs(dynamicClient, gvrs, onEvent any) *gomock.Call
StartWatchingGVRs indicates an expected call of StartWatchingGVRs.
type MockInfrahubClient ¶
type MockInfrahubClient struct {
// contains filtered or unexported fields
}
MockInfrahubClient is a mock of InfrahubClient interface.
func NewMockInfrahubClient ¶
func NewMockInfrahubClient(ctrl *gomock.Controller) *MockInfrahubClient
NewMockInfrahubClient creates a new mock instance.
func (*MockInfrahubClient) DownloadArtifact ¶
func (m *MockInfrahubClient) DownloadArtifact(apiURL, artifactID, targetBranche, targetDate, token string) (io.Reader, error)
DownloadArtifact mocks base method.
func (*MockInfrahubClient) EXPECT ¶
func (m *MockInfrahubClient) EXPECT() *MockInfrahubClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockInfrahubClientMockRecorder ¶
type MockInfrahubClientMockRecorder struct {
// contains filtered or unexported fields
}
MockInfrahubClientMockRecorder is the mock recorder for MockInfrahubClient.
func (*MockInfrahubClientMockRecorder) DownloadArtifact ¶
func (mr *MockInfrahubClientMockRecorder) DownloadArtifact(apiURL, artifactID, targetBranche, targetDate, token any) *gomock.Call
DownloadArtifact indicates an expected call of DownloadArtifact.
type MockListMetaAccessor ¶
type MockListMetaAccessor struct {
// contains filtered or unexported fields
}
MockListMetaAccessor is a mock of ListMetaAccessor interface.
func NewMockListMetaAccessor ¶
func NewMockListMetaAccessor(ctrl *gomock.Controller) *MockListMetaAccessor
NewMockListMetaAccessor creates a new mock instance.
func (*MockListMetaAccessor) EXPECT ¶
func (m *MockListMetaAccessor) EXPECT() *MockListMetaAccessorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockListMetaAccessor) GetListMeta ¶
func (m *MockListMetaAccessor) GetListMeta() meta.List
GetListMeta mocks base method.
type MockListMetaAccessorMockRecorder ¶
type MockListMetaAccessorMockRecorder struct {
// contains filtered or unexported fields
}
MockListMetaAccessorMockRecorder is the mock recorder for MockListMetaAccessor.
func (*MockListMetaAccessorMockRecorder) GetListMeta ¶
func (mr *MockListMetaAccessorMockRecorder) GetListMeta() *gomock.Call
GetListMeta indicates an expected call of GetListMeta.
type MockMetadataAccessor ¶
type MockMetadataAccessor struct {
// contains filtered or unexported fields
}
MockMetadataAccessor is a mock of MetadataAccessor interface.
func NewMockMetadataAccessor ¶
func NewMockMetadataAccessor(ctrl *gomock.Controller) *MockMetadataAccessor
NewMockMetadataAccessor creates a new mock instance.
func (*MockMetadataAccessor) APIVersion ¶
func (m *MockMetadataAccessor) APIVersion(obj runtime.Object) (string, error)
APIVersion mocks base method.
func (*MockMetadataAccessor) Annotations ¶
Annotations mocks base method.
func (*MockMetadataAccessor) Continue ¶
func (m *MockMetadataAccessor) Continue(obj runtime.Object) (string, error)
Continue mocks base method.
func (*MockMetadataAccessor) EXPECT ¶
func (m *MockMetadataAccessor) EXPECT() *MockMetadataAccessorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMetadataAccessor) GenerateName ¶
func (m *MockMetadataAccessor) GenerateName(obj runtime.Object) (string, error)
GenerateName mocks base method.
func (*MockMetadataAccessor) Kind ¶
func (m *MockMetadataAccessor) Kind(obj runtime.Object) (string, error)
Kind mocks base method.
func (*MockMetadataAccessor) Name ¶
func (m *MockMetadataAccessor) Name(obj runtime.Object) (string, error)
Name mocks base method.
func (*MockMetadataAccessor) Namespace ¶
func (m *MockMetadataAccessor) Namespace(obj runtime.Object) (string, error)
Namespace mocks base method.
func (*MockMetadataAccessor) ResourceVersion ¶
func (m *MockMetadataAccessor) ResourceVersion(obj runtime.Object) (string, error)
ResourceVersion mocks base method.
func (*MockMetadataAccessor) SelfLink ¶
func (m *MockMetadataAccessor) SelfLink(obj runtime.Object) (string, error)
SelfLink mocks base method.
func (*MockMetadataAccessor) SetAPIVersion ¶
func (m *MockMetadataAccessor) SetAPIVersion(obj runtime.Object, version string) error
SetAPIVersion mocks base method.
func (*MockMetadataAccessor) SetAnnotations ¶
func (m *MockMetadataAccessor) SetAnnotations(obj runtime.Object, annotations map[string]string) error
SetAnnotations mocks base method.
func (*MockMetadataAccessor) SetContinue ¶
func (m *MockMetadataAccessor) SetContinue(obj runtime.Object, c string) error
SetContinue mocks base method.
func (*MockMetadataAccessor) SetGenerateName ¶
func (m *MockMetadataAccessor) SetGenerateName(obj runtime.Object, name string) error
SetGenerateName mocks base method.
func (*MockMetadataAccessor) SetKind ¶
func (m *MockMetadataAccessor) SetKind(obj runtime.Object, kind string) error
SetKind mocks base method.
func (*MockMetadataAccessor) SetName ¶
func (m *MockMetadataAccessor) SetName(obj runtime.Object, name string) error
SetName mocks base method.
func (*MockMetadataAccessor) SetNamespace ¶
func (m *MockMetadataAccessor) SetNamespace(obj runtime.Object, namespace string) error
SetNamespace mocks base method.
func (*MockMetadataAccessor) SetResourceVersion ¶
func (m *MockMetadataAccessor) SetResourceVersion(obj runtime.Object, version string) error
SetResourceVersion mocks base method.
func (*MockMetadataAccessor) SetSelfLink ¶
func (m *MockMetadataAccessor) SetSelfLink(obj runtime.Object, selfLink string) error
SetSelfLink mocks base method.
type MockMetadataAccessorMockRecorder ¶
type MockMetadataAccessorMockRecorder struct {
// contains filtered or unexported fields
}
MockMetadataAccessorMockRecorder is the mock recorder for MockMetadataAccessor.
func (*MockMetadataAccessorMockRecorder) APIVersion ¶
func (mr *MockMetadataAccessorMockRecorder) APIVersion(obj any) *gomock.Call
APIVersion indicates an expected call of APIVersion.
func (*MockMetadataAccessorMockRecorder) Annotations ¶
func (mr *MockMetadataAccessorMockRecorder) Annotations(obj any) *gomock.Call
Annotations indicates an expected call of Annotations.
func (*MockMetadataAccessorMockRecorder) Continue ¶
func (mr *MockMetadataAccessorMockRecorder) Continue(obj any) *gomock.Call
Continue indicates an expected call of Continue.
func (*MockMetadataAccessorMockRecorder) GenerateName ¶
func (mr *MockMetadataAccessorMockRecorder) GenerateName(obj any) *gomock.Call
GenerateName indicates an expected call of GenerateName.
func (*MockMetadataAccessorMockRecorder) Kind ¶
func (mr *MockMetadataAccessorMockRecorder) Kind(obj any) *gomock.Call
Kind indicates an expected call of Kind.
func (*MockMetadataAccessorMockRecorder) Labels ¶
func (mr *MockMetadataAccessorMockRecorder) Labels(obj any) *gomock.Call
Labels indicates an expected call of Labels.
func (*MockMetadataAccessorMockRecorder) Name ¶
func (mr *MockMetadataAccessorMockRecorder) Name(obj any) *gomock.Call
Name indicates an expected call of Name.
func (*MockMetadataAccessorMockRecorder) Namespace ¶
func (mr *MockMetadataAccessorMockRecorder) Namespace(obj any) *gomock.Call
Namespace indicates an expected call of Namespace.
func (*MockMetadataAccessorMockRecorder) ResourceVersion ¶
func (mr *MockMetadataAccessorMockRecorder) ResourceVersion(obj any) *gomock.Call
ResourceVersion indicates an expected call of ResourceVersion.
func (*MockMetadataAccessorMockRecorder) SelfLink ¶
func (mr *MockMetadataAccessorMockRecorder) SelfLink(obj any) *gomock.Call
SelfLink indicates an expected call of SelfLink.
func (*MockMetadataAccessorMockRecorder) SetAPIVersion ¶
func (mr *MockMetadataAccessorMockRecorder) SetAPIVersion(obj, version any) *gomock.Call
SetAPIVersion indicates an expected call of SetAPIVersion.
func (*MockMetadataAccessorMockRecorder) SetAnnotations ¶
func (mr *MockMetadataAccessorMockRecorder) SetAnnotations(obj, annotations any) *gomock.Call
SetAnnotations indicates an expected call of SetAnnotations.
func (*MockMetadataAccessorMockRecorder) SetContinue ¶
func (mr *MockMetadataAccessorMockRecorder) SetContinue(obj, c any) *gomock.Call
SetContinue indicates an expected call of SetContinue.
func (*MockMetadataAccessorMockRecorder) SetGenerateName ¶
func (mr *MockMetadataAccessorMockRecorder) SetGenerateName(obj, name any) *gomock.Call
SetGenerateName indicates an expected call of SetGenerateName.
func (*MockMetadataAccessorMockRecorder) SetKind ¶
func (mr *MockMetadataAccessorMockRecorder) SetKind(obj, kind any) *gomock.Call
SetKind indicates an expected call of SetKind.
func (*MockMetadataAccessorMockRecorder) SetLabels ¶
func (mr *MockMetadataAccessorMockRecorder) SetLabels(obj, labels any) *gomock.Call
SetLabels indicates an expected call of SetLabels.
func (*MockMetadataAccessorMockRecorder) SetName ¶
func (mr *MockMetadataAccessorMockRecorder) SetName(obj, name any) *gomock.Call
SetName indicates an expected call of SetName.
func (*MockMetadataAccessorMockRecorder) SetNamespace ¶
func (mr *MockMetadataAccessorMockRecorder) SetNamespace(obj, namespace any) *gomock.Call
SetNamespace indicates an expected call of SetNamespace.
func (*MockMetadataAccessorMockRecorder) SetResourceVersion ¶
func (mr *MockMetadataAccessorMockRecorder) SetResourceVersion(obj, version any) *gomock.Call
SetResourceVersion indicates an expected call of SetResourceVersion.
func (*MockMetadataAccessorMockRecorder) SetSelfLink ¶
func (mr *MockMetadataAccessorMockRecorder) SetSelfLink(obj, selfLink any) *gomock.Call
SetSelfLink indicates an expected call of SetSelfLink.
type MockRESTMapper ¶
type MockRESTMapper struct {
// contains filtered or unexported fields
}
MockRESTMapper is a mock of RESTMapper interface.
func NewMockRESTMapper ¶
func NewMockRESTMapper(ctrl *gomock.Controller) *MockRESTMapper
NewMockRESTMapper creates a new mock instance.
func (*MockRESTMapper) EXPECT ¶
func (m *MockRESTMapper) EXPECT() *MockRESTMapperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRESTMapper) KindFor ¶
func (m *MockRESTMapper) KindFor(resource schema.GroupVersionResource) (schema.GroupVersionKind, error)
KindFor mocks base method.
func (*MockRESTMapper) KindsFor ¶
func (m *MockRESTMapper) KindsFor(resource schema.GroupVersionResource) ([]schema.GroupVersionKind, error)
KindsFor mocks base method.
func (*MockRESTMapper) RESTMapping ¶
func (m *MockRESTMapper) RESTMapping(gk schema.GroupKind, versions ...string) (*meta.RESTMapping, error)
RESTMapping mocks base method.
func (*MockRESTMapper) RESTMappings ¶
func (m *MockRESTMapper) RESTMappings(gk schema.GroupKind, versions ...string) ([]*meta.RESTMapping, error)
RESTMappings mocks base method.
func (*MockRESTMapper) ResourceFor ¶
func (m *MockRESTMapper) ResourceFor(input schema.GroupVersionResource) (schema.GroupVersionResource, error)
ResourceFor mocks base method.
func (*MockRESTMapper) ResourceSingularizer ¶
func (m *MockRESTMapper) ResourceSingularizer(resource string) (string, error)
ResourceSingularizer mocks base method.
func (*MockRESTMapper) ResourcesFor ¶
func (m *MockRESTMapper) ResourcesFor(input schema.GroupVersionResource) ([]schema.GroupVersionResource, error)
ResourcesFor mocks base method.
type MockRESTMapperMockRecorder ¶
type MockRESTMapperMockRecorder struct {
// contains filtered or unexported fields
}
MockRESTMapperMockRecorder is the mock recorder for MockRESTMapper.
func (*MockRESTMapperMockRecorder) KindFor ¶
func (mr *MockRESTMapperMockRecorder) KindFor(resource any) *gomock.Call
KindFor indicates an expected call of KindFor.
func (*MockRESTMapperMockRecorder) KindsFor ¶
func (mr *MockRESTMapperMockRecorder) KindsFor(resource any) *gomock.Call
KindsFor indicates an expected call of KindsFor.
func (*MockRESTMapperMockRecorder) RESTMapping ¶
func (mr *MockRESTMapperMockRecorder) RESTMapping(gk any, versions ...any) *gomock.Call
RESTMapping indicates an expected call of RESTMapping.
func (*MockRESTMapperMockRecorder) RESTMappings ¶
func (mr *MockRESTMapperMockRecorder) RESTMappings(gk any, versions ...any) *gomock.Call
RESTMappings indicates an expected call of RESTMappings.
func (*MockRESTMapperMockRecorder) ResourceFor ¶
func (mr *MockRESTMapperMockRecorder) ResourceFor(input any) *gomock.Call
ResourceFor indicates an expected call of ResourceFor.
func (*MockRESTMapperMockRecorder) ResourceSingularizer ¶
func (mr *MockRESTMapperMockRecorder) ResourceSingularizer(resource any) *gomock.Call
ResourceSingularizer indicates an expected call of ResourceSingularizer.
func (*MockRESTMapperMockRecorder) ResourcesFor ¶
func (mr *MockRESTMapperMockRecorder) ResourcesFor(input any) *gomock.Call
ResourcesFor indicates an expected call of ResourcesFor.
type MockRESTScope ¶
type MockRESTScope struct {
// contains filtered or unexported fields
}
MockRESTScope is a mock of RESTScope interface.
func NewMockRESTScope ¶
func NewMockRESTScope(ctrl *gomock.Controller) *MockRESTScope
NewMockRESTScope creates a new mock instance.
func (*MockRESTScope) EXPECT ¶
func (m *MockRESTScope) EXPECT() *MockRESTScopeMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRESTScope) Name ¶
func (m *MockRESTScope) Name() meta.RESTScopeName
Name mocks base method.
type MockRESTScopeMockRecorder ¶
type MockRESTScopeMockRecorder struct {
// contains filtered or unexported fields
}
MockRESTScopeMockRecorder is the mock recorder for MockRESTScope.
func (*MockRESTScopeMockRecorder) Name ¶
func (mr *MockRESTScopeMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
type MockResettableRESTMapper ¶
type MockResettableRESTMapper struct {
// contains filtered or unexported fields
}
MockResettableRESTMapper is a mock of ResettableRESTMapper interface.
func NewMockResettableRESTMapper ¶
func NewMockResettableRESTMapper(ctrl *gomock.Controller) *MockResettableRESTMapper
NewMockResettableRESTMapper creates a new mock instance.
func (*MockResettableRESTMapper) EXPECT ¶
func (m *MockResettableRESTMapper) EXPECT() *MockResettableRESTMapperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockResettableRESTMapper) KindFor ¶
func (m *MockResettableRESTMapper) KindFor(resource schema.GroupVersionResource) (schema.GroupVersionKind, error)
KindFor mocks base method.
func (*MockResettableRESTMapper) KindsFor ¶
func (m *MockResettableRESTMapper) KindsFor(resource schema.GroupVersionResource) ([]schema.GroupVersionKind, error)
KindsFor mocks base method.
func (*MockResettableRESTMapper) RESTMapping ¶
func (m *MockResettableRESTMapper) RESTMapping(gk schema.GroupKind, versions ...string) (*meta.RESTMapping, error)
RESTMapping mocks base method.
func (*MockResettableRESTMapper) RESTMappings ¶
func (m *MockResettableRESTMapper) RESTMappings(gk schema.GroupKind, versions ...string) ([]*meta.RESTMapping, error)
RESTMappings mocks base method.
func (*MockResettableRESTMapper) Reset ¶
func (m *MockResettableRESTMapper) Reset()
Reset mocks base method.
func (*MockResettableRESTMapper) ResourceFor ¶
func (m *MockResettableRESTMapper) ResourceFor(input schema.GroupVersionResource) (schema.GroupVersionResource, error)
ResourceFor mocks base method.
func (*MockResettableRESTMapper) ResourceSingularizer ¶
func (m *MockResettableRESTMapper) ResourceSingularizer(resource string) (string, error)
ResourceSingularizer mocks base method.
func (*MockResettableRESTMapper) ResourcesFor ¶
func (m *MockResettableRESTMapper) ResourcesFor(input schema.GroupVersionResource) ([]schema.GroupVersionResource, error)
ResourcesFor mocks base method.
type MockResettableRESTMapperMockRecorder ¶
type MockResettableRESTMapperMockRecorder struct {
// contains filtered or unexported fields
}
MockResettableRESTMapperMockRecorder is the mock recorder for MockResettableRESTMapper.
func (*MockResettableRESTMapperMockRecorder) KindFor ¶
func (mr *MockResettableRESTMapperMockRecorder) KindFor(resource any) *gomock.Call
KindFor indicates an expected call of KindFor.
func (*MockResettableRESTMapperMockRecorder) KindsFor ¶
func (mr *MockResettableRESTMapperMockRecorder) KindsFor(resource any) *gomock.Call
KindsFor indicates an expected call of KindsFor.
func (*MockResettableRESTMapperMockRecorder) RESTMapping ¶
func (mr *MockResettableRESTMapperMockRecorder) RESTMapping(gk any, versions ...any) *gomock.Call
RESTMapping indicates an expected call of RESTMapping.
func (*MockResettableRESTMapperMockRecorder) RESTMappings ¶
func (mr *MockResettableRESTMapperMockRecorder) RESTMappings(gk any, versions ...any) *gomock.Call
RESTMappings indicates an expected call of RESTMappings.
func (*MockResettableRESTMapperMockRecorder) Reset ¶
func (mr *MockResettableRESTMapperMockRecorder) Reset() *gomock.Call
Reset indicates an expected call of Reset.
func (*MockResettableRESTMapperMockRecorder) ResourceFor ¶
func (mr *MockResettableRESTMapperMockRecorder) ResourceFor(input any) *gomock.Call
ResourceFor indicates an expected call of ResourceFor.
func (*MockResettableRESTMapperMockRecorder) ResourceSingularizer ¶
func (mr *MockResettableRESTMapperMockRecorder) ResourceSingularizer(resource any) *gomock.Call
ResourceSingularizer indicates an expected call of ResourceSingularizer.
func (*MockResettableRESTMapperMockRecorder) ResourcesFor ¶
func (mr *MockResettableRESTMapperMockRecorder) ResourcesFor(input any) *gomock.Call
ResourcesFor indicates an expected call of ResourcesFor.
type MockSubResourceWriter ¶
type MockSubResourceWriter struct {
// contains filtered or unexported fields
}
MockSubResourceWriter is a mock of SubResourceWriter interface.
func NewMockSubResourceWriter ¶
func NewMockSubResourceWriter(ctrl *gomock.Controller) *MockSubResourceWriter
NewMockSubResourceWriter creates a new mock instance.
func (*MockSubResourceWriter) Create ¶
func (m *MockSubResourceWriter) Create(ctx context.Context, obj, subResource client.Object, opts ...client.SubResourceCreateOption) error
Create mocks base method.
func (*MockSubResourceWriter) EXPECT ¶
func (m *MockSubResourceWriter) EXPECT() *MockSubResourceWriterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSubResourceWriter) Patch ¶
func (m *MockSubResourceWriter) Patch(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.SubResourcePatchOption) error
Patch mocks base method.
func (*MockSubResourceWriter) Update ¶
func (m *MockSubResourceWriter) Update(ctx context.Context, obj client.Object, opts ...client.SubResourceUpdateOption) error
Update mocks base method.
type MockSubResourceWriterMockRecorder ¶
type MockSubResourceWriterMockRecorder struct {
// contains filtered or unexported fields
}
MockSubResourceWriterMockRecorder is the mock recorder for MockSubResourceWriter.
func (*MockSubResourceWriterMockRecorder) Create ¶
func (mr *MockSubResourceWriterMockRecorder) Create(ctx, obj, subResource any, opts ...any) *gomock.Call
Create indicates an expected call of Create.