automation

package
v2.14.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

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

func DeleteAll(ctx context.Context, c Client) error

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)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL