signer

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package signer provides notation signing functionality. It implements the notation.Signer interface by providing builtinSigner for local signing and pluginSigner for remote signing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(key crypto.PrivateKey, certChain []*x509.Certificate) (notation.Signer, error)

New returns a builtinSigner given key and cert chain

func NewFromFiles

func NewFromFiles(keyPath, certChainPath string) (notation.Signer, error)

NewFromFiles returns a builtinSigner given key and certChain paths.

func NewFromPlugin

func NewFromPlugin(plugin plugin.SignPlugin, keyID string, pluginConfig map[string]string) (notation.Signer, error)

NewFromPlugin creates a notation.Signer that signs artifacts and generates signatures by delegating the one or more operations to the named plugin, as defined in https://github.com/notaryproject/notaryproject/blob/main/specs/plugin-extensibility.md#signing-interfaces.

Types

This section is empty.

Jump to

Keyboard shortcuts

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