test

package
v0.6.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	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 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 PublicKeyToPEM added in v0.6.0

func PublicKeyToPEM(pubKey crypto.PublicKey) (string, error)

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