codeartifact

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Source                              = "aws.codeartifact"
	DetailTypePackageVersionStateChange = "CodeArtifact Package Version State Change"
)

Variables

View Source
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) DescribePackageVersion

func (c *Client) DescribePackageVersion(input DescribePackageVersionInput) (*PackageVersionDescription, error)

func (*Client) ListDomains

func (c *Client) ListDomains() ([]Domain, error)

func (*Client) ListPackageVersionAssets

func (c *Client) ListPackageVersionAssets(input ListPackageVersionAssetsInput) ([]PackageVersionAsset, error)

func (*Client) ListRepositories

func (c *Client) ListRepositories(domain string) ([]Repository, error)

type DescribePackageVersionInput

type DescribePackageVersionInput struct {
	Domain         string
	Repository     string
	Format         string
	Namespace      string
	Package        string
	PackageVersion string
}

type DescribePackageVersionResponse

type DescribePackageVersionResponse struct {
	PackageVersion PackageVersionDescription `json:"packageVersion"`
}

type Domain

type Domain struct {
	Name   string `json:"name"`
	Arn    string `json:"arn"`
	Status string `json:"status"`
}

type GetPackageVersion

type GetPackageVersion struct{}

func (*GetPackageVersion) Actions

func (c *GetPackageVersion) Actions() []core.Action

func (*GetPackageVersion) Cancel

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 ListPackageVersionAssetsInput

type ListPackageVersionAssetsInput struct {
	Domain         string
	Repository     string
	Format         string
	Namespace      string
	Package        string
	PackageVersion string
}

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"`
	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 PackageLicense struct {
	Name string `json:"name"`
	URL  string `json:"url"`
}

type PackageVersionAsset

type PackageVersionAsset struct {
	Hashes map[string]string `json:"hashes"`
	Name   string            `json:"name"`
	Size   int64             `json:"size"`
}

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 PackageVersionDomainEntryPoint

type PackageVersionDomainEntryPoint struct {
	ExternalConnectionName string `json:"externalConnectionName"`
	RepositoryName         string `json:"repositoryName"`
}

type PackageVersionOrigin

type PackageVersionOrigin struct {
	DomainEntryPoint *PackageVersionDomainEntryPoint `json:"domainEntryPoint"`
	OriginType       string                          `json:"originType"`
}

type Repository

type Repository struct {
	Name       string `json:"name"`
	Arn        string `json:"arn"`
	DomainName string `json:"domainName"`
}

Jump to

Keyboard shortcuts

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