digest

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirSha256

func DirSha256(dirPath string, logger *logrus.Logger) (string, error)

DirSha256 returns sha256 digest of a directory

func DockerImageSha256

func DockerImageSha256(imageName string) (string, error)

DockerImageSha256 returns a sha256 digest of a docker image. It requires the docker deamon to be accessible and the docker image to be locally present. The docker image must have been pushed into a registry to have a digest.

func FileSha256

func FileSha256(filepath string) (string, error)

FileSha256 returns a sha256 digest of a file.

func RemoteDockerImageSha256

func RemoteDockerImageSha256(imageName, imageTag, registryEndPoint, registryToken string) (string, error)

RemoteDockerImageSha256 returns a sha256 digest of a docker image by reading it from remote docker registry

func ValidateDigest

func ValidateDigest(sha256ToCheck string) error

ValidateDigest checks if a digest matches the sha256 regex

Types

This section is empty.

Jump to

Keyboard shortcuts

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