(s *adminv1.Service)
| 337 | } |
| 338 | |
| 339 | func toServiceRow(s *adminv1.Service) *service { |
| 340 | attrBytes, err := json.Marshal(s.Attributes) |
| 341 | if err != nil { |
| 342 | panic(fmt.Errorf("failed to marshal service attributes: %w", err)) |
| 343 | } |
| 344 | |
| 345 | return &service{ |
| 346 | Name: s.Name, |
| 347 | OrgName: s.OrgName, |
| 348 | Attributes: string(attrBytes), |
| 349 | CreatedAt: s.CreatedOn.AsTime().Local().Format(time.DateTime), |
| 350 | } |
| 351 | } |
| 352 | |
| 353 | type service struct { |
| 354 | Name string `header:"name" json:"name"` |
no test coverage detected