MCPcopy Create free account
hub / github.com/cloudflare/cfssl / SetMetadata

Method SetMetadata

certdb/certdb.go:31–38  ·  view source on GitHub ↗

SetMetadata sets the metadata json

(meta map[string]interface{})

Source from the content-addressed store, hash-verified

29
30// SetMetadata sets the metadata json
31func (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
41func (c *CertificateRecord) GetMetadata() (map[string]interface{}, error) {

Callers 2

SignMethod · 0.80

Calls

no outgoing calls

Tested by 1