Documentation
¶
Index ¶
- Constants
- Variables
- func ListDomains(ctx core.ListResourcesContext, resourceType string) ([]core.IntegrationResource, error)
- func ListRepositories(ctx core.ListResourcesContext, resourceType string) ([]core.IntegrationResource, error)
- type Client
- func (c *Client) CopyPackageVersions(input CopyPackageVersionsInput) (*CopyPackageVersionsResponse, error)
- func (c *Client) CreateRepository(input CreateRepositoryInput) (*RepositoryDescription, error)
- func (c *Client) DeletePackageVersions(input DeletePackageVersionsInput) (*DeletePackageVersionsResponse, error)
- func (c *Client) DeleteRepository(input DeleteRepositoryInput) (*RepositoryDescription, error)
- func (c *Client) DescribePackageVersion(input DescribePackageVersionInput) (*PackageVersionDescription, error)
- func (c *Client) DisposePackageVersions(input DisposePackageVersionsInput) (*DisposePackageVersionsResponse, error)
- func (c *Client) ListDomains() ([]Domain, error)
- func (c *Client) ListPackageVersionAssets(input ListPackageVersionAssetsInput) ([]PackageVersionAsset, error)
- func (c *Client) ListRepositories(domain string) ([]Repository, error)
- func (c *Client) UpdatePackageVersionsStatus(input UpdatePackageVersionsStatusInput) (*UpdatePackageVersionsStatusResponse, error)
- type CopyPackageVersions
- func (c *CopyPackageVersions) Actions() []core.Action
- func (c *CopyPackageVersions) Cancel(ctx core.ExecutionContext) error
- func (c *CopyPackageVersions) Cleanup(ctx core.SetupContext) error
- func (c *CopyPackageVersions) Color() string
- func (c *CopyPackageVersions) Configuration() []configuration.Field
- func (c *CopyPackageVersions) Description() string
- func (c *CopyPackageVersions) Documentation() string
- func (c *CopyPackageVersions) ExampleOutput() map[string]any
- func (c *CopyPackageVersions) Execute(ctx core.ExecutionContext) error
- func (c *CopyPackageVersions) HandleAction(ctx core.ActionContext) error
- func (c *CopyPackageVersions) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (c *CopyPackageVersions) Icon() string
- func (c *CopyPackageVersions) Label() string
- func (c *CopyPackageVersions) Name() string
- func (c *CopyPackageVersions) OutputChannels(configuration any) []core.OutputChannel
- func (c *CopyPackageVersions) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
- func (c *CopyPackageVersions) Setup(ctx core.SetupContext) error
- type CopyPackageVersionsConfiguration
- type CopyPackageVersionsInput
- type CopyPackageVersionsResponse
- type CreateRepository
- func (c *CreateRepository) Actions() []core.Action
- func (c *CreateRepository) Cancel(ctx core.ExecutionContext) error
- func (c *CreateRepository) Cleanup(ctx core.SetupContext) error
- func (c *CreateRepository) Color() string
- func (c *CreateRepository) Configuration() []configuration.Field
- func (c *CreateRepository) Description() string
- func (c *CreateRepository) Documentation() string
- func (c *CreateRepository) ExampleOutput() map[string]any
- func (c *CreateRepository) Execute(ctx core.ExecutionContext) error
- func (c *CreateRepository) HandleAction(ctx core.ActionContext) error
- func (c *CreateRepository) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (c *CreateRepository) Icon() string
- func (c *CreateRepository) Label() string
- func (c *CreateRepository) Name() string
- func (c *CreateRepository) OutputChannels(configuration any) []core.OutputChannel
- func (c *CreateRepository) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
- func (c *CreateRepository) Setup(ctx core.SetupContext) error
- type CreateRepositoryConfiguration
- type CreateRepositoryInput
- type DeletePackageVersions
- func (c *DeletePackageVersions) Actions() []core.Action
- func (c *DeletePackageVersions) Cancel(ctx core.ExecutionContext) error
- func (c *DeletePackageVersions) Cleanup(ctx core.SetupContext) error
- func (c *DeletePackageVersions) Color() string
- func (c *DeletePackageVersions) Configuration() []configuration.Field
- func (c *DeletePackageVersions) Description() string
- func (c *DeletePackageVersions) Documentation() string
- func (c *DeletePackageVersions) ExampleOutput() map[string]any
- func (c *DeletePackageVersions) Execute(ctx core.ExecutionContext) error
- func (c *DeletePackageVersions) HandleAction(ctx core.ActionContext) error
- func (c *DeletePackageVersions) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (c *DeletePackageVersions) Icon() string
- func (c *DeletePackageVersions) Label() string
- func (c *DeletePackageVersions) Name() string
- func (c *DeletePackageVersions) OutputChannels(configuration any) []core.OutputChannel
- func (c *DeletePackageVersions) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
- func (c *DeletePackageVersions) Setup(ctx core.SetupContext) error
- type DeletePackageVersionsConfiguration
- type DeletePackageVersionsInput
- type DeletePackageVersionsResponse
- type DeleteRepository
- func (c *DeleteRepository) Actions() []core.Action
- func (c *DeleteRepository) Cancel(ctx core.ExecutionContext) error
- func (c *DeleteRepository) Cleanup(ctx core.SetupContext) error
- func (c *DeleteRepository) Color() string
- func (c *DeleteRepository) Configuration() []configuration.Field
- func (c *DeleteRepository) Description() string
- func (c *DeleteRepository) Documentation() string
- func (c *DeleteRepository) ExampleOutput() map[string]any
- func (c *DeleteRepository) Execute(ctx core.ExecutionContext) error
- func (c *DeleteRepository) HandleAction(ctx core.ActionContext) error
- func (c *DeleteRepository) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (c *DeleteRepository) Icon() string
- func (c *DeleteRepository) Label() string
- func (c *DeleteRepository) Name() string
- func (c *DeleteRepository) OutputChannels(configuration any) []core.OutputChannel
- func (c *DeleteRepository) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
- func (c *DeleteRepository) Setup(ctx core.SetupContext) error
- type DeleteRepositoryConfiguration
- type DeleteRepositoryInput
- type DescribePackageVersionInput
- type DescribePackageVersionResponse
- type DisposePackageVersions
- func (c *DisposePackageVersions) Actions() []core.Action
- func (c *DisposePackageVersions) Cancel(ctx core.ExecutionContext) error
- func (c *DisposePackageVersions) Cleanup(ctx core.SetupContext) error
- func (c *DisposePackageVersions) Color() string
- func (c *DisposePackageVersions) Configuration() []configuration.Field
- func (c *DisposePackageVersions) Description() string
- func (c *DisposePackageVersions) Documentation() string
- func (c *DisposePackageVersions) ExampleOutput() map[string]any
- func (c *DisposePackageVersions) Execute(ctx core.ExecutionContext) error
- func (c *DisposePackageVersions) HandleAction(ctx core.ActionContext) error
- func (c *DisposePackageVersions) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (c *DisposePackageVersions) Icon() string
- func (c *DisposePackageVersions) Label() string
- func (c *DisposePackageVersions) Name() string
- func (c *DisposePackageVersions) OutputChannels(configuration any) []core.OutputChannel
- func (c *DisposePackageVersions) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
- func (c *DisposePackageVersions) Setup(ctx core.SetupContext) error
- type DisposePackageVersionsConfiguration
- type DisposePackageVersionsInput
- type DisposePackageVersionsResponse
- type Domain
- type GetPackageVersion
- func (c *GetPackageVersion) Actions() []core.Action
- func (c *GetPackageVersion) Cancel(ctx core.ExecutionContext) error
- func (c *GetPackageVersion) Cleanup(ctx core.SetupContext) error
- func (c *GetPackageVersion) Color() string
- func (c *GetPackageVersion) Configuration() []configuration.Field
- func (c *GetPackageVersion) Description() string
- func (c *GetPackageVersion) Documentation() string
- func (c *GetPackageVersion) ExampleOutput() map[string]any
- func (c *GetPackageVersion) Execute(ctx core.ExecutionContext) error
- func (c *GetPackageVersion) HandleAction(ctx core.ActionContext) error
- func (c *GetPackageVersion) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (c *GetPackageVersion) Icon() string
- func (c *GetPackageVersion) Label() string
- func (c *GetPackageVersion) Name() string
- func (c *GetPackageVersion) OutputChannels(configuration any) []core.OutputChannel
- func (c *GetPackageVersion) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
- func (c *GetPackageVersion) Setup(ctx core.SetupContext) error
- type GetPackageVersionConfiguration
- type ListDomainsResponse
- type ListPackageVersionAssetsInput
- type ListPackageVersionAssetsResponse
- type ListRepositoriesResponse
- type OnPackageVersion
- func (p *OnPackageVersion) Actions() []core.Action
- func (p *OnPackageVersion) Cleanup(ctx core.TriggerContext) error
- func (p *OnPackageVersion) Color() string
- func (p *OnPackageVersion) Configuration() []configuration.Field
- func (p *OnPackageVersion) Description() string
- func (p *OnPackageVersion) Documentation() string
- func (t *OnPackageVersion) ExampleData() map[string]any
- func (p *OnPackageVersion) HandleAction(ctx core.TriggerActionContext) (map[string]any, error)
- func (p *OnPackageVersion) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (p *OnPackageVersion) Icon() string
- func (p *OnPackageVersion) Label() string
- func (p *OnPackageVersion) Name() string
- func (p *OnPackageVersion) OnIntegrationMessage(ctx core.IntegrationMessageContext) error
- func (p *OnPackageVersion) Setup(ctx core.TriggerContext) error
- type OnPackageVersionConfiguration
- type OnPackageVersionMetadata
- type PackageLicense
- type PackageVersionAsset
- type PackageVersionDescription
- type PackageVersionDomainEntryPoint
- type PackageVersionError
- type PackageVersionOrigin
- type Repository
- type RepositoryDescription
- type RepositoryExternalConnection
- type SuccessfulPackageVersionInfo
- type UpdatePackageVersionsStatus
- func (c *UpdatePackageVersionsStatus) Actions() []core.Action
- func (c *UpdatePackageVersionsStatus) Cancel(ctx core.ExecutionContext) error
- func (c *UpdatePackageVersionsStatus) Cleanup(ctx core.SetupContext) error
- func (c *UpdatePackageVersionsStatus) Color() string
- func (c *UpdatePackageVersionsStatus) Configuration() []configuration.Field
- func (c *UpdatePackageVersionsStatus) Description() string
- func (c *UpdatePackageVersionsStatus) Documentation() string
- func (c *UpdatePackageVersionsStatus) ExampleOutput() map[string]any
- func (c *UpdatePackageVersionsStatus) Execute(ctx core.ExecutionContext) error
- func (c *UpdatePackageVersionsStatus) HandleAction(ctx core.ActionContext) error
- func (c *UpdatePackageVersionsStatus) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (c *UpdatePackageVersionsStatus) Icon() string
- func (c *UpdatePackageVersionsStatus) Label() string
- func (c *UpdatePackageVersionsStatus) Name() string
- func (c *UpdatePackageVersionsStatus) OutputChannels(configuration any) []core.OutputChannel
- func (c *UpdatePackageVersionsStatus) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
- func (c *UpdatePackageVersionsStatus) Setup(ctx core.SetupContext) error
- type UpdatePackageVersionsStatusConfiguration
- type UpdatePackageVersionsStatusInput
- type UpdatePackageVersionsStatusResponse
- type UpstreamRepositoryInfo
Constants ¶
const ( Source = "aws.codeartifact" DetailTypePackageVersionStateChange = "CodeArtifact Package Version State Change" )
Variables ¶
var PackageFormatOptions = []configuration.FieldOption{
{Label: "npm", Value: "npm"},
{Label: "pypi", Value: "pypi"},
{Label: "maven", Value: "maven"},
{Label: "nuget", Value: "nuget"},
{Label: "generic", Value: "generic"},
{Label: "ruby", Value: "ruby"},
{Label: "swift", Value: "swift"},
{Label: "cargo", Value: "cargo"},
}
* Package formats supported by AWS CodeArtifact. * See: https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_DescribePackageVersion.html
var PackageVersionStatusOptions = []configuration.FieldOption{
{Value: "Published", Label: "Published"},
{Value: "Unfinished", Label: "Unfinished"},
{Value: "Unlisted", Label: "Unlisted"},
{Value: "Archived", Label: "Archived"},
{Value: "Disposed", Label: "Disposed"},
}
* Package version statuses supported by AWS CodeArtifact.
var RegionsForCodeArtifact = []configuration.FieldOption{
{
Label: "us-east-1",
Value: "us-east-1",
},
{
Label: "us-east-2",
Value: "us-east-2",
},
{
Label: "us-west-2",
Value: "us-west-2",
},
{
Label: "ap-south-1",
Value: "ap-south-1",
},
{
Label: "ap-southeast-1",
Value: "ap-southeast-1",
},
{
Label: "ap-southeast-2",
Value: "ap-southeast-2",
},
{
Label: "ap-northeast-1",
Value: "ap-northeast-1",
},
{
Label: "eu-central-1",
Value: "eu-central-1",
},
{
Label: "eu-west-1",
Value: "eu-west-1",
},
{
Label: "eu-west-2",
Value: "eu-west-2",
},
{
Label: "eu-south-1",
Value: "eu-south-1",
},
{
Label: "eu-west-3",
Value: "eu-west-3",
},
{
Label: "eu-north-1",
Value: "eu-north-1",
},
}
* CodeArtifact is only available in the following regions. * See: https://docs.aws.amazon.com/general/latest/gr/codeartifact.html
Functions ¶
func ListDomains ¶
func ListDomains(ctx core.ListResourcesContext, resourceType string) ([]core.IntegrationResource, error)
func ListRepositories ¶
func ListRepositories(ctx core.ListResourcesContext, resourceType string) ([]core.IntegrationResource, error)
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(httpCtx core.HTTPContext, credentials *aws.Credentials, region string) *Client
func (*Client) CopyPackageVersions ¶ added in v0.8.0
func (c *Client) CopyPackageVersions(input CopyPackageVersionsInput) (*CopyPackageVersionsResponse, error)
CopyPackageVersions copies package versions from one repository to another in the same domain.
func (*Client) CreateRepository ¶ added in v0.8.0
func (c *Client) CreateRepository(input CreateRepositoryInput) (*RepositoryDescription, error)
CreateRepository creates a repository in the given domain.
func (*Client) DeletePackageVersions ¶ added in v0.8.0
func (c *Client) DeletePackageVersions(input DeletePackageVersionsInput) (*DeletePackageVersionsResponse, error)
DeletePackageVersions permanently deletes one or more package versions.
func (*Client) DeleteRepository ¶ added in v0.8.0
func (c *Client) DeleteRepository(input DeleteRepositoryInput) (*RepositoryDescription, error)
DeleteRepository deletes a repository from the given domain.
func (*Client) DescribePackageVersion ¶
func (c *Client) DescribePackageVersion(input DescribePackageVersionInput) (*PackageVersionDescription, error)
func (*Client) DisposePackageVersions ¶ added in v0.8.0
func (c *Client) DisposePackageVersions(input DisposePackageVersionsInput) (*DisposePackageVersionsResponse, error)
DisposePackageVersions deletes assets and sets package version status to Disposed.
func (*Client) ListDomains ¶
func (*Client) ListPackageVersionAssets ¶
func (c *Client) ListPackageVersionAssets(input ListPackageVersionAssetsInput) ([]PackageVersionAsset, error)
func (*Client) ListRepositories ¶
func (c *Client) ListRepositories(domain string) ([]Repository, error)
func (*Client) UpdatePackageVersionsStatus ¶ added in v0.8.0
func (c *Client) UpdatePackageVersionsStatus(input UpdatePackageVersionsStatusInput) (*UpdatePackageVersionsStatusResponse, error)
UpdatePackageVersionsStatus updates the status of one or more package versions.
type CopyPackageVersions ¶ added in v0.8.0
type CopyPackageVersions struct{}
func (*CopyPackageVersions) Actions ¶ added in v0.8.0
func (c *CopyPackageVersions) Actions() []core.Action
func (*CopyPackageVersions) Cancel ¶ added in v0.8.0
func (c *CopyPackageVersions) Cancel(ctx core.ExecutionContext) error
func (*CopyPackageVersions) Cleanup ¶ added in v0.8.0
func (c *CopyPackageVersions) Cleanup(ctx core.SetupContext) error
func (*CopyPackageVersions) Color ¶ added in v0.8.0
func (c *CopyPackageVersions) Color() string
func (*CopyPackageVersions) Configuration ¶ added in v0.8.0
func (c *CopyPackageVersions) Configuration() []configuration.Field
func (*CopyPackageVersions) Description ¶ added in v0.8.0
func (c *CopyPackageVersions) Description() string
func (*CopyPackageVersions) Documentation ¶ added in v0.8.0
func (c *CopyPackageVersions) Documentation() string
func (*CopyPackageVersions) ExampleOutput ¶ added in v0.8.0
func (c *CopyPackageVersions) ExampleOutput() map[string]any
func (*CopyPackageVersions) Execute ¶ added in v0.8.0
func (c *CopyPackageVersions) Execute(ctx core.ExecutionContext) error
func (*CopyPackageVersions) HandleAction ¶ added in v0.8.0
func (c *CopyPackageVersions) HandleAction(ctx core.ActionContext) error
func (*CopyPackageVersions) HandleWebhook ¶ added in v0.8.0
func (c *CopyPackageVersions) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
func (*CopyPackageVersions) Icon ¶ added in v0.8.0
func (c *CopyPackageVersions) Icon() string
func (*CopyPackageVersions) Label ¶ added in v0.8.0
func (c *CopyPackageVersions) Label() string
func (*CopyPackageVersions) Name ¶ added in v0.8.0
func (c *CopyPackageVersions) Name() string
func (*CopyPackageVersions) OutputChannels ¶ added in v0.8.0
func (c *CopyPackageVersions) OutputChannels(configuration any) []core.OutputChannel
func (*CopyPackageVersions) ProcessQueueItem ¶ added in v0.8.0
func (c *CopyPackageVersions) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
func (*CopyPackageVersions) Setup ¶ added in v0.8.0
func (c *CopyPackageVersions) Setup(ctx core.SetupContext) error
type CopyPackageVersionsConfiguration ¶ added in v0.8.0
type CopyPackageVersionsConfiguration struct {
Region string `json:"region" mapstructure:"region"`
Domain string `json:"domain" mapstructure:"domain"`
SourceRepository string `json:"sourceRepository" mapstructure:"sourceRepository"`
DestinationRepository string `json:"destinationRepository" mapstructure:"destinationRepository"`
Format string `json:"format" mapstructure:"format"`
Package string `json:"package" mapstructure:"package"`
Namespace string `json:"namespace" mapstructure:"namespace"`
Versions string `json:"versions" mapstructure:"versions"` // comma or newline separated
AllowOverwrite bool `json:"allowOverwrite" mapstructure:"allowOverwrite"`
IncludeFromUpstream bool `json:"includeFromUpstream" mapstructure:"includeFromUpstream"`
}
type CopyPackageVersionsInput ¶ added in v0.8.0
type CopyPackageVersionsInput struct {
Domain string
SourceRepository string
DestinationRepository string
Format string
Namespace string
Package string
Versions []string // use Versions or VersionRevisions, not both
VersionRevisions map[string]string // optional
AllowOverwrite bool
IncludeFromUpstream bool
}
CopyPackageVersionsInput is the input for CopyPackageVersions.
type CopyPackageVersionsResponse ¶ added in v0.8.0
type CopyPackageVersionsResponse struct {
SuccessfulVersions map[string]SuccessfulPackageVersionInfo `json:"successfulVersions"`
FailedVersions map[string]PackageVersionError `json:"failedVersions"`
}
CopyPackageVersionsResponse is the response from CopyPackageVersions.
type CreateRepository ¶ added in v0.8.0
type CreateRepository struct{}
func (*CreateRepository) Actions ¶ added in v0.8.0
func (c *CreateRepository) Actions() []core.Action
func (*CreateRepository) Cancel ¶ added in v0.8.0
func (c *CreateRepository) Cancel(ctx core.ExecutionContext) error
func (*CreateRepository) Cleanup ¶ added in v0.8.0
func (c *CreateRepository) Cleanup(ctx core.SetupContext) error
func (*CreateRepository) Color ¶ added in v0.8.0
func (c *CreateRepository) Color() string
func (*CreateRepository) Configuration ¶ added in v0.8.0
func (c *CreateRepository) Configuration() []configuration.Field
func (*CreateRepository) Description ¶ added in v0.8.0
func (c *CreateRepository) Description() string
func (*CreateRepository) Documentation ¶ added in v0.8.0
func (c *CreateRepository) Documentation() string
func (*CreateRepository) ExampleOutput ¶ added in v0.8.0
func (c *CreateRepository) ExampleOutput() map[string]any
func (*CreateRepository) Execute ¶ added in v0.8.0
func (c *CreateRepository) Execute(ctx core.ExecutionContext) error
func (*CreateRepository) HandleAction ¶ added in v0.8.0
func (c *CreateRepository) HandleAction(ctx core.ActionContext) error
func (*CreateRepository) HandleWebhook ¶ added in v0.8.0
func (c *CreateRepository) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
func (*CreateRepository) Icon ¶ added in v0.8.0
func (c *CreateRepository) Icon() string
func (*CreateRepository) Label ¶ added in v0.8.0
func (c *CreateRepository) Label() string
func (*CreateRepository) Name ¶ added in v0.8.0
func (c *CreateRepository) Name() string
func (*CreateRepository) OutputChannels ¶ added in v0.8.0
func (c *CreateRepository) OutputChannels(configuration any) []core.OutputChannel
func (*CreateRepository) ProcessQueueItem ¶ added in v0.8.0
func (c *CreateRepository) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
func (*CreateRepository) Setup ¶ added in v0.8.0
func (c *CreateRepository) Setup(ctx core.SetupContext) error
type CreateRepositoryConfiguration ¶ added in v0.8.0
type CreateRepositoryInput ¶ added in v0.8.0
CreateRepositoryInput is the input for CreateRepository.
type DeletePackageVersions ¶ added in v0.8.0
type DeletePackageVersions struct{}
func (*DeletePackageVersions) Actions ¶ added in v0.8.0
func (c *DeletePackageVersions) Actions() []core.Action
func (*DeletePackageVersions) Cancel ¶ added in v0.8.0
func (c *DeletePackageVersions) Cancel(ctx core.ExecutionContext) error
func (*DeletePackageVersions) Cleanup ¶ added in v0.8.0
func (c *DeletePackageVersions) Cleanup(ctx core.SetupContext) error
func (*DeletePackageVersions) Color ¶ added in v0.8.0
func (c *DeletePackageVersions) Color() string
func (*DeletePackageVersions) Configuration ¶ added in v0.8.0
func (c *DeletePackageVersions) Configuration() []configuration.Field
func (*DeletePackageVersions) Description ¶ added in v0.8.0
func (c *DeletePackageVersions) Description() string
func (*DeletePackageVersions) Documentation ¶ added in v0.8.0
func (c *DeletePackageVersions) Documentation() string
func (*DeletePackageVersions) ExampleOutput ¶ added in v0.8.0
func (c *DeletePackageVersions) ExampleOutput() map[string]any
func (*DeletePackageVersions) Execute ¶ added in v0.8.0
func (c *DeletePackageVersions) Execute(ctx core.ExecutionContext) error
func (*DeletePackageVersions) HandleAction ¶ added in v0.8.0
func (c *DeletePackageVersions) HandleAction(ctx core.ActionContext) error
func (*DeletePackageVersions) HandleWebhook ¶ added in v0.8.0
func (c *DeletePackageVersions) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
func (*DeletePackageVersions) Icon ¶ added in v0.8.0
func (c *DeletePackageVersions) Icon() string
func (*DeletePackageVersions) Label ¶ added in v0.8.0
func (c *DeletePackageVersions) Label() string
func (*DeletePackageVersions) Name ¶ added in v0.8.0
func (c *DeletePackageVersions) Name() string
func (*DeletePackageVersions) OutputChannels ¶ added in v0.8.0
func (c *DeletePackageVersions) OutputChannels(configuration any) []core.OutputChannel
func (*DeletePackageVersions) ProcessQueueItem ¶ added in v0.8.0
func (c *DeletePackageVersions) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
func (*DeletePackageVersions) Setup ¶ added in v0.8.0
func (c *DeletePackageVersions) Setup(ctx core.SetupContext) error
type DeletePackageVersionsConfiguration ¶ added in v0.8.0
type DeletePackageVersionsConfiguration struct {
Region string `json:"region" mapstructure:"region"`
Domain string `json:"domain" mapstructure:"domain"`
Repository string `json:"repository" mapstructure:"repository"`
Format string `json:"format" mapstructure:"format"`
Package string `json:"package" mapstructure:"package"`
Namespace string `json:"namespace" mapstructure:"namespace"`
Versions string `json:"versions" mapstructure:"versions"`
ExpectedStatus string `json:"expectedStatus" mapstructure:"expectedStatus"`
}
type DeletePackageVersionsInput ¶ added in v0.8.0
type DeletePackageVersionsInput struct {
Domain string
Repository string
Format string
Namespace string
Package string
Versions []string
ExpectedStatus string // optional
}
DeletePackageVersionsInput is the input for DeletePackageVersions.
type DeletePackageVersionsResponse ¶ added in v0.8.0
type DeletePackageVersionsResponse struct {
SuccessfulVersions map[string]SuccessfulPackageVersionInfo `json:"successfulVersions"`
FailedVersions map[string]PackageVersionError `json:"failedVersions"`
}
DeletePackageVersionsResponse is the response from DeletePackageVersions.
type DeleteRepository ¶ added in v0.8.0
type DeleteRepository struct{}
func (*DeleteRepository) Actions ¶ added in v0.8.0
func (c *DeleteRepository) Actions() []core.Action
func (*DeleteRepository) Cancel ¶ added in v0.8.0
func (c *DeleteRepository) Cancel(ctx core.ExecutionContext) error
func (*DeleteRepository) Cleanup ¶ added in v0.8.0
func (c *DeleteRepository) Cleanup(ctx core.SetupContext) error
func (*DeleteRepository) Color ¶ added in v0.8.0
func (c *DeleteRepository) Color() string
func (*DeleteRepository) Configuration ¶ added in v0.8.0
func (c *DeleteRepository) Configuration() []configuration.Field
func (*DeleteRepository) Description ¶ added in v0.8.0
func (c *DeleteRepository) Description() string
func (*DeleteRepository) Documentation ¶ added in v0.8.0
func (c *DeleteRepository) Documentation() string
func (*DeleteRepository) ExampleOutput ¶ added in v0.8.0
func (c *DeleteRepository) ExampleOutput() map[string]any
func (*DeleteRepository) Execute ¶ added in v0.8.0
func (c *DeleteRepository) Execute(ctx core.ExecutionContext) error
func (*DeleteRepository) HandleAction ¶ added in v0.8.0
func (c *DeleteRepository) HandleAction(ctx core.ActionContext) error
func (*DeleteRepository) HandleWebhook ¶ added in v0.8.0
func (c *DeleteRepository) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
func (*DeleteRepository) Icon ¶ added in v0.8.0
func (c *DeleteRepository) Icon() string
func (*DeleteRepository) Label ¶ added in v0.8.0
func (c *DeleteRepository) Label() string
func (*DeleteRepository) Name ¶ added in v0.8.0
func (c *DeleteRepository) Name() string
func (*DeleteRepository) OutputChannels ¶ added in v0.8.0
func (c *DeleteRepository) OutputChannels(configuration any) []core.OutputChannel
func (*DeleteRepository) ProcessQueueItem ¶ added in v0.8.0
func (c *DeleteRepository) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
func (*DeleteRepository) Setup ¶ added in v0.8.0
func (c *DeleteRepository) Setup(ctx core.SetupContext) error
type DeleteRepositoryConfiguration ¶ added in v0.8.0
type DeleteRepositoryInput ¶ added in v0.8.0
DeleteRepositoryInput is the input for DeleteRepository.
type DescribePackageVersionResponse ¶
type DescribePackageVersionResponse struct {
PackageVersion PackageVersionDescription `json:"packageVersion"`
}
type DisposePackageVersions ¶ added in v0.8.0
type DisposePackageVersions struct{}
func (*DisposePackageVersions) Actions ¶ added in v0.8.0
func (c *DisposePackageVersions) Actions() []core.Action
func (*DisposePackageVersions) Cancel ¶ added in v0.8.0
func (c *DisposePackageVersions) Cancel(ctx core.ExecutionContext) error
func (*DisposePackageVersions) Cleanup ¶ added in v0.8.0
func (c *DisposePackageVersions) Cleanup(ctx core.SetupContext) error
func (*DisposePackageVersions) Color ¶ added in v0.8.0
func (c *DisposePackageVersions) Color() string
func (*DisposePackageVersions) Configuration ¶ added in v0.8.0
func (c *DisposePackageVersions) Configuration() []configuration.Field
func (*DisposePackageVersions) Description ¶ added in v0.8.0
func (c *DisposePackageVersions) Description() string
func (*DisposePackageVersions) Documentation ¶ added in v0.8.0
func (c *DisposePackageVersions) Documentation() string
func (*DisposePackageVersions) ExampleOutput ¶ added in v0.8.0
func (c *DisposePackageVersions) ExampleOutput() map[string]any
func (*DisposePackageVersions) Execute ¶ added in v0.8.0
func (c *DisposePackageVersions) Execute(ctx core.ExecutionContext) error
func (*DisposePackageVersions) HandleAction ¶ added in v0.8.0
func (c *DisposePackageVersions) HandleAction(ctx core.ActionContext) error
func (*DisposePackageVersions) HandleWebhook ¶ added in v0.8.0
func (c *DisposePackageVersions) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
func (*DisposePackageVersions) Icon ¶ added in v0.8.0
func (c *DisposePackageVersions) Icon() string
func (*DisposePackageVersions) Label ¶ added in v0.8.0
func (c *DisposePackageVersions) Label() string
func (*DisposePackageVersions) Name ¶ added in v0.8.0
func (c *DisposePackageVersions) Name() string
func (*DisposePackageVersions) OutputChannels ¶ added in v0.8.0
func (c *DisposePackageVersions) OutputChannels(configuration any) []core.OutputChannel
func (*DisposePackageVersions) ProcessQueueItem ¶ added in v0.8.0
func (c *DisposePackageVersions) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
func (*DisposePackageVersions) Setup ¶ added in v0.8.0
func (c *DisposePackageVersions) Setup(ctx core.SetupContext) error
type DisposePackageVersionsConfiguration ¶ added in v0.8.0
type DisposePackageVersionsConfiguration struct {
Region string `json:"region" mapstructure:"region"`
Domain string `json:"domain" mapstructure:"domain"`
Repository string `json:"repository" mapstructure:"repository"`
Format string `json:"format" mapstructure:"format"`
Package string `json:"package" mapstructure:"package"`
Namespace string `json:"namespace" mapstructure:"namespace"`
Versions string `json:"versions" mapstructure:"versions"`
ExpectedStatus string `json:"expectedStatus" mapstructure:"expectedStatus"`
}
type DisposePackageVersionsInput ¶ added in v0.8.0
type DisposePackageVersionsInput struct {
Domain string
Repository string
Format string
Namespace string
Package string
Versions []string
VersionRevisions map[string]string // optional; use Versions or VersionRevisions, not both
ExpectedStatus string // optional
}
DisposePackageVersionsInput is the input for DisposePackageVersions.
type DisposePackageVersionsResponse ¶ added in v0.8.0
type DisposePackageVersionsResponse struct {
SuccessfulVersions map[string]SuccessfulPackageVersionInfo `json:"successfulVersions"`
FailedVersions map[string]PackageVersionError `json:"failedVersions"`
}
DisposePackageVersionsResponse is the response from DisposePackageVersions.
type GetPackageVersion ¶
type GetPackageVersion struct{}
func (*GetPackageVersion) Actions ¶
func (c *GetPackageVersion) Actions() []core.Action
func (*GetPackageVersion) Cancel ¶
func (c *GetPackageVersion) Cancel(ctx core.ExecutionContext) error
func (*GetPackageVersion) Cleanup ¶
func (c *GetPackageVersion) Cleanup(ctx core.SetupContext) error
func (*GetPackageVersion) Color ¶
func (c *GetPackageVersion) Color() string
func (*GetPackageVersion) Configuration ¶
func (c *GetPackageVersion) Configuration() []configuration.Field
func (*GetPackageVersion) Description ¶
func (c *GetPackageVersion) Description() string
func (*GetPackageVersion) Documentation ¶
func (c *GetPackageVersion) Documentation() string
func (*GetPackageVersion) ExampleOutput ¶
func (c *GetPackageVersion) ExampleOutput() map[string]any
func (*GetPackageVersion) Execute ¶
func (c *GetPackageVersion) Execute(ctx core.ExecutionContext) error
func (*GetPackageVersion) HandleAction ¶
func (c *GetPackageVersion) HandleAction(ctx core.ActionContext) error
func (*GetPackageVersion) HandleWebhook ¶
func (c *GetPackageVersion) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
func (*GetPackageVersion) Icon ¶
func (c *GetPackageVersion) Icon() string
func (*GetPackageVersion) Label ¶
func (c *GetPackageVersion) Label() string
func (*GetPackageVersion) Name ¶
func (c *GetPackageVersion) Name() string
func (*GetPackageVersion) OutputChannels ¶
func (c *GetPackageVersion) OutputChannels(configuration any) []core.OutputChannel
func (*GetPackageVersion) ProcessQueueItem ¶
func (c *GetPackageVersion) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
func (*GetPackageVersion) Setup ¶
func (c *GetPackageVersion) Setup(ctx core.SetupContext) error
type GetPackageVersionConfiguration ¶
type GetPackageVersionConfiguration struct {
Region string `json:"region" mapstructure:"region"`
Domain string `json:"domain" mapstructure:"domain"`
Repository string `json:"repository" mapstructure:"repository"`
Package string `json:"package" mapstructure:"package"`
Format string `json:"format" mapstructure:"format"`
Namespace string `json:"namespace" mapstructure:"namespace"`
Version string `json:"version" mapstructure:"version"`
}
type ListDomainsResponse ¶
type ListDomainsResponse struct {
Domains []Domain `json:"domains"`
}
type ListPackageVersionAssetsResponse ¶
type ListPackageVersionAssetsResponse struct {
Assets []PackageVersionAsset `json:"assets"`
NextToken string `json:"nextToken"`
}
type ListRepositoriesResponse ¶
type ListRepositoriesResponse struct {
Repositories []Repository `json:"repositories"`
}
type OnPackageVersion ¶
type OnPackageVersion struct{}
func (*OnPackageVersion) Actions ¶
func (p *OnPackageVersion) Actions() []core.Action
func (*OnPackageVersion) Cleanup ¶
func (p *OnPackageVersion) Cleanup(ctx core.TriggerContext) error
func (*OnPackageVersion) Color ¶
func (p *OnPackageVersion) Color() string
func (*OnPackageVersion) Configuration ¶
func (p *OnPackageVersion) Configuration() []configuration.Field
func (*OnPackageVersion) Description ¶
func (p *OnPackageVersion) Description() string
func (*OnPackageVersion) Documentation ¶
func (p *OnPackageVersion) Documentation() string
func (*OnPackageVersion) ExampleData ¶
func (t *OnPackageVersion) ExampleData() map[string]any
func (*OnPackageVersion) HandleAction ¶
func (p *OnPackageVersion) HandleAction(ctx core.TriggerActionContext) (map[string]any, error)
func (*OnPackageVersion) HandleWebhook ¶
func (p *OnPackageVersion) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
func (*OnPackageVersion) Icon ¶
func (p *OnPackageVersion) Icon() string
func (*OnPackageVersion) Label ¶
func (p *OnPackageVersion) Label() string
func (*OnPackageVersion) Name ¶
func (p *OnPackageVersion) Name() string
func (*OnPackageVersion) OnIntegrationMessage ¶
func (p *OnPackageVersion) OnIntegrationMessage(ctx core.IntegrationMessageContext) error
func (*OnPackageVersion) Setup ¶
func (p *OnPackageVersion) Setup(ctx core.TriggerContext) error
type OnPackageVersionConfiguration ¶
type OnPackageVersionConfiguration struct {
Region string `json:"region" mapstructure:"region"`
Domain string `json:"domain" mapstructure:"domain"`
Repository string `json:"repository" mapstructure:"repository"`
Packages []configuration.Predicate `json:"packages" mapstructure:"packages"`
Versions []configuration.Predicate `json:"versions" mapstructure:"versions"`
}
type OnPackageVersionMetadata ¶
type OnPackageVersionMetadata struct {
Region string `json:"region" mapstructure:"region"`
SubscriptionID string `json:"subscriptionId" mapstructure:"subscriptionId"`
Repository *Repository `json:"repository" mapstructure:"repository"`
}
type PackageLicense ¶
type PackageVersionAsset ¶
type PackageVersionDescription ¶
type PackageVersionDescription struct {
DisplayName string `json:"displayName"`
Format string `json:"format"`
HomePage string `json:"homePage"`
Licenses []PackageLicense `json:"licenses"`
Namespace string `json:"namespace"`
Origin *PackageVersionOrigin `json:"origin"`
PackageName string `json:"packageName"`
PublishedTime common.FloatTime `json:"publishedTime,omitempty"`
Revision string `json:"revision"`
SourceCodeRepository string `json:"sourceCodeRepository"`
Status string `json:"status"`
Summary string `json:"summary"`
Version string `json:"version"`
}
type PackageVersionError ¶ added in v0.8.0
type PackageVersionError struct {
ErrorCode string `json:"errorCode"`
ErrorMessage string `json:"errorMessage"`
}
PackageVersionError is returned for each failed package version update or copy.
type PackageVersionOrigin ¶
type PackageVersionOrigin struct {
DomainEntryPoint *PackageVersionDomainEntryPoint `json:"domainEntryPoint"`
OriginType string `json:"originType"`
}
type Repository ¶
type RepositoryDescription ¶ added in v0.8.0
type RepositoryDescription struct {
AdministratorAccount string `json:"administratorAccount"`
Arn string `json:"arn"`
CreatedTime float64 `json:"createdTime"`
Description string `json:"description"`
DomainName string `json:"domainName"`
DomainOwner string `json:"domainOwner"`
ExternalConnections []RepositoryExternalConnection `json:"externalConnections"`
Name string `json:"name"`
Upstreams []UpstreamRepositoryInfo `json:"upstreams"`
}
RepositoryDescription is returned by CreateRepository and DeleteRepository.
type RepositoryExternalConnection ¶ added in v0.8.0
type SuccessfulPackageVersionInfo ¶ added in v0.8.0
type SuccessfulPackageVersionInfo struct {
Revision string `json:"revision"`
Status string `json:"status"`
}
SuccessfulPackageVersionInfo is returned for each successfully updated or copied package version.
type UpdatePackageVersionsStatus ¶ added in v0.8.0
type UpdatePackageVersionsStatus struct{}
func (*UpdatePackageVersionsStatus) Actions ¶ added in v0.8.0
func (c *UpdatePackageVersionsStatus) Actions() []core.Action
func (*UpdatePackageVersionsStatus) Cancel ¶ added in v0.8.0
func (c *UpdatePackageVersionsStatus) Cancel(ctx core.ExecutionContext) error
func (*UpdatePackageVersionsStatus) Cleanup ¶ added in v0.8.0
func (c *UpdatePackageVersionsStatus) Cleanup(ctx core.SetupContext) error
func (*UpdatePackageVersionsStatus) Color ¶ added in v0.8.0
func (c *UpdatePackageVersionsStatus) Color() string
func (*UpdatePackageVersionsStatus) Configuration ¶ added in v0.8.0
func (c *UpdatePackageVersionsStatus) Configuration() []configuration.Field
func (*UpdatePackageVersionsStatus) Description ¶ added in v0.8.0
func (c *UpdatePackageVersionsStatus) Description() string
func (*UpdatePackageVersionsStatus) Documentation ¶ added in v0.8.0
func (c *UpdatePackageVersionsStatus) Documentation() string
func (*UpdatePackageVersionsStatus) ExampleOutput ¶ added in v0.8.0
func (c *UpdatePackageVersionsStatus) ExampleOutput() map[string]any
func (*UpdatePackageVersionsStatus) Execute ¶ added in v0.8.0
func (c *UpdatePackageVersionsStatus) Execute(ctx core.ExecutionContext) error
func (*UpdatePackageVersionsStatus) HandleAction ¶ added in v0.8.0
func (c *UpdatePackageVersionsStatus) HandleAction(ctx core.ActionContext) error
func (*UpdatePackageVersionsStatus) HandleWebhook ¶ added in v0.8.0
func (c *UpdatePackageVersionsStatus) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
func (*UpdatePackageVersionsStatus) Icon ¶ added in v0.8.0
func (c *UpdatePackageVersionsStatus) Icon() string
func (*UpdatePackageVersionsStatus) Label ¶ added in v0.8.0
func (c *UpdatePackageVersionsStatus) Label() string
func (*UpdatePackageVersionsStatus) Name ¶ added in v0.8.0
func (c *UpdatePackageVersionsStatus) Name() string
func (*UpdatePackageVersionsStatus) OutputChannels ¶ added in v0.8.0
func (c *UpdatePackageVersionsStatus) OutputChannels(configuration any) []core.OutputChannel
func (*UpdatePackageVersionsStatus) ProcessQueueItem ¶ added in v0.8.0
func (c *UpdatePackageVersionsStatus) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
func (*UpdatePackageVersionsStatus) Setup ¶ added in v0.8.0
func (c *UpdatePackageVersionsStatus) Setup(ctx core.SetupContext) error
type UpdatePackageVersionsStatusConfiguration ¶ added in v0.8.0
type UpdatePackageVersionsStatusConfiguration struct {
Region string `json:"region" mapstructure:"region"`
Domain string `json:"domain" mapstructure:"domain"`
Repository string `json:"repository" mapstructure:"repository"`
Format string `json:"format" mapstructure:"format"`
Package string `json:"package" mapstructure:"package"`
Namespace string `json:"namespace" mapstructure:"namespace"`
Versions string `json:"versions" mapstructure:"versions"` // comma separated
TargetStatus string `json:"targetStatus" mapstructure:"targetStatus"`
ExpectedStatus string `json:"expectedStatus" mapstructure:"expectedStatus"`
}
type UpdatePackageVersionsStatusInput ¶ added in v0.8.0
type UpdatePackageVersionsStatusInput struct {
Domain string
Repository string
Format string
Namespace string
Package string
Versions []string // required
VersionRevisions map[string]string // optional; use Versions or VersionRevisions, not both
TargetStatus string // Archived | Published | Unlisted
ExpectedStatus string // optional
}
UpdatePackageVersionsStatusInput is the input for UpdatePackageVersionsStatus.
type UpdatePackageVersionsStatusResponse ¶ added in v0.8.0
type UpdatePackageVersionsStatusResponse struct {
SuccessfulVersions map[string]SuccessfulPackageVersionInfo `json:"successfulVersions"`
FailedVersions map[string]PackageVersionError `json:"failedVersions"`
}
UpdatePackageVersionsStatusResponse is the response from UpdatePackageVersionsStatus.
type UpstreamRepositoryInfo ¶ added in v0.8.0
type UpstreamRepositoryInfo struct {
RepositoryName string `json:"repositoryName"`
}