(c *certificate.Certificate)
| 17 | } |
| 18 | |
| 19 | func 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 | |
| 32 | type File struct { |
| 33 | Key string `json:"key"` |
nothing calls this directly
no outgoing calls
no test coverage detected