Documentation ¶
Index ¶
- Constants
- type DeletionHandler
- func (d *DeletionHandler) DeleteObject(ctx context.Context, clusterInstance *v1alpha1.ClusterInstance, ...) (bool, error)
- func (d *DeletionHandler) DeleteObjects(ctx context.Context, clusterInstance *v1alpha1.ClusterInstance, ...) (deletionCompleted bool, err error)
- func (d *DeletionHandler) DeleteRenderedObjects(ctx context.Context, clusterInstance *v1alpha1.ClusterInstance, ...) (bool, error)
Constants ¶
View Source
const DefaultDeletionTimeout = 30 * time.Minute
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeletionHandler ¶
func (*DeletionHandler) DeleteObject ¶
func (d *DeletionHandler) DeleteObject( ctx context.Context, clusterInstance *v1alpha1.ClusterInstance, object ci.RenderedObject, deletionTimeout *time.Duration, ) (bool, error)
DeleteObject ensures the deletion of an owned object.
func (*DeletionHandler) DeleteObjects ¶
func (d *DeletionHandler) DeleteObjects( ctx context.Context, clusterInstance *v1alpha1.ClusterInstance, objects, excludeObjects []ci.RenderedObject, deletionTimeout *time.Duration, ) (deletionCompleted bool, err error)
DeleteObjects deletes the ClusterInstance rendered manifests by syncWaveGroup. SyncWaves are processed in descending order, that is, highest syncWaveGroup objects are first deleted and the lowest syncWaveGroups are deleted last. Returns: bool, error bool: indicates whether the deletion of all the specified (and owned) objects are successful error: error encountered during deletion attempt
func (*DeletionHandler) DeleteRenderedObjects ¶
func (d *DeletionHandler) DeleteRenderedObjects( ctx context.Context, clusterInstance *v1alpha1.ClusterInstance, excludeObjects []ci.RenderedObject, deletionTimeout *time.Duration, ) (bool, error)
DeleteRenderedObjects deletes all rendered objects except those explicitly excluded.
Click to show internal directories.
Click to hide internal directories.