Documentation
¶
Index ¶
- Constants
- func ListRepositories(ctx core.ListResourcesContext, resourceType string) ([]core.IntegrationResource, error)
- type Client
- func (c *Client) DescribeImage(repositoryName string, imageDigest string, imageTag string) (*ImageDetail, error)
- func (c *Client) DescribeImageScanFindings(repositoryName string, imageDigest string, imageTag string) (*DescribeImageScanFindingsResponse, error)
- func (c *Client) DescribeRepository(name string) (*Repository, error)
- func (c *Client) ListRepositories() ([]Repository, error)
- func (c *Client) ScanImage(repositoryName string, imageDigest string, imageTag string) (*ScanImageResponse, error)
- type DescribeImageResponse
- type DescribeImageScanFindingsResponse
- type GetImage
- func (c *GetImage) Cancel(ctx core.ExecutionContext) error
- func (c *GetImage) Cleanup(ctx core.SetupContext) error
- func (c *GetImage) Color() string
- func (c *GetImage) Configuration() []configuration.Field
- func (c *GetImage) Description() string
- func (c *GetImage) Documentation() string
- func (c *GetImage) ExampleOutput() map[string]any
- func (c *GetImage) Execute(ctx core.ExecutionContext) error
- func (c *GetImage) HandleHook(ctx core.ActionHookContext) error
- func (c *GetImage) HandleWebhook(ctx core.WebhookRequestContext) (int, *core.WebhookResponseBody, error)
- func (c *GetImage) Hooks() []core.Hook
- func (c *GetImage) Icon() string
- func (c *GetImage) Label() string
- func (c *GetImage) Name() string
- func (c *GetImage) OutputChannels(configuration any) []core.OutputChannel
- func (c *GetImage) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
- func (c *GetImage) Setup(ctx core.SetupContext) error
- type GetImageConfiguration
- type GetImageScanFindings
- func (c *GetImageScanFindings) Cancel(ctx core.ExecutionContext) error
- func (c *GetImageScanFindings) Cleanup(ctx core.SetupContext) error
- func (c *GetImageScanFindings) Color() string
- func (c *GetImageScanFindings) Configuration() []configuration.Field
- func (c *GetImageScanFindings) Description() string
- func (c *GetImageScanFindings) Documentation() string
- func (c *GetImageScanFindings) ExampleOutput() map[string]any
- func (c *GetImageScanFindings) Execute(ctx core.ExecutionContext) error
- func (c *GetImageScanFindings) HandleHook(ctx core.ActionHookContext) error
- func (c *GetImageScanFindings) HandleWebhook(ctx core.WebhookRequestContext) (int, *core.WebhookResponseBody, error)
- func (c *GetImageScanFindings) Hooks() []core.Hook
- func (c *GetImageScanFindings) Icon() string
- func (c *GetImageScanFindings) Label() string
- func (c *GetImageScanFindings) Name() string
- func (c *GetImageScanFindings) OutputChannels(configuration any) []core.OutputChannel
- func (c *GetImageScanFindings) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
- func (c *GetImageScanFindings) Setup(ctx core.SetupContext) error
- type GetImageScanFindingsConfiguration
- type ImageDetail
- type ImageIdentifier
- type ImageScanFinding
- type ImageScanFindingAttribute
- type ImageScanFindings
- type ImageScanStatus
- type OnImagePush
- func (p *OnImagePush) Cleanup(ctx core.TriggerContext) error
- func (p *OnImagePush) Color() string
- func (p *OnImagePush) Configuration() []configuration.Field
- func (p *OnImagePush) Description() string
- func (p *OnImagePush) Documentation() string
- func (t *OnImagePush) ExampleData() map[string]any
- func (p *OnImagePush) HandleHook(ctx core.TriggerHookContext) (map[string]any, error)
- func (p *OnImagePush) HandleWebhook(ctx core.WebhookRequestContext) (int, *core.WebhookResponseBody, error)
- func (p *OnImagePush) Hooks() []core.Hook
- func (p *OnImagePush) Icon() string
- func (p *OnImagePush) Label() string
- func (p *OnImagePush) Name() string
- func (p *OnImagePush) OnIntegrationMessage(ctx core.IntegrationMessageContext) error
- func (p *OnImagePush) Setup(ctx core.TriggerContext) error
- type OnImagePushConfiguration
- type OnImagePushMetadata
- type OnImageScan
- func (p *OnImageScan) Cleanup(ctx core.TriggerContext) error
- func (p *OnImageScan) Color() string
- func (p *OnImageScan) Configuration() []configuration.Field
- func (p *OnImageScan) Description() string
- func (p *OnImageScan) Documentation() string
- func (t *OnImageScan) ExampleData() map[string]any
- func (p *OnImageScan) HandleHook(ctx core.TriggerHookContext) (map[string]any, error)
- func (p *OnImageScan) HandleWebhook(ctx core.WebhookRequestContext) (int, *core.WebhookResponseBody, error)
- func (p *OnImageScan) Hooks() []core.Hook
- func (p *OnImageScan) Icon() string
- func (p *OnImageScan) Label() string
- func (p *OnImageScan) Name() string
- func (p *OnImageScan) OnIntegrationMessage(ctx core.IntegrationMessageContext) error
- func (p *OnImageScan) Setup(ctx core.TriggerContext) error
- type OnImageScanConfiguration
- type OnImageScanMetadata
- type Repository
- type ScanImage
- func (c *ScanImage) Cancel(ctx core.ExecutionContext) error
- func (c *ScanImage) Cleanup(ctx core.SetupContext) error
- func (c *ScanImage) Color() string
- func (c *ScanImage) Configuration() []configuration.Field
- func (c *ScanImage) Description() string
- func (c *ScanImage) Documentation() string
- func (c *ScanImage) ExampleOutput() map[string]any
- func (c *ScanImage) Execute(ctx core.ExecutionContext) error
- func (c *ScanImage) HandleHook(ctx core.ActionHookContext) error
- func (c *ScanImage) HandleWebhook(ctx core.WebhookRequestContext) (int, *core.WebhookResponseBody, error)
- func (c *ScanImage) Hooks() []core.Hook
- func (c *ScanImage) Icon() string
- func (c *ScanImage) Label() string
- func (c *ScanImage) Name() string
- func (c *ScanImage) OutputChannels(configuration any) []core.OutputChannel
- func (c *ScanImage) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
- func (c *ScanImage) Setup(ctx core.SetupContext) error
- type ScanImageConfiguration
- type ScanImageMetadata
- type ScanImageResponse
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 (*Client) DescribeImageScanFindings ¶
func (*Client) DescribeRepository ¶
func (c *Client) DescribeRepository(name string) (*Repository, error)
func (*Client) ListRepositories ¶
func (c *Client) ListRepositories() ([]Repository, 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) Configuration ¶
func (c *GetImage) Configuration() []configuration.Field
func (*GetImage) Description ¶
func (*GetImage) Documentation ¶
func (*GetImage) ExampleOutput ¶
func (*GetImage) HandleHook ¶ added in v0.18.0
func (c *GetImage) HandleHook(ctx core.ActionHookContext) error
func (*GetImage) HandleWebhook ¶
func (c *GetImage) HandleWebhook(ctx core.WebhookRequestContext) (int, *core.WebhookResponseBody, error)
func (*GetImage) OutputChannels ¶
func (c *GetImage) OutputChannels(configuration any) []core.OutputChannel
func (*GetImage) ProcessQueueItem ¶
type GetImageConfiguration ¶
type GetImageScanFindings ¶
type GetImageScanFindings struct{}
func (*GetImageScanFindings) Cancel ¶
func (c *GetImageScanFindings) Cancel(ctx core.ExecutionContext) error
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 (c *GetImageScanFindings) Execute(ctx core.ExecutionContext) error
func (*GetImageScanFindings) HandleHook ¶ added in v0.18.0
func (c *GetImageScanFindings) HandleHook(ctx core.ActionHookContext) error
func (*GetImageScanFindings) HandleWebhook ¶
func (c *GetImageScanFindings) HandleWebhook(ctx core.WebhookRequestContext) (int, *core.WebhookResponseBody, error)
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 ¶
func (c *GetImageScanFindings) Setup(ctx core.SetupContext) error
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 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 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 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 (p *OnImagePush) HandleWebhook(ctx core.WebhookRequestContext) (int, *core.WebhookResponseBody, error)
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 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 (p *OnImageScan) HandleWebhook(ctx core.WebhookRequestContext) (int, *core.WebhookResponseBody, error)
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 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 ScanImage ¶
type ScanImage struct{}
func (*ScanImage) Configuration ¶
func (c *ScanImage) Configuration() []configuration.Field
func (*ScanImage) Description ¶
func (*ScanImage) Documentation ¶
func (*ScanImage) ExampleOutput ¶
func (*ScanImage) HandleHook ¶ added in v0.18.0
func (c *ScanImage) HandleHook(ctx core.ActionHookContext) error
func (*ScanImage) HandleWebhook ¶
func (c *ScanImage) HandleWebhook(ctx core.WebhookRequestContext) (int, *core.WebhookResponseBody, error)
func (*ScanImage) OutputChannels ¶
func (c *ScanImage) OutputChannels(configuration any) []core.OutputChannel
func (*ScanImage) ProcessQueueItem ¶
type ScanImageConfiguration ¶
type ScanImageMetadata ¶
type ScanImageResponse ¶
type ScanImageResponse struct {
ImageIdentifier ImageIdentifier `json:"imageId"`
ScanStatus ImageScanStatus `json:"scanStatus"`
RepositoryName string `json:"repositoryName"`
RegistryID string `json:"registryId"`
}
Click to show internal directories.
Click to hide internal directories.