ecr

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Source                   = "aws.ecr"
	DetailTypeECRImageScan   = "ECR Image Scan"
	DetailTypeECRImageAction = "ECR Image Action"
)

Variables

This section is empty.

Functions

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

func (c *Client) DescribeImage(repositoryName string, imageDigest string, imageTag string) (*ImageDetail, error)

func (*Client) DescribeImageScanFindings

func (c *Client) DescribeImageScanFindings(repositoryName string, imageDigest string, imageTag string) (*DescribeImageScanFindingsResponse, error)

func (*Client) DescribeRepository

func (c *Client) DescribeRepository(name string) (*Repository, error)

func (*Client) ListRepositories

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

func (*Client) ScanImage

func (c *Client) ScanImage(repositoryName string, imageDigest string, imageTag string) (*ScanImageResponse, error)

type DescribeImageResponse

type DescribeImageResponse struct {
	ImageDetails []ImageDetail `json:"imageDetails"`
}

type DescribeImageScanFindingsResponse

type DescribeImageScanFindingsResponse struct {
	ImageScanFindings ImageScanFindings `json:"imageScanFindings"`
	RegistryID        string            `json:"registryId"`
	RepositoryName    string            `json:"repositoryName"`
	ImageID           ImageIdentifier   `json:"imageId"`
	ImageScanStatus   ImageScanStatus   `json:"imageScanStatus"`
}

type GetImage

type GetImage struct{}

func (*GetImage) Cancel

func (c *GetImage) Cancel(ctx core.ExecutionContext) error

func (*GetImage) Cleanup

func (c *GetImage) Cleanup(ctx core.SetupContext) error

func (*GetImage) Color

func (c *GetImage) Color() string

func (*GetImage) Configuration

func (c *GetImage) Configuration() []configuration.Field

func (*GetImage) Description

func (c *GetImage) Description() string

func (*GetImage) Documentation

func (c *GetImage) Documentation() string

func (*GetImage) ExampleOutput

func (c *GetImage) ExampleOutput() map[string]any

func (*GetImage) Execute

func (c *GetImage) Execute(ctx core.ExecutionContext) error

func (*GetImage) HandleHook added in v0.18.0

func (c *GetImage) HandleHook(ctx core.ActionHookContext) error

func (*GetImage) HandleWebhook

func (*GetImage) Hooks added in v0.18.0

func (c *GetImage) Hooks() []core.Hook

func (*GetImage) Icon

func (c *GetImage) Icon() string

func (*GetImage) Label

func (c *GetImage) Label() string

func (*GetImage) Name

func (c *GetImage) Name() string

func (*GetImage) OutputChannels

func (c *GetImage) OutputChannels(configuration any) []core.OutputChannel

func (*GetImage) ProcessQueueItem

func (c *GetImage) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)

func (*GetImage) Setup

func (c *GetImage) Setup(ctx core.SetupContext) error

type GetImageConfiguration

type GetImageConfiguration struct {
	Region      string `json:"region" mapstructure:"region"`
	Repository  string `json:"repository" mapstructure:"repository"`
	ImageDigest string `json:"imageDigest" mapstructure:"imageDigest"`
	ImageTag    string `json:"imageTag" mapstructure:"imageTag"`
}

type GetImageScanFindings

type GetImageScanFindings struct{}

func (*GetImageScanFindings) Cancel

func (*GetImageScanFindings) Cleanup

func (c *GetImageScanFindings) Cleanup(ctx core.SetupContext) error

func (*GetImageScanFindings) Color

func (c *GetImageScanFindings) Color() string

func (*GetImageScanFindings) Configuration

func (c *GetImageScanFindings) Configuration() []configuration.Field

func (*GetImageScanFindings) Description

func (c *GetImageScanFindings) Description() string

func (*GetImageScanFindings) Documentation

func (c *GetImageScanFindings) Documentation() string

func (*GetImageScanFindings) ExampleOutput

func (c *GetImageScanFindings) ExampleOutput() map[string]any

func (*GetImageScanFindings) Execute

func (*GetImageScanFindings) HandleHook added in v0.18.0

func (c *GetImageScanFindings) HandleHook(ctx core.ActionHookContext) error

func (*GetImageScanFindings) HandleWebhook

func (*GetImageScanFindings) Hooks added in v0.18.0

func (c *GetImageScanFindings) Hooks() []core.Hook

func (*GetImageScanFindings) Icon

func (c *GetImageScanFindings) Icon() string

func (*GetImageScanFindings) Label

