trustmap

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

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"),
	"bluemix.net": IBMRegional,
	"icr.io":      ICRRegional,
}

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

Functions

func IBMRegional

func IBMRegional(registryHostname string, imageHostname string) string

IBMRegional IBM Sponsored Trust server, depends on the regional part of the docker image hostname.

func ICRRegional

func ICRRegional(registryHostname string, imageHostname string) string

ICRRegional IBM Sponsored Trust server, depends on the regional part of the docker image hostname.

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