MCPcopy
hub / github.com/perkeep/perkeep / ServerKeyID

Method ServerKeyID

pkg/client/client.go:552–560  ·  view source on GitHub ↗

ServerKeyID returns the server's GPG public key ID, in its long (16 capital hex digits) format. If the server isn't running a sign handler, the error will be ErrNoSigning.

()

Source from the content-addressed store, hash-verified

550// hex digits) format. If the server isn't running a sign handler, the error
551// will be ErrNoSigning.
552func (c *Client) ServerKeyID() (string, error) {
553 if err := c.condDiscovery(); err != nil {
554 return "", err
555 }
556 if c.serverKeyID == "" {
557 return "", ErrNoSigning
558 }
559 return c.serverKeyID, nil
560}
561
562// ServerPublicKeyBlobRef returns the server's public key blobRef
563// If the server isn't running a sign handler, the error will be ErrNoSigning.

Callers 2

checkMatchingKeysMethod · 0.95
storageFromParamMethod · 0.80

Calls 1

condDiscoveryMethod · 0.95

Tested by

no test coverage detected