func (c *GetImageScanFindings) Label() string

func (*GetImageScanFindings) Name

func (c *GetImageScanFindings) Name() string

func (*GetImageScanFindings) OutputChannels

func (c *GetImageScanFindings) OutputChannels(configuration any) []core.OutputChannel

func (*GetImageScanFindings) ProcessQueueItem

func (c *GetImageScanFindings) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)

func (*GetImageScanFindings) Setup

type GetImageScanFindingsConfiguration

type GetImageScanFindingsConfiguration struct {
	Region      string `json:"region" mapstructure:"region"`
	Repository  string `json:"repository" mapstructure:"repository"`
	ImageDigest string `json:"imageDigest" mapstructure:"imageDigest"`
	ImageTag    string `json:"imageTag" mapstructure:"imageTag"`
}

type ImageDetail

type ImageDetail struct {
	RegistryID             string           `json:"registryId"`
	RepositoryName         string           `json:"repositoryName"`
	ImageDigest            string           `json:"imageDigest"`
	ImageTags              []string         `json:"imageTags"`
	ImageSizeInBytes       int64            `json:"imageSizeInBytes"`
	ImagePushedAt          common.FloatTime `json:"imagePushedAt,omitempty"`
	ImageManifestMediaType string           `json:"imageManifestMediaType"`
	ArtifactMediaType      string           `json:"artifactMediaType"`
}

type ImageIdentifier

type ImageIdentifier struct {
	ImageDigest string `json:"imageDigest"`
	ImageTag    string `json:"imageTag"`
}

type ImageScanFinding

type ImageScanFinding struct {
	Name        string                      `json:"name"`
	Description string                      `json:"description"`
	URI         string                      `json:"uri"`
	Severity    string                      `json:"severity"`
	Attributes  []ImageScanFindingAttribute `json:"attributes"`
}

type ImageScanFindingAttribute

type ImageScanFindingAttribute struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type ImageScanFindings

type ImageScanFindings struct {
	Findings                     []ImageScanFinding `json:"findings"`
	ImageScanCompletedAt         common.FloatTime   `json:"imageScanCompletedAt,omitempty"`
	VulnerabilitySourceUpdatedAt common.FloatTime   `json:"vulnerabilitySourceUpdatedAt,omitempty"`
	FindingSeverityCounts        map[string]int     `json:"findingSeverityCounts"`
}

type ImageScanStatus

type ImageScanStatus struct {
	Status      string `json:"status"`
	Description string `json:"description"`
}

type OnImagePush

type OnImagePush struct{}

func (*OnImagePush) Cleanup

func (p *OnImagePush) Cleanup(ctx core.TriggerContext) error

func (*OnImagePush) Color

func (p *OnImagePush) Color() string

func (*OnImagePush) Configuration

func (p *OnImagePush) Configuration() []configuration.Field

func (*OnImagePush) Description

func (p *OnImagePush) Description() string

func (*OnImagePush) Documentation

func (p *OnImagePush) Documentation() string

func (*OnImagePush) ExampleData

func (t *OnImagePush) ExampleData() map[string]any

func (*OnImagePush) HandleHook added in v0.18.0

func (p *OnImagePush) HandleHook(ctx core.TriggerHookContext) (map[string]any, error)

func (*OnImagePush) HandleWebhook

func (*OnImagePush) Hooks added in v0.18.0

func (p *OnImagePush) Hooks() []core.Hook

func (*OnImagePush) Icon

func (p *OnImagePush) Icon() string

func (*OnImagePush) Label

func (p *OnImagePush) Label() string

func (*OnImagePush) Name

func (p *OnImagePush) Name() string

func (*OnImagePush) OnIntegrationMessage

func (p *OnImagePush) OnIntegrationMessage(ctx core.IntegrationMessageContext) error

func (*OnImagePush) Setup

func (p *OnImagePush) Setup(ctx core.TriggerContext) error

type OnImagePushConfiguration

type OnImagePushConfiguration struct {
	Region     string `json:"region" mapstructure:"region"`
	Repository string `json:"repository" mapstructure:"repository"`
}

type OnImagePushMetadata

type OnImagePushMetadata struct {
	Region         string      `json:"region" mapstructure:"region"`
	SubscriptionID string      `json:"subscriptionId" mapstructure:"subscriptionId"`
	Repository     *Repository `json:"repository" mapstructure:"repository"`
}

type OnImageScan

type OnImageScan struct{}

func (*OnImageScan) Cleanup

func (p *OnImageScan) Cleanup(ctx core.TriggerContext) error

