MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / FromModel

Function FromModel

module/certificate/dto/dto.go:19–30  ·  view source on GitHub ↗
(c *certificate.Certificate)

Source from the content-addressed store, hash-verified

17}
18
19func FromModel(c *certificate.Certificate) *Certificate {
20 return &Certificate{
21 Id: c.ID,
22 Name: c.Name,
23 Domains: c.Domains,
24 Partition: c.Cluster,
25 NotBefore: auto.TimeLabel(c.NotBefore),
26 NotAfter: auto.TimeLabel(c.NotAfter),
27 Updater: auto.UUID(c.Updater),
28 UpdateTime: auto.TimeLabel(c.UpdateTime),
29 }
30}
31
32type File struct {
33 Key string `json:"key"`

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected