Documentation ¶
Index ¶
- func NewFakeObjectCreater() runtime.ObjectCreater
- type TestFieldManagerImpl
- func (f *TestFieldManagerImpl) APIVersion() string
- func (f *TestFieldManagerImpl) Apply(obj runtime.Object, manager string, force bool) error
- func (f *TestFieldManagerImpl) Live() runtime.Object
- func (f *TestFieldManagerImpl) ManagedFields() []metav1.ManagedFieldsEntry
- func (f *TestFieldManagerImpl) Reset()
- func (f *TestFieldManagerImpl) Update(obj runtime.Object, manager string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFakeObjectCreater ¶
func NewFakeObjectCreater() runtime.ObjectCreater
NewFakeObjectCreater implements ObjectCreater, it can create empty objects (unstructured) of the given GVK.
Types ¶
type TestFieldManagerImpl ¶
type TestFieldManagerImpl struct {
// contains filtered or unexported fields
}
func NewTestFieldManagerImpl ¶
func NewTestFieldManagerImpl(typeConverter managedfields.TypeConverter, gvk schema.GroupVersionKind, subresource string, chainFieldManager func(internal.Manager) internal.Manager) *TestFieldManagerImpl
NewTestFieldManager creates a new manager for the given GVK.
func (*TestFieldManagerImpl) APIVersion ¶
func (f *TestFieldManagerImpl) APIVersion() string
APIVersion of the object that we're tracking.
func (*TestFieldManagerImpl) Apply ¶
Apply applies the given object on top of the current liveObj, for the given manager and force flag.
func (*TestFieldManagerImpl) Live ¶
func (f *TestFieldManagerImpl) Live() runtime.Object
Live returns a copy of the current liveObject.
func (*TestFieldManagerImpl) ManagedFields ¶
func (f *TestFieldManagerImpl) ManagedFields() []metav1.ManagedFieldsEntry
ManagedFields returns the list of existing managed fields for the liveObj.
func (*TestFieldManagerImpl) Reset ¶
func (f *TestFieldManagerImpl) Reset()
Reset resets the state of the liveObject by resetting it to an empty object.
Click to show internal directories.
Click to hide internal directories.