func (*OnImageScan) Color

func (p *OnImageScan) Color() string

func (*OnImageScan) Configuration

func (p *OnImageScan) Configuration() []configuration.Field

func (*OnImageScan) Description

func (p *OnImageScan) Description() string

func (*OnImageScan) Documentation

func (p *OnImageScan) Documentation() string

func (*OnImageScan) ExampleData

func (t *OnImageScan) ExampleData() map[string]any

func (*OnImageScan) HandleHook added in v0.18.0

func (p *OnImageScan) HandleHook(ctx core.TriggerHookContext) (map[string]any, error)

func (*OnImageScan) HandleWebhook

func (*OnImageScan) Hooks added in v0.18.0

func (p *OnImageScan) Hooks() []core.Hook

func (*OnImageScan) Icon

func (p *OnImageScan) Icon() string

func (*OnImageScan) Label

func (p *OnImageScan) Label() string

func (*OnImageScan) Name

func (p *OnImageScan) Name() string

func (*OnImageScan) OnIntegrationMessage

func (p *OnImageScan) OnIntegrationMessage(ctx core.IntegrationMessageContext) error

func (*OnImageScan) Setup

func (p *OnImageScan) Setup(ctx core.TriggerContext) error

type OnImageScanConfiguration

type OnImageScanConfiguration struct {
	Region     string `json:"region" mapstructure:"region"`
	Repository string `json:"repository" mapstructure:"repository"`
}

type OnImageScanMetadata

type OnImageScanMetadata struct {
	Region         string      `json:"region" mapstructure:"region"`
	SubscriptionID string      `json:"subscriptionId" mapstructure:"subscriptionId"`
	Repository     *Repository `json:"repository" mapstructure:"repository"`
}

type Repository

type Repository struct {
	RepositoryName string `json:"repositoryName" mapstructure:"repositoryName"`
	RepositoryArn  string `json:"repositoryArn" mapstructure:"repositoryArn"`
}

type ScanImage

type ScanImage struct{}

func (*ScanImage) Cancel

func (c *ScanImage) Cancel(ctx core.ExecutionContext) error

func (*ScanImage) Cleanup

func (c *ScanImage) Cleanup(ctx core.SetupContext) error

func (*ScanImage) Color

func (c *ScanImage) Color() string

func (*ScanImage) Configuration

func (c *ScanImage) Configuration() []configuration.Field

func (*ScanImage) Description

func (c *ScanImage) Description() string

func (*ScanImage) Documentation

func (c *ScanImage) Documentation() string

func (*ScanImage) ExampleOutput

func (c *ScanImage) ExampleOutput() map[string]any

func (*ScanImage) Execute

func (c *ScanImage) Execute(ctx core.ExecutionContext) error

func (*ScanImage) HandleHook added in v0.18.0

func (c *ScanImage) HandleHook(ctx core.ActionHookContext) error

func (*ScanImage) HandleWebhook

func (*ScanImage) Hooks added in v0.18.0

func (c *ScanImage) Hooks() []core.Hook

func (*ScanImage) Icon

func (c *ScanImage) Icon() string

func (*ScanImage) Label

func (c *ScanImage) Label() string

func (*ScanImage) Name

func (c *ScanImage) Name() string

func (*ScanImage) OutputChannels

func (c *ScanImage) OutputChannels(configuration any) []core.OutputChannel

func (*ScanImage) ProcessQueueItem

func (c *ScanImage) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)

func (*ScanImage) Setup

func (c *ScanImage) Setup(ctx core.SetupContext) error

type ScanImageConfiguration

type ScanImageConfiguration struct {
	Region      string `json:"region" mapstructure:"region"`
	Repository  string `json:"repository" mapstructure:"repository"`
	ImageDigest string `json:"imageDigest" mapstructure:"imageDigest"`
	ImageTag    string `json:"imageTag" mapstructure:"imageTag"`
}

type ScanImageMetadata

type ScanImageMetadata struct {
	Region      string `json:"region" mapstructure:"region"`
	Repository  string `json:"repository" mapstructure:"repository"`
	ImageDigest string `json:"imageDigest" mapstructure:"imageDigest"`
}

type ScanImageResponse

type ScanImageResponse struct {
	ImageIdentifier ImageIdentifier `json:"imageId"`
	ScanStatus      ImageScanStatus `json:"scanStatus"`
	RepositoryName  string          `json:"repositoryName"`
	RegistryID      string          `json:"registryId"`
}

Jump to

Keyboard shortcuts

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