diff --git a/pkg/mirror/types.go b/pkg/mirror/types.go index 694217e..555cfbb 100644 --- a/pkg/mirror/types.go +++ b/pkg/mirror/types.go @@ -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" diff --git a/pkg/tuf/tuf.go b/pkg/tuf/tuf.go index f3af13e..c4fe00a 100644 --- a/pkg/tuf/tuf.go +++ b/pkg/tuf/tuf.go @@ -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) }