ReferenceToString -
(ref *base.RelationReference)
| 235 | |
| 236 | // ReferenceToString - |
| 237 | func ReferenceToString(ref *base.RelationReference) string { |
| 238 | if ref.GetRelation() != "" { |
| 239 | return fmt.Sprintf(REFERENCE, ref.GetType(), ref.GetRelation()) |
| 240 | } |
| 241 | return ref.GetType() |
| 242 | } |
| 243 | |
| 244 | // RelationReference parses a relation reference string and returns a RelationReference object. |
| 245 | func RelationReference(ref string) *base.RelationReference { |
no test coverage detected