SetMetadata sets the metadata json
(meta map[string]interface{})
| 29 | |
| 30 | // SetMetadata sets the metadata json |
| 31 | func (c *CertificateRecord) SetMetadata(meta map[string]interface{}) error { |
| 32 | marshaled, err := json.Marshal(meta) |
| 33 | if err != nil { |
| 34 | return err |
| 35 | } |
| 36 | c.MetadataJSON = types.JSONText(marshaled) |
| 37 | return nil |
| 38 | } |
| 39 | |
| 40 | // GetMetadata returns the json metadata |
| 41 | func (c *CertificateRecord) GetMetadata() (map[string]interface{}, error) { |
no outgoing calls