MCPcopy
hub / github.com/wal-g/wal-g / Crypter

Struct Crypter

internal/crypto/openpgp/crypter.go:20–36  ·  view source on GitHub ↗

Crypter incapsulates specific of cypher method Includes keys, infrastructure information etc If many encryption methods will be used it worth to extract interface

Source from the content-addressed store, hash-verified

18// If many encryption methods will be used it worth
19// to extract interface
20type Crypter struct {
21 KeyRingID string
22 IsUseKeyRingID bool
23
24 ArmoredKey string
25 IsUseArmoredKey bool
26
27 ArmoredKeyPath string
28 IsUseArmoredKeyPath bool
29
30 PubKey openpgp.EntityList
31 SecretKey openpgp.EntityList
32
33 loadPassphrase func() (string, bool)
34
35 mutex sync.RWMutex
36}
37
38func (crypter *Crypter) Name() string {
39 return "Opengpg/Crypter"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected