(data string)
| 791 | } |
| 792 | |
| 793 | func 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 | |
| 803 | func buildSSEConfig(cfg *Config) (encrypt.ServerSide, error) { |
| 804 | switch cfg.SSE.Type { |
no test coverage detected