Documentation ¶
Index ¶
- Constants
- func CreateMaskedTrustedRemoteImage(t *testing.T, registryPrefix, repo, tag string) string
- func SetupConfigFile(t *testing.T) fs.Dir
- func SetupConfigWithNotaryURL(t *testing.T, path, notaryURL string) fs.Dir
- func WithConfig(dir string) func(cmd *icmd.Cmd)
- func WithHome(path string) func(*icmd.Cmd)
- func WithNotary(cmd *icmd.Cmd)
- func WithNotaryServer(notaryURL string) func(*icmd.Cmd)
- func WithPassphrase(rootPwd, repositoryPwd string) func(cmd *icmd.Cmd)
- func WithTrust(cmd *icmd.Cmd)
Constants ¶
View Source
const ( // NotaryURL is the location of the notary server NotaryURL = "https://notary-server:4443" // EvilNotaryURL is the location of the evil notary server EvilNotaryURL = "https://evil-notary-server:4444" // AlpineImage is an image in the test registry AlpineImage = "registry:5000/alpine:3.6" // AlpineSha is the sha of the alpine image AlpineSha = "641b95ddb2ea9dc2af1a0113b6b348ebc20872ba615204fbe12148e98fd6f23d" // BusyboxImage is an image in the test registry BusyboxImage = "registry:5000/busybox:1.27.2" // BusyboxSha is the sha of the busybox image BusyboxSha = "030fcb92e1487b18c974784dcc110a93147c9fc402188370fbfd17efabffc6af" )
Variables ¶
This section is empty.
Functions ¶
func CreateMaskedTrustedRemoteImage ¶
CreateMaskedTrustedRemoteImage creates a remote image that is signed with content trust, then pushes a different untrusted image at the same tag.
func SetupConfigFile ¶
SetupConfigFile creates a config.json file for testing
func SetupConfigWithNotaryURL ¶
SetupConfigWithNotaryURL creates a config.json file for testing in the given path with the given notaryURL
func WithConfig ¶
WithConfig sets an environment variable for the docker config location
func WithNotaryServer ¶
WithNotaryServer sets the location of the notary server
func WithPassphrase ¶
WithPassphrase sets environment variables for passphrases
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.