image

package
v0.0.0-...-b60b6a8 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Inspector

type Inspector struct {
	ImageRef            string
	ArtifactLocation    string
	SlimImageRepo       string
	AppArmorProfileName string
	SeccompProfileName  string
	ImageInfo           *docker.Image
	ImageRecordInfo     docker.APIImages
	APIClient           *docker.Client
	//fatImageDockerInstructions []string
	DockerfileInfo *reverse.Dockerfile
}

Inspector is a container image inspector

func NewInspector

func NewInspector(client *docker.Client, imageRef string) (*Inspector, error)

NewInspector creates a new container image inspector

func (*Inspector) Inspect

func (i *Inspector) Inspect() error

Inspect starts the target image inspection

func (*Inspector) NoImage

func (i *Inspector) NoImage() bool

NoImage returns true if the target image doesn't exist

func (*Inspector) ProcessCollectedData

func (i *Inspector) ProcessCollectedData() error

ProcessCollectedData performs post-processing on the collected image data

func (*Inspector) Pull

func (i *Inspector) Pull(showPullLog bool, dockerConfigPath, registryAccount, registrySecret string) error

Pull tries to download the target image

func (*Inspector) ShowFatImageDockerInstructions

func (i *Inspector) ShowFatImageDockerInstructions()

ShowFatImageDockerInstructions prints the original target image Dockerfile instructions

Jump to

Keyboard shortcuts

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