GetMetaAsString return specified metadata as string
(key string)
| 64 | |
| 65 | // GetMetaAsString return specified metadata as string |
| 66 | func (m *Model) GetMetaAsString(key string) string { |
| 67 | if m.Meta == nil { |
| 68 | return "" |
| 69 | } |
| 70 | return m.Meta.Get(key).MustString() |
| 71 | } |
| 72 | |
| 73 | // Save all files in workDir as a tarball to a filesystem or sqlfs. |
| 74 | func (m *Model) Save(modelURI string, session *pb.Session) error { |