Documentation ¶
Index ¶
- type Client
- func (_m *Client) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error
- func (_m *Client) Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error
- func (_m *Client) DeleteAllOf(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption) error
- func (_m *Client) Get(ctx context.Context, key types.NamespacedName, obj client.Object, ...) error
- func (_m *Client) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
- func (_m *Client) Patch(ctx context.Context, obj client.Object, patch client.Patch, ...) error
- func (_m *Client) RESTMapper() meta.RESTMapper
- func (_m *Client) Scheme() *runtime.Scheme
- func (_m *Client) Status() client.SubResourceWriter
- func (_m *Client) SubResource(subResource string) client.SubResourceClient
- func (_m *Client) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error
- type Object
- func (_m *Object) DeepCopyObject() runtime.Object
- func (_m *Object) GetAnnotations() map[string]string
- func (_m *Object) GetCreationTimestamp() v1.Time
- func (_m *Object) GetDeletionGracePeriodSeconds() *int64
- func (_m *Object) GetDeletionTimestamp() *v1.Time
- func (_m *Object) GetFinalizers() []string
- func (_m *Object) GetGenerateName() string
- func (_m *Object) GetGeneration() int64
- func (_m *Object) GetLabels() map[string]string
- func (_m *Object) GetManagedFields() []v1.ManagedFieldsEntry
- func (_m *Object) GetName() string
- func (_m *Object) GetNamespace() string
- func (_m *Object) GetObjectKind() schema.ObjectKind
- func (_m *Object) GetOwnerReferences() []v1.OwnerReference
- func (_m *Object) GetResourceVersion() string
- func (_m *Object) GetSelfLink() string
- func (_m *Object) GetUID() types.UID
- func (_m *Object) SetAnnotations(annotations map[string]string)
- func (_m *Object) SetCreationTimestamp(timestamp v1.Time)
- func (_m *Object) SetDeletionGracePeriodSeconds(_a0 *int64)
- func (_m *Object) SetDeletionTimestamp(timestamp *v1.Time)
- func (_m *Object) SetFinalizers(finalizers []string)
- func (_m *Object) SetGenerateName(name string)
- func (_m *Object) SetGeneration(generation int64)
- func (_m *Object) SetLabels(labels map[string]string)
- func (_m *Object) SetManagedFields(managedFields []v1.ManagedFieldsEntry)
- func (_m *Object) SetName(name string)
- func (_m *Object) SetNamespace(namespace string)
- func (_m *Object) SetOwnerReferences(_a0 []v1.OwnerReference)
- func (_m *Object) SetResourceVersion(version string)
- func (_m *Object) SetSelfLink(selfLink string)
- func (_m *Object) SetUID(uid types.UID)
- type ObjectList
- func (_m *ObjectList) DeepCopyObject() runtime.Object
- func (_m *ObjectList) GetContinue() string
- func (_m *ObjectList) GetObjectKind() schema.ObjectKind
- func (_m *ObjectList) GetRemainingItemCount() *int64
- func (_m *ObjectList) GetResourceVersion() string
- func (_m *ObjectList) GetSelfLink() string
- func (_m *ObjectList) SetContinue(c string)
- func (_m *ObjectList) SetRemainingItemCount(c *int64)
- func (_m *ObjectList) SetResourceVersion(version string)
- func (_m *ObjectList) SetSelfLink(selfLink string)
- type Reader
- type StatusClient
- type SubResourceClient
- func (_m *SubResourceClient) Create(ctx context.Context, obj client.Object, subResource client.Object, ...) error
- func (_m *SubResourceClient) Get(ctx context.Context, obj client.Object, subResource client.Object, ...) error
- func (_m *SubResourceClient) Patch(ctx context.Context, obj client.Object, patch client.Patch, ...) error
- func (_m *SubResourceClient) Update(ctx context.Context, obj client.Object, opts ...client.SubResourceUpdateOption) error
- type SubResourceClientConstructor
- type SubResourceReader
- type SubResourceWriter
- func (_m *SubResourceWriter) Create(ctx context.Context, obj client.Object, subResource client.Object, ...) error
- func (_m *SubResourceWriter) Patch(ctx context.Context, obj client.Object, patch client.Patch, ...) error
- func (_m *SubResourceWriter) Update(ctx context.Context, obj client.Object, opts ...client.SubResourceUpdateOption) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is an autogenerated mock type for the Client type
func NewClient ¶ added in v0.19.1
func NewClient(t mockConstructorTestingTNewClient) *Client
NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Client) DeleteAllOf ¶
func (_m *Client) DeleteAllOf(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption) error
DeleteAllOf provides a mock function with given fields: ctx, obj, opts
func (*Client) Get ¶
func (_m *Client) Get(ctx context.Context, key types.NamespacedName, obj client.Object, opts ...client.GetOption) error
Get provides a mock function with given fields: ctx, key, obj, opts
func (*Client) List ¶
func (_m *Client) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
List provides a mock function with given fields: ctx, list, opts
func (*Client) Patch ¶
func (_m *Client) Patch(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.PatchOption) error
Patch provides a mock function with given fields: ctx, obj, patch, opts
func (*Client) RESTMapper ¶ added in v0.16.0
func (_m *Client) RESTMapper() meta.RESTMapper
RESTMapper provides a mock function with given fields:
func (*Client) Status ¶
func (_m *Client) Status() client.SubResourceWriter
Status provides a mock function with given fields:
func (*Client) SubResource ¶ added in v0.24.1
func (_m *Client) SubResource(subResource string) client.SubResourceClient
SubResource provides a mock function with given fields: subResource
type Object ¶ added in v0.16.0
Object is an autogenerated mock type for the Object type
func NewObject ¶ added in v0.19.1
func NewObject(t mockConstructorTestingTNewObject) *Object
NewObject creates a new instance of Object. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Object) DeepCopyObject ¶ added in v0.16.0
DeepCopyObject provides a mock function with given fields:
func (*Object) GetAnnotations ¶ added in v0.16.0
GetAnnotations provides a mock function with given fields:
func (*Object) GetCreationTimestamp ¶ added in v0.16.0
GetCreationTimestamp provides a mock function with given fields:
func (*Object) GetDeletionGracePeriodSeconds ¶ added in v0.16.0
GetDeletionGracePeriodSeconds provides a mock function with given fields:
func (*Object) GetDeletionTimestamp ¶ added in v0.16.0
GetDeletionTimestamp provides a mock function with given fields:
func (*Object) GetFinalizers ¶ added in v0.16.0
GetFinalizers provides a mock function with given fields:
func (*Object) GetGenerateName ¶ added in v0.16.0
GetGenerateName provides a mock function with given fields:
func (*Object) GetGeneration ¶ added in v0.16.0
GetGeneration provides a mock function with given fields:
func (*Object) GetManagedFields ¶ added in v0.16.0
func (_m *Object) GetManagedFields() []v1.ManagedFieldsEntry
GetManagedFields provides a mock function with given fields:
func (*Object) GetNamespace ¶ added in v0.16.0
GetNamespace provides a mock function with given fields:
func (*Object) GetObjectKind ¶ added in v0.16.0
func (_m *Object) GetObjectKind() schema.ObjectKind
GetObjectKind provides a mock function with given fields:
func (*Object) GetOwnerReferences ¶ added in v0.16.0
func (_m *Object) GetOwnerReferences() []v1.OwnerReference
GetOwnerReferences provides a mock function with given fields:
func (*Object) GetResourceVersion ¶ added in v0.16.0
GetResourceVersion provides a mock function with given fields:
func (*Object) GetSelfLink ¶ added in v0.16.0
GetSelfLink provides a mock function with given fields:
func (*Object) SetAnnotations ¶ added in v0.16.0
SetAnnotations provides a mock function with given fields: annotations
func (*Object) SetCreationTimestamp ¶ added in v0.16.0
SetCreationTimestamp provides a mock function with given fields: timestamp
func (*Object) SetDeletionGracePeriodSeconds ¶ added in v0.16.0
SetDeletionGracePeriodSeconds provides a mock function with given fields: _a0
func (*Object) SetDeletionTimestamp ¶ added in v0.16.0
SetDeletionTimestamp provides a mock function with given fields: timestamp
func (*Object) SetFinalizers ¶ added in v0.16.0
SetFinalizers provides a mock function with given fields: finalizers
func (*Object) SetGenerateName ¶ added in v0.16.0
SetGenerateName provides a mock function with given fields: name
func (*Object) SetGeneration ¶ added in v0.16.0
SetGeneration provides a mock function with given fields: generation
func (*Object) SetLabels ¶ added in v0.16.0
SetLabels provides a mock function with given fields: labels
func (*Object) SetManagedFields ¶ added in v0.16.0
func (_m *Object) SetManagedFields(managedFields []v1.ManagedFieldsEntry)
SetManagedFields provides a mock function with given fields: managedFields
func (*Object) SetNamespace ¶ added in v0.16.0
SetNamespace provides a mock function with given fields: namespace
func (*Object) SetOwnerReferences ¶ added in v0.16.0
func (_m *Object) SetOwnerReferences(_a0 []v1.OwnerReference)
SetOwnerReferences provides a mock function with given fields: _a0
func (*Object) SetResourceVersion ¶ added in v0.16.0
SetResourceVersion provides a mock function with given fields: version
func (*Object) SetSelfLink ¶ added in v0.16.0
SetSelfLink provides a mock function with given fields: selfLink
type ObjectList ¶ added in v0.16.0
ObjectList is an autogenerated mock type for the ObjectList type
func NewObjectList ¶ added in v0.19.1
func NewObjectList(t mockConstructorTestingTNewObjectList) *ObjectList
NewObjectList creates a new instance of ObjectList. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ObjectList) DeepCopyObject ¶ added in v0.16.0
func (_m *ObjectList) DeepCopyObject() runtime.Object
DeepCopyObject provides a mock function with given fields:
func (*ObjectList) GetContinue ¶ added in v0.16.0
func (_m *ObjectList) GetContinue() string
GetContinue provides a mock function with given fields:
func (*ObjectList) GetObjectKind ¶ added in v0.16.0
func (_m *ObjectList) GetObjectKind() schema.ObjectKind
GetObjectKind provides a mock function with given fields:
func (*ObjectList) GetRemainingItemCount ¶ added in v0.16.0
func (_m *ObjectList) GetRemainingItemCount() *int64
GetRemainingItemCount provides a mock function with given fields:
func (*ObjectList) GetResourceVersion ¶ added in v0.16.0
func (_m *ObjectList) GetResourceVersion() string
GetResourceVersion provides a mock function with given fields:
func (*ObjectList) GetSelfLink ¶ added in v0.16.0
func (_m *ObjectList) GetSelfLink() string
GetSelfLink provides a mock function with given fields:
func (*ObjectList) SetContinue ¶ added in v0.16.0
func (_m *ObjectList) SetContinue(c string)
SetContinue provides a mock function with given fields: c
func (*ObjectList) SetRemainingItemCount ¶ added in v0.16.0
func (_m *ObjectList) SetRemainingItemCount(c *int64)
SetRemainingItemCount provides a mock function with given fields: c
func (*ObjectList) SetResourceVersion ¶ added in v0.16.0
func (_m *ObjectList) SetResourceVersion(version string)
SetResourceVersion provides a mock function with given fields: version
func (*ObjectList) SetSelfLink ¶ added in v0.16.0
func (_m *ObjectList) SetSelfLink(selfLink string)
SetSelfLink provides a mock function with given fields: selfLink
type Reader ¶ added in v0.14.1
Reader is an autogenerated mock type for the Reader type
func NewReader ¶ added in v0.19.1
func NewReader(t mockConstructorTestingTNewReader) *Reader
NewReader creates a new instance of Reader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Reader) Get ¶ added in v0.14.1
func (_m *Reader) Get(ctx context.Context, key types.NamespacedName, obj client.Object, opts ...client.GetOption) error
Get provides a mock function with given fields: ctx, key, obj, opts
func (*Reader) List ¶ added in v0.14.1
func (_m *Reader) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
List provides a mock function with given fields: ctx, list, opts
type StatusClient ¶
StatusClient is an autogenerated mock type for the StatusClient type
func NewStatusClient ¶ added in v0.19.1
func NewStatusClient(t mockConstructorTestingTNewStatusClient) *StatusClient
NewStatusClient creates a new instance of StatusClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*StatusClient) Status ¶
func (_m *StatusClient) Status() client.SubResourceWriter
Status provides a mock function with given fields:
type SubResourceClient ¶ added in v0.24.1
SubResourceClient is an autogenerated mock type for the SubResourceClient type
func NewSubResourceClient ¶ added in v0.24.1
func NewSubResourceClient(t mockConstructorTestingTNewSubResourceClient) *SubResourceClient
NewSubResourceClient creates a new instance of SubResourceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*SubResourceClient) Create ¶ added in v0.24.1
func (_m *SubResourceClient) Create(ctx context.Context, obj client.Object, subResource client.Object, opts ...client.SubResourceCreateOption) error
Create provides a mock function with given fields: ctx, obj, subResource, opts
func (*SubResourceClient) Get ¶ added in v0.24.1
func (_m *SubResourceClient) Get(ctx context.Context, obj client.Object, subResource client.Object, opts ...client.SubResourceGetOption) error
Get provides a mock function with given fields: ctx, obj, subResource, opts
func (*SubResourceClient) Patch ¶ added in v0.24.1
func (_m *SubResourceClient) Patch(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.SubResourcePatchOption) error
Patch provides a mock function with given fields: ctx, obj, patch, opts
func (*SubResourceClient) Update ¶ added in v0.24.1
func (_m *SubResourceClient) Update(ctx context.Context, obj client.Object, opts ...client.SubResourceUpdateOption) error
Update provides a mock function with given fields: ctx, obj, opts
type SubResourceClientConstructor ¶ added in v0.24.1
SubResourceClientConstructor is an autogenerated mock type for the SubResourceClientConstructor type
func NewSubResourceClientConstructor ¶ added in v0.24.1
func NewSubResourceClientConstructor(t mockConstructorTestingTNewSubResourceClientConstructor) *SubResourceClientConstructor
NewSubResourceClientConstructor creates a new instance of SubResourceClientConstructor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*SubResourceClientConstructor) SubResource ¶ added in v0.24.1
func (_m *SubResourceClientConstructor) SubResource(subResource string) client.SubResourceClient
SubResource provides a mock function with given fields: subResource
type SubResourceReader ¶ added in v0.24.1
SubResourceReader is an autogenerated mock type for the SubResourceReader type
func NewSubResourceReader ¶ added in v0.24.1
func NewSubResourceReader(t mockConstructorTestingTNewSubResourceReader) *SubResourceReader
NewSubResourceReader creates a new instance of SubResourceReader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type SubResourceWriter ¶ added in v0.24.1
SubResourceWriter is an autogenerated mock type for the SubResourceWriter type
func NewSubResourceWriter ¶ added in v0.24.1
func NewSubResourceWriter(t mockConstructorTestingTNewSubResourceWriter) *SubResourceWriter
NewSubResourceWriter creates a new instance of SubResourceWriter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*SubResourceWriter) Create ¶ added in v0.24.1
func (_m *SubResourceWriter) Create(ctx context.Context, obj client.Object, subResource client.Object, opts ...client.SubResourceCreateOption) error
Create provides a mock function with given fields: ctx, obj, subResource, opts
func (*SubResourceWriter) Patch ¶ added in v0.24.1
func (_m *SubResourceWriter) Patch(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.SubResourcePatchOption) error
Patch provides a mock function with given fields: ctx, obj, patch, opts
func (*SubResourceWriter) Update ¶ added in v0.24.1
func (_m *SubResourceWriter) Update(ctx context.Context, obj client.Object, opts ...client.SubResourceUpdateOption) error
Update provides a mock function with given fields: ctx, obj, opts