automation

package
v2.25.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2025 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteSource added in v2.25.0

type DeleteSource interface {
	Delete(ctx context.Context, resourceType automation.ResourceType, id string) (api.Response, error)
	List(ctx context.Context, resourceType automation.ResourceType) (api.PagedListResponse, error)
}

type Deleter added in v2.25.0

type Deleter struct {
	// contains filtered or unexported fields
}

func NewDeleter added in v2.25.0

func NewDeleter(source DeleteSource) *Deleter

func (Deleter) Delete added in v2.25.0

func (d Deleter) Delete(ctx context.Context, entries []pointer.DeletePointer) error

func (Deleter) DeleteAll added in v2.25.0

func (d Deleter) DeleteAll(ctx context.Context) 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.

type DeployAPI added in v2.24.0

type DeployAPI struct {
	// contains filtered or unexported fields
}

func NewDeployAPI added in v2.24.0

func NewDeployAPI(source DeploySource) *DeployAPI

func (DeployAPI) Deploy added in v2.24.0

func (d DeployAPI) Deploy(ctx context.Context, properties parameter.Properties, renderedConfig string, c *config.Config) (entities.ResolvedEntity, error)

type DeploySource added in v2.24.0

type DeploySource interface {
	Create(ctx context.Context, resourceType automation.ResourceType, data []byte) (api.Response, error)
	Update(ctx context.Context, resourceType automation.ResourceType, id string, data []byte) (api.Response, error)
}

type DownloadAPI added in v2.24.0

type DownloadAPI struct {
	// contains filtered or unexported fields
}

func NewDownloadAPI added in v2.24.0

func NewDownloadAPI(automationSource DownloadSource) *DownloadAPI

func (DownloadAPI) Download added in v2.24.0

func (a DownloadAPI) Download(ctx context.Context, projectName string) (project.ConfigsPerType, error)

Download downloads all automation resources for a given project

type DownloadSource added in v2.24.0

type DownloadSource interface {
	List(context.Context, automation.ResourceType) (api.PagedListResponse, error)
}

Jump to

Keyboard shortcuts

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