| 7 | ) |
| 8 | |
| 9 | func NewSetMetadataOp(author identity.Interface, unixTime int64, target entity.Id, newMetadata map[string]string) *dag.SetMetadataOperation[*Snapshot] { |
| 10 | return dag.NewSetMetadataOp[*Snapshot](SetMetadataOp, author, unixTime, target, newMetadata) |
| 11 | } |
| 12 | |
| 13 | // SetMetadata is a convenience function to add metadata on another operation |
| 14 | func SetMetadata(b Interface, author identity.Interface, unixTime int64, target entity.Id, newMetadata map[string]string) (*dag.SetMetadataOperation[*Snapshot], error) { |