signing

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeX509 = "x509"
	TypeKMS  = "kms"
)

Variables

View Source
var AllSigners = []string{TypeX509, TypeKMS}

Functions

This section is empty.

Types

type Bundle added in v0.17.0

type Bundle struct {
	// Content is the raw content that was signed.
	Content []byte
	// Signature is the content signature.
	Signature []byte
	// Cert is an optional PEM encoded x509 certificate, if one was used for signing.
	Cert []byte
	// Cert is an optional PEM encoded x509 certificate chain, if one was used for signing.
	Chain []byte
}

Bundle represents the output of a signing operation.

type Signer

type Signer interface {
	signature.SignerVerifier
	Type() string
	Cert() string
	Chain() string
}

func Wrap added in v0.3.0

func Wrap(s Signer) (Signer, error)

Directories

Path Synopsis
Package kms creates a signer using a key management server
Package kms creates a signer using a key management server

Jump to

Keyboard shortcuts

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