notation

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CA               certStoreType = "ca"
	SigningAuthority certStoreType = "signingAuthority"
	TSA              certStoreType = "tsa"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type NotationPluginVerifierConfig

type NotationPluginVerifierConfig struct {
	Name          string `json:"name"`
	ArtifactTypes string `json:"artifactTypes"`

	// VerificationCerts is array of directories containing certificates.
	VerificationCerts []string `json:"verificationCerts"`
	// VerificationCertStores defines a collection of Notary Project Trust Stores.
	// VerificationCertStores accepts new format map[string]map[string][]string
	// {
	//   "ca": {
	//     "certs": {"kv1", "kv2"},
	//   },
	//   "signingauthority": {
	//     "certs": {"kv3"}
	//   },
	// }
	// VerificationCertStores accepts legacy format map[string][]string as well.
	// {
	//   "certs": {"kv1", "kv2"},
	// },
	VerificationCertStores verificationCertStores `json:"verificationCertStores"`
	// TrustPolicyDoc represents a trustpolicy.json document. Reference: https://pkg.go.dev/github.com/notaryproject/notation-go@v0.12.0-beta.1.0.20221125022016-ab113ebd2a6c/verifier/trustpolicy#Document
	TrustPolicyDoc trustpolicy.Document `json:"trustPolicyDoc"`
}

NotationPluginVerifierConfig describes the configuration of notation verifier

type RatifyPluginManager

type RatifyPluginManager struct {
	// contains filtered or unexported fields
}

Implements interface defined in https://github.com/notaryproject/notation-go/blob/main/plugin/manager.go#L20

func NewRatifyPluginManager

func NewRatifyPluginManager(directory string) *RatifyPluginManager

func (*RatifyPluginManager) Get

func (m *RatifyPluginManager) Get(ctx context.Context, name string) (pl.Plugin, error)

Returns a notation Plugin for the given name if present in the target directory

func (*RatifyPluginManager) List

Lists available notation plugins in the target directory

Jump to

Keyboard shortcuts

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