Documentation ¶
Index ¶
- func CheckImageExists(i registry.Image, rs *registry.Service) bool
- func GetHashFromLayers(layers []database.ImageLayer) string
- func Inspect(imageName string, db *database.PgDB, rs *registry.Service, hs *hub.InfoService, ...) (err error)
- func InspectSize(imgName string, db *database.PgDB, rs *registry.Service, es encryption.Service) (err error)
- func ParseLabels(iv *database.ImageVersion) (badgeCount int, license *database.License, vcs *database.VersionControl)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckImageExists ¶
CheckImageExists checks if an image exists on DockerHub for this image. Uses V2 of the Docker Registry API. If it's a private image this is only going to work if you pass in the registry credentials as part of the image ()
func GetHashFromLayers ¶
func GetHashFromLayers(layers []database.ImageLayer) string
GetHashFromLayers hashes together all the layer commands
func Inspect ¶
func Inspect(imageName string, db *database.PgDB, rs *registry.Service, hs *hub.InfoService, qs queue.Service, es encryption.Service) (err error)
Inspect creates a new database image record and populates it with data from the registry
func InspectSize ¶
func InspectSize(imgName string, db *database.PgDB, rs *registry.Service, es encryption.Service) (err error)
InspectSize inspects the size of an image
func ParseLabels ¶
func ParseLabels(iv *database.ImageVersion) (badgeCount int, license *database.License, vcs *database.VersionControl)
ParseLabels inspects Docker labels for those matching the label-schema.org schema. TODO Retire badgeCount as its no longer needed.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.