Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SupportedFormats ¶ added in v0.3.0
func SupportedFormats() []string
Types ¶
type ArtifactFactory ¶
type ArtifactFactory struct {
// contains filtered or unexported fields
}
func NewArtifactFactory ¶
func NewArtifactFactory(format Format) (*ArtifactFactory, error)
func (ArtifactFactory) NewPublicKey ¶
func (a ArtifactFactory) NewPublicKey(r io.Reader) (PublicKey, error)
func (ArtifactFactory) NewSignature ¶
func (a ArtifactFactory) NewSignature(r io.Reader) (Signature, error)
type PublicKey ¶
type PublicKey interface {
CanonicalValue() ([]byte, error)
// Deprecated: EmailAddresses() will be deprecated in favor of Subjects() which will
// also return Subject URIs present in public keys.
EmailAddresses() []string
Subjects() []string
// Identities returns PEM-encoded public keys and subjects from either certificate or PGP keys
Identities() ([]string, error)
}
PublicKey Generic object representing a public key (regardless of format & algorithm)
Click to show internal directories.
Click to hide internal directories.