trustmap

package
v0.13.13 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TrustServerMap = map[string]TrustServerFn{
	"docker.io": Identity("https://notary.docker.io"),
	"quay.io":   Identity("https://quay.io:443"),
}

TrustServerMap Easy way to link known registries to their sponsored trust servers

Functions

This section is empty.

Types

type TrustServerFn

type TrustServerFn func(string, string) string

TrustServerFn A simple type alias to represent a function that takes image and suffix and returns trust url

func Identity

func Identity(value string) TrustServerFn

Identity Returns a configured function that just returns a string. For static trust server hosts.

Jump to

Keyboard shortcuts

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