Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Registry ¶
type Registry interface { IsValidCredential() bool ValidateFields(v *validator.Validate) error EncryptSecret(aes encryption.AES) error DecryptSecret(aes encryption.AES) error EncryptExtras(aes encryption.AES) error DecryptExtras(aes encryption.AES) error GetSecret() map[string]interface{} GetExtras() map[string]interface{} FetchImagesFromRegistry(ctx context.Context) ([]model.IngestedContainerImage, error) GetNamespace() string GetRegistryType() string GetUsername() string }
Registry is the interface for all the supported registries
func GetRegistry ¶
todo: try interface in input not return
func GetRegistryWithRegistryRow ¶
func GetRegistryWithRegistryRow(row postgresql_db.GetContainerRegistriesRow) (Registry, error)
func GetRegistryWithRegistrySafeRow ¶
func GetRegistryWithRegistrySafeRow(row postgresql_db.GetContainerRegistriesSafeRow) (Registry, error)
Click to show internal directories.
Click to hide internal directories.