Merge pull request #87 from docker/chore-update-defaults-export-roots

chore: update default urls and export roots
This commit is contained in:
Joel Kamp
2024-07-11 13:22:36 -05:00
committed by GitHub
2 changed files with 9 additions and 2 deletions

View File

@@ -7,8 +7,8 @@ import (
)
const (
DefaultMetadataURL = "https://docker.github.io/tuf-staging/metadata"
DefaultTargetsURL = "https://docker.github.io/tuf-staging/targets"
DefaultMetadataURL = "https://docker.github.io/tuf/metadata"
DefaultTargetsURL = "https://docker.github.io/tuf/targets"
tufMetadataMediaType = "application/vnd.tuf.metadata+json"
tufTargetMediaType = "application/vnd.tuf.target"
tufFileAnnotation = "tuf.io/filename"

View File

@@ -27,6 +27,13 @@ const (
OciSource TufSource = "oci"
)
var (
DockerTufRootProd = embed.RootProd
DockerTufRootStaging = embed.RootStaging
DockerTufRootDev = embed.RootDev
DockerTufRootDefault = embed.RootDefault
)
type TUFClient interface {
DownloadTarget(target, filePath string) (actualFilePath string, data []byte, err error)
}