MCPcopy Create free account
hub / github.com/docker/secrets-engine / Unmarshal

Method Unmarshal

store/store.go:65–65  ·  view source on GitHub ↗

Unmarshal the secret from a slice of bytes into its structured format. Implementations must copy any bytes they retain: store backends zero the source buffer after Unmarshal returns to avoid leaking plaintext.

(data []byte)

Source from the content-addressed store, hash-verified

63 // Implementations must copy any bytes they retain: store backends zero
64 // the source buffer after Unmarshal returns to avoid leaking plaintext.
65 Unmarshal(data []byte) error
66 // Metadata returns a key-value pair of non-sensitive data about the secret
67 Metadata() map[string]string
68 // SetMetadata allows the caller to set the secrets non-sensitive data

Callers 14

GetMethod · 0.65
loadSecretMethod · 0.65
GetMethod · 0.65
loadSecretMethod · 0.65
decodeSecretFunction · 0.65
loadSecretMethod · 0.65
FilterMethod · 0.65
GetMethod · 0.65
TestPOSIXAgeFunction · 0.65
RestoreMetadataFunction · 0.65
secretMappingFromSTDINFunction · 0.65

Implementers 4

MockCredentialstore/mocks/mock_credential.go
secretstore/examples/secret.go
MockMyOtherValueplugins/pass/plugin_test.go
PassValueplugins/pass/store/store.go

Calls

no outgoing calls

Tested by 2

TestPOSIXAgeFunction · 0.52
OutputMethod · 0.52