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) DeleteAll ¶ added in v2.25.0
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
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)
}
Click to show internal directories.
Click to hide internal directories.