test

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UseMockTL     = true
	UseMockKMS    = true
	UseMockPolicy = 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 Setup added in v0.1.2

Types

type AnnotatedStatement added in v0.1.3

type AnnotatedStatement struct {
	OCIDescriptor   *v1.Descriptor
	InTotoStatement *intoto.Statement
	Annotations     map[string]string
}

func ExtractAnnotatedStatements added in v0.1.3

func ExtractAnnotatedStatements(path string, mediaType string) ([]*AnnotatedStatement, error)

func ExtractStatementsFromIndex added in v0.1.5

func ExtractStatementsFromIndex(idx v1.ImageIndex, mediaType string) ([]*AnnotatedStatement, error)

Jump to

Keyboard shortcuts

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