test

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UseMockTL  = true
	UseMockKMS = true

	AWSRegion    = "us-east-1"
	AWSKMSKeyARN = "arn:aws:kms:us-east-1:175142243308:alias/doi-signing" // sandbox
)

Variables

This section is empty.

Functions

func CreateTempDir

func CreateTempDir(t *testing.T, dir, pattern string) string

func GenKeyMetadata added in v0.4.4

func GenKeyMetadata(sv dsse.SignerVerifier) (*attestation.KeyMetadata, error)

LoadKeyMetadata loads the key metadata for the given signer verifier.

func GetMockSigner added in v0.1.2

func GetMockSigner(_ context.Context) (dsse.SignerVerifier, error)

func NewLocalRegistry added in v0.5.0

func NewLocalRegistry(ctx context.Context, options ...registry.Option) *httptest.Server

func Setup added in v0.1.2

func UnsignedTestImage added in v0.3.1

func UnsignedTestImage(rel ...string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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