ecr

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ImageTables = []interface{}{
	&Repository{},
	&Image{},
	&ImageSeverityCount{},
	&ImageTags{},
}

Functions

func NewClient

func NewClient(awsConfig aws.Config, db *database.Database, log hclog.Logger,
	accountID string, region string) resource.ClientInterface

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func (*Client) CollectResource

func (c *Client) CollectResource(resource string, config interface{}) error

type Image

type Image struct {
	ID           uint   `gorm:"primarykey"`
	RepositoryID uint   `neo:"ignore"`
	AccountID    string `gorm:"-"`
	Region       string `gorm:"-"`

	ArtifactMediaType      *string
	ImageDigest            *string
	ImageManifestMediaType *string
	ImagePushedAt          *time.Time

	ImageScanFindingsSeverityCounts               []*ImageSeverityCount `gorm:"constraint:OnDelete:CASCADE;"`
	ImageScanFindingsImageScanCompletedAt         *time.Time
	ImageScanFindingsVulnerabilitySourceUpdatedAt *time.Time

	ImageScanStatusDescription *string
	ImageScanStatusStatus      *string
	ImageSizeInBytes           *int64
	ImageTags                  []*ImageTags `gorm:"constraint:OnDelete:CASCADE;"`
	RegistryId                 *string
	RepositoryName             *string
}

func (Image) TableName

func (Image) TableName() string

type ImageConfig

type ImageConfig struct {
	Filter string
}

type ImageSeverityCount

type ImageSeverityCount struct {
	ID        uint   `gorm:"primarykey"`
	ImageID   uint   `neo:"ignore"`
	AccountID string `gorm:"-"`
	Region    string `gorm:"-"`

	Severity string
	Count    int32
}

func (ImageSeverityCount) TableName

func (ImageSeverityCount) TableName() string

type ImageTags

type ImageTags struct {
	ID        uint   `gorm:"primarykey"`
	ImageID   uint   `neo:"ignore"`
	AccountID string `gorm:"-"`
	Region    string `gorm:"-"`

	Value string
}

func (ImageTags) TableName

func (ImageTags) TableName() string

type Repository

type Repository struct {
	ID        uint `gorm:"primarykey"`
	AccountID string
	Region    string
	CreatedAt *time.Time

	EncryptionType   *string
	EncryptionKmsKey *string

	ImageScanningConfigurationScanOnPush *bool
	ImageTagMutability                   *string
	RegistryId                           *string
	ARN                                  *string
	Name                                 *string
	URI                                  *string
	Images                               []*Image `gorm:"constraint:OnDelete:CASCADE;"`
	// contains filtered or unexported fields
}

func (Repository) TableName

func (Repository) TableName() string

Jump to

Keyboard shortcuts

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