Documentation ¶
Index ¶
- func GetObjectType(obj interface{}) string
- type ObjSyncer
- func (s *ObjSyncer) CreateIgnoreIfExists(blueprint client.Object) (bool, error)
- func (s *ObjSyncer) Delete(key client.ObjectKey, objectMeta client.Object) (bool, error)
- func (s *ObjSyncer) Get(key client.ObjectKey, actual client.Object) (bool, error)
- func (s *ObjSyncer) Sync(blueprint client.Object, diffOpts ...cmp.Option) (bool, error)
- type Syncer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetObjectType ¶
func GetObjectType(obj interface{}) string
Types ¶
type ObjSyncer ¶
type ObjSyncer struct { Syncer // contains filtered or unexported fields }
func (*ObjSyncer) CreateIgnoreIfExists ¶
type Syncer ¶
type Syncer interface { // Get reads object. // Returns true if object exists otherwise returns false. // Returns error if object cannot be retrieved otherwise returns nil. Get(key client.ObjectKey, actual client.Object) (bool, error) // CreateIgnoreIfExists creates object. // Set owner reference for Eclipse Che namespace objects. // Return true if a new object is created or object already exists, otherwise returns false. // Returns error if object cannot be created otherwise returns nil. CreateIgnoreIfExists(blueprint client.Object) (bool, error) // Delete deletes object. // Returns true if object deleted or not found otherwise returns false. // Returns error if object cannot be deleted otherwise returns nil. Delete(key client.ObjectKey, objectMeta client.Object) (bool, error) // Sync syncs the blueprint to the cluster in a generic (as much as Go allows) manner. // Returns true if object is up-to-date otherwise returns false // Returns error if object cannot be created/updated otherwise returns nil. Sync(blueprint client.Object, diffOpts ...cmp.Option) (bool, error) }
Click to show internal directories.
Click to hide internal directories.