Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrCacheNotFound = errors.New("blob not found in cache")
)
Functions ¶
This section is empty.
Types ¶
type Artifact ¶
type Artifact struct {
// contains filtered or unexported fields
}
Artifact bundles image with the required dependencies to be able to scan it.
func NewArtifact ¶
func NewArtifact(img types.Image, log logrus.FieldLogger, c CacheClient, opt ArtifactOption) (*Artifact, error)
NewArtifact bundles already pulled image with additional dependencies for scanning.
type ArtifactOption ¶
ArtifactOption customizes scanning behavior
type ArtifactReference ¶
type ArtifactReference struct { // BlobsInfo contains information about image layers BlobsInfo []types.BlobInfo ConfigFile *v1.ConfigFile ArtifactInfo *types.ArtifactInfo OsInfo *types.OS }
ArtifactReference represents uncompressed image with its layers also uncompressed
type CacheClient ¶
type CachedImage ¶ added in v0.7.0
type CachedImage = types.ArtifactInfo
CachedImage does not contain information about layers. Identified by ImageID in cache.
type CachedLayers ¶ added in v0.7.0
CachedLayers are identified by diffID in cache.
Click to show internal directories.
Click to hide internal directories.