Skip to content

Commit

Permalink
Merge pull request #385 from armosec/reg-st
Browse files Browse the repository at this point in the history
add registry statuses
  • Loading branch information
refaelm92 authored Oct 20, 2024
2 parents 9ec3039 + 24aa253 commit fec45cd
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions armotypes/registrytypes.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,20 @@ const (
Quay RegistryProvider = "quay"
)

type RegistryStatus string

const (
Empty RegistryStatus = ""
Created RegistryStatus = "Created"
Updated RegistryStatus = "Updated"
Error RegistryStatus = "Error"

// Scan statuses
Failed RegistryStatus = "Failed"
InProgress RegistryStatus = "In progress"
Completed RegistryStatus = "Completed"
)

type ContainerImageRegistry interface {
MaskSecret()
ExtractSecret() interface{}
Expand All @@ -71,6 +85,8 @@ type BaseContainerImageRegistry struct {
ScanFrequency string `json:"scanFrequency,omitempty" bson:"scanFrequency,omitempty"`
ResourceName string `json:"resourceName,omitempty" bson:"resourceName,omitempty"`
AuthID string `json:"authID,omitempty" bson:"authID"`
Status RegistryStatus `json:"status,omitempty" bson:"status"`
StatusMessage string `json:"statusMessage,omitempty" bson:"statusMessage"`
}

type QuayImageRegistry struct {
Expand Down

0 comments on commit fec45cd

Please sign in to comment.