MCPcopy
hub / github.com/getsops/sops / Server

Struct Server

keyservice/server.go:19–22  ·  view source on GitHub ↗

Server is a key service server that uses SOPS MasterKeys to fulfill requests

Source from the content-addressed store, hash-verified

17
18// Server is a key service server that uses SOPS MasterKeys to fulfill requests
19type Server struct {
20 // Prompt indicates whether the server should prompt before decrypting or encrypting data
21 Prompt bool
22}
23
24func (ks *Server) encryptWithPgp(key *PgpKey, plaintext []byte) ([]byte, error) {
25 pgpKey := pgp.NewMasterKeyFromFingerprint(key.Fingerprint)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected