inspector

package
v0.0.0-...-93529e1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckImageExists

func CheckImageExists(i registry.Image, rs *registry.Service) bool

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.

Jump to

Keyboard shortcuts

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