registry

package
v0.0.0-...-018290f Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 17 Imported by: 1

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

func GetRegistry(rType string, requestByte []byte) (Registry, error)

todo: try interface in input not return

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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