signing

package
v0.26.1 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2026 License: Apache-2.0 Imports: 10 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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