Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Delete ¶
func Delete(ctx context.Context, c Client, automationResource config.AutomationResource, entries []pointer.DeletePointer) error
func DeleteAll ¶
DeleteAll collects and deletes automations resources using the given automation client.
Parameters:
- ctx (context.Context): The context in which the function operates.
- c (automationClient): An implementation of the automationClient interface for performing automation-related operations.
Returns:
- error: After all deletions where attempted an error is returned if any attempt failed.
Types ¶
type Client ¶
type Client interface { Delete(ctx context.Context, resourceType automationAPI.ResourceType, id string) (automation.Response, error) List(ctx context.Context, resourceType automationAPI.ResourceType) (automation.ListResponse, error) }
Click to show internal directories.
Click to hide internal directories.