Documentation
¶
Index ¶
- func CheckIfImageExistsInLocal(ref name.Reference) (bool, v1.Image, error)
- func FilesystemScanHandler(target string, addr *urn.URN) error
- func GetImage(input string, config *types.RegistryConfig) (*v1.Image, *name.Reference, error)
- func ReadFiles(image *v1.Image, addr *urn.URN) error
- func ReadTarballAsImage(path string) (*v1.Image, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckIfImageExistsInLocal ¶
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 GetImage ¶
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.