Documentation ¶
Index ¶
- func DirSha256(dirPath string, logger *logrus.Logger) (string, error)
- func DockerImageSha256(imageName string) (string, error)
- func FileSha256(filepath string) (string, error)
- func RemoteDockerImageSha256(imageName, imageTag, registryEndPoint, registryToken string) (string, error)
- func ValidateDigest(sha256ToCheck string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DockerImageSha256 ¶
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 ¶
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 ¶
ValidateDigest checks if a digest matches the sha256 regex
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.