fixtures

package
v26.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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:frozen"
	// AlpineSha is the sha of the alpine image
	AlpineSha = "e2e16842c9b54d985bf1ef9242a313f36b856181f188de21313820e177002501" // #nosec G101 -- ignoring: Potential hardcoded credentials (gosec)
	// BusyboxImage is an image in the test registry
	BusyboxImage = "registry:5000/busybox:frozen"
	// BusyboxSha is the sha of the busybox image
	BusyboxSha = "030fcb92e1487b18c974784dcc110a93147c9fc402188370fbfd17efabffc6af" // #nosec G101 -- ignoring: Potential hardcoded credentials (gosec)
)

Variables

This section is empty.

Functions

func CreateMaskedTrustedRemoteImage

func CreateMaskedTrustedRemoteImage(t *testing.T, registryPrefix, repo, tag string) string

CreateMaskedTrustedRemoteImage creates a remote image that is signed with content trust, then pushes a different untrusted image at the same tag.

func SetupConfigFile

func SetupConfigFile(t *testing.T) fs.Dir

SetupConfigFile creates a config.json file for testing

func SetupConfigWithNotaryURL

func SetupConfigWithNotaryURL(t *testing.T, path, notaryURL string) fs.Dir

SetupConfigWithNotaryURL creates a config.json file for testing in the given path with the given notaryURL

func WithConfig

func WithConfig(dir string) func(cmd *icmd.Cmd)

WithConfig sets an environment variable for the docker config location

func WithHome

func WithHome(path string) func(*icmd.Cmd)

WithHome sets the HOME environment variable

func WithNotary

func WithNotary(cmd *icmd.Cmd)

WithNotary sets the location of the notary server

func WithNotaryServer

func WithNotaryServer(notaryURL string) func(*icmd.Cmd)

WithNotaryServer sets the location of the notary server

func WithPassphrase

func WithPassphrase(rootPwd, repositoryPwd string) func(cmd *icmd.Cmd)

WithPassphrase sets environment variables for passphrases

func WithTrust

func WithTrust(cmd *icmd.Cmd)

WithTrust sets DOCKER_CONTENT_TRUST to 1

Types

This section is empty.

Jump to

Keyboard shortcuts

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