verifier

package
v0.0.0-...-a2e9de6 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "No version specified"

Set from Makefile

Functions

func ImageVerifierFilenames

func ImageVerifierFilenames(infile, sha256, tmpID, mediaType string) (string, string, string)

ImageVerifierFilenames - Returns pendingFilename, verifierFilename, verifiedFilename for the image. The verifierFilename and verifiedFilename always will have an extension of the media-type, e.g. abcdeff112.application-vnd.oci.image.manifest.v1+json This is because we need the media-type to process the blob. Normally, we carry it around in the status (DownloadStatus -> BlobStatus), but those are ephemeral and lost during a reboot. We need that information to be persistent and survive reboot, so we can reconstruct it. Hence, we preserve it in the filename. It is PathEscape'd so it is filename-safe.

func Run

func Run(ps *pubsub.PubSub, loggerArg *logrus.Logger, logArg *base.LogObject, arguments []string) int

Types

type Notify

type Notify struct{}

Notify simple struct to pass notification messages

Jump to

Keyboard shortcuts

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