MCPcopy
hub / github.com/grafana/tempo / parseKMSEncryptionContext

Function parseKMSEncryptionContext

tempodb/backend/s3/s3.go:793–801  ·  view source on GitHub ↗
(data string)

Source from the content-addressed store, hash-verified

791}
792
793func parseKMSEncryptionContext(data string) (map[string]string, error) {
794 if data == "" {
795 return nil, nil
796 }
797
798 decoded := map[string]string{}
799 err := json.Unmarshal([]byte(data), &decoded)
800 return decoded, err
801}
802
803func buildSSEConfig(cfg *Config) (encrypt.ServerSide, error) {
804 switch cfg.SSE.Type {

Callers 1

buildSSEConfigFunction · 0.85

Calls 1

UnmarshalMethod · 0.65

Tested by

no test coverage detected