(in []*pbc.Annotation)
| 311 | } |
| 312 | |
| 313 | func pbAnnotationsToAction(in []*pbc.Annotation) []*Annotation { |
| 314 | res := make([]*Annotation, 0, len(in)) |
| 315 | |
| 316 | for _, a := range in { |
| 317 | res = append(res, &Annotation{ |
| 318 | Name: a.GetName(), |
| 319 | Value: a.GetValue(), |
| 320 | }) |
| 321 | } |
| 322 | |
| 323 | return res |
| 324 | } |
| 325 | |
| 326 | // stateAnnotationToAction converts the map of annotations to a slice of []*Annotation |
| 327 | func stateAnnotationToAction(in map[string]string) []*Annotation { |
no test coverage detected