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

Struct Crypter

internal/crypto/envelope/openpgp/crypter.go:28–39  ·  view source on GitHub ↗

Crypter incapsulates specific of cypher method Includes keys, infrastructure information etc

Source from the content-addressed store, hash-verified

26// Crypter incapsulates specific of cypher method
27// Includes keys, infrastructure information etc
28type Crypter struct {
29 enveloper envelope.Enveloper
30 encryptedKey *envelope.EncryptedKey
31
32 ArmoredKey string
33 IsUseArmoredKey bool
34
35 ArmoredKeyPath string
36 IsUseArmoredKeyPath bool
37
38 mutex sync.RWMutex
39}
40
41func (crypter *Crypter) Name() string {
42 parts := []string{"Enveloped", crypter.enveloper.Name(), "Opengpg", "Crypter"}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected