imagehashconverter

package
v0.0.0-...-8ffe020 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Copyright 2020 7thzero Licensed under Apache2

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractRegistryV2LayerHashes

func ExtractRegistryV2LayerHashes(dClient *client.Client, img string, tempFiles ...string) ([]string, error)

For a given docker image, extract the image layers as they would be stored/represented in a docker image registry conforming to V2 specifications

Types

type DockerImgExportManifest

type DockerImgExportManifest struct {
	Config   string
	RepoTags []string
	Layers   []string
}

When you perform a 'docker save img:tag > image.tar' operation, this manifest will be generated and saved as a file within the tar archive titled `manifest.json`.

Note that if you export multiple docker image/tag pairs at once there will be multiple manifests in the JSON array

Jump to

Keyboard shortcuts

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