Documentation ¶
Index ¶
Constants ¶
View Source
const ( // FileName is the name of config file FileName = "nv2.json" // SignatureStoreDirName is the name of the signature store directory SignatureStoreDirName = "nv2" // SignatureExtension defines the extension of the signature files SignatureExtension = ".jwt" )
Variables ¶
View Source
var ( // FilePath is the path of config file FilePath = filepath.Join(config.Dir(), FileName) // SignatureStoreDirPath is the path of the signature store SignatureStoreDirPath = filepath.Join(config.Dir(), SignatureStoreDirName) )
View Source
var ErrNotaryDisabled = errors.New("notary disabled")
ErrNotaryDisabled indicates that notary is disabled
Functions ¶
func CheckNotaryEnabled ¶
func CheckNotaryEnabled() error
CheckNotaryEnabled checks the config file whether notary is enabled or not.
func IsRegistryInsecure ¶
IsRegistryInsecure checks whether the registry is in the list of insecure registries.
func SignaturePath ¶
func SignaturePath(manifestDigest digest.Digest) string
SignaturePath returns the path of a signature for a manifest
Types ¶
Click to show internal directories.
Click to hide internal directories.