reader

package
v1.12.5 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 26 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfImageExistsInLocal

func CheckIfImageExistsInLocal(ref name.Reference) (bool, v1.Image, error)

CheckIfImageExistsInLocal checks if the given image reference exists locally. It returns a boolean indicating whether the image exists, the image object if it exists, and an error if any.

func FilesystemScanHandler

func FilesystemScanHandler(target string, addr *urn.URN) error

func GetImage

func GetImage(input string, config *types.RegistryConfig) (v1.Image, error)

GetImage retrieves a Docker image given its name or digest. It first checks if the image exists locally, and if not, it pulls it from the remote registry. Returns the image object and an error if any.

func ReadFiles

func ReadFiles(image v1.Image, addr *urn.URN) error

ReadFiles reads the layers of a given v1.Image and processes its contents. It returns an error if there's any issue encountered while reading the layers or processing its contents.

func ReadTarballAsImage

func ReadTarballAsImage(path string) (v1.Image, error)

ReadTarballAsImage reads a tarball from the given path and returns it as a v1.Image.

Types

This section is empty.

Jump to

Keyboard shortcuts